/* ============================================================
   style.css  –  واجهة المستخدم  |  تصميم كارتوني احترافي
   ============================================================ */

/* ── خطوط Google ── */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

/* ── متغيرات الألوان ── */
:root {
  --primary:       #0ea5e9;
  --primary-light: #7dd3fc;
  --primary-dark:  #0369a1;
  --secondary:     #f59e0b;
  --secondary-light:#fde68a;
  --accent:        #f472b6;
  --green:         #10b981;
  --blue:          #3b82f6;
  --bg:            #f0f9ff;
  --bg2:           #fdf2f8;
  --card:          #ffffff;
  --text:          #0c1a2e;
  --text-soft:     #64748b;
  --border:        #e0f2fe;
  --shadow-sm:     0 4px 15px rgba(14,165,233,.12);
  --shadow-md:     0 8px 30px rgba(14,165,233,.18);
  --shadow-lg:     0 16px 50px rgba(14,165,233,.22);
  --radius:        20px;
  --radius-sm:     12px;
  --radius-full:   999px;
}

/* ── إعادة تعيين وأساسيات ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img, video { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ── خلفية الجسيمات ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(14,165,233,.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(244,114,182,.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(244,114,182,.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── حاوية ── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ════════════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 2px solid rgba(14,165,233,.12);
  box-shadow: 0 2px 20px rgba(14,165,233,.1);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .8rem;
  flex-wrap: nowrap;
}

/* ── شعار ── */
.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 900;
  font-size: 1.45rem;
  color: var(--primary);
  user-select: none;
}

#site-name {
  font-size: 75%;
}

.logo-icon {
  font-size: 2rem;
  animation: spin-slow 6s linear infinite;
}
@keyframes spin-slow {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.site-slogan {
  font-size: .78rem;
  color: var(--text-soft);
  font-weight: 400;
  display: block;
  line-height: 1;
  margin-top: 2px;
}

/* ── مسار التنقل (Breadcrumb) ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
  font-size: .9rem;
  margin-inline-start: auto;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: .35rem;
}
.breadcrumb-item:not(:last-child)::after {
  content: '‹';
  color: var(--text-soft);
  font-size: 1rem;
}
.breadcrumb-link {
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  padding: .25rem .6rem;
  border-radius: var(--radius-full);
}
.breadcrumb-link:hover { background: var(--primary-light); color: #fff; }
.breadcrumb-current {
  color: var(--text-soft);
  font-weight: 500;
  padding: .25rem .6rem;
}

.back-btn {
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-family: inherit;
  font-size: .86rem;
  font-weight: 800;
  padding: .45rem .95rem;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 18px rgba(14,165,233,.25);
  transition: transform .2s;
  margin-inline-start: auto;
}
.back-btn:hover { transform: translateY(-2px); }

/* ── البحث ── */
.search-wrap {
  background: rgba(255,255,255,.85);
  border: 2px solid rgba(14,165,233,.14);
  border-radius: var(--radius-full);
  padding: .5rem .65rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}
.search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  outline: none;
  padding: .35rem .4rem;
}
.search-clear-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f3f4f6;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.search-count { font-size: .8rem; color: var(--text-soft); min-width: 110px; text-align: left; }

/* ════════════════════════════════════════════════════════════
   HERO  –  بنر رئيسي
   ════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #a8d8f0 0%, #c5e8f7 50%, #b8e0ee 100%);
  min-height: 200px;
}

.hero-bg-img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 360px;
  min-height: 180px;
}

.hero-placeholder {
  width: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  letter-spacing: .6rem;
  opacity: .45;
}

/* عنوان فوق البنر */
.hero-overlay {
  position: absolute;
  top: 0; right: 0; left: 0;
  z-index: 2;
  padding: .9rem 2rem;
  background: linear-gradient(to bottom, rgba(0,0,0,.38) 0%, rgba(0,0,0,.0) 100%);
  pointer-events: none;
}

.hero-title {
  font-size: clamp(1rem, 2.2vw, 1.55rem);
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
  line-height: 1.35;
  margin: 0;
  text-align: right;
}

