

.file-linked-learning-section{border-radius:2rem;background:#fff;border:1px solid #e2e8f0;box-shadow:0 18px 55px rgba(15,23,42,.055);padding:1.25rem;margin:2rem 0}.dark .file-linked-learning-section{background:#0f172a;border-color:#1e293b}.file-linked-learning-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}.file-linked-learning-head h2{font-size:1.35rem;font-weight:950;color:#0f172a}.dark .file-linked-learning-head h2{color:#fff}.file-linked-lessons{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}.file-linked-lessons span{display:inline-flex;align-items:center;gap:.4rem;border-radius:999px;background:#f1f5f9;color:#334155;padding:.45rem .8rem;font-size:.78rem;font-weight:900}.dark .file-linked-lessons span{background:#111827;color:#cbd5e1}

/* Unified action alerts + safe hash navigation */
html{scroll-behavior:smooth}
#comments,#report-file,#teacher-follow,#file-action-status,#file-user-status-alerts,#comment-status-message,#report-status-message,#teacher-follow-status-message{
    scroll-margin-top:125px;
}
@media (max-width:767px){
    #comments,#report-file,#teacher-follow,#file-action-status,#file-user-status-alerts,#comment-status-message,#report-status-message,#teacher-follow-status-message{scroll-margin-top:105px}
}
.file-action-alert-focus{animation:fileActionFocusPulse 1.6s ease 1}
@keyframes fileActionFocusPulse{0%{box-shadow:0 0 0 0 rgba(49,49,193,.28)}60%{box-shadow:0 0 0 12px rgba(49,49,193,0)}100%{box-shadow:none}}


@media (max-width: 767px){
    body{padding-bottom:92px}
    .nezakr-mobile-sticky-actions{
        position:fixed;right:10px;left:10px;bottom:10px;z-index:80;
        display:grid;grid-template-columns:1fr 1fr;gap:8px;
        padding:10px;border-radius:22px;background:rgba(255,255,255,.94);
        border:1px solid rgba(148,163,184,.25);box-shadow:0 18px 55px rgba(15,23,42,.22);
        backdrop-filter:blur(14px);direction:rtl;
    }
    .dark .nezakr-mobile-sticky-actions{background:rgba(15,23,42,.94);border-color:rgba(148,163,184,.22)}
    .nezakr-mobile-sticky-actions form{margin:0;display:contents}
    .nezakr-mobile-sticky-actions button,
    .nezakr-mobile-sticky-actions a{
        min-height:48px;border-radius:16px;font-weight:900;display:flex;align-items:center;justify-content:center;gap:7px;
    }
}
@media (min-width: 768px){.nezakr-mobile-sticky-actions{display:none}}
.file-mini-details summary::-webkit-details-marker{display:none}
.file-mini-details summary{list-style:none}
.file-mini-details[open] summary .file-mini-chevron{transform:rotate(180deg)}
.collection-quick-index{scrollbar-width:thin}

/* بطاقات الملفات داخل التجميعات: تجعل الصورة تملأ الكارت بالكامل دون فراغات */
.file-collection-cover{
    display:block;width:100%;aspect-ratio:16/10;overflow:hidden;flex-shrink:0;
}
.file-collection-cover img{display:block;width:100%;height:100%;min-height:100%;object-fit:cover;}
@media (min-width:640px){
    .file-collection-cover{width:11rem;aspect-ratio:auto;align-self:stretch;min-height:11.5rem;}
}

