/* =========================================================
   کشفینو — استایل اصلی (عمومی، پنل‌ها، ورود، مدیر)
   ========================================================= */

/* فونت کلمه — Regular + Bold */
@font-face {
        font-family: 'Kalameh';
        src: url('../fonts/Kalameh-Regular.ttf') format('truetype');
        font-weight: 400;
        font-style: normal;
        font-display: swap;
}
@font-face {
        font-family: 'Kalameh';
        src: url('../fonts/Kalameh-Bold.ttf') format('truetype');
        font-weight: 700;
        font-style: normal;
        font-display: swap;
}
/* وزن‌های بین و بالاتر از ۷۰۰ به Bold نگاشت می‌شوند */
@font-face {
        font-family: 'Kalameh';
        src: url('../fonts/Kalameh-Bold.ttf') format('truetype');
        font-weight: 600 900;
        font-style: normal;
        font-display: swap;
}

:root {
        --kf-bg: #070510;
        --kf-bg2: #0d0a1e;
        --kf-surface: rgba(255, 255, 255, .045);
        --kf-surface2: rgba(255, 255, 255, .07);
        --kf-border: rgba(255, 255, 255, .09);
        --kf-border2: rgba(255, 255, 255, .16);
        --kf-text: #ecebf6;
        --kf-muted: #9d97bc;
        --kf-purple: #8b5cf6;
        --kf-indigo: #6366f1;
        --kf-cyan: #22d3ee;
        --kf-pink: #f472b6;
        --kf-green: #34d399;
        --kf-amber: #fbbf24;
        --kf-red: #f87171;
        --kf-grad: linear-gradient(135deg, #8b5cf6, #6366f1 55%, #22d3ee);
        --kf-grad2: linear-gradient(135deg, #6366f1, #8b5cf6);
        --kf-radius: 12px;
        --kf-radius-sm: 10px;
        --kf-shadow: 0 18px 50px rgba(3, 2, 12, .55);
        --kf-glow: 0 0 34px rgba(139, 92, 246, .32);
        --kf-font: 'Kalameh', 'Vazirmatn', 'Tahoma', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
        font-family: var(--kf-font);
        background: var(--kf-bg);
        color: var(--kf-text);
        line-height: 1.9;
        -webkit-font-smoothing: antialiased;
        overflow-x: hidden;
}

/* پس‌زمینه کهکشانی */
body {
        background-image:
                radial-gradient(ellipse 70% 45% at 78% -8%, rgba(99, 102, 241, .17), transparent 60%),
                radial-gradient(ellipse 55% 40% at 12% 22%, rgba(139, 92, 246, .12), transparent 65%),
                radial-gradient(ellipse 50% 38% at 88% 78%, rgba(34, 211, 238, .09), transparent 62%),
                radial-gradient(1px 1px at 22% 34%, rgba(255,255,255,.5), transparent),
                radial-gradient(1px 1px at 68% 12%, rgba(255,255,255,.4), transparent),
                radial-gradient(1.5px 1.5px at 42% 72%, rgba(255,255,255,.35), transparent),
                radial-gradient(1px 1px at 86% 44%, rgba(255,255,255,.4), transparent),
                radial-gradient(1px 1px at 9% 84%, rgba(255,255,255,.3), transparent);
        background-attachment: fixed;
}

a { color: var(--kf-cyan); text-decoration: none; transition: color .2s; }
a:hover { color: var(--kf-purple); }
img { max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; }

::selection { background: rgba(139, 92, 246, .45); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 8px; }
::-webkit-scrollbar-track { background: #0b0818; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #4c3a8f, #2b2350); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--kf-purple); }

.kf-page { min-height: 100vh; display: flex; flex-direction: column; }
.kf-main { flex: 1; padding: 90px 0 70px; width: 100%; }
.kf-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }

.kf-ic { flex-shrink: 0; vertical-align: -3px; }

/* ================= لوگو ================= */
.kf-logo { display: inline-flex; align-items: center; gap: 10px; }
.kf-logo-txt { display: flex; flex-direction: column; line-height: 1.3; }
.kf-logo-txt b { font-size: 19px; background: var(--kf-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kf-logo-txt i { font-style: normal; font-size: 10.5px; letter-spacing: 3px; color: var(--kf-muted); text-transform: uppercase; }

/* ================= دکمه‌ها ================= */
.kf-btn {
        display: inline-flex; align-items: center; justify-content: center; gap: 8px;
        border: 1px solid transparent; border-radius: 10px;
        padding: 10px 20px; font-size: 14.5px; font-weight: 600;
        transition: all .22s ease; white-space: nowrap; line-height: 1.6;
}
.kf-btn--lg { padding: 14px 30px; font-size: 16px; border-radius: 10px; }
.kf-btn--sm { padding: 6px 12px; font-size: 12.5px; border-radius: 10px; gap: 6px; }
.kf-btn--primary {
        background: var(--kf-grad); color: #fff; position: relative;
        border: none;
        box-shadow: 0 10px 26px rgba(99, 102, 241, .35);
}
.kf-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(139, 92, 246, .5); color: #fff; }
.kf-btn--primary:active { transform: translateY(0); }
.kf-btn--ghost { background: transparent; border-color: var(--kf-border2); color: var(--kf-text); }
.kf-btn--ghost:hover { border-color: var(--kf-purple); color: var(--kf-text); background: rgba(139, 92, 246, .08); }
.kf-btn--soft { background: var(--kf-surface2); border-color: var(--kf-border); color: var(--kf-text); }
.kf-btn--soft:hover { background: rgba(139, 92, 246, .18); border-color: var(--kf-border2); }
.kf-btn--red { background: rgba(248, 113, 113, .12); border-color: rgba(248, 113, 113, .3); color: var(--kf-red); }
.kf-btn--red:hover { background: rgba(248, 113, 113, .22); }
.kf-btn:disabled { opacity: .45; pointer-events: none; }

.kf-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; }

/* ================= کارت‌ها ================= */
.kf-card {
        background: var(--kf-surface);
        border: 1px solid var(--kf-border);
        border-radius: var(--kf-radius);
        backdrop-filter: blur(14px);
        transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.kf-card--pad { padding: 26px; }
.kf-card:hover { border-color: var(--kf-border2); }
.kf-card-title { font-size: 17px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.kf-card-title a { color: var(--kf-text); }
.kf-card-desc { color: var(--kf-muted); font-size: 13.5px; line-height: 2; }

.kf-grid { display: grid; gap: 18px; align-items: stretch; }
.kf-grid--2 { grid-template-columns: repeat(2, 1fr); }
.kf-grid--3 { grid-template-columns: repeat(3, 1fr); }
.kf-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

/* کارت ارزیابی/دوره — ارتفاع برابر + تراز دکمه */
.kf-exam-card {
        overflow: hidden;
        display: flex;
        flex-direction: column;
        height: 100%;
}
.kf-exam-card:hover { transform: translateY(-4px); box-shadow: var(--kf-shadow), var(--kf-glow); }
.kf-card-body {
        padding: 18px 18px 18px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        flex: 1;
        min-height: 0;
}
.kf-card-body h3 {
        font-size: 15.5px;
        font-weight: 700;
        line-height: 1.45;
        min-height: 2.9em;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
}
.kf-card-body .kf-card-desc {
        flex: 0 0 auto;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 4.2em;
        margin: 0;
}
.kf-card-body .kf-chips { margin-top: 2px; }
.kf-card-body .kf-exam-foot,
.kf-card-body > .kf-btn,
.kf-card-body .kf-btn {
        margin-top: auto;
}
.kf-exam-foot {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        margin-top: auto;
}
.kf-grid > .kf-exam-card,
.kf-grid > .kf-card.kf-exam-card {
        height: 100%;
}

.kf-cover {
        height: 140px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
        color: rgba(255,255,255,.9);
}
.kf-cover img { width: 100%; height: 100%; object-fit: cover; }
.kf-cover--g1 { background: linear-gradient(135deg, #3b2a7a, #6d28d9 55%, #22d3ee); }
.kf-cover--g2 { background: linear-gradient(135deg, #1e3a8a, #6366f1 55%, #a855f7); }
.kf-cover--g3 { background: linear-gradient(135deg, #4c1d95, #db2777 60%, #fb7185); }
.kf-cover--g4 { background: linear-gradient(135deg, #0e7490, #3b82f6 55%, #8b5cf6); }
.kf-cover-ring { position: absolute; width: 130px; height: 130px; border: 1.5px dashed rgba(255,255,255,.4); border-radius: 50%; animation: kfn-spin 14s linear infinite; }
@keyframes kfn-spin { to { transform: rotate(360deg); } }

/* ================= تیترها ================= */
.kf-h1 { font-size: 30px; font-weight: 800; margin-bottom: 8px; }
.kf-section-head { margin-bottom: 30px; max-width: 640px; }
.kf-section-head h2, .kf-section-head h1 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.kf-section-head p { color: var(--kf-muted); font-size: 14.5px; }
.kf-content { color: var(--kf-text); font-size: 15px; line-height: 2.1; }
.kf-content p { margin-bottom: 12px; }
.kf-prose { max-width: 820px; margin: 0 auto; }

/* ================= چیپ و بج ================= */
.kf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kf-chip {
        display: inline-flex; align-items: center; gap: 6px;
        background: var(--kf-surface2); border: 1px solid var(--kf-border);
        border-radius: 999px; padding: 4px 13px; font-size: 12.5px; color: var(--kf-muted);
}
.kf-chip b { color: var(--kf-text); font-weight: 600; }
.kf-chip--glow {
        background: rgba(139, 92, 246, .14); border-color: rgba(139, 92, 246, .4);
        color: #c4b5fd; box-shadow: 0 0 18px rgba(139, 92, 246, .18);
}

.kf-badge {
        display: inline-flex; align-items: center; gap: 5px;
        border-radius: 999px; padding: 3px 12px; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.kf-badge--green { background: rgba(52, 211, 153, .13); color: var(--kf-green); border: 1px solid rgba(52, 211, 153, .3); }
.kf-badge--amber { background: rgba(251, 191, 36, .12); color: var(--kf-amber); border: 1px solid rgba(251, 191, 36, .3); }
.kf-badge--cyan { background: rgba(34, 211, 238, .11); color: var(--kf-cyan); border: 1px solid rgba(34, 211, 238, .3); }
.kf-badge--red { background: rgba(248, 113, 113, .12); color: var(--kf-red); border: 1px solid rgba(248, 113, 113, .3); }
.kf-badge--gray { background: var(--kf-surface2); color: var(--kf-muted); border: 1px solid var(--kf-border); }
.kf-badge--purple { background: rgba(139, 92, 246, .13); color: #c4b5fd; border: 1px solid rgba(139, 92, 246, .35); }

.kf-muted { color: var(--kf-muted); }
.kf-small { font-size: 12px; }

/* ================= فرم‌ها ================= */
.kf-label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 7px; color: var(--kf-text); }
.kf-gw-box { margin: 4px 0 8px; padding: 4px 0; }
.kf-gw-box[hidden] { display: none; }
.kf-input {
        width: 100%; background: rgba(10, 8, 24, .6); border: 1.5px solid var(--kf-border2);
        border-radius: var(--kf-radius-sm); padding: 11px 15px; font-size: 14.5px;
        color: var(--kf-text); font-family: inherit; transition: border-color .2s, box-shadow .2s;
}
.kf-input:focus { outline: none; border-color: var(--kf-purple); box-shadow: 0 0 0 3.5px rgba(139, 92, 246, .18); }
.kf-input--sm { width: auto; padding: 6px 10px; font-size: 12.5px; }
textarea.kf-input { resize: vertical; min-height: 60px; }
input.kf-input::placeholder, textarea.kf-input::placeholder { color: #5d5780; }
input[type=number].kf-input { direction: ltr; text-align: center; }

.kf-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; margin: 12px 0; font-size: 13.5px; color: var(--kf-muted); }
.kf-switch input { display: none; }
.kf-switch i {
        width: 44px; height: 24px; border-radius: 999px; background: rgba(255,255,255,.12);
        position: relative; transition: background .2s; flex-shrink: 0; border: 1px solid var(--kf-border2);
}
.kf-switch i::after {
        content: ''; position: absolute; top: 3px; right: 3px; width: 16px; height: 16px;
        border-radius: 50%; background: #fff; transition: transform .22s;
}
.kf-switch input:checked + i { background: var(--kf-grad); border-color: transparent; }
.kf-switch input:checked + i::after { transform: translateX(-20px); }

.kf-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; background: var(--kf-surface2); border: 1px solid var(--kf-border); border-radius: 10px; padding: 7px 13px; }
.kf-check input { display: none; }
.kf-check i {
        width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--kf-border2); flex-shrink: 0; transition: all .18s;
}
.kf-check input:checked + i { background: var(--kf-grad); border-color: transparent; position: relative; }
.kf-check input:checked + i::after { content: ''; position: absolute; inset: 4px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/contain no-repeat; }
.kf-check:has(input:checked) { border-color: rgba(139,92,246,.5); background: rgba(139,92,246,.1); }

/* ================= هشدارها ================= */
.kf-alert {
        display: flex; align-items: center; gap: 10px; border-radius: 10px;
        padding: 13px 18px; font-size: 14px; margin-bottom: 22px; border: 1px solid;
}
.kf-alert--sm { padding: 9px 14px; font-size: 12.5px; margin-bottom: 0; margin-top: 12px; }
.kf-alert--green { background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .35); color: #a7f3d0; }
.kf-alert--red { background: rgba(248, 113, 113, .09); border-color: rgba(248, 113, 113, .35); color: #fecaca; }
.kf-alert--cyan { background: rgba(34, 211, 238, .08); border-color: rgba(34, 211, 238, .3); color: #a5f3fc; }

/* ================= نوار پیشرفت و رادیال ================= */
.kf-progress { height: 9px; background: rgba(255, 255, 255, .08); border-radius: 999px; overflow: hidden; }
.kf-progress i {
        display: block; height: 100%; background: var(--kf-grad); border-radius: 999px;
        transition: width .8s cubic-bezier(.22, 1, .36, 1); box-shadow: 0 0 12px rgba(139, 92, 246, .6);
}
.kf-progress--lg { height: 13px; }

.kf-radial {
        width: 130px; height: 130px; border-radius: 50%; flex-shrink: 0; position: relative;
        background: conic-gradient(var(--kf-purple) 0%, var(--kf-cyan) calc(var(--v, 0) * 1%), rgba(255, 255, 255, .07) calc(var(--v, 0) * 1%));
        transition: --v 1s;
        display: flex; align-items: center; justify-content: center;
        box-shadow: 0 0 30px rgba(139, 92, 246, .3);
}
.kf-radial-in {
        width: 104px; height: 104px; border-radius: 50%; background: var(--kf-bg2);
        display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.kf-radial-in b { font-size: 30px; font-weight: 800; }
.kf-radial-in span { font-size: 11px; color: var(--kf-muted); }

/* ================= آواتار ================= */
.kf-avatar { border-radius: 50%; object-fit: cover; border: 2px solid var(--kf-border2); }
.kf-avatar--txt {
        display: inline-flex; align-items: center; justify-content: center;
        background: var(--kf-grad2); color: #fff; font-weight: 700; flex-shrink: 0;
}

/* ================= جدول و لیست ================= */
.kf-table-wrap { overflow-x: auto; border: 1px solid var(--kf-border); border-radius: var(--kf-radius); }
.kf-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.kf-table th {
        text-align: right; padding: 13px 16px; background: rgba(255, 255, 255, .05);
        border-bottom: 1px solid var(--kf-border2); font-size: 12.5px; color: var(--kf-muted);
}
.kf-table td { padding: 12px 16px; border-bottom: 1px solid var(--kf-border); }
.kf-table tr:last-child td { border-bottom: 0; }
.kf-table tr:hover td { background: rgba(255, 255, 255, .025); }

.kf-list { display: flex; flex-direction: column; gap: 10px; }
.kf-list-row {
        display: flex; align-items: center; gap: 13px; flex-wrap: wrap;
        background: var(--kf-surface); border: 1px solid var(--kf-border);
        border-radius: 14px; padding: 12px 16px; transition: border-color .2s;
}
.kf-list-row:hover { border-color: var(--kf-border2); }
.kf-list-main { flex: 1; min-width: 180px; display: flex; flex-direction: column; }
.kf-list-main b { font-size: 14.5px; font-weight: 700; }
.kf-row-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }

/* ================= تب‌ها ================= */
.kf-tabs {
        display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
        background: var(--kf-surface); border: 1px solid var(--kf-border);
        border-radius: 16px; padding: 8px; margin-bottom: 24px;
}
.kf-tab {
        background: transparent; border: 1px solid transparent; color: var(--kf-muted);
        border-radius: 11px; padding: 8px 18px; font-size: 14px; font-weight: 600; transition: all .2s;
}
.kf-tab.active { background: var(--kf-grad2); color: #fff; box-shadow: 0 6px 18px rgba(99, 102, 241, .35); }
.kf-tabpane { display: flex; flex-direction: column; gap: 14px; }
.kf-tabpane[hidden] { display: none; }
.kf-tab-filter { margin-right: auto; display: flex; align-items: center; gap: 8px; color: var(--kf-muted); }
.kf-tab-filter input {
        background: rgba(10, 8, 24, .6); border: 1.5px solid var(--kf-border2); border-radius: 11px;
        padding: 7px 13px; font-size: 13px; color: var(--kf-text); width: 210px; font-family: inherit;
}
.kf-tab-filter input:focus { outline: none; border-color: var(--kf-purple); }
.kf-filter-wide { max-width: 360px; }

/* ================= خالی / ۴۰۴ ================= */
.kf-empty {
        text-align: center; padding: 46px 20px; border: 1.5px dashed var(--kf-border2);
        border-radius: var(--kf-radius); color: var(--kf-muted); display: flex;
        flex-direction: column; align-items: center; gap: 12px; font-size: 14.5px;
}
.kf-404 { text-align: center; padding: 60px 0; position: relative; }
.kf-404-code { font-size: 110px; font-weight: 800; background: var(--kf-grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.2; }
.kf-404-orb { position: absolute; top: 0; right: 50%; transform: translateX(50%); width: 300px; height: 300px; background: radial-gradient(circle, rgba(139,92,246,.22), transparent 65%); border-radius: 50%; }

/* ================= هدر و فوتر عمومی ================= */
.kf-nav {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 90;
        pointer-events: none;
        background: transparent;
        border: none;
}
.kf-nav-shell {
        max-width: 1120px;
        margin: 16px auto 0;
        padding: 0 16px;
        pointer-events: none;
}
.kf-nav-glass {
        pointer-events: auto;
        display: flex;
        align-items: center;
        gap: 18px;
        min-height: 58px;
        padding: 8px 14px 8px 10px;
        border-radius: 16px;
        background: rgba(12, 9, 26, .55);
        border: 1px solid rgba(255, 255, 255, .1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .06);
        backdrop-filter: blur(18px) saturate(1.35);
        -webkit-backdrop-filter: blur(18px) saturate(1.35);
}
.kf-brand { display: flex; flex-shrink: 0; }
.kf-nav-links {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-right: 4px;
        flex: 1;
}
.kf-nav-links a {
        color: var(--kf-muted);
        font-size: 15px;
        font-weight: 600;
        position: relative;
        padding: 9px 13px;
        border-radius: 10px;
        transition: color .2s, background .2s;
}
.kf-nav-links a:hover {
        color: var(--kf-text);
        background: rgba(255, 255, 255, .06);
}
.kf-nav-links a::after { display: none; }
.kf-nav-cta,
.kf-nav-links a.kf-nav-cta {
        margin-right: auto;
        margin-left: 0;
        flex-shrink: 0;
        border-radius: 10px !important;
        padding: 10px 16px !important;
        font-size: 14.5px !important;
        align-self: center;
        color: #fff !important;
        background: var(--kf-grad) !important;
        border: none !important;
}
.kf-nav-cta:hover,
.kf-nav-links a.kf-nav-cta:hover {
        color: #fff !important;
        background: var(--kf-grad) !important;
        transform: translateY(-1px);
        box-shadow: 0 12px 28px rgba(139, 92, 246, .45);
}
.kf-nav-cta .kf-ic,
.kf-nav-links a.kf-nav-cta .kf-ic {
        color: #fff !important;
        stroke: #fff;
}
.kf-burger {
        display: none;
        background: rgba(255,255,255,.06);
        border: 1px solid var(--kf-border2);
        color: var(--kf-text);
        border-radius: 10px;
        padding: 7px 9px;
        position: relative;
        z-index: 5;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
}

.kf-foot { border-top: 1px solid var(--kf-border); background: rgba(9, 6, 20, .6); padding: 44px 0 0; margin-top: 40px; }
.kf-foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding-bottom: 34px; }
.kf-foot-brand p { color: var(--kf-muted); font-size: 13.5px; margin-top: 12px; max-width: 320px; }
.kf-foot-col { display: flex; flex-direction: column; gap: 9px; }
.kf-foot-col h4 { font-size: 14.5px; margin-bottom: 5px; }
.kf-foot-col a { color: var(--kf-muted); font-size: 13.5px; display: inline-flex; align-items: center; gap: 7px; }
.kf-foot-col a:hover { color: var(--kf-cyan); }
.kf-social { display: flex; gap: 9px; margin-top: 8px; }
.kf-social a {
        width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--kf-border2);
        display: inline-flex; align-items: center; justify-content: center; color: var(--kf-muted);
}
.kf-social a:hover { color: #fff; background: var(--kf-grad2); border-color: transparent; }
.kf-foot-bar { border-top: 1px solid var(--kf-border); padding: 15px 22px; color: var(--kf-muted); font-size: 12.5px; max-width: none; }

/* =========================================================
   پنل‌ها — پوسته تمام عرض بدون هدر/فوتر سایت
   ========================================================= */
/* =========================================================
   پنل — تمام‌عرض + سایدبار باز/بسته + هدر آیکونی
   ========================================================= */

.pn-shell {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        width: 100%;
        background: radial-gradient(ellipse 60% 40% at 85% -5%, rgba(99, 102, 241, .14), transparent 60%), var(--kf-bg);
        --pn-side-w: 268px;
        --pn-side-w-collapsed: 78px;
        --pn-header-h: 68px;
}

.pn-shell.pn--admin {
        --kf-purple: #22d3ee;
        --kf-indigo: #3b82f6;
        background: radial-gradient(ellipse 60% 40% at 85% -5%, rgba(34, 211, 238, .13), transparent 60%), var(--kf-bg);
}

/* بدنه: سایدبار + محتوا */
.pn-body {
        display: flex;
        flex: 1;
        min-height: 0;
        width: 100%;
}

/* ---------- سایدبار (ثابت در دسکتاپ) ---------- */
.pn-side {
        width: var(--pn-side-w);
        flex-shrink: 0;
        padding: 18px 14px;
        border-left: 1px solid var(--kf-border);
        background: rgba(10, 7, 22, .92);
        backdrop-filter: blur(18px);
        display: flex;
        flex-direction: column;
        gap: 14px;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        height: 100vh;
        z-index: 70;
        transition: width .28s cubic-bezier(.4, 0, .2, 1), padding .28s;
        overflow: visible;
}

/* فلش چسبیده به لبه سایدبار */
.pn-side-toggle {
        position: absolute;
        top: 18px; /* هم‌تراز با هدر / لوگو */
        left: -13px;
        width: 26px;
        height: 36px;
        border-radius: 10px 0 0 10px;
        border: 1px solid var(--kf-border);
        border-right: none;
        background: rgba(16, 12, 34, .95);
        color: var(--kf-muted);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 71;
        box-shadow: -4px 4px 16px rgba(0,0,0,.25);
        transition: color .2s, background .2s;
        padding: 0;
}

.pn-side-toggle:hover {
        color: var(--kf-text);
        background: rgba(30, 22, 55, .98);
}

.pn-side-toggle-ic {
        display: inline-flex;
        transition: transform .28s cubic-bezier(.4, 0, .2, 1);
        /* حالت باز: فلش به سمت جمع شدن (چپ در RTL محتوا = به سمت داخل) */
        transform: rotate(-90deg);
}

.pn-shell.pn-collapsed .pn-side-toggle-ic {
        /* حالت بسته: فلش برای باز کردن */
        transform: rotate(90deg);
}

/* فاصله‌ی معادل بج مدیریت در پنل کاربر */
.pn-role-spacer {
        height: 28px;
        margin: 2px 6px 6px;
        flex-shrink: 0;
}

.pn-side-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 4px 6px 2px;
}

.pn-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
        min-width: 0;
}

.pn-brand-txt {
        font-weight: 700;
        font-size: 17.5px;
        background: var(--kf-grad);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        white-space: nowrap;
        transition: opacity .2s;
}

.pn-side-close {
        display: none;
        width: 34px;
        height: 34px;
        border-radius: 10px;
        border: 1px solid var(--kf-border);
        background: var(--kf-surface);
        color: var(--kf-muted);
        align-items: center;
        justify-content: center;
        cursor: pointer;
}

.pn-nav {
        display: flex;
        flex-direction: column;
        gap: 5px;
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 4px 0;
}

.pn-nav-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 11px 14px;
        border-radius: 10px;
        color: var(--kf-muted);
        font-size: 14.2px;
        font-weight: 600;
        border: 1px solid transparent;
        transition: all .2s;
        position: relative;
        white-space: nowrap;
}

.pn-nav-ic {
        display: inline-flex;
        width: 22px;
        height: 22px;
        flex-shrink: 0;
        align-items: center;
        justify-content: center;
}

.pn-nav-lbl {
        transition: opacity .2s, width .2s;
}

.pn-nav-item:hover {
        color: var(--kf-text);
        background: var(--kf-surface2);
}

.pn-nav-item.active {
        color: #fff;
        background: var(--kf-grad2);
        box-shadow: 0 8px 22px rgba(99, 102, 241, .35);
}

.pn-dot {
        margin-right: auto;
        min-width: 20px;
        height: 20px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #ef4444;
        color: #fff;
        border-radius: 999px;
        font-size: 11px;
        padding: 0 6px;
        font-weight: 800;
        box-shadow: 0 0 0 2px rgba(239, 68, 68, .2);
        line-height: 1;
}
.pn-shell.pn-collapsed .pn-dot {
        position: absolute;
        top: 6px;
        left: 10px;
        margin: 0;
        min-width: 16px;
        height: 16px;
        font-size: 9px;
        padding: 0 4px;
}
.pn-nav-item { position: relative; }

.pn-side-foot {
        display: flex;
        flex-direction: column;
        gap: 6px;
        border-top: 1px solid var(--kf-border);
        padding-top: 12px;
}

.pn-side-user {
        display: flex;
        align-items: center;
        gap: 11px;
        padding: 8px 10px;
        border-radius: 10px;
        background: var(--kf-surface);
        border: 1px solid var(--kf-border);
        margin-bottom: 4px;
}

.pn-side-user-info {
        display: flex;
        flex-direction: column;
        line-height: 1.45;
        min-width: 0;
        transition: opacity .2s;
}

.pn-side-user-info b {
        font-size: 14.5px;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
}

.pn-side-user-info i {
        font-style: normal;
        font-size: 12px;
        color: var(--kf-muted);
}

.pn-nav-logout:hover {
        color: #f87171 !important;
        background: rgba(248, 113, 113, .1) !important;
}

.pn-back {
        color: var(--kf-muted);
        font-size: 12.5px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 14px;
        transition: opacity .2s;
}

/* ---------- حالت جمع‌شده دسکتاپ ---------- */
.pn-shell.pn-collapsed .pn-side {
        width: var(--pn-side-w-collapsed);
        padding: 18px 10px;
}

.pn-shell.pn-collapsed .pn-brand-txt,
.pn-shell.pn-collapsed .pn-nav-lbl,
.pn-shell.pn-collapsed .pn-side-user-info,
.pn-shell.pn-collapsed .pn-role-badge,
.pn-shell.pn-collapsed .pn-role-spacer,
.pn-shell.pn-collapsed .pn-dot,
.pn-shell.pn-collapsed .pn-back .pn-nav-lbl {
        opacity: 0;
        width: 0;
        overflow: hidden;
        pointer-events: none;
}

.pn-shell.pn-collapsed .pn-nav-item {
        justify-content: center;
        align-items: center;
        padding: 12px 0;
        gap: 0;
}

.pn-shell.pn-collapsed .pn-nav-ic {
        margin: 0 auto;
}

.pn-shell.pn-collapsed .pn-side-user {
        justify-content: center;
        align-items: center;
        padding: 10px 0;
        gap: 0;
}

.pn-shell.pn-collapsed .pn-side-top {
        justify-content: center;
}

.pn-shell.pn-collapsed .pn-brand {
        justify-content: center;
}

.pn-shell.pn-collapsed .pn-nav-logout {
        justify-content: center;
}

.pn-shell.pn-collapsed .pn-nav-item.active {
        box-shadow: 0 6px 18px rgba(99, 102, 241, .4);
}

/* تولتیپ وقتی جمع شده */
.pn-shell.pn-collapsed .pn-nav-item::after {
        content: attr(data-tip);
        position: absolute;
        left: calc(100% + 12px);
        top: 50%;
        transform: translateY(-50%);
        background: #1a1530;
        color: #fff;
        font-size: 12px;
        padding: 6px 11px;
        border-radius: 8px;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity .15s;
        border: 1px solid var(--kf-border);
        z-index: 100;
        box-shadow: 0 8px 24px rgba(0,0,0,.4);
}

.pn-shell.pn-collapsed .pn-nav-item:hover::after {
        opacity: 1;
}

/* ---------- هدر تمام‌عرض (زیر سایدبار هم می‌رود) ---------- */
.pn-top {
        position: sticky;
        top: 0;
        z-index: 50;
        width: 100%;
        height: var(--pn-header-h);
        display: flex;
        align-items: center;
        border-bottom: 1px solid var(--kf-border);
        background: rgba(7, 5, 16, .88);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
}

.pn-top-inner {
        display: flex;
        align-items: center;
        gap: 14px;
        width: 100%;
        padding: 0 28px 0 28px;
        /* فاصله از سایدبار ثابت تا محتوا زیر هدر درست قرار بگیرد */
        padding-right: calc(var(--pn-side-w) + 20px);
        transition: padding-right .28s cubic-bezier(.4, 0, .2, 1);
        box-sizing: border-box;
}

.pn-shell.pn-collapsed .pn-top-inner {
        padding-right: calc(var(--pn-side-w-collapsed) + 16px);
}

.pn-title {
        font-size: 18px;
        font-weight: 800;
        margin: 0;
        flex: 1;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
}

/* ---------- محتوای اصلی ---------- */
.pn-main {
        flex: 1;
        min-width: 0;
        padding: 24px 32px 100px;
        width: 100%;
        margin-right: var(--pn-side-w);
        transition: margin-right .28s cubic-bezier(.4, 0, .2, 1), padding .28s;
        box-sizing: border-box;
}

.pn-shell.pn-collapsed .pn-main {
        margin-right: var(--pn-side-w-collapsed);
}

/* همبرگر فقط موبایل */
.pn-burger {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        border: 1px solid var(--kf-border);
        background: var(--kf-surface);
        display: none;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        flex-shrink: 0;
        transition: all .25s;
        position: relative;
}

.pn-burger:hover {
        background: var(--kf-surface2);
        border-color: var(--kf-border2);
}

.pn-burger-lines {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 18px;
}

.pn-burger-lines i {
        display: block;
        height: 2px;
        background: var(--kf-text);
        border-radius: 2px;
        transition: all .28s cubic-bezier(.4, 0, .2, 1);
        transform-origin: center;
}

.pn-burger-lines i:nth-child(1) { width: 18px; }
.pn-burger-lines i:nth-child(2) { width: 13px; }
.pn-burger-lines i:nth-child(3) { width: 16px; }

.pn-shell:not(.pn-collapsed) .pn-burger-lines i:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
        width: 18px;
}
.pn-shell:not(.pn-collapsed) .pn-burger-lines i:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
}
.pn-shell:not(.pn-collapsed) .pn-burger-lines i:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
        width: 18px;
}

/* آیکون‌های هدر */
.pn-top-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
}

.pn-icon-btn {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        border: 1px solid var(--kf-border);
        background: var(--kf-surface);
        color: var(--kf-muted);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        position: relative;
        transition: all .2s;
        text-decoration: none;
}

.pn-icon-btn:hover {
        color: var(--kf-text);
        background: var(--kf-surface2);
        border-color: var(--kf-border2);
}

.pn-icon-btn--logout:hover {
        color: #f87171;
        background: rgba(248, 113, 113, .12);
        border-color: rgba(248, 113, 113, .35);
}

.pn-icon-dot {
        position: absolute;
        top: 8px;
        left: 8px;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--kf-pink);
        border: 2px solid var(--kf-bg);
}

.pn-view {
        display: flex;
        flex-direction: column;
        gap: 22px;
}

/* ---------- Overlay موبایل ---------- */
.pn-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(3, 2, 12, .65);
        z-index: 55;
        opacity: 0;
        transition: opacity .25s;
}

.pn-shell.pn-side-open .pn-overlay {
        display: block;
        opacity: 1;
}

/* ---------- منوی پایین موبایل ---------- */
.pn-mobnav {
        display: none;
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        z-index: 80;
        background: rgba(9, 6, 20, .96);
        backdrop-filter: blur(18px);
        border-top: 1px solid var(--kf-border);
        padding: 0 env(safe-area-inset-bottom);
}

.pn-mobnav a,
.pn-mob-burger {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        padding: 10px 4px 12px;
        color: var(--kf-muted);
        font-size: 11.5px;
        font-weight: 600;
        background: none;
        border: none;
        cursor: pointer;
        position: relative;
}

.pn-mobnav a.active {
        color: var(--kf-cyan);
}

.pn-mob-burger {
        color: var(--kf-purple);
}

.pn-dot--mob {
        position: absolute;
        top: 6px;
        left: 50%;
        transform: translateX(8px);
        min-width: 16px;
        height: 16px;
        font-size: 10px;
        line-height: 16px;
        text-align: center;
        padding: 0 4px;
}

/* ====== خانه پنل ====== */
.pn-hero {
        display: flex; align-items: center; gap: 26px;
        background: linear-gradient(135deg, rgba(139, 92, 246, .16), rgba(34, 211, 238, .07)), var(--kf-surface);
        border: 1px solid rgba(139, 92, 246, .3); border-radius: 24px; padding: 34px 38px;
        position: relative; overflow: hidden;
}
.pn-hero::before {
        content: ''; position: absolute; top: -70px; left: -70px; width: 220px; height: 220px;
        background: radial-gradient(circle, rgba(139, 92, 246, .35), transparent 68%); border-radius: 50%;
}
.pn-hero-txt { flex: 1; position: relative; z-index: 1; }
.pn-hero-txt h2 { font-size: 24px; font-weight: 800; margin: 12px 0 8px; }
.pn-hero-txt p { color: var(--kf-muted); font-size: 14.5px; max-width: 560px; }
.pn-hero-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.pn-hero-art { position: relative; width: 190px; height: 150px; flex-shrink: 0; }
.pn-starbig { position: absolute; top: 50%; right: 50%; transform: translate(50%, -50%); filter: drop-shadow(0 0 24px rgba(139, 92, 246, .6)); }
.pn-orbit { position: absolute; inset: 0; }
.pn-orbit i {
        position: absolute; border: 1.5px solid rgba(139, 92, 246, .3); border-radius: 50%;
        animation: kfn-spin 16s linear infinite;
}
.pn-orbit i:nth-child(1) { inset: 0; }
.pn-orbit i:nth-child(2) { inset: 26px; animation-duration: 11s; animation-direction: reverse; border-color: rgba(34, 211, 238, .3); }
.pn-orbit i:nth-child(3) { inset: 52px; animation-duration: 7s; border-color: rgba(244, 114, 182, .3); }

.pn-stats { margin-top: 2px; }
.kf-stat {
        background: var(--kf-surface); border: 1px solid var(--kf-border); border-radius: 18px;
        padding: 20px 22px; display: flex; flex-direction: column; gap: 3px; position: relative;
}
.kf-stat b { font-size: 24px; font-weight: 800; }
.kf-stat span { font-size: 12.5px; color: var(--kf-muted); }
.kf-stat .kf-ic { position: absolute; top: 18px; left: 18px; color: var(--kf-purple); opacity: .85; }
.kf-stat--cyan .kf-ic { color: var(--kf-cyan); }
.kf-stat--green .kf-ic { color: var(--kf-green); }
.kf-stat--green b { font-size: 17px; }

.pn-sec { display: flex; flex-direction: column; gap: 13px; }
.pn-sectitle { font-size: 16.5px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.pn-sectitle .kf-ic { color: var(--kf-purple); }
.pn-cont { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.pn-cont .kf-cover { width: 110px; height: 74px; border-radius: 14px; flex-shrink: 0; }
.pn-cont-body { flex: 1; min-width: 200px; }
.pn-cont-body h4 { font-size: 15.5px; margin-bottom: 9px; }
.pn-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ====== ویزارد ارزیابی ====== */
.wz-head { display: flex; align-items: center; gap: 14px; }
.wz-head b { font-size: 17px; }
#kfn-wizard { max-width: 760px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.wz-progress { display: flex; flex-direction: column; gap: 7px; }
.wz-progress-bar { height: 8px; background: rgba(255, 255, 255, .07); border-radius: 999px; overflow: hidden; }
.wz-progress-bar i {
        display: block; height: 100%; background: var(--kf-grad); border-radius: 999px;
        box-shadow: 0 0 14px rgba(139, 92, 246, .55); transition: width .7s cubic-bezier(.22, 1, .36, 1);
}
.wz-progress-txt { font-size: 12px; color: var(--kf-muted); text-align: center; }

.wz-screen {
        background: var(--kf-surface); border: 1px solid var(--kf-border);
        border-radius: 24px; padding: 36px 40px; backdrop-filter: blur(12px);
        animation: wz-in .45s cubic-bezier(.22, 1, .36, 1);
}
@keyframes wz-in { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
.wz-screen h2 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.wz-screen p { color: var(--kf-muted); font-size: 14.5px; }
.wz-intro, .wz-secend, .wz-final { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.wz-secchip {
        display: inline-flex; background: rgba(139, 92, 246, .16); color: #c4b5fd;
        border: 1px solid rgba(139, 92, 246, .4); border-radius: 999px; padding: 4px 16px; font-size: 12.5px; font-weight: 600;
}
.wz-meta { display: inline-flex; align-items: center; gap: 7px; color: var(--kf-cyan); font-size: 13px; }
.wz-note { display: inline-flex; align-items: center; gap: 6px; color: var(--kf-muted); font-size: 11.5px; }
.wz-big-ic {
        width: 84px; height: 84px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
        background: rgba(139, 92, 246, .14); color: var(--kf-purple); border: 1.5px solid rgba(139, 92, 246, .35);
        box-shadow: 0 0 30px rgba(139, 92, 246, .25);
}
.wz-big-ic--ok { background: rgba(52, 211, 153, .13); color: var(--kf-green); border-color: rgba(52, 211, 153, .4); box-shadow: 0 0 30px rgba(52, 211, 153, .2); }
.wz-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

.wz-crumb { display: inline-flex; align-items: center; gap: 7px; color: var(--kf-cyan); font-size: 12.5px; font-weight: 600; margin-bottom: 14px; }
.wz-q { font-size: 19.5px !important; line-height: 1.9; }
.wz-req { color: var(--kf-pink); }

.wz-opts { display: flex; flex-direction: column; gap: 11px; margin-top: 20px; }
.wz-opt {
        display: flex; align-items: center; gap: 13px; text-align: right; width: 100%;
        background: rgba(255, 255, 255, .04); border: 1.5px solid var(--kf-border);
        border-radius: 15px; padding: 14px 18px; color: var(--kf-text); font-size: 15px;
        transition: all .2s; position: relative;
}
.wz-opt:hover { border-color: var(--kf-purple); background: rgba(139, 92, 246, .09); transform: translateX(-3px); }
.wz-opt-dot {
        width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--kf-border2); flex-shrink: 0; transition: all .2s;
}
.wz-opt.sel { border-color: var(--kf-purple); background: rgba(139, 92, 246, .14); box-shadow: 0 0 20px rgba(139, 92, 246, .18); }
.wz-opt.sel .wz-opt-dot { background: var(--kf-grad); border-color: transparent; box-shadow: 0 0 12px rgba(139, 92, 246, .7); }

.wz-likert { display: flex; gap: 9px; margin-top: 22px; }
.wz-like {
        flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
        background: rgba(255, 255, 255, .04); border: 1.5px solid var(--kf-border);
        border-radius: 15px; padding: 13px 6px; color: var(--kf-muted); transition: all .2s;
}
.wz-like b { font-size: 17px; color: var(--kf-text); }
.wz-like span { font-size: 11px; }
.wz-like:hover { border-color: var(--kf-purple); transform: translateY(-3px); }
.wz-like.sel { background: rgba(139, 92, 246, .16); border-color: var(--kf-purple); color: var(--kf-text); box-shadow: 0 0 20px rgba(139, 92, 246, .2); }

.wz-desc { margin-top: 20px; font-size: 15px; }
.wz-file { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.wz-file-btn {
        display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
        background: rgba(34, 211, 238, .1); border: 1.5px dashed rgba(34, 211, 238, .45);
        color: var(--kf-cyan); border-radius: 14px; padding: 13px 24px; font-size: 14px; font-weight: 600; transition: all .2s;
}
.wz-file-btn:hover { background: rgba(34, 211, 238, .18); }
.wz-file-prev a { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; }

.wz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }

/* ====== نتیجه ====== */
.rs-head { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.rs-head-main { flex: 1; min-width: 240px; }
.rs-head-main h2 { font-size: 23px; font-weight: 800; margin: 10px 0 4px; }
.rs-verdict {
        display: flex; gap: 16px; align-items: flex-start;
        background: linear-gradient(135deg, rgba(139, 92, 246, .14), rgba(34, 211, 238, .07));
        border: 1px solid rgba(139, 92, 246, .35); border-radius: 20px; padding: 24px 26px;
}
.rs-verdict-ic { color: var(--kf-purple); margin-top: 4px; }
.rs-verdict h4 { font-size: 15.5px; margin-bottom: 6px; }
.rs-verdict p { color: var(--kf-text); font-size: 14.5px; line-height: 2.1; }
.rs-sec-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.rs-sec-top b { font-size: 15.5px; }
.rs-score { font-size: 24px; font-weight: 800; color: var(--kf-cyan); }
.rs-score i { font-style: normal; font-size: 12px; color: var(--kf-muted); }
.rs-fb {
        margin-top: 14px; background: rgba(255, 255, 255, .035); border-right: 3px solid var(--kf-purple);
        border-radius: 10px; padding: 12px 16px; font-size: 13.5px; color: var(--kf-text); line-height: 2;
}

/* ====== کارنامه چاپی ====== */
.kf-cert-wrap { max-width: 840px; margin: 0 auto; }
.kf-cert {
        background: #fff; color: #1a1433; border-radius: 20px; padding: 36px 40px;
        box-shadow: 0 24px 60px rgba(3, 2, 12, .6);
}
.kf-cert-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 2px solid #eceaf6; }
.kf-cert-brand { display: flex; flex-direction: column; gap: 8px; }
.kf-cert-brand span { font-size: 15px; font-weight: 800; color: #4c3a8f; }
.kf-cert-brand .kf-logo-txt b { color: #4c3a8f; -webkit-text-fill-color: #4c3a8f; }
.kf-cert-brand .kf-logo-txt i { color: #8d87ad; }
.kf-cert-score { text-align: center; background: linear-gradient(135deg, #6d28d9, #22d3ee); border-radius: 16px; padding: 12px 24px; color: #fff; }
.kf-cert-score b { display: block; font-size: 30px; font-weight: 800; line-height: 1.4; }
.kf-cert-score span { font-size: 11px; opacity: .9; }
.kf-cert-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 26px; padding: 18px 0; }
.kf-cert-meta div { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; border-bottom: 1px dashed #e2dff0; padding: 6px 0; }
.kf-cert-meta span { color: #8d87ad; }
.kf-cert-meta b { font-weight: 700; }
.kf-cert-verdict { background: #f4f1fd; border-right: 4px solid #7c3aed; border-radius: 12px; padding: 14px 18px; font-size: 13.5px; line-height: 2.1; margin-bottom: 16px; }
.kf-cert-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.kf-cert-table th { background: #f4f1fd; color: #4c3a8f; padding: 10px 14px; text-align: right; border-bottom: 2px solid #e2dff0; }
.kf-cert-table td { padding: 10px 14px; border-bottom: 1px solid #eceaf6; vertical-align: top; }
.kf-cert-foot { display: flex; justify-content: space-between; gap: 12px; padding-top: 16px; color: #8d87ad; font-size: 12px; }
.kf-cert-actions { display: flex; gap: 12px; margin-top: 20px; justify-content: center; }

/* ====== اتاق یادگیری ====== */
.ln-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ln-head-mid { flex: 1; min-width: 220px; }
.ln-head-mid h2 { font-size: 19px; font-weight: 800; margin-bottom: 9px; }
.ln-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.ln-player { display: flex; flex-direction: column; gap: 16px; }
.ln-frame {
        aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #0b0818;
        border: 1px solid var(--kf-border2); box-shadow: var(--kf-shadow);
}
.ln-frame iframe, .ln-frame video { display: block; width: 100%; height: 100%; }
.ln-frame--empty {
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
        color: var(--kf-muted); text-align: center; padding: 20px;
}
.ln-frame--empty .kf-ic { color: var(--kf-purple); }
.ln-frame--empty b { color: var(--kf-text); font-size: 15.5px; }
.ln-frame--empty span { font-size: 13px; max-width: 340px; }
.ln-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.ln-meta h3 { font-size: 17.5px; font-weight: 700; }
.ln-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.ln-playlist {
        background: var(--kf-surface); border: 1px solid var(--kf-border); border-radius: 20px;
        padding: 18px; display: flex; flex-direction: column; gap: 8px;
        position: sticky; top: 20px;
}
.ln-playlist h4 { font-size: 14.5px; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.ln-item {
        display: flex; align-items: center; gap: 11px; border-radius: 13px; padding: 11px 13px;
        border: 1px solid transparent; color: var(--kf-muted); font-size: 13px; transition: all .2s;
}
a.ln-item:hover { background: var(--kf-surface2); color: var(--kf-text); }
.ln-ic { width: 30px; height: 30px; border-radius: 10px; background: rgba(255, 255, 255, .06); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ln-tt { flex: 1; line-height: 1.7; }
.ln-dur { font-size: 11.5px; opacity: .8; }
.ln-item.current { background: rgba(139, 92, 246, .16); border-color: rgba(139, 92, 246, .5); color: var(--kf-text); }
.ln-item.current .ln-ic { background: var(--kf-grad); color: #fff; }
.ln-item.done .ln-ic { background: rgba(52, 211, 153, .15); color: var(--kf-green); }
.ln-item.done .ln-tt { color: var(--kf-green); text-decoration: line-through; text-decoration-color: rgba(52, 211, 153, .5); }
.ln-item.locked { opacity: .45; }
.ln-item.locked .ln-ic { background: rgba(255, 255, 255, .04); }

/* ====== پروفایل ====== */
.pf-title { font-size: 16px; display: flex; align-items: center; gap: 9px; margin-bottom: 18px; }
.pf-title .kf-ic { color: var(--kf-purple); }
.pf-avatar-row { display: flex; align-items: center; gap: 20px; margin-bottom: 6px; }
#kf-profile-form .kf-btn { margin-top: 18px; }
.pf-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px dashed var(--kf-border); font-size: 13.5px; }
.pf-row:last-of-type { border-bottom: 0; }
.pf-row b { color: var(--kf-muted); font-weight: 600; }
.pf-note { display: flex; align-items: center; gap: 12px; margin-top: 22px; background: var(--kf-surface); border: 1px solid var(--kf-border); border-radius: 14px; padding: 13px 16px; }
.pf-note p { font-size: 13px; color: var(--kf-muted); }

/* =========================================================
   پنل مدیریت
   ========================================================= */
.pn--admin .pn-nav-item.active { background: linear-gradient(135deg, #0891b2, #3b82f6); box-shadow: 0 8px 22px rgba(34, 211, 238, .3); }
.pn--admin .pn-sectitle .kf-ic { color: var(--kf-cyan); }
.pn--admin .kf-stat .kf-ic { color: var(--kf-cyan); }

.ad-stats .kf-stat { padding: 22px 24px; }
.ad-quick { margin-top: 4px; }
.ad-quick-card { display: flex; align-items: center; gap: 18px; color: var(--kf-text); }
.ad-quick-card:hover { transform: translateY(-3px); border-color: rgba(34, 211, 238, .5); box-shadow: var(--kf-glow); }
.ad-quick-ic {
        width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(135deg, rgba(34, 211, 238, .18), rgba(59, 130, 246, .18));
        border: 1px solid rgba(34, 211, 238, .4); color: var(--kf-cyan);
        display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ad-quick-card b { display: block; font-size: 15.5px; }
.ad-quick-card span { color: var(--kf-muted); font-size: 12.5px; }
.ad-cardhead { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.ad-cardhead h3 { font-size: 16.5px; }
.ad-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.ad-head h2 { font-size: 22px; font-weight: 800; }
.ad-head p { color: var(--kf-muted); font-size: 13.5px; }
.ad-row-ic {
        width: 42px; height: 42px; border-radius: 13px; display: inline-flex; align-items: center;
        justify-content: center; color: #fff; flex-shrink: 0;
}
.ad-row-ic--g1 { background: linear-gradient(135deg, #3b2a7a, #6d28d9); }
.ad-row-ic--g2 { background: linear-gradient(135deg, #1e3a8a, #6366f1); }
.ad-row-ic--g3 { background: linear-gradient(135deg, #4c1d95, #db2777); }
.ad-row-ic--g4 { background: linear-gradient(135deg, #0e7490, #3b82f6); }

/* ====== سازنده ارزیابی ====== */
.bx-meta { margin-bottom: 18px; }
.bx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.bx-toolbar {
        display: flex; align-items: center; justify-content: space-between; gap: 14px;
        margin-bottom: 14px; flex-wrap: wrap;
}
.bx-toolbar h3 { font-size: 16px; display: flex; align-items: center; gap: 9px; }
.bx-save { display: flex; justify-content: flex-end; margin-top: 20px; }

.bx-section {
        background: var(--kf-surface); border: 1px solid rgba(139, 92, 246, .3);
        border-radius: 20px; padding: 22px; margin-bottom: 18px; position: relative;
}
.bx-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.bx-sec-badge {
        background: var(--kf-grad2); color: #fff; border-radius: 999px;
        font-size: 12px; padding: 3px 14px; font-weight: 700; flex-shrink: 0;
}
.bx-section-title {
        flex: 1; background: transparent; border: none; border-bottom: 1.5px dashed var(--kf-border2);
        color: var(--kf-text); font-family: inherit; font-size: 17px; font-weight: 800; padding: 6px 2px; min-width: 180px;
}
.bx-section-title:focus { outline: none; border-bottom-color: var(--kf-purple); }
.bx-section-desc { width: 100%; margin-top: 8px; }
.bx-q {
        background: rgba(10, 8, 24, .5); border: 1px solid var(--kf-border);
        border-radius: 15px; padding: 16px; margin-top: 14px; display: flex; flex-direction: column; gap: 4px;
}
.bx-q-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bx-q-num {
        width: 30px; height: 30px; border-radius: 10px; background: rgba(34, 211, 238, .14);
        color: var(--kf-cyan); display: inline-flex; align-items: center; justify-content: center;
        font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.bx-q-type {
        background: rgba(255, 255, 255, .06); border: 1.5px solid var(--kf-border2);
        border-radius: 10px; padding: 6px 11px; color: var(--kf-text); font-family: inherit; font-size: 12.5px;
}
.bx-q-body { margin-top: 10px; }
.bx-q-head .kf-label { margin: 0; }
.bx-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.bx-opt-row { display: flex; align-items: center; gap: 9px; }
.bx-opt-dot { color: var(--kf-purple); flex-shrink: 0; }
.bx-opt-row .kf-input { flex: 1; }
.bx-q-actions { display: flex; gap: 7px; margin-top: 12px; align-items: center; }
.bx-q-actions .kf-btn { padding: 6px 11px; }

/* ====== بررسی ارزیابی ====== */
.rv-user { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.rv-user-main { flex: 1; min-width: 200px; display: flex; flex-direction: column; }
.rv-user-main b { font-size: 16px; }
.rv-sec { margin-top: 2px; }
.rv-sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.rv-sec-head b { font-size: 16.5px; display: inline-flex; align-items: center; gap: 8px; }
.rv-sec-head .kf-ic { color: var(--kf-purple); }
.rv-qs { display: flex; flex-direction: column; gap: 14px; }
.rv-q {
        display: flex; flex-direction: column; gap: 12px;
        background: rgba(10, 8, 24, .45); border: 1px solid var(--kf-border);
        border-radius: 14px; padding: 16px 18px;
}
.rv-q-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.rv-q-num {
        width: 28px; height: 28px; border-radius: 8px;
        background: var(--kf-grad2); color: #fff;
        display: inline-flex; align-items: center; justify-content: center;
        font-size: 12.5px; font-weight: 800;
}
.rv-q-title { font-size: 14.5px; display: block; line-height: 1.95; font-weight: 700; }
.rv-q-ans { width: 100%; }
.rv-opts { display: flex; flex-direction: column; gap: 8px; }
.rv-opt {
        display: flex; align-items: center; gap: 10px;
        padding: 10px 12px; border-radius: 10px;
        border: 1px solid var(--kf-border); background: rgba(255,255,255,.03);
        font-size: 13.5px; line-height: 1.7;
}
.rv-opt.is-selected {
        border-color: rgba(34, 211, 238, .55);
        background: rgba(34, 211, 238, .12);
        color: #a5f3fc;
        font-weight: 700;
}
.rv-opt-mark {
        width: 24px; height: 24px; border-radius: 50%;
        display: inline-flex; align-items: center; justify-content: center;
        background: rgba(255,255,255,.06); font-size: 12px; flex-shrink: 0;
}
.rv-opt.is-selected .rv-opt-mark { background: rgba(34, 211, 238, .25); }
.rv-likert {
        display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px;
}
.rv-like {
        display: flex; flex-direction: column; align-items: center; gap: 4px;
        padding: 10px 6px; border-radius: 10px; text-align: center;
        border: 1px solid var(--kf-border); background: rgba(255,255,255,.03);
        font-size: 12px; color: var(--kf-muted);
}
.rv-like b { font-size: 15px; color: var(--kf-text); }
.rv-like.is-selected {
        border-color: rgba(34, 211, 238, .55);
        background: rgba(34, 211, 238, .12);
        color: #a5f3fc; font-weight: 700;
}
.rv-like.is-selected b { color: #a5f3fc; }
.rv-text {
        font-size: 14px; line-height: 2; color: var(--kf-text);
        background: rgba(255, 255, 255, .04); border: 1px solid var(--kf-border);
        border-radius: 12px; padding: 14px 16px; white-space: pre-wrap;
}
.rv-file { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; }
.rv-file img { max-width: 220px; border-radius: 12px; border: 1px solid var(--kf-border2); }
.rv-print-only { display: none; }
.kf-chip--sm { font-size: 11px; padding: 3px 9px; }

.rv-form { display: grid; grid-template-columns: 180px 1fr; gap: 0 22px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--kf-border2); }
.rv-form .kf-label { margin-top: 0; }
.rv-final h3 { font-size: 17px; display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.rv-final-grid { display: grid; grid-template-columns: 180px 1fr; gap: 0 22px; }
.rv-suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-actions { display: flex; align-items: center; gap: 16px; margin-top: 18px; flex-wrap: wrap; }

/* ====== دوره: کلاس‌ها ====== */
.cs-cover-row { display: flex; align-items: center; gap: 12px; }
.cs-cover-prev {
        width: 120px; height: 70px; border-radius: 12px; overflow: hidden;
        background: var(--kf-surface2); border: 1.5px dashed var(--kf-border2);
        display: flex; align-items: center; justify-content: center; color: var(--kf-muted); font-size: 11.5px;
}
.cs-cover-prev img { width: 100%; height: 100%; object-fit: cover; }
.cs-save { margin-top: 18px; }
.ls-form .kf-btn { margin-top: 16px; }
.ls-grid { display: grid; grid-template-columns: 1fr 200px; gap: 0 22px; }
.ls-form { margin-bottom: 16px; }
.ls-order {
        width: 34px; height: 34px; border-radius: 12px; background: var(--kf-grad2); color: #fff;
        display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.ls-list .kf-list-main b { font-size: 14.5px; }

/* ====== تک‌دوره عمومی ====== */
.cr-single { display: flex; flex-direction: column; gap: 22px; }
.cr-hero { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
.cr-hero-txt { display: flex; flex-direction: column; gap: 14px; }
.cr-buy {
        background: var(--kf-surface); border: 1px solid var(--kf-border2); border-radius: 22px;
        padding: 22px; display: flex; flex-direction: column; gap: 15px; position: sticky; top: 90px;
        box-shadow: var(--kf-shadow);
}
.cr-buy .kf-cover { height: 120px; border-radius: 15px; }
.cr-buy-price { font-size: 24px; font-weight: 800; color: var(--kf-cyan); text-align: center; }
.cr-preview .ln-frame { max-width: 720px; }
.cr-list .kf-list-main b { font-size: 14.5px; }
.kf-ic-lock { color: var(--kf-muted); }

/* ====== صفحه ورود / ثبت‌نام ====== */
.au-main {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 100px 18px 48px;
        position: relative;
        overflow: hidden;
        min-height: 100vh;
}
.au-stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.au-wrap {
        width: 100%;
        max-width: 440px;
        position: relative;
        z-index: 2;
}
.au-card {
        width: 100%;
        background: rgba(12, 9, 26, .88);
        backdrop-filter: blur(22px);
        -webkit-backdrop-filter: blur(22px);
        border: 1px solid var(--kf-border2);
        border-radius: 18px;
        padding: 28px 26px 30px;
        box-shadow: var(--kf-shadow), 0 0 40px rgba(99, 102, 241, .12);
        text-align: center;
}
.au-logo { display: flex; justify-content: center; margin-bottom: 14px; }
.au-sub {
        color: var(--kf-muted);
        font-size: 13px;
        margin: 0 0 16px;
        line-height: 1.7;
}
.au-demo { margin-bottom: 14px; text-align: right; }

.au-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        background: var(--kf-surface);
        border: 1px solid var(--kf-border);
        border-radius: 10px;
        padding: 4px;
        margin-bottom: 18px;
}
.au-tab {
        border: none;
        background: transparent;
        color: var(--kf-muted);
        font-family: inherit;
        font-size: 14px;
        font-weight: 700;
        padding: 10px 8px;
        border-radius: 8px;
        cursor: pointer;
        transition: all .2s;
}
.au-tab.active {
        background: var(--kf-grad2);
        color: #fff;
        box-shadow: 0 6px 16px rgba(99, 102, 241, .3);
}

.au-method {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 14px;
}
.au-method-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        border: 1px solid var(--kf-border);
        background: var(--kf-surface);
        color: var(--kf-muted);
        font-family: inherit;
        font-size: 12.5px;
        font-weight: 600;
        padding: 10px 8px;
        border-radius: 10px;
        cursor: pointer;
        transition: all .2s;
}
.au-method-btn.active {
        border-color: rgba(139, 92, 246, .45);
        color: var(--kf-text);
        background: rgba(139, 92, 246, .12);
}

.au-step {
        display: flex;
        flex-direction: column;
        gap: 10px;
        text-align: right;
}
.au-step[hidden],
.au-panel[hidden],
#au-lo-step1[hidden],
#au-lo-step2[hidden],
#au-reg-step1[hidden],
#au-reg-step2[hidden],
#au-login-pass[hidden],
#au-login-otp[hidden] {
        display: none !important;
}
.au-step .kf-label { margin-top: 4px; }
.au-code {
        text-align: center;
        font-size: 22px;
        letter-spacing: 6px;
        font-weight: 800;
}
.au-btn { width: 100%; margin-top: 8px; }
.au-terms { text-align: center; display: block; margin-top: 4px; }

.au-pass-wrap {
        position: relative;
}
.au-pass-wrap .kf-input {
        padding-left: 44px;
}
.au-eye {
        position: absolute;
        left: 8px;
        top: 50%;
        transform: translateY(-50%);
        width: 34px;
        height: 34px;
        border: none;
        background: transparent;
        color: var(--kf-muted);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        border-radius: 8px;
}
.au-eye:hover { color: var(--kf-text); background: var(--kf-surface2); }

.au-pass-hint {
        font-size: 12px;
        color: var(--kf-muted);
        margin-top: -4px;
}
.au-pass-hint.ok { color: var(--kf-green); }
.au-pass-hint.bad { color: var(--kf-red); }

.au-back {
        background: none;
        border: none;
        color: var(--kf-muted);
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        font-family: inherit;
        cursor: pointer;
        align-self: flex-start;
        padding: 0;
}
.au-back:hover { color: var(--kf-cyan); }

.au-timer {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        color: var(--kf-muted);
        font-size: 12.5px;
        flex-wrap: wrap;
}
.au-timer button,
.au-resend {
        background: none;
        border: none;
        color: var(--kf-cyan);
        font-family: inherit;
        font-size: 12.5px;
        font-weight: 700;
        cursor: pointer;
}
.au-timer button:disabled,
.au-resend:disabled {
        color: var(--kf-muted);
        cursor: not-allowed;
}
.au-codetag {
        background: rgba(251, 191, 36, .12);
        border: 1px dashed rgba(251, 191, 36, .5);
        color: var(--kf-amber);
        border-radius: 10px;
        padding: 10px 14px;
        font-size: 14px;
        font-weight: 800;
        text-align: center;
        letter-spacing: 3px;
}

@media (max-width: 480px) {
        .au-card { padding: 22px 18px 24px; border-radius: 14px; }
        .au-main { padding: 80px 12px 32px; }
}

/* ====== توست ====== */
.kf-toasts { position: fixed; bottom: 22px; left: 22px; z-index: 999; display: flex; flex-direction: column; gap: 10px; max-width: 340px; }
.kf-toast {
        background: rgba(16, 12, 34, .95); border: 1px solid var(--kf-border2);
        border-radius: 14px; padding: 13px 18px; font-size: 13.5px;
        box-shadow: var(--kf-shadow); animation: toast-in .35s cubic-bezier(.22, 1, .36, 1);
        display: flex; align-items: center; gap: 10px;
}
.kf-toast--ok { border-color: rgba(52, 211, 153, .5); color: #a7f3d0; }
.kf-toast--err { border-color: rgba(248, 113, 113, .5); color: #fecaca; }
.kf-toast--info { border-color: rgba(34, 211, 238, .5); color: #a5f3fc; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ====== ریل ====== */
.kf-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1); }
.kf-reveal.in { opacity: 1; transform: none; }
.kf-reveal[data-delay="1"] { transition-delay: .12s; }
.kf-reveal[data-delay="2"] { transition-delay: .24s; }
.kf-reveal[data-delay="3"] { transition-delay: .36s; }

/* ====== چاپ ====== */
@page {
        size: A4;
        margin: 10mm 10mm;
}
@media print {
        html, body {
                background: #fff !important;
                color: #111 !important;
                font-size: 14px !important;
                line-height: 1.55 !important;
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
        }
        body, .pn-shell, .pn-main, .pn-body, .pn-view, .kf-page {
                background: #fff !important;
                color: #111 !important;
                width: 100% !important;
                max-width: 100% !important;
        }
        .kf-nav, .kf-foot, .pn-side, .pn-top, .pn-mobnav, .pn-userchip, .kf-burger, .wz-progress,
        .pn-overlay, .no-print {
                display: none !important;
        }
        .pn-shell { display: block !important; }
        .pn-body { display: block !important; margin: 0 !important; }
        .pn-main {
                padding: 0 !important;
                max-width: 100% !important;
                margin: 0 !important;
                width: 100% !important;
        }
        .pn-view { gap: 6px; display: block !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; }
        .pn-shell, .pn-body, .pn-main {
                min-height: 0 !important;
                height: auto !important;
                overflow: visible !important;
        }
        /* جلوگیری از فضای خالی بالای صفحه اول */
        .ad-head { display: none !important; }
        .kf-section-head { margin: 0 0 6px !important; padding: 0 !important; }

        /* گواهی */
        body.kfn-print-cert .pn-view > *:not(.kf-cert-wrap) { display: none !important; }
        .kf-cert-wrap { max-width: 100%; }
        .kf-cert { box-shadow: none; border: 1.5px solid #d9d5ea; }
        .kf-cert-actions { display: none !important; }

        /* پاسخ‌نامه */
        .rv-print-only {
                display: block !important;
                margin: 0 0 10px;
                color: #111 !important;
                border-bottom: 1px solid #ccc;
                padding-bottom: 8px;
        }
        .rv-print-only h2 {
                font-size: 16px !important;
                margin: 0 0 4px !important;
                font-weight: 700 !important;
                color: #111 !important;
        }
        .rv-print-only p {
                font-size: 13px !important;
                margin: 0 !important;
                color: #333 !important;
        }
        .rv-form, .rv-final, .rv-actions { display: none !important; }

        .rv-user, .rv-sec, .rv-q, .kf-card {
                box-shadow: none !important;
                border: 1px solid #ccc !important;
                background: #fff !important;
                color: #111 !important;
                border-radius: 6px !important;
                padding: 8px 10px !important;
                margin: 0 0 6px !important;
        }
        /* فقط هر سوال جداگانه تا حد ممکن یکجا بماند؛ کل بخش را به صفحه بعد پرت نکن */
        .rv-q {
                break-inside: avoid;
                page-break-inside: avoid;
        }
        .rv-sec, .kf-card.rv-sec {
                break-inside: auto !important;
                page-break-inside: auto !important;
                page-break-before: auto !important;
        }
        .rv-user, .rv-print-only {
                break-after: avoid;
                page-break-after: avoid;
        }
        .rv-user {
                display: flex !important;
                align-items: center !important;
                gap: 8px !important;
                font-size: 13px !important;
        }
        .rv-user img, .rv-user .kf-avatar { width: 28px !important; height: 28px !important; }
        .rv-user-main b { font-size: 14px !important; color: #111 !important; }
        .rv-user .kf-muted, .rv-user .kf-small { font-size: 12px !important; color: #444 !important; }

        .rv-sec-head {
                margin-bottom: 6px !important;
                gap: 6px !important;
        }
        .rv-sec-head b {
                font-size: 16px !important;
                color: #111 !important;
                font-weight: 700 !important;
        }
        .rv-qs { gap: 6px !important; }
        .rv-q { padding: 8px 10px !important; gap: 6px !important; }
        .rv-q-meta { margin-bottom: 2px !important; gap: 6px !important; }
        .rv-q-num {
                width: 20px !important;
                height: 20px !important;
                font-size: 11px !important;
                border-radius: 4px !important;
                background: #333 !important;
                color: #fff !important;
        }
        .rv-q-title {
                font-size: 14px !important;
                line-height: 1.6 !important;
                font-weight: 600 !important;
                color: #111 !important;
        }
        .kf-chip, .kf-chip--sm {
                font-size: 10px !important;
                padding: 1px 6px !important;
                color: #333 !important;
                border: 1px solid #bbb !important;
                background: #f3f3f3 !important;
        }

        .rv-opts { gap: 4px !important; }
        .rv-opt {
                padding: 4px 8px !important;
                border-radius: 4px !important;
                font-size: 13px !important;
                line-height: 1.45 !important;
                gap: 6px !important;
                color: #111 !important;
                border: 1px solid #ddd !important;
                background: #fff !important;
        }
        .rv-opt-mark {
                width: 16px !important;
                height: 16px !important;
                font-size: 10px !important;
        }
        .rv-opt.is-selected {
                border-color: #222 !important;
                background: #e8e8e8 !important;
                color: #111 !important;
                font-weight: 700 !important;
        }

        .rv-likert {
                grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
                gap: 4px !important;
        }
        .rv-like {
                padding: 4px 2px !important;
                border-radius: 4px !important;
                font-size: 11px !important;
                gap: 2px !important;
                color: #333 !important;
                border: 1px solid #ddd !important;
        }
        .rv-like b { font-size: 13px !important; color: #111 !important; }
        .rv-like.is-selected {
                border-color: #222 !important;
                background: #e8e8e8 !important;
                color: #111 !important;
                font-weight: 700 !important;
        }

        .rv-text {
                font-size: 14px !important;
                line-height: 1.65 !important;
                padding: 8px 10px !important;
                border-radius: 4px !important;
                color: #111 !important;
                background: #fafafa !important;
                border: 1px solid #ddd !important;
                white-space: pre-wrap !important;
        }
        .rv-file img { max-width: 160px !important; }
        .kf-muted { color: #444 !important; font-size: 12px !important; }
        .kf-badge {
                border: 1px solid #999 !important;
                color: #111 !important;
                background: #f5f5f5 !important;
                font-size: 11px !important;
                padding: 2px 6px !important;
        }
}

/* ====== واکنش‌گرا ====== */
@media (max-width: 1020px) {
        .kf-grid--4 { grid-template-columns: repeat(2, 1fr); }
        .kf-grid--3 { grid-template-columns: repeat(2, 1fr); }
        .ln-grid { grid-template-columns: 1fr; }
        .ln-playlist { position: static; }
        .cr-hero { grid-template-columns: 1fr; }
        .cr-buy { position: static; }
        .rv-final-grid, .rv-form { grid-template-columns: 1fr; gap: 8px; }
        .rv-q { grid-template-columns: 1fr; }
        .rv-q-ans { max-width: 100%; }
}

/* ---------- رسپانسیو پنل ---------- */
@media (max-width: 960px) {
        .pn-side {
                position: fixed;
                top: 0;
                right: 0;
                bottom: 0;
                height: 100%;
                width: min(300px, 86vw);
                transform: translateX(105%);
                transition: transform .3s cubic-bezier(.4, 0, .2, 1);
                box-shadow: -12px 0 40px rgba(0,0,0,.45);
                z-index: 80;
        }

        .pn-shell.pn-side-open .pn-side {
                transform: translateX(0);
        }

        /* در موبایل حالت collapsed معنا ندارد */
        .pn-shell.pn-collapsed .pn-side {
                width: min(300px, 86vw);
                padding: 18px 14px;
        }
        .pn-shell.pn-collapsed .pn-brand-txt,
        .pn-shell.pn-collapsed .pn-nav-lbl,
        .pn-shell.pn-collapsed .pn-side-user-info,
        .pn-shell.pn-collapsed .pn-role-badge,
        .pn-shell.pn-collapsed .pn-dot {
                opacity: 1;
                width: auto;
                pointer-events: auto;
        }
        .pn-shell.pn-collapsed .pn-nav-item {
                justify-content: flex-start;
                padding: 11px 14px;
        }
        .pn-shell.pn-collapsed .pn-nav-item::after {
                display: none;
        }

        .pn-side-close {
                display: inline-flex;
        }

        .pn-side-toggle {
                display: none !important;
        }

        .pn-burger {
                display: none !important;
        }

        .pn-mobnav {
                display: flex;
        }

        .pn-main {
                margin-right: 0 !important;
                padding: 16px 16px 110px;
        }

        .pn-top-inner {
                padding-right: 16px !important;
                padding-left: 16px !important;
        }

        .pn-title {
                font-size: 16px;
        }

        .pn-overlay {
                z-index: 75;
        }

        .pn-hero {
                flex-direction: column;
                padding: 26px 22px;
        }
        .pn-hero-art { display: none; }
        .bx-grid { grid-template-columns: 1fr; }
        .ls-grid { grid-template-columns: 1fr; }
        /* موبایل: فقط لوگو + همبرگر؛ منو و ورود داخل دراپ‌داون راست‌چین */
        .kf-nav-shell { max-width: 100%; margin-top: 12px; }
        .kf-nav-glass {
                position: relative;
                gap: 10px;
                padding: 8px 10px;
                justify-content: space-between;
        }
        .kf-nav-links { display: none; }
        .kf-burger {
                display: inline-flex;
                margin-right: 0;
                margin-left: 0;
                order: 2;
        }
        .kf-brand { order: 1; }
        .kf-nav--open .kf-nav-links {
                display: flex;
                position: absolute;
                top: calc(100% + 8px);
                right: 0;
                left: 0;
                flex-direction: column;
                align-items: stretch;
                text-align: right;
                background: rgba(12, 9, 26, .92);
                backdrop-filter: blur(18px);
                -webkit-backdrop-filter: blur(18px);
                padding: 12px;
                gap: 4px;
                border: 1px solid rgba(255,255,255,.1);
                border-radius: 14px;
                box-shadow: 0 16px 40px rgba(0,0,0,.4);
                z-index: 20;
        }
        .kf-nav--open .kf-nav-links > a:not(.kf-nav-cta) {
                padding: 12px 14px;
                width: 100%;
                justify-content: flex-start;
                text-align: right;
                font-size: 15px;
        }
        .kf-nav--open .kf-nav-cta {
                display: inline-flex;
                width: 100%;
                justify-content: center;
                margin: 8px 0 0 !important;
                padding: 12px 16px !important;
                font-size: 14.5px !important;
                order: 99;
        }
}

@media (max-width: 640px) {
        .kf-grid--2, .kf-grid--3, .kf-grid--4 { grid-template-columns: 1fr; }
        .wz-screen { padding: 26px 20px; }
        .wz-likert { flex-wrap: wrap; }
        .wz-like { min-width: 44%; }
        .rs-head { flex-direction: column; }
        .kf-foot-in { grid-template-columns: 1fr; }
        .kf-h1 { font-size: 24px; }
        .ld-title { font-size: 30px !important; }
        .kf-cert { padding: 24px 18px; }
        .kf-cert-meta { grid-template-columns: 1fr; }
        .kf-list-row { padding: 11px 13px; }
        .pn-icon-btn { width: 36px; height: 36px; }
        .pn-burger { width: 38px; height: 38px; }
}

/* ========== Admin Panel Enhancements ========== */

.pn-role-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin: 2px 6px 6px;
        padding: 5px 12px;
        font-size: 12px;
        font-weight: 600;
        color: #c4b5fd;
        background: rgba(139, 92, 246, .15);
        border: 1px solid rgba(139, 92, 246, .28);
        border-radius: 999px;
        letter-spacing: .02em;
        white-space: nowrap;
        transition: opacity .2s;
}

.pn--admin .pn-side {
        background: linear-gradient(180deg, rgba(15, 10, 35, .98), rgba(8, 6, 20, .98));
}

.pn--admin .pn-nav-item.active {
        background: linear-gradient(135deg, #0891b2, #3b82f6);
        box-shadow: 0 8px 22px rgba(34, 211, 238, .3);
        color: #fff;
}

.kf-stat-sub {
        display: block;
        margin-top: 4px;
        font-size: 11.5px;
        color: var(--kf-muted);
        opacity: .85;
        font-weight: 400;
}

.ad-stats--sm {
        margin-top: -6px;
        margin-bottom: 22px;
}

.ad-stats--sm .kf-stat {
        padding: 16px 18px;
}

.ad-stats--sm .kf-stat b {
        font-size: 22px;
}

.kf-stat--soft {
        background: rgba(255, 255, 255, .03);
        border: 1px solid var(--kf-border);
}

.pn--admin .kf-list-row {
        gap: 14px;
}

.pn--admin .ad-head {
        margin-bottom: 22px;
}



/* ========== اعلان‌ها ========== */
.pn-notif { position: relative; }
.pn-notif .pn-icon-dot:not([hidden]) {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 16px;
        height: 16px;
        font-size: 9px;
        font-weight: 800;
        padding: 0 4px;
        top: 6px;
        left: 6px;
}
.pn-notif-drop {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        width: min(340px, 92vw);
        background: rgba(14, 10, 28, .98);
        border: 1px solid var(--kf-border2);
        border-radius: 12px;
        box-shadow: 0 16px 40px rgba(0,0,0,.45);
        z-index: 90;
        overflow: hidden;
}
.pn-notif-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 14px;
        border-bottom: 1px solid var(--kf-border);
}
.pn-notif-head b { font-size: 14px; }
.pn-notif-readall {
        background: none;
        border: none;
        color: var(--kf-cyan);
        font-family: inherit;
        font-size: 12px;
        font-weight: 700;
        cursor: pointer;
}
.pn-notif-list { max-height: 280px; overflow-y: auto; }
.pn-notif-item {
        display: block;
        padding: 12px 14px;
        border-bottom: 1px solid var(--kf-border);
        text-decoration: none;
        color: inherit;
        transition: background .15s;
}
.pn-notif-item:hover { background: var(--kf-surface2); }
.pn-notif-item.unread { background: rgba(139, 92, 246, .08); }
.pn-notif-item b { display: block; font-size: 13px; margin-bottom: 3px; }
.pn-notif-item span { display: block; font-size: 12px; color: var(--kf-muted); line-height: 1.5; }
.pn-notif-empty {
        padding: 28px 16px;
        text-align: center;
        color: var(--kf-muted);
        font-size: 13px;
}
.pn-notif-all {
        display: block;
        text-align: center;
        padding: 12px;
        font-size: 13px;
        font-weight: 700;
        color: var(--kf-cyan);
        border-top: 1px solid var(--kf-border);
        text-decoration: none;
}
.pn-notif-all:hover { background: var(--kf-surface); }
.pn-notif-unread {
        border-right: 3px solid var(--kf-purple);
}


/* ========== تب‌های تنظیمات ========== */
.st-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 18px;
        background: var(--kf-surface);
        border: 1px solid var(--kf-border);
        border-radius: 12px;
        padding: 6px;
}
.st-tab {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        border: none;
        background: transparent;
        color: var(--kf-muted);
        font-family: inherit;
        font-size: 13.5px;
        font-weight: 700;
        padding: 10px 16px;
        border-radius: 10px;
        cursor: pointer;
        transition: all .2s;
}
.st-tab:hover { color: var(--kf-text); background: var(--kf-surface2); }
.st-tab.active {
        color: #fff;
        background: var(--kf-grad2);
        box-shadow: 0 6px 16px rgba(99, 102, 241, .28);
}
.st-panel[hidden] { display: none !important; }
.st-save-bar {
        margin-top: 18px;
        display: flex;
        justify-content: flex-start;
}
.st-sms-events {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 16px;
}
.st-sms-row {
        display: grid;
        grid-template-columns: 1fr auto minmax(140px, 180px);
        gap: 12px;
        align-items: center;
        padding: 12px 14px;
        border: 1px solid var(--kf-border);
        border-radius: 10px;
        background: var(--kf-surface);
}
.st-sms-meta {
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-width: 0;
}
.st-sms-meta b { font-size: 13.5px; }
@media (max-width: 720px) {
        .st-sms-row {
                grid-template-columns: 1fr;
        }
}


/* ========== تیکتینگ ========== */
.tk-thread {
        display: flex;
        flex-direction: column;
        gap: 12px;
}
.tk-msg {
        border: 1px solid var(--kf-border);
        border-radius: 12px;
        padding: 14px 16px;
        background: var(--kf-surface);
}
.tk-msg--staff {
        background: rgba(99, 102, 241, .08);
        border-color: rgba(99, 102, 241, .28);
}
.tk-msg--user {
        background: rgba(255,255,255,.03);
}
.tk-msg-meta {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 8px;
        font-size: 12.5px;
}
.tk-msg-meta b { color: var(--kf-text); }
.tk-msg-meta span { color: var(--kf-muted); }
.tk-msg-body {
        font-size: 14px;
        line-height: 1.8;
        white-space: pre-wrap;
}
.kf-badge--muted {
        background: rgba(148,163,184,.15);
        color: #94a3b8;
}


/* مجوزها فوتر و صفحه */
.kf-foot-in { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
.kf-lic-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 8px;
}
.kf-lic-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 72px;
        height: 72px;
        padding: 6px;
        border-radius: 12px;
        background: rgba(255,255,255,.06);
        border: 1px solid var(--kf-border);
        transition: border-color .2s, transform .2s;
}
.kf-lic-badge:hover { border-color: var(--kf-border2); transform: translateY(-2px); }
.kf-lic-badge img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
}
.kf-foot-bar {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px;
        align-items: center;
}
.kf-foot-credit a {
        color: var(--kf-cyan);
        font-weight: 700;
}
.kf-foot-credit a:hover { text-decoration: underline; }
.kf-foot-sep { margin: 0 8px; opacity: .55; }
.kf-foot-credit { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px; }

.lic-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 18px;
}
.lic-card-top {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        text-align: center;
        margin-bottom: 14px;
}
.lic-logo {
        max-width: 120px;
        max-height: 90px;
        object-fit: contain;
}
.lic-logo-fallback {
        width: 64px; height: 64px;
        border-radius: 16px;
        display: inline-flex; align-items: center; justify-content: center;
        background: var(--kf-surface2);
        color: var(--kf-purple);
}
.lic-code {
        display: flex;
        justify-content: center;
        min-height: 60px;
}
.st-lic-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.st-lic-item {
        border: 1px solid var(--kf-border);
        border-radius: 12px;
        padding: 14px;
        background: var(--kf-surface);
}
.st-lic-item-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
}

@media (max-width: 900px) {
        .kf-foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
        .kf-foot-in { grid-template-columns: 1fr; }
        .kf-foot-bar { flex-direction: column; text-align: center; }
}


/* ایمپورت CSV سوالات */
.bx-toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.bx-import-hint { margin-bottom: 14px; }
.bx-import-modal {
        position: fixed; inset: 0; z-index: 200;
        background: rgba(4, 3, 12, .72);
        display: flex; align-items: center; justify-content: center;
        padding: 20px;
        backdrop-filter: blur(6px);
}
.bx-import-modal[hidden] { display: none !important; }
.bx-import-dialog {
        width: min(860px, 100%);
        max-height: min(88vh, 720px);
        overflow: auto;
        background: var(--kf-bg2);
        border: 1px solid var(--kf-border);
        border-radius: 16px;
        padding: 18px 18px 16px;
        box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.bx-import-head {
        display: flex; justify-content: space-between; align-items: center;
        gap: 12px; margin-bottom: 8px;
}
.bx-import-head h3 { font-size: 17px; margin: 0; }
.bx-import-table-wrap { overflow: auto; max-height: 42vh; border: 1px solid var(--kf-border); border-radius: 10px; margin-bottom: 14px; }
.bx-import-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* ---- کاتالوگ عمومی + صفحه‌بندی ---- */
.kf-catalog-tabs {
        display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px;
}
.kf-catalog-tabs .kf-btn.is-active {
        background: var(--kf-primary, #6d28d9);
        color: #fff;
        border-color: transparent;
}
.kf-pagination {
        display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
        align-items: center; margin-top: 28px;
}
.kf-pagination a, .kf-pagination span {
        min-width: 38px; height: 38px; padding: 0 12px;
        display: inline-flex; align-items: center; justify-content: center;
        border-radius: 10px; border: 1px solid var(--kf-border);
        background: var(--kf-surface); color: var(--kf-text); font-size: 13.5px;
        text-decoration: none;
}
.kf-pagination a:hover { border-color: var(--kf-border2); }
.kf-pagination .is-current {
        background: linear-gradient(135deg, #6d28d9, #22d3ee);
        border-color: transparent; color: #fff; font-weight: 700;
}
.kf-section-more {
        display: flex; justify-content: center; margin-top: 22px;
}

/* ---- ویرایش کاربر (مودال ادمین) ---- */
.kf-user-modal {
        position: fixed; inset: 0; z-index: 220;
        background: rgba(4, 3, 12, .72);
        display: flex; align-items: center; justify-content: center;
        padding: 20px;
        backdrop-filter: blur(6px);
}
.kf-user-modal[hidden] { display: none !important; }
.kf-user-dialog {
        width: min(520px, 100%);
        max-height: min(90vh, 680px);
        overflow: auto;
        background: var(--kf-bg2);
        border: 1px solid var(--kf-border);
        border-radius: 16px;
        padding: 20px 20px 18px;
        box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.kf-user-dialog h3 { font-size: 17px; margin: 0 0 14px; }
.kf-user-dialog .kf-label { margin-top: 10px; }
.kf-user-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* ---- آپلود ویدیو کلاس ---- */
.ls-video-row {
        display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end;
}
.ls-video-row > div { flex: 1; min-width: 180px; }
.ls-video-file-btn { flex-shrink: 0; }
.ls-video-hint { font-size: 12px; color: var(--kf-muted); margin-top: 6px; }

/* کاور ارزیابی در فرم */
.cs-cover-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cs-cover-prev {
        width: 120px; height: 72px; border-radius: 10px; overflow: hidden;
        background: var(--kf-surface); border: 1px solid var(--kf-border);
        display: flex; align-items: center; justify-content: center;
        font-size: 11.5px; color: var(--kf-muted); text-align: center; padding: 6px;
}
.cs-cover-prev img { width: 100%; height: 100%; object-fit: cover; }