@media (max-width: 640px) {
  .hero-title { font-size: clamp(.9rem, 4vw, 1.1rem); }
  .hero-overlay { padding: .7rem 1rem; }
  .hero-bg-img { max-height: 200px; }
  .hero-placeholder { min-height: 140px; font-size: 3rem; }
}

/* ════════════════════════════════════════════════════════════
   SECTION TITLE
   ════════════════════════════════════════════════════════════ */
.section-title {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.section-title .icon { font-size: 1.6rem; }
.section-title .underline {
  display: block;
  width: 60px;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-full);
  margin-top: .3rem;
}

/* ════════════════════════════════════════════════════════════
   GRID
   ════════════════════════════════════════════════════════════ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  padding-bottom: 2rem;
}

/* ════════════════════════════════════════════════════════════
   STAGE CARD
   ════════════════════════════════════════════════════════════ */
.stage-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: all .35s cubic-bezier(.34,1.56,.64,1);
  position: relative;
  overflow: hidden;
}
.stage-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--stage-color, var(--primary)) 0%, transparent 80%);
  opacity: .07;
  transition: opacity .3s;
}
.stage-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: var(--shadow-lg);
  border-color: var(--stage-color, var(--primary));
}
.stage-card:hover::before { opacity: .15; }

.stage-icon {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 1rem;
  animation: float 4s ease-in-out infinite;
}
.stage-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}
.stage-count {
  font-size: .82rem;
  color: var(--text-soft);
  margin-top: .3rem;
  font-weight: 500;
}
.stage-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--stage-color, var(--primary)), var(--primary-dark));
  color: #fff;
  font-size: 1.1rem;
  margin-top: 1rem;
  transition: transform .3s;
}
.stage-card:hover .stage-arrow { transform: translateX(-6px); }

/* ════════════════════════════════════════════════════════════
   SUBJECT CARD
   ════════════════════════════════════════════════════════════ */
.subject-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.6rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: all .35s cubic-bezier(.34,1.56,.64,1);
}
.subject-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.subject-icon-wrap {
  width: 60px; height: 60px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(14,165,233,.25);
}
.subject-name { font-size: 1.15rem; font-weight: 800; }
.subject-count { font-size: .8rem; color: var(--text-soft); font-weight: 500; }

/* ════════════════════════════════════════════════════════════
   MODEL CARD
   ════════════════════════════════════════════════════════════ */