.file-content-readmore{position:relative;overflow:hidden}
.file-content-readmore.file-content-collapsed{max-height:18rem}
.file-content-readmore.file-content-collapsed:after{
    content:"";position:absolute;right:0;left:0;bottom:0;height:5rem;
    background:linear-gradient(to bottom,rgba(255,255,255,0),#fff);
}
.dark .file-content-readmore.file-content-collapsed:after{background:linear-gradient(to bottom,rgba(30,41,59,0),rgb(30 41 59))}


.file-breadcrumb-compact{
    display:flex;align-items:center;gap:.45rem;flex-wrap:nowrap;overflow:hidden;min-width:0;
}
.file-breadcrumb-compact a,
.file-breadcrumb-compact span,
.file-breadcrumb-compact strong{
    min-width:0;white-space:nowrap;
}
.file-breadcrumb-compact .crumb-current{
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;
}
@media (max-width:640px){
    .file-breadcrumb-compact{gap:.35rem;font-size:.78rem}
    .file-breadcrumb-compact .crumb-class{max-width:42vw;overflow:hidden;text-overflow:ellipsis}
    .file-breadcrumb-compact .crumb-current{max-width:54vw}
}


.file-user-status-alerts{display:grid;gap:12px;margin:0 0 24px;position:relative;z-index:30}
.file-floating-status-alerts{position:fixed;top:92px;left:16px;right:16px;z-index:999999999;display:grid;gap:10px;max-width:920px;margin:0 auto;pointer-events:none}
.file-floating-status-alerts .file-user-status-alert{pointer-events:auto;box-shadow:0 18px 55px rgba(15,23,42,.20)}
.file-floating-status-close{margin-right:auto;border:0;background:rgba(15,23,42,.08);color:inherit;border-radius:999px;width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex:0 0 auto}
.file-user-status-alert{display:flex;align-items:flex-start;gap:10px;border-radius:22px;padding:14px 16px;border:1px solid;font-weight:900;line-height:1.9;box-shadow:0 14px 35px rgba(15,23,42,.08)}
.file-user-status-alert .file-user-status-icon{width:34px;height:34px;border-radius:14px;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.file-user-status-alert.is-success{background:#ecfdf5;color:#047857;border-color:#a7f3d0}
.file-user-status-alert.is-success .file-user-status-icon{background:#d1fae5;color:#047857}
.file-user-status-alert.is-warning{background:#fffbeb;color:#92400e;border-color:#fde68a}
.file-user-status-alert.is-warning .file-user-status-icon{background:#fef3c7;color:#92400e}
.file-user-status-alert.is-error{background:#fef2f2;color:#b91c1c;border-color:#fecaca}
.file-user-status-alert.is-error .file-user-status-icon{background:#fee2e2;color:#b91c1c}
.file-user-status-alert.is-info{background:#f8fafc;color:#334155;border-color:#cbd5e1}
.file-user-status-alert.is-info .file-user-status-icon{background:#e2e8f0;color:#334155}
.dark .file-user-status-alert{box-shadow:0 18px 45px rgba(0,0,0,.22)}
.dark .file-user-status-alert.is-success{background:rgba(6,78,59,.28);color:#a7f3d0;border-color:rgba(16,185,129,.35)}
.dark .file-user-status-alert.is-warning{background:rgba(120,53,15,.28);color:#fde68a;border-color:rgba(245,158,11,.35)}
.dark .file-user-status-alert.is-error{background:rgba(127,29,29,.28);color:#fecaca;border-color:rgba(248,113,113,.35)}
.dark .file-user-status-alert.is-info{background:rgba(15,23,42,.72);color:#e2e8f0;border-color:rgba(148,163,184,.28)}



/* Nezakr 2026 file page rebuild: student journey */
.file-journey-strip{
    position:relative;
    z-index:2;
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:10px;
    margin:-2px 0 22px;
    padding:10px;
    border-radius:28px;
    background:rgba(255,255,255,.82);
    border:1px solid rgba(148,163,184,.22);
    box-shadow:0 18px 50px rgba(15,23,42,.07);
    backdrop-filter:blur(14px);
}
.dark .file-journey-strip{background:rgba(15,23,42,.72);border-color:rgba(148,163,184,.18)}
.file-journey-strip a{
    min-height:76px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:6px;
    border-radius:22px;
    background:#f8fafc;
    color:#334155;
    text-align:center;
    font-weight:950;
    font-size:.84rem;
    transition:.18s ease;
    border:1px solid rgba(226,232,240,.9);
}
.dark .file-journey-strip a{background:#0f172a;color:#cbd5e1;border-color:#1e293b}
.file-journey-strip a i{
    width:34px;height:34px;border-radius:14px;
    display:inline-flex;align-items:center;justify-content:center;
    background:rgba(49,49,193,.10);color:#3131c1;
}
.file-journey-strip a:hover{transform:translateY(-2px);border-color:rgba(49,49,193,.25);color:#3131c1;box-shadow:0 14px 35px rgba(15,23,42,.08)}
.file-journey-anchor{scroll-margin-top:125px}
.file-main-layout-card{
    border-radius:2.2rem!important;
    box-shadow:0 24px 70px rgba(15,23,42,.08)!important;
}
.file-page-action-panel{
    position:relative;
    overflow:hidden;
}
.file-page-action-panel:before{
    content:"";
    position:absolute;inset:0 0 auto 0;height:7px;
    background:linear-gradient(90deg,#3131c1,#0ea5e9,#22c55e);
}
.file-smart-help{
    margin:0 0 1.75rem;
    border-radius:2rem;
    border:1px solid rgba(49,49,193,.14);
    background:
        radial-gradient(circle at top right,rgba(49,49,193,.10),transparent 32%),
        radial-gradient(circle at bottom left,rgba(14,165,233,.08),transparent 34%),
        #fff;
    padding:1.35rem;
    box-shadow:0 18px 55px rgba(15,23,42,.06);
}
.dark .file-smart-help{background:#0f172a;border-color:#1e293b}
.file-smart-help-head{display:flex;align-items:center;gap:.85rem;margin-bottom:1rem}
.file-smart-help-icon{width:52px;height:52px;border-radius:20px;display:inline-flex;align-items:center;justify-content:center;background:#3131c1;color:#fff;box-shadow:0 12px 30px rgba(49,49,193,.28)}
.file-smart-help h2{margin:0;font-size:1.15rem;font-weight:950;color:#0f172a}
.dark .file-smart-help h2{color:#fff}
.file-smart-help p{margin:.2rem 0 0;color:#64748b;font-size:.9rem;font-weight:700}
.dark .file-smart-help p{color:#94a3b8}
.file-smart-help-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}
.file-smart-help-step{
    min-height:108px;
    border-radius:1.35rem;
    background:#f8fafc;
    border:1px solid #e2e8f0;
    padding:1rem;
    display:flex;
    gap:.75rem;
    align-items:flex-start;
}
.dark .file-smart-help-step{background:#111827;border-color:#1f2937}
.file-smart-help-step b{
    width:30px;height:30px;border-radius:12px;
    display:inline-flex;align-items:center;justify-content:center;
    background:rgba(49,49,193,.10);color:#3131c1;flex:0 0 auto;
    font-weight:950;
}
.file-smart-help-step span{font-size:.9rem;font-weight:850;line-height:1.75;color:#334155}
.dark .file-smart-help-step span{color:#e2e8f0}
.file-section-card{
    border-radius:2rem!important;
    box-shadow:0 16px 45px rgba(15,23,42,.055)!important;
}
.file-content-reordered-note{
    display:none;
}
.file-collection-first #collection-files{
    order:-5;
}
.file-comments-modern #comments{
    scroll-margin-top:125px;
}
@media (min-width:1024px){
    .file-page-main-grid{
        align-items:start!important;
    }
    .file-page-main-content{
        padding-top:.25rem;
    }
}
@media (max-width:900px){
    .file-journey-strip{grid-template-columns:repeat(3,minmax(0,1fr));border-radius:22px}
    .file-smart-help-grid{grid-template-columns:1fr}
}
@media (max-width:520px){
    .file-journey-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
    .file-journey-strip a{min-height:66px;font-size:.78rem}
    .file-smart-help{padding:1rem;border-radius:1.5rem}
}


/* Keep only floating, closable action messages */
body > .file-user-status-alerts,
.file-page-main-content > .file-user-status-alerts,
#file-action-status:not(.file-floating-status-alerts),
#comment-status-message,
#report-status-message,
#teacher-follow-status-message{display:none!important}
.file-rating-card-v2{padding:14px!important;border-radius:22px!important}
.file-rating-card-v2 h2{font-size:1rem!important;margin-bottom:10px!important}
.file-rating-card-v2 .file-rating-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
.file-rating-card-v2 .file-rating-option{border:1px solid rgba(148,163,184,.32);background:#fff;color:#334155;border-radius:16px;padding:9px 6px;font-size:.78rem;font-weight:950;display:flex;flex-direction:column;align-items:center;gap:4px;min-height:62px;cursor:pointer;transition:.16s ease}
.dark .file-rating-card-v2 .file-rating-option{background:#0f172a;color:#e2e8f0;border-color:#334155}
.file-rating-card-v2 .file-rating-option i{font-size:1.05rem}
.file-rating-card-v2 .file-rating-option:hover{border-color:#3131c1;color:#3131c1;transform:translateY(-1px)}
.file-rating-card-v2 .file-rating-option.is-active{background:#3131c1;color:#fff;border-color:#3131c1}
.file-rating-card-v2 .file-rating-summary{border-radius:16px!important;padding:10px 12px!important;font-size:.82rem!important}
@media(max-width:760px){.file-rating-card-v2 .file-rating-options{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* Unified quality rating buttons - 20260606 */
.eduq-quality-options{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:8px!important;
}
.eduq-quality-options button,
.file-rating-card-v2 .file-rating-option{
  border:1px solid rgba(148,163,184,.28)!important;
  background:#fff!important;
  color:#334155!important;
  border-radius:16px!important;
  padding:9px 6px!important;
  min-height:66px!important;
  font-size:.76rem!important;
  font-weight:950!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;
  cursor:pointer!important;
  transition:.16s ease!important;
}
.eduq-quality-options button i,
.file-rating-card-v2 .file-rating-option i{font-size:1.05rem!important}
.eduq-quality-options button[data-quality-rating="5"],
.file-rating-card-v2 .file-rating-option[data-quality-rating="5"]{background:rgba(22,163,74,.08)!important;color:#15803d!important;border-color:rgba(22,163,74,.28)!important}
.eduq-quality-options button[data-quality-rating="4"],
.file-rating-card-v2 .file-rating-option[data-quality-rating="4"]{background:rgba(49,49,193,.08)!important;color:#3131c1!important;border-color:rgba(49,49,193,.28)!important}
.eduq-quality-options button[data-quality-rating="3"],
.file-rating-card-v2 .file-rating-option[data-quality-rating="3"]{background:rgba(245,158,11,.12)!important;color:#b45309!important;border-color:rgba(245,158,11,.30)!important}
.eduq-quality-options button[data-quality-rating="2"],
.file-rating-card-v2 .file-rating-option[data-quality-rating="2"]{background:rgba(249,115,22,.10)!important;color:#c2410c!important;border-color:rgba(249,115,22,.30)!important}
.eduq-quality-options button[data-quality-rating="1"],
.file-rating-card-v2 .file-rating-option[data-quality-rating="1"]{background:rgba(220,38,38,.09)!important;color:#b91c1c!important;border-color:rgba(220,38,38,.30)!important}
.eduq-quality-options button:hover,
.file-rating-card-v2 .file-rating-option:hover{transform:translateY(-1px)!important;box-shadow:0 10px 24px rgba(15,23,42,.08)!important}
.eduq-quality-options button.is-selected,
.file-rating-card-v2 .file-rating-option.is-active{
  background:#0f172a!important;
  color:#fff!important;
  border-color:#0f172a!important;
}
.eduq-quality-options button.is-selected[data-quality-rating="5"],
.file-rating-card-v2 .file-rating-option.is-active[data-quality-rating="5"]{background:#16a34a!important;border-color:#16a34a!important}
.eduq-quality-options button.is-selected[data-quality-rating="4"],
.file-rating-card-v2 .file-rating-option.is-active[data-quality-rating="4"]{background:#3131c1!important;border-color:#3131c1!important}
.eduq-quality-options button.is-selected[data-quality-rating="3"],
.file-rating-card-v2 .file-rating-option.is-active[data-quality-rating="3"]{background:#d97706!important;border-color:#d97706!important}
.eduq-quality-options button.is-selected[data-quality-rating="2"],
.file-rating-card-v2 .file-rating-option.is-active[data-quality-rating="2"]{background:#ea580c!important;border-color:#ea580c!important}
.eduq-quality-options button.is-selected[data-quality-rating="1"],
.file-rating-card-v2 .file-rating-option.is-active[data-quality-rating="1"]{background:#dc2626!important;border-color:#dc2626!important}
.eduq-quality-options button:disabled{opacity:.88!important;cursor:not-allowed!important}
@media(max-width:640px){
  .eduq-quality-options{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:4px!important}
  .eduq-quality-options button,
  .file-rating-card-v2 .file-rating-option{min-height:50px!important;border-radius:12px!important;padding:6px 2px!important;font-size:.61rem!important;line-height:1.15!important}
  .eduq-quality-options button i,
  .file-rating-card-v2 .file-rating-option i{font-size:.86rem!important}
}


.file-rating-average-label{
    font-weight:950;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    padding:.15rem .55rem;
    border:1px solid transparent;
    line-height:1.7;
}
.file-rating-average-label[data-rating-tone="excellent"]{
    color:#15803d!important;
    background:rgba(22,163,74,.10);
    border-color:rgba(22,163,74,.24);
}
.file-rating-average-label[data-rating-tone="useful"]{
    color:#3131c1!important;
    background:rgba(49,49,193,.10);
    border-color:rgba(49,49,193,.24);
}
.file-rating-average-label[data-rating-tone="medium"]{
    color:#b45309!important;
    background:rgba(245,158,11,.13);
    border-color:rgba(245,158,11,.28);
}
.file-rating-average-label[data-rating-tone="not-useful"]{
    color:#c2410c!important;
    background:rgba(249,115,22,.12);
    border-color:rgba(249,115,22,.28);
}
.file-rating-average-label[data-rating-tone="bad"]{
    color:#b91c1c!important;
    background:rgba(220,38,38,.10);
    border-color:rgba(220,38,38,.26);
}
.file-rating-average-label[data-rating-tone="none"]{
    color:#64748b!important;
    background:rgba(100,116,139,.10);
    border-color:rgba(100,116,139,.18);
}


/* Force rating average color from first page load - 20260606 */
#rating-average-label.file-rating-average-label{
    font-weight:950!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    border-radius:999px!important;
    padding:.15rem .6rem!important;
    border:1px solid transparent!important;
    line-height:1.7!important;
    vertical-align:middle!important;
}
#rating-average-label.file-rating-average-label[data-rating-tone="excellent"]{
    color:#15803d!important;
    background:rgba(22,163,74,.12)!important;
    border-color:rgba(22,163,74,.28)!important;
}
#rating-average-label.file-rating-average-label[data-rating-tone="useful"]{
    color:#3131c1!important;
    background:rgba(49,49,193,.11)!important;
    border-color:rgba(49,49,193,.28)!important;
}
#rating-average-label.file-rating-average-label[data-rating-tone="medium"]{
    color:#b45309!important;
    background:rgba(245,158,11,.15)!important;
    border-color:rgba(245,158,11,.32)!important;
}
#rating-average-label.file-rating-average-label[data-rating-tone="not-useful"]{
    color:#c2410c!important;
    background:rgba(249,115,22,.13)!important;
    border-color:rgba(249,115,22,.32)!important;
}
#rating-average-label.file-rating-average-label[data-rating-tone="bad"]{
    color:#b91c1c!important;
    background:rgba(220,38,38,.12)!important;
    border-color:rgba(220,38,38,.30)!important;
}
#rating-average-label.file-rating-average-label[data-rating-tone="none"]{
    color:#64748b!important;
    background:rgba(100,116,139,.11)!important;
    border-color:rgba(100,116,139,.22)!important;
}


/* FAQ + mixed popular sections - 20260606 */
.nezakr-file-faq-section{
    margin:2rem auto 0;
    border-radius:2rem;
    border:1px solid rgba(148,163,184,.22);
    background:
        radial-gradient(circle at top right,rgba(49,49,193,.09),transparent 32%),
        #fff;
    box-shadow:0 18px 55px rgba(15,23,42,.06);
    overflow:hidden;
}
.dark .nezakr-file-faq-section{
    background:
        radial-gradient(circle at top right,rgba(49,49,193,.17),transparent 34%),
        #0f172a;
    border-color:#1e293b;
}
.nezakr-file-faq-head{
    padding:1.35rem 1.5rem;
    border-bottom:1px solid #e2e8f0;
    display:flex;
    align-items:center;
    gap:.9rem;
}
.dark .nezakr-file-faq-head{border-color:#1e293b}
.nezakr-file-faq-head i{
    width:48px;height:48px;border-radius:18px;
    display:inline-flex;align-items:center;justify-content:center;
    background:rgba(49,49,193,.10);color:#3131c1;
    flex:0 0 auto;
}
.nezakr-file-faq-head h2{
    margin:0;
    font-size:1.25rem;
    font-weight:950;
    color:#0f172a;
}
.dark .nezakr-file-faq-head h2{color:#fff}
.nezakr-file-faq-head p{
    margin:.25rem 0 0;
    color:#64748b;
    font-size:.88rem;
    font-weight:800;
}
.dark .nezakr-file-faq-head p{color:#94a3b8}
.nezakr-file-faq-list{
    padding:1rem;
    display:grid;
    gap:.75rem;
}
.nezakr-file-faq-list details{
    border:1px solid #e2e8f0;
    border-radius:1.35rem;
    background:#f8fafc;
    overflow:hidden;
}
.dark .nezakr-file-faq-list details{
    background:#111827;
    border-color:#1f2937;
}
.nezakr-file-faq-list summary{
    cursor:pointer;
    list-style:none;
    padding:1rem 1.1rem;
    font-weight:950;
    color:#0f172a;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:1rem;
}
.dark .nezakr-file-faq-list summary{color:#e5e7eb}
.nezakr-file-faq-list summary::-webkit-details-marker{display:none}
.nezakr-file-faq-list summary:after{content:none!important;display:none!important}
.nezakr-file-faq-toggle{
    width:36px;
    height:36px;
    border-radius:14px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,rgba(49,49,193,.12),rgba(14,165,233,.10));
    color:#3131c1;
    border:1px solid rgba(49,49,193,.18);
    flex:0 0 auto;
    transition:.18s ease;
}
.nezakr-file-faq-toggle i{font-size:.92rem;transition:.18s ease}
.nezakr-file-faq-list details[open] .nezakr-file-faq-toggle{
    background:#3131c1;
    color:#fff;
    border-color:#3131c1;
    box-shadow:0 10px 25px rgba(49,49,193,.20);
}
.nezakr-file-faq-list details[open] .nezakr-file-faq-toggle i{transform:rotate(180deg)}
.dark .nezakr-file-faq-toggle{
    background:rgba(49,49,193,.18);
    color:#a5b4fc;
    border-color:rgba(129,140,248,.22);
}
.dark .nezakr-file-faq-list details[open] .nezakr-file-faq-toggle{
    background:#4f46e5;
    color:#fff;
    border-color:#4f46e5;
}
.nezakr-file-faq-answer{
    padding:0 1.1rem 1rem;
    color:#475569;
    font-size:.94rem;
    font-weight:700;
    line-height:1.9;
}
.dark .nezakr-file-faq-answer{color:#cbd5e1}
.nezakr-fire-icon{
    background:linear-gradient(135deg,rgba(255,237,213,.95),rgba(254,215,170,.9))!important;
    color:#ea580c!important;
    box-shadow:0 10px 26px rgba(234,88,12,.18)!important;
}
.nezakr-fire-icon i{
    color:#ea580c!important;
    text-shadow:0 0 12px rgba(249,115,22,.55);
}
.dark .nezakr-fire-icon{
    background:linear-gradient(135deg,rgba(124,45,18,.45),rgba(69,26,3,.8))!important;
    color:#fdba74!important;
    box-shadow:0 10px 28px rgba(249,115,22,.22)!important;
}
.dark .nezakr-fire-icon i{color:#fb923c!important}


/* File breadcrumb must not inherit global top-nav style - 20260606 */
.file-breadcrumb-compact{
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:.55rem;
    padding:0!important;
}
.dark .file-breadcrumb-compact{
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
}
.file-breadcrumb-compact > a,
.file-breadcrumb-compact > span{
    line-height:1.8;
}
.file-breadcrumb-compact > a[aria-label="الرئيسية"]{
    background:#fff!important;
    color:#3131c1!important;
    border:1px solid #e2e8f0!important;
    box-shadow:0 8px 22px rgba(15,23,42,.055)!important;
}
.dark .file-breadcrumb-compact > a[aria-label="الرئيسية"]{
    background:#0f172a!important;
    color:#a5b4fc!important;
    border-color:#1e293b!important;
    box-shadow:none!important;
}
.file-breadcrumb-compact .crumb-class{
    display:inline-flex;
    align-items:center;
    min-height:34px;
    padding:.25rem .75rem;
    border-radius:999px;
    background:rgba(49,49,193,.07);
    color:#3131c1!important;
    border:1px solid rgba(49,49,193,.12);
}
.dark .file-breadcrumb-compact .crumb-class{
    background:rgba(49,49,193,.16);
    color:#c7d2fe!important;
    border-color:rgba(129,140,248,.22);
}
.file-breadcrumb-compact .crumb-current{
    display:inline;
    max-width:100%;
    color:#475569!important;
    font-weight:800;
}
.dark .file-breadcrumb-compact .crumb-current{
    color:#cbd5e1!important;
}
.file-breadcrumb-compact > i{
    color:#94a3b8!important;
}
.dark .file-breadcrumb-compact > i{
    color:#64748b!important;
}
@media(max-width:640px){
    .file-breadcrumb-compact{
        gap:.4rem;
        margin-bottom:1rem!important;
    }
    .file-breadcrumb-compact .crumb-current{
        display:block;
        width:100%;
        font-size:.82rem;
        line-height:1.8;
        margin-top:.15rem;
    }
}


/* Premium file/collection stats cards - 20260606 */
.file-stats-showcase{
    position:relative;
    margin-bottom:2rem!important;
}
.file-stats-showcase:before{
    content:"";
    position:absolute;
    inset:-10px;
    border-radius:2.25rem;
    background:
        radial-gradient(circle at 12% 0%,rgba(49,49,193,.12),transparent 30%),
        radial-gradient(circle at 88% 100%,rgba(14,165,233,.10),transparent 34%);
    pointer-events:none;
    opacity:.9;
}
.file-stat-card{
    position:relative;
    isolation:isolate;
    min-height:136px;
    border-radius:2rem!important;
    padding:1.15rem!important;
    background:
        linear-gradient(145deg,rgba(255,255,255,.96),rgba(248,250,252,.92))!important;
    border:1px solid rgba(226,232,240,.9)!important;
    box-shadow:0 18px 45px rgba(15,23,42,.065)!important;
    transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.file-stat-card:hover{
    transform:translateY(-4px);
    box-shadow:0 28px 75px rgba(15,23,42,.11)!important;
    border-color:rgba(49,49,193,.22)!important;
}
.dark .file-stat-card{
    background:
        linear-gradient(145deg,rgba(15,23,42,.97),rgba(17,24,39,.94))!important;
    border-color:#1e293b!important;
    box-shadow:0 22px 55px rgba(0,0,0,.26)!important;
}
.file-stat-card:after{
    content:"";
    position:absolute;
    inset:auto 1rem 0 1rem;
    height:3px;
    border-radius:999px 999px 0 0;
    background:var(--stat-accent,#3131c1);
    opacity:.7;
}
.file-stat-card .stat-orb{
    position:absolute;
    inset:-38px auto auto -38px;
    width:130px;
    height:130px;
    border-radius:999px;
    background:color-mix(in srgb,var(--stat-accent,#3131c1) 18%,transparent);
    filter:blur(8px);
    opacity:.85;
}
.file-stat-card .stat-icon{
    width:58px!important;
    height:58px!important;
    border-radius:1.35rem!important;
    background:linear-gradient(145deg,color-mix(in srgb,var(--stat-accent,#3131c1) 15%,white),rgba(255,255,255,.88))!important;
    color:var(--stat-accent,#3131c1)!important;
    border:1px solid color-mix(in srgb,var(--stat-accent,#3131c1) 24%,transparent)!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.75),0 12px 26px color-mix(in srgb,var(--stat-accent,#3131c1) 15%,transparent)!important;
}
.dark .file-stat-card .stat-icon{
    background:color-mix(in srgb,var(--stat-accent,#3131c1) 18%,#0f172a)!important;
    border-color:color-mix(in srgb,var(--stat-accent,#3131c1) 34%,#1e293b)!important;
    box-shadow:0 14px 30px rgba(0,0,0,.18)!important;
}
.file-stat-card .stat-label{
    font-size:.76rem!important;
    letter-spacing:0!important;
    color:#64748b!important;
    font-weight:900!important;
}
.dark .file-stat-card .stat-label{color:#94a3b8!important}
.file-stat-card .stat-value{
    margin-top:.12rem;
    color:#0f172a!important;
    font-weight:950!important;
    line-height:1.45!important;
}
.dark .file-stat-card .stat-value{color:#fff!important}
.file-stat-primary{--stat-accent:#3131c1}
.file-stat-pages{--stat-accent:#059669}
.file-stat-views{--stat-accent:#f59e0b}
.file-stat-time{--stat-accent:#0ea5e9}
@supports not (color: color-mix(in srgb, red 10%, white)){
    .file-stat-card .stat-orb{background:rgba(49,49,193,.12)}
    .file-stat-card .stat-icon{background:#eef2ff!important}
}
@media(max-width:640px){
    .file-stat-card{min-height:112px;padding:1rem!important;border-radius:1.5rem!important}
    .file-stat-card .stat-icon{width:50px!important;height:50px!important;border-radius:1.1rem!important}
}


/* Rating quiet mode + mobile share icons + animated fire - 20260606 */
#rating-message:empty,
#rating-message[hidden]{
    display:none!important;
}
@media(max-width:640px){
    #share-section .flex.flex-wrap.gap-2{
        display:grid!important;
        grid-template-columns:repeat(5,minmax(0,1fr))!important;
        gap:.45rem!important;
        width:100%!important;
    }
    #share-section .share-btn{
        width:100%!important;
        min-width:0!important;
        height:46px!important;
        padding:0!important;
        border-radius:16px!important;
        display:inline-flex!important;
        align-items:center!important;
        justify-content:center!important;
    }
    #share-section .share-btn span{
        display:none!important;
    }
    #share-section .share-btn i{
        margin:0!important;
        font-size:1.12rem!important;
        line-height:1!important;
    }
    #share-section{
        padding:1rem!important;
        border-radius:1.5rem!important;
    }
}
.nezakr-fire-icon{
    position:relative;
    overflow:hidden;
    animation:nezakrFireGlow 1.35s ease-in-out infinite;
}
.nezakr-fire-icon:before{
    content:"";
    position:absolute;
    inset:7px;
    border-radius:16px;
    background:
        radial-gradient(circle at 50% 70%,rgba(251,146,60,.72),transparent 52%),
        radial-gradient(circle at 42% 35%,rgba(254,240,138,.72),transparent 42%),
        radial-gradient(circle at 62% 24%,rgba(239,68,68,.38),transparent 46%);
    filter:blur(6px);
    opacity:.78;
    animation:nezakrFirePulse .8s ease-in-out infinite alternate;
}
.nezakr-fire-icon i{
    position:relative;
    z-index:1;
    animation:nezakrFireFlame .62s ease-in-out infinite alternate;
    transform-origin:50% 80%;
}
@keyframes nezakrFireGlow{
    0%,100%{box-shadow:0 10px 26px rgba(234,88,12,.18),0 0 0 rgba(249,115,22,0)}
    50%{box-shadow:0 12px 30px rgba(234,88,12,.24),0 0 22px rgba(249,115,22,.28)}
}
@keyframes nezakrFirePulse{
    from{transform:scale(.92) translateY(2px);opacity:.55}
    to{transform:scale(1.16) translateY(-2px);opacity:.95}
}
@keyframes nezakrFireFlame{
    from{transform:rotate(-4deg) scale(.96);filter:drop-shadow(0 0 4px rgba(251,146,60,.45))}
    to{transform:rotate(4deg) scale(1.08);filter:drop-shadow(0 0 11px rgba(251,146,60,.78))}
}
@media (prefers-reduced-motion: reduce){
    .nezakr-fire-icon,
    .nezakr-fire-icon:before,
    .nezakr-fire-icon i{animation:none!important}
}


/* Hide empty rating hint without reserving space - 20260606 */
#rating-hint:empty{
    display:none!important;
    margin:0!important;
    padding:0!important;
}
#rating-hint:not(:empty){
    display:block!important;
}


/* Rating save spinner inside selected button; no non-error messages - 20260606 */
.file-rating-option{
    position:relative;
}
.file-rating-option.is-saving{
    pointer-events:none!important;
    cursor:progress!important;
}
.file-rating-option.is-saving i,
.file-rating-option.is-saving span{
    opacity:.22!important;
}
.file-rating-option.is-saving::after{
    content:"";
    position:absolute;
    top:50%;
    left:50%;
    width:20px;
    height:20px;
    margin:0;
    border-radius:999px;
    border:2px solid currentColor;
    border-top-color:transparent;
    transform:translate(-50%,-50%) rotate(0deg);
    animation:nezakrRatingSpin .7s linear infinite;
}
@keyframes nezakrRatingSpin{
    to{transform:translate(-50%,-50%) rotate(360deg)}
}
@media(max-width:640px){
    .file-rating-option.is-saving::after{
        width:17px;
        height:17px;
        border-width:2px;
    }
}
.file-submit-loading-btn{
    position:relative!important;
    pointer-events:none!important;
    cursor:progress!important;
}
.file-submit-loading-btn > *{
    opacity:.25!important;
}
.file-submit-loading-btn::after{
    content:"";
    position:absolute;
    top:50%;
    left:50%;
    width:18px;
    height:18px;
    margin:0;
    border-radius:999px;
    border:2px solid currentColor;
    border-top-color:transparent;
    transform:translate(-50%,-50%) rotate(0deg);
    animation:nezakrRatingSpin .7s linear infinite;
}


/* REGISTRATION-UX1: the JPEG download remains below its preview image. */
#file-preview-screenshots .file-screenshot-download{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-height:38px;padding:.4rem .7rem;border:1px solid #c7d8f2;border-radius:.8rem;background:#eef4ff;color:#2734a5;text-decoration:none;font-size:.8rem;font-weight:800;white-space:nowrap;transition:background-color .15s,border-color .15s}
#file-preview-screenshots .file-screenshot-download:hover{background:#dfeaff;border-color:#9cb9e7}
#file-preview-screenshots .file-screenshot-download:focus-visible{outline:3px solid #4875d0;outline-offset:3px}
.dark #file-preview-screenshots .file-screenshot-download{background:#202951;border-color:#43537a;color:#dbe6ff}
.dark #file-preview-screenshots .file-screenshot-download:hover{background:#2a3764;border-color:#6b82b4}
@media(prefers-reduced-motion:reduce){#file-preview-screenshots .file-screenshot-download{transition:none}}

.file-manual-related-content{border-top:1px dashed #cbd5e1;padding-top:1.35rem}.dark .file-manual-related-content{border-top-color:#334155}.file-manual-related-head{display:flex;gap:.85rem;align-items:center;margin-bottom:1rem}.file-manual-related-head>span{width:46px;height:46px;border-radius:18px;background:#eef2ff;color:#3131c1;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}.dark .file-manual-related-head>span{background:#1e1b4b;color:#c7d2fe}.file-manual-related-head h3{font-size:1.1rem;font-weight:950;margin:0;color:#0f172a}.dark .file-manual-related-head h3{color:#fff}.file-manual-related-head p{font-size:.84rem;margin:.25rem 0 0;color:#64748b;font-weight:800}.file-manual-related-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:.85rem}.file-manual-related-card{display:flex;gap:.85rem;align-items:center;border:1px solid #e2e8f0;border-radius:22px;background:#f8fafc;padding:.75rem;text-decoration:none!important;color:#0f172a;transition:.18s ease}.file-manual-related-card:hover{transform:translateY(-2px);border-color:#3131c1;box-shadow:0 16px 36px rgba(15,23,42,.09)}.dark .file-manual-related-card{background:#111827;border-color:#1f2937;color:#fff}.file-manual-related-card img{width:72px;height:92px;border-radius:16px;object-fit:cover;background:#e2e8f0;flex:0 0 auto}.file-manual-related-card b{display:block;font-size:.9rem;line-height:1.7;font-weight:950}.file-manual-related-card small{display:block;color:#64748b;font-weight:800;margin-top:.25rem}.dark .file-manual-related-card small{color:#94a3b8}.file-related-sources{margin-top:1rem;border:1px solid #e2e8f0;border-radius:22px;background:#fff;padding:1rem}.dark .file-related-sources{background:#0f172a;border-color:#1f2937}.file-related-sources h4{margin:0 0 .75rem;font-size:.95rem;font-weight:950;color:#0f172a}.dark .file-related-sources h4{color:#fff}.file-related-sources>div{display:flex;flex-wrap:wrap;gap:.55rem}.file-related-sources a,.file-related-sources span{display:inline-flex;align-items:center;gap:.45rem;border-radius:999px;background:#eef2ff;color:#3131c1;padding:.55rem .85rem;font-size:.82rem;font-weight:950;text-decoration:none!important}.dark .file-related-sources a,.dark .file-related-sources span{background:#1e1b4b;color:#c7d2fe}