.model-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .35s cubic-bezier(.34,1.56,.64,1);
}
.model-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.model-thumb {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: linear-gradient(135deg, #e0e7ff, #fce7f3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--primary-light);
}
.model-thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.model-info { padding: 1.2rem; }
.model-name { font-size: 1.1rem; font-weight: 800; margin-bottom: .4rem; }
.model-code-badge {
  display: inline-flex;
  align-items: center;
  background: #e0f2fe;
  color: var(--primary-dark);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-full);
  padding: .2rem .65rem;
  font-size: .74rem;
  font-weight: 800;
  margin-bottom: .5rem;
}
.model-desc { font-size: .85rem; color: var(--text-soft); line-height: 1.6; margin-bottom: .8rem;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.model-prices { display: flex; flex-wrap: wrap; gap: .4rem; }
.model-context {
  font-size: .78rem;
  color: var(--text-soft);
  margin-top: .7rem;
  border-top: 1px dashed #e5e7eb;
  padding-top: .45rem;
}
.price-badge {
  background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
  color: #78350f;
  font-size: .78rem;
  font-weight: 700;
  padding: .25rem .7rem;
  border-radius: var(--radius-full);
}

/* ════════════════════════════════════════════════════════════
   MODAL – عرض المجسم
   ════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,10,40,.65);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.modal-overlay.open,
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal-box {
  background: #fff;
  border-radius: var(--radius);
  max-width: 1100px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(15,10,40,.4);
  transform: scale(.9) translateY(30px);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
  position: relative;
}
.modal-overlay.open .modal-box,
.modal-overlay.active .modal-box { transform: scale(1) translateY(0); }

.modal-close {
  position: sticky;
  top: 1rem;
  float: left;
  margin: 1rem 1rem -2rem;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  transition: all .2s;
}
.modal-close:hover { background: var(--accent); transform: scale(1.1); }

/* ── صور المجسم (Carousel) ── */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.carousel-track {
  display: flex;
  transition: transform .4s ease;
}
.carousel-slide {
  min-width: 100%;
  height: 460px;
  background: linear-gradient(135deg, #e0e7ff, #fce7f3);
  display: flex; align-items: center; justify-content: center;
  font-size: 7rem;
  overflow: hidden;
}
.carousel-media {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.carousel-media-video {
  background: #000;
}
.carousel-slide img.carousel-media {
  object-fit: contain;
}
.carousel-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px;
  background: rgba(255,255,255,.9);
  border: none;
  border-radius: 50%;
  font-size: 1.6rem;
  font-weight: 900;
  color: #000;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all .2s;
  z-index: 5;
}
.carousel-btn:hover { background: var(--primary); color: #fff; transform: translateY(-50%) scale(1.1); }
.carousel-prev { right: .8rem; }
.carousel-next { left: .8rem; }
.carousel-dots {
  position: absolute;
  bottom: .8rem;
  left: 50%; transform: translateX(-50%);
  display: flex; gap: .4rem;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.6);
  border: none;
  cursor: pointer;
  transition: all .2s;
}
.carousel-dot.active { background: #fff; width: 20px; border-radius: 4px; }

/* ── تفاصيل المجسم داخل الموديل ── */
.modal-content {
  padding: 1.35rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.modal-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
}
.modal-title { font-size: 1.8rem; font-weight: 900; margin: 0; }
.modal-code {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  color: var(--primary-dark);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-full);
  padding: .45rem 1rem;
  font-size: .88rem;
  font-weight: 800;
  margin-bottom: 0;
  width: fit-content;
  box-shadow: var(--shadow-sm);
}
.modal-desc { display: none; }

.sizes-toggle {
  align-self: flex-start;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.sizes-toggle:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

.sizes-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

/* الأحجام والأسعار */
.sizes-title { font-size: 1.1rem; font-weight: 800; margin-bottom: .8rem; display: flex; align-items: center; gap: .4rem; }
.sizes-list {
  display: grid;
  gap: .7rem;
}
.size-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  background: linear-gradient(135deg, #fff, #faf5ff);
  border: 1px solid #e9d5ff;
  border-radius: 18px;
  padding: .85rem 1rem;
  box-shadow: 0 10px 24px rgba(91,33,182,.06);
}
.size-label {
  font-weight: 800;
  color: var(--text);
  font-size: 1rem;
}
.size-price {
  font-weight: 900;
  color: #7c2d12;
  background: linear-gradient(135deg, #fde68a, #fbbf24);
  border-radius: 999px;
  padding: .35rem .8rem;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}

/* حقل مسار الملف – للأدمن فقط */
.admin-file-section {
  margin-top: 1.5rem;
  background: #fffbeb;
  border: 2px dashed var(--secondary);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  display: none; /* يظهر فقط للأدمن */
}
.admin-file-section.visible { display: block; }
.admin-file-label {
  font-size: .82rem;
  font-weight: 700;
  color: #78350f;
  margin-bottom: .4rem;
  display: flex; align-items: center; gap: .4rem;
}
.file-path-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--primary);
  color: #fff;
  padding: .5rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: .88rem;
  font-weight: 700;
  word-break: break-all;
  transition: all .2s;
}
.file-path-link:hover { background: var(--primary-dark); transform: scale(1.03); }
.copy-path-btn {
  background: none;
  border: 2px solid var(--secondary);
  color: #92400e;
  padding: .4rem .9rem;
  border-radius: var(--radius-full);
  font-size: .82rem;
  font-weight: 700;
  transition: all .2s;
  margin-right: .5rem;
}
.copy-path-btn:hover { background: var(--secondary); color: #fff; }

/* ════════════════════════════════════════════════════════════
   EMPTY STATE
   ════════════════════════════════════════════════════════════ */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-soft);
}
.empty-state .empty-icon { font-size: 5rem; display: block; margin-bottom: 1rem; opacity: .5; }
.empty-state p { font-size: 1.1rem; font-weight: 500; }

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
.footer {
  margin-top: 3rem;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  text-align: center;
  padding: 2.5rem 1rem;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='white' fill-opacity='0.05'%3E%3Ccircle cx='20' cy='20' r='3'/%3E%3C/g%3E%3C/svg%3E");
}
.footer-logo { font-size: 1.8rem; font-weight: 900; margin-bottom: .3rem; }
.footer-slogan { font-size: .9rem; opacity: .7; margin-bottom: 1rem; }
.footer-copy { font-size: .78rem; opacity: .5; }

/* ════════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem 1.5rem;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: .95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all .25s cubic-bezier(.34,1.56,.64,1);
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 6px 20px rgba(14,165,233,.35);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 10px 30px rgba(14,165,233,.4); }

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
  color: #78350f;
}
.btn-secondary:hover { transform: translateY(-3px) scale(1.03); }

/* ════════════════════════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════════════════════════ */
@keyframes bounce-in {
  0%   { transform: scale(.3); opacity: 0; }
  60%  { transform: scale(1.1); }
  100% { transform: scale(1);   opacity: 1; }
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-in {
  animation: slide-up .5s both;
}

/* ════════════════════════════════════════════════════════════
   SCROLLBAR
   ════════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 4px; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .hero { padding: 2.5rem 0 2rem; }
  .modal-content { padding: 1rem 1.2rem 1.5rem; }
  .carousel-slide { height: 220px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .size-row { padding: .7rem .8rem; }
  .size-label { font-size: .9rem; }
  .size-price { font-size: .84rem; }
}
@media (max-width: 400px) {
  .grid { grid-template-columns: 1fr; }
}

/* ═══ GRADE CARD + IMAGE COVER ═══ */
.card-cover-img { width:100%; height:150px; object-fit:contain; display:block; border-radius:var(--radius) var(--radius) 0 0; background:#fff; }
.card-cover-placeholder { width:100%; height:150px; display:flex; align-items:center; justify-content:center; border-radius:var(--radius) var(--radius) 0 0; }
.card-body { padding:1rem 1.2rem 1.3rem; text-align:center; }
.stage-card { padding:0; overflow:hidden; }
.stage-card .card-cover-placeholder .stage-icon { font-size:3.5rem; animation:float 4s ease-in-out infinite; }
.stage-card .stage-name  { font-size:1.2rem; font-weight:800; margin-bottom:.3rem; }
.stage-card .stage-count { font-size:.82rem; color:var(--text-soft); font-weight:500; }
.stage-card .stage-arrow { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:50%; background:linear-gradient(135deg,var(--stage-color,var(--primary)),var(--primary-dark)); color:#fff; font-size:1rem; margin-top:.7rem; transition:transform .3s; }
.stage-card:hover .stage-arrow { transform:translateX(-6px); }
.grade-card { background:var(--card); border-radius:var(--radius); overflow:hidden; cursor:pointer; box-shadow:var(--shadow-sm); border:2px solid transparent; transition:all .35s cubic-bezier(.34,1.56,.64,1); text-align:center; }
.grade-card:hover { transform:translateY(-8px) scale(1.03); box-shadow:var(--shadow-lg); border-color:var(--primary-light); }
.grade-placeholder { background:linear-gradient(135deg,var(--primary),var(--primary-dark)); }
.grade-number { font-size:3.5rem; font-weight:900; color:rgba(255,255,255,.85); }
.grade-card .grade-name  { font-size:1.1rem; font-weight:800; margin-bottom:.25rem; }
.grade-card .grade-count { font-size:.8rem; color:var(--text-soft); font-weight:500; }
.subject-icon-wrap img { width:100%; height:100%; object-fit:contain; border-radius:var(--radius-sm); background:#fff; }
@media(max-width:640px){ .card-cover-img,.card-cover-placeholder{ height:110px; } }

/* ═══════════ FULLSCREEN IMAGE VIEWER ═══════════ */
.fullscreen-image-viewer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  z-index: 9999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}
.fullscreen-image-viewer.open {
  display: flex;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.fs-image-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.fs-image-container img {
  max-width: 95%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
}
.fs-image-container video {
  max-width: 95%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  background: #000;
}
.video-fallback {
  width: min(92vw, 560px);
  max-width: 92vw;
  padding: 1.25rem;
  border-radius: 18px;
  background: rgba(17, 24, 39, .9);
  color: #fff;
  text-align: center;
  box-shadow: 0 16px 50px rgba(0, 0, 0, .35);
}
.video-fallback-icon {
  font-size: 3rem;
  margin-bottom: .75rem;
}
.video-fallback-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: .5rem;
}
.video-fallback-text {
  font-size: .9rem;
  color: rgba(255,255,255,.82);
  margin-bottom: 1rem;
  line-height: 1.8;
}
.video-fallback-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1rem;
  border-radius: 999px;
  background: #0ea5e9;
  color: #fff;
  font-weight: 700;
}
.fs-close-btn,
.fs-prev-btn,
.fs-next-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #000;
  font-size: 2rem;
  font-weight: 900;
  padding: 1rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s;
  z-index: 10001;
}
.fs-close-btn:hover,
.fs-prev-btn:hover,
.fs-next-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}
.fs-close-btn {
  top: 20px;
  right: 20px;
  font-size: 2.5rem;
  padding: 0.75rem 1rem;
}
.fs-prev-btn {
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  font-weight: 900;
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.15);
}
.fs-next-btn {
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  font-weight: 900;
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.15);
}
.fs-bottom-bar {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  display: flex;
  gap: 1rem;
  align-items: center;
  color: white;
  z-index: 10001;
}
.fs-counter {
  color: #fff;
  font-weight: bold;
  min-width: 80px;
  text-align: center;
}
.fs-actions {
  display: flex;
  gap: 0.5rem;
}
.fs-action-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.2rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s;
}
.fs-action-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}
@media (max-width: 768px) {
  .fs-close-btn { top: 10px; right: 10px; padding: 0.75rem; font-size: 1.5rem; }
  .fs-prev-btn, .fs-next-btn { padding: 0.75rem; font-size: 1.5rem; }
  .fs-prev-btn { left: 10px; right: auto; }
  .fs-next-btn { right: 10px; left: auto; }
  .fs-bottom-bar { bottom: 10px; padding: 0.75rem 1rem; }
}

/* ════════════════════════════════════════════
   SHOPPING CART & CHECKOUT STYLES
   ════════════════════════════════════════════ */

.header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-shrink: 0;
}

.cart-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  padding: 0.75rem 1.2rem;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
  position: relative;
}

.cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ef4444;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-weight: 900;
  font-size: 0.75rem;
  min-width: 24px;
}

/* ── Cart Drawer ── */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  transition: opacity 0.3s;
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 90%;
  max-width: 400px;
  height: 100vh;
  background: white;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.2);
  transform: translateX(-100%);
  transition: transform 0.3s;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  direction: rtl;
}

.cart-drawer.active {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.cart-header h2 {
  margin: 0;
  font-size: 1.3rem;
}

.cart-close {
  background: rgba(255, 255, 255, 0.3);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.cart-close:hover {
  background: rgba(255, 255, 255, 0.5);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.cart-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #9ca3af;
  font-size: 1.1rem;
  font-weight: 500;
}

.cart-item {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  transition: all 0.3s;
}

.cart-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.cart-item-details {
  font-size: 0.85rem;
  color: #6b7280;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.qty-btn {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.qty-btn:hover {
  color: var(--primary);
}

.qty-input {
  border: none;
  width: 35px;
  text-align: center;
  font-weight: 700;
  padding: 0.25rem;
}

.qty-input:focus {
  outline: none;
}

.cart-item-price {
  font-weight: 700;
  color: var(--primary);
  min-width: 80px;
  text-align: left;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s;
}

.cart-item-remove:hover {
  transform: scale(1.2);
}

.cart-footer {
  border-top: 2px solid #e5e7eb;
  padding: 1.5rem;
  background: #fafafa;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: var(--text);
}

.cart-price {
  color: var(--primary);
  font-size: 1.3rem;
}

/* ── Checkout Modal ── */
.checkout-box {
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  width: min(500px, calc(100vw - 1.5rem));
  padding: 1rem;
  box-sizing: border-box;
}

.checkout-box .modal-close {
  position: sticky;
  top: .25rem;
  left: .25rem;
  margin: 0 0 .5rem;
  z-index: 30;
}

.checkout-title {
  text-align: center;
  color: var(--text);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.checkout-form {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-input:disabled {
  background: #f3f4f6;
  color: #9ca3af;
}

.form-error {
  display: block;
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.checkout-summary {
  background: #f9fafb;
  border: 2px dashed #e5e7eb;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.checkout-summary h3 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  color: var(--text);
}

.checkout-item {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: .5rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.9rem;
}

.checkout-item > span:nth-child(2),
.checkout-item > span:nth-child(3) {
  text-align: left;
}

.checkout-item:last-child {
  border-bottom: none;
}

.checkout-total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 2px solid #e5e7eb;
  margin-top: 1rem;
  font-weight: 900;
  font-size: 1.1rem;
}

.checkout-label {
  color: var(--text);
}

.checkout-value {
  color: var(--primary);
  font-size: 1.2rem;
}

.checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ── Order Success Modal ── */
.success-box {
  text-align: center;
  max-width: 450px;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.success-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 1rem;
}

.success-message {
  font-size: 1.1rem;
  color: #6b7280;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.success-thanks {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.confirmation-details {
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
  border: 2px solid #d1fae5;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: right;
}

.detail-line {
  padding: 0.75rem 0;
  font-size: 0.95rem;
  color: var(--text);
  border-bottom: 1px solid #a7f3d0;
}

.detail-line:last-child {
  border-bottom: none;
}

.detail-line strong {
  color: #059669;
  font-weight: 900;
}

/* ── Size Row with Add Button ── */
.size-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  border-left: 4px solid var(--primary);
}

.size-label {
  font-weight: 700;
  color: var(--text);
  flex: 1;
}

.size-price {
  color: var(--primary);
  font-weight: 900;
  font-size: 1.1rem;
  flex: 1;
  text-align: center;
}

/* ── Card Order Buttons (on model cards in grid) ── */
.card-cart-btns {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.card-add-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  transition: all 0.25s;
  white-space: nowrap;
  text-align: center;
  width: 100%;
}

.card-add-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  background: linear-gradient(135deg, #059669, #047857);
}

.card-add-btn-fallback {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.card-add-btn-fallback:hover {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

.card-order-note {
  font-size: 0.78rem;
  color: #64748b;
  text-align: center;
  margin-top: 0.2rem;
}

.size-add-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s;
  white-space: nowrap;
}

.size-add-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.size-row-fallback {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
}

/* ── Admin Stats Colors ── */
.stat-icon.blue {
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  color: white;
}

/* ── Responsive Design ── */
@media (max-width: 768px) {
  .header .container {
    flex-wrap: wrap;
    gap: .6rem;
  }
  .header-actions { order: 3; width: 100%; justify-content: center; }
  .breadcrumb { order: 4; width: 100%; justify-content: center; margin-inline-start: 0; }
  .back-btn { margin-inline-start: 0; }

  .cart-drawer {
    width: 100%;
    max-width: 100%;
  }

  .checkout-box {
    max-width: 100%;
    width: calc(100vw - .9rem);
    max-height: 92vh;
    padding: .9rem;
    border-radius: 18px;
  }

  .checkout-box .modal-close {
    width: 54px;
    height: 54px;
    font-size: 1.6rem;
    margin-bottom: .3rem;
  }

  .success-box {
    max-width: 100%;
  }

  .checkout-item {
    grid-template-columns: 1fr;
    text-align: right;
  }

  .checkout-item > span:nth-child(2),
  .checkout-item > span:nth-child(3) {
    text-align: right;
  }

  .checkout-total-line {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .size-row {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .size-label,
  .size-price {
    flex: none;
    width: 100%;
  }

  .size-add-btn {
    width: 100%;
  }
}

/* ════════════════════════════════════════════════════════════
   ADMIN PANEL (RESTORED)
   ════════════════════════════════════════════════════════════ */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.login-card {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 12px 35px rgba(59, 130, 246, .18);
  border: 1px solid #e5e7eb;
}

.login-logo { text-align: center; margin-bottom: 1rem; }
.login-logo .emoji { font-size: 2rem; display: block; }
.login-logo h1 { font-size: 1.4rem; margin: .3rem 0; }
.login-logo p { color: #64748b; font-size: .95rem; }
.login-tag {
  text-align: center;
  font-size: .86rem;
  color: #7c3aed;
  margin-bottom: 1rem;
  font-weight: 700;
}

.adm-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.adm-sidebar {
  background: #ffffff;
  border-left: 1px solid #e5e7eb;
  box-shadow: 0 8px 25px rgba(2, 6, 23, .08);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 30;
}

.adm-sidebar-logo {
  padding: 1rem 1rem .8rem;
  border-bottom: 1px solid #eef2f7;
}
.logo-title { font-weight: 900; color: #0f172a; }
.logo-sub { color: #64748b; font-size: .86rem; margin-top: .25rem; }

.adm-nav { padding: .7rem; }
.adm-nav-section {
  color: #94a3b8;
  font-size: .76rem;
  font-weight: 800;
  margin: .75rem .55rem .35rem;
}

.adm-nav-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem .7rem;
  border-radius: 10px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  transition: .2s ease;
}

.adm-nav-item:hover { background: #f1f5f9; }
.adm-nav-item.active {
  background: linear-gradient(135deg, #e0f2fe, #ede9fe);
  color: #1d4ed8;
}

.adm-sidebar-footer { padding: .8rem; border-top: 1px solid #eef2f7; }
.adm-logout-btn {
  width: 100%;
  border: none;
  background: #ef4444;
  color: #fff;
  font-weight: 800;
  border-radius: 10px;
  padding: .55rem .75rem;
}

.adm-main { min-width: 0; }

.adm-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: .8rem;
  justify-content: space-between;
  padding: .75rem 1rem;
  background: rgba(255,255,255,.9);
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: blur(8px);
}

.adm-topbar-title {
  font-weight: 900;
  color: #0f172a;
  margin-inline: auto;
}

.adm-content {
  padding: 1rem;
}

.adm-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, .45);
  opacity: 0;
  pointer-events: none;
  transition: .2s;
  z-index: 25;
}
.adm-sidebar-overlay.visible { opacity: 1; pointer-events: auto; }

.adm-menu-toggle,
.adm-back-btn {
  border: 1px solid #dbeafe;
  background: #fff;
  border-radius: 10px;
  padding: .45rem .65rem;
  font-weight: 800;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: .8rem 1rem;
  margin-bottom: .9rem;
}
.panel-title { font-weight: 900; color: #0f172a; }

.data-table {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: auto;
}
.data-table table { width: 100%; border-collapse: collapse; }
.data-table th,
.data-table td { padding: .7rem .65rem; border-bottom: 1px solid #f1f5f9; text-align: right; }
.data-table th { background: #f8fafc; font-size: .86rem; color: #475569; white-space: nowrap; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .9rem;
  margin-bottom: 1rem;
}

.stat-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: .85rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.1rem;
}
.stat-icon.purple { background: #8b5cf6; }
.stat-icon.amber { background: #f59e0b; }
.stat-icon.green { background: #10b981; }
.stat-icon.pink { background: #ec4899; }
.stat-label { color: #64748b; font-size: .82rem; }
.stat-value { font-weight: 900; color: #0f172a; font-size: 1.15rem; }

.adm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, .45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1rem;
}
.adm-modal-overlay.open { display: flex; }
.adm-modal {
  width: min(920px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
}
.adm-modal-header,
.adm-modal-footer { padding: .85rem 1rem; border-bottom: 1px solid #eef2f7; }
.adm-modal-footer { border-bottom: none; border-top: 1px solid #eef2f7; display: flex; gap: .5rem; flex-wrap: wrap; }
.adm-modal-body { padding: 1rem; }
.adm-modal-title { font-weight: 900; }
.adm-modal-close { border: none; background: transparent; font-size: 1.2rem; }

.toast-container {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 80;
  display: grid;
  gap: .4rem;
}
.toast {
  background: #10b981;
  color: #fff;
  padding: .55rem .75rem;
  border-radius: 9px;
  font-weight: 700;
}
.toast.error { background: #ef4444; }

@media (max-width: 992px) {
  .adm-layout { grid-template-columns: 1fr; }
  .adm-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    width: min(84vw, 300px);
    transform: translateX(105%);
    transition: .22s;
    z-index: 40;
  }
  .adm-sidebar.open { transform: translateX(0); }
}
