/* =============================================
   CSS RESET & CUSTOM PROPERTIES
============================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue:       #0066cc;
  --blue-dk:    #004fa3;
  --blue-lt:    #e8f1fc;
  --blue-mid:   #1976d2;
  --teal:       #009688;
  --teal-lt:    #e0f2f1;
  --amber:      #f59e0b;
  --red:        #e53935;
  --ink:        #1a2332;
  --body:       #374151;
  --muted:      #6b7280;
  --border:     #e0e0e0;
  --surface:    #f5f5f5;
  --white:      #ffffff;
  --shadow-s:   0 2px 8px rgba(0,0,0,.08);
  --shadow-m:   0 4px 20px rgba(0,0,0,.12);
  --shadow-l:   0 12px 40px rgba(0,0,0,.16);
  --radius:     8px;
  --ease:       cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }
body { font-family: 'Nunito', sans-serif; color: var(--body); background: var(--surface); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
button { font-family: 'Nunito', sans-serif; cursor: pointer; }
ul { list-style: none; }

/* =============================================
   TOP BAR
============================================= */
.top-bar {
  background: #f8f9fa;
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  font-size: 0.83rem;
  color: #555;
}
.top-bar-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.top-links { display: flex; gap: 4px; }
.top-links a {
  color: #555; padding: 4px 12px; border-radius: 4px;
  transition: all .2s;
}
.top-links a:hover { background: var(--blue-lt); color: var(--blue); }

/* =============================================
   HEADER / NAV
============================================= */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: var(--shadow-s);
}
.nav-wrapper {
  max-width: 1280px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 20px;
  height: 62px;
}
.logo {
  font-family: 'Merriweather', serif;
  font-size: 1.35rem; font-weight: 700;
  color: var(--blue); white-space: nowrap; flex-shrink: 0;
}
.logo span { color: var(--teal); }

/* Nav links */
.nav-links {
  display: flex; gap: 2px; flex: 1;
}
.nav-links a {
  color: var(--body); font-size: .875rem; font-weight: 600;
  padding: 6px 13px; border-radius: 6px;
  transition: all .2s; white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { background: var(--blue-lt); color: var(--blue); }

/* Search bar */
.nav-search {
  display: flex; align-items: stretch;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: border-color .2s;
}
.nav-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,102,204,.1); }
.nav-search input {
  border: none; outline: none;
  padding: 8px 14px; font-size: .85rem; width: 210px;
  font-family: 'Nunito', sans-serif; color: var(--ink);
}
.nav-search input::placeholder { color: var(--muted); }
.nav-search button {
  background: var(--blue); color: #fff; border: none;
  padding: 0 18px; font-size: .85rem; font-weight: 700;
  transition: background .2s;
}
.nav-search button:hover { background: var(--blue-dk); }

/* Hamburger */
.hamburger {
  display: none;
  background: none; border: 1.5px solid var(--border);
  border-radius: 6px; padding: 7px 10px;
  font-size: 1.15rem; color: var(--body);
  margin-left: auto;
}

/* =============================================
   HERO SECTION
============================================= */
.hero {
  background: linear-gradient(135deg, #0055a5 0%, #1976d2 50%, #009688 100%);
  color: #fff;
  padding: 72px 20px 80px;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='40' cy='40' r='4'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  color: #fff; padding: 5px 16px; border-radius: 30px;
  font-size: .76rem; font-weight: 700; letter-spacing: .7px;
  text-transform: uppercase; margin-bottom: 22px;
}
.hero h1 {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  font-weight: 700; line-height: 1.22;
  margin-bottom: 18px;
}
.hero h1 em { font-style: italic; color: #7fe8de; }
.hero p {
  font-size: 1.05rem; color: rgba(255,255,255,.85);
  margin-bottom: 32px; max-width: 540px; margin-left: auto; margin-right: auto;
}
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--radius);
  font-weight: 700; font-size: .9rem; font-family: 'Nunito', sans-serif;
  border: 2px solid transparent; cursor: pointer;
  transition: all .22s var(--ease); text-decoration: none;
}
.btn-white   { background: #fff; color: var(--blue); border-color: #fff; }
.btn-white:hover   { background: #f0f6ff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.btn-ghost   { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover   { border-color: #fff; background: rgba(255,255,255,.1); }

/* Hero stats */
.hero-stats {
  display: flex; gap: 44px; justify-content: center;
  margin-top: 52px; flex-wrap: wrap;
}
.hstat { text-align: center; }
.hstat-num {
  font-family: 'Merriweather', serif; font-size: 2rem; font-weight: 700;
  color: #fff; display: block; line-height: 1;
}
.hstat-lbl {
  font-size: .74rem; color: rgba(255,255,255,.65);
  text-transform: uppercase; letter-spacing: .5px;
  margin-top: 4px; display: block;
}

/* =============================================
   SECTION UTILITY
============================================= */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.section-pad { padding: 56px 0; }
.section-bg  { background: #f8f9fa; }
.section-hd  {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 32px; gap: 12px; flex-wrap: wrap;
}
.section-title {
  font-family: 'Merriweather', serif; font-size: 1.65rem;
  font-weight: 700; color: var(--ink);
}
.section-title span { color: var(--blue); }
.view-all {
  color: var(--blue); font-weight: 700; font-size: .875rem;
  display: flex; align-items: center; gap: 4px;
  transition: gap .2s;
}
.view-all:hover { gap: 8px; }

/* =============================================
   FEATURED JOURNAL CARDS
============================================= */
.journal-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px; margin-bottom: 8px;
}
.jcard {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: all .25s var(--ease);
}
.jcard:hover { box-shadow: var(--shadow-l); transform: translateY(-4px); border-color: var(--blue); }
.jcard-cover {
  width: 100%; height: 150px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.2rem; background: linear-gradient(135deg, #1976d2, #009688);
  color: rgba(255,255,255,.9); font-weight: 700; position: relative;
}
.jcard-cover::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='2' fill='%23fff' fill-opacity='.08'/%3E%3C/svg%3E");
}
.jcard-content { padding: 18px; }
.jcard-title {
  font-size: 1.08rem; font-weight: 700; color: var(--ink); margin-bottom: 6px;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; line-height: 1.3;
}
.jcard-issn {
  font-size: .78rem; color: var(--muted); margin-bottom: 14px;
}
.jcard-meta {
  display: flex; gap: 14px; flex-wrap: wrap; font-size: .79rem; color: var(--muted);
}
.jcard-meta span { display: flex; align-items: center; gap: 4px; }
.jcard-meta span::before { content: '●'; color: var(--teal); font-size: .6rem; }

/* =============================================
   JOURNALS BROWSER PANEL
============================================= */
.journals-panel { background: #f8f9fa; }
.panel-hd { margin-bottom: 28px; }
.panel-layout {
  display: grid; grid-template-columns: 250px 1fr; gap: 28px;
}

/* Category Sidebar */
.category-sidebar {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; height: fit-content;
  position: sticky; top: 80px;
}
.category-hd {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--surface);
}
.cat-hd-title {
  font-size: 1.05rem; font-weight: 700; color: var(--ink);
}
.cat-mobile-close {
  display: none; background: var(--surface); border: none;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 1.4rem; color: var(--body); cursor: pointer;
  transition: all .2s;
}
.cat-mobile-close:hover { background: var(--border); transform: rotate(90deg); }

.category-nav { list-style: none; }
.category-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; border-radius: 6px;
  font-size: .9rem; font-weight: 600; color: var(--body);
  transition: all .2s; cursor: pointer; text-decoration: none;
}
.category-link:hover { background: var(--blue-lt); color: var(--blue); }
.category-link.active {
  background: var(--blue); color: #fff;
}
.cat-count {
  font-size: .75rem; font-weight: 500; color: var(--muted);
  padding: 2px 8px; background: var(--surface); border-radius: 12px;
}
.category-link.active .cat-count {
  background: rgba(255,255,255,.2); color: #fff;
}

/* Panel Main Area */
.panel-main { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.panel-toolbar {
  display: flex; gap: 16px; align-items: center; margin-bottom: 24px; flex-wrap: wrap;
}
.cat-mobile-btn {
  display: none; background: var(--blue-lt); color: var(--blue);
  border: 1.5px solid var(--blue); padding: 8px 16px;
  border-radius: 6px; font-weight: 600; font-size: .9rem;
  cursor: pointer; transition: all .2s;
}
.cat-mobile-btn:hover { background: var(--blue); color: #fff; }
.cat-mobile-btn.open { background: var(--blue); color: #fff; }

.panel-search-wrap {
  flex: 1; min-width: 200px;
}
.panel-search-input {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: 6px;
  font-size: .9rem; font-family: 'Nunito', sans-serif;
  color: var(--ink); transition: border-color .2s;
}
.panel-search-input:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,102,204,.1);
}

.panel-count-badge {
  background: var(--teal-lt); color: var(--teal);
  padding: 6px 14px; border-radius: 20px;
  font-size: .8rem; font-weight: 700;
}

.panel-subject-label {
  font-size: 1.35rem; font-weight: 700; color: var(--ink);
  margin-bottom: 24px; font-family: 'Merriweather', serif;
}

/* Journals Icon Grid */
.journals-icon-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px; transition: opacity .3s;
}
.journals-icon-grid.fading { opacity: 0.4; }

.journal-icon-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 0; border: 1.5px solid var(--border);
  border-radius: var(--radius); cursor: pointer;
  transition: all .25s var(--ease); text-decoration: none;
  overflow: hidden;
}
.journal-icon-card:hover {
  box-shadow: var(--shadow-m); transform: translateY(-3px);
  border-color: var(--blue);
}
.journal-cover-img {
  width: 100%; height: 110px; overflow: hidden;
  background: linear-gradient(135deg, #1976d2, #009688);
  display: flex; align-items: center; justify-content: center;
}
.journal-cover-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s;
}
.journal-icon-card:hover .journal-cover-img img { transform: scale(1.07); }
.journal-emoji {
  font-size: 2.5rem; margin: 14px 0 6px;
  width: 100%; height: 80px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1976d2, #009688);
}
.journal-icon-name {
  font-size: .79rem; font-weight: 700; color: var(--ink);
  text-align: center; line-height: 1.3; padding: 8px 10px 2px;
  display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; overflow: hidden;
}
.journal-icon-if {
  font-size: .72rem; color: var(--blue); font-weight: 600;
  padding: 2px 10px 10px; text-align: center;
}

/* =============================================
   ARTICLE LIST
============================================= */
.article-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
  cursor: pointer; transition: all .2s;
}
.article-item:hover {
  box-shadow: var(--shadow-m); border-color: var(--blue);
}
.article-type {
  display: inline-block; background: var(--blue-lt); color: var(--blue);
  padding: 3px 11px; border-radius: 4px; font-size: .75rem;
  font-weight: 700; margin-bottom: 8px;
}
.article-type.review {
  background: var(--teal-lt); color: var(--teal);
}
.article-title {
  font-size: 1.18rem; font-weight: 700; color: var(--ink);
  margin-bottom: 6px; line-height: 1.35;
}
.article-authors {
  font-size: .86rem; color: var(--muted); margin-bottom: 10px;
}
.article-abstract {
  font-size: .9rem; color: var(--body); line-height: 1.55; margin-bottom: 12px;
}
.article-meta-row {
  display: flex; gap: 18px; flex-wrap: wrap; font-size: .8rem; color: var(--muted);
}

/* =============================================
   ARTICLE MODAL
============================================= */
.article-modal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.article-modal.active { opacity: 1; pointer-events: auto; }
.modal-card {
  background: var(--white); border-radius: 12px;
  width: 90%; max-width: 720px; max-height: 90vh; overflow-y: auto;
  padding: 32px; box-shadow: var(--shadow-l);
  transform: scale(.95);
  transition: transform .3s;
}
.article-modal.active .modal-card { transform: scale(1); }
.modal-close {
  position: absolute; top: 20px; right: 20px;
  background: var(--surface); border: none;
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 1.3rem; color: var(--body);
  cursor: pointer; transition: all .2s;
}
.modal-close:hover {
  background: var(--border); transform: rotate(90deg);
}
.modal-body { position: relative; }
.modal-by {
  color: var(--muted); font-size: .92rem; margin-bottom: 8px;
}
.modal-pub {
  font-size: .86rem; color: var(--muted); margin-bottom: 24px;
}
.modal-section-label {
  font-weight: 700; color: var(--ink); font-size: .88rem;
  margin-top: 24px; margin-bottom: 10px;
}
.modal-abstract-text {
  color: var(--body); line-height: 1.65;
}
.modal-metrics {
  display: flex; gap: 28px; margin-top: 28px;
  padding: 20px; background: var(--surface); border-radius: var(--radius);
}
.m-metric { text-align: center; }
.m-metric-val {
  display: block; font-size: 1.4rem; font-weight: 700;
  color: var(--blue); font-family: 'Merriweather', serif;
}
.m-metric-lbl {
  display: block; font-size: .75rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: .5px; margin-top: 2px;
}
.modal-actions {
  display: flex; gap: 12px; margin-top: 28px;
}
.btn-solid {
  background: var(--blue); color: #fff; border: 2px solid var(--blue);
}
.btn-solid:hover { background: var(--blue-dk); border-color: var(--blue-dk); }
.btn-outline {
  background: transparent; color: var(--blue); border: 2px solid var(--blue);
}
.btn-outline:hover { background: var(--blue-lt); }

/* ???? */
.sort-container {
    position: relative;
}

.sort-dropdown {
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
    appearance: none;
    min-width: 180px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s;
}

.sort-dropdown:hover {
    border-color: #1976d2;
}

.sort-dropdown:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.sort-container::after {
    content: '▼';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 0.7rem;
    color: #666;
}

/* =============================================
   ARTICLES GRID
============================================= */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

/* =============================================
   ARTICLE CARD
============================================= */
.article-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-3px);
    border-color: #1976d2;
}

/* =============================================
   ARTICLE BADGE
============================================= */
.article-badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.article-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
}

.badge-icon {
    width: 16px;
    height: 16px;
}

.open-access-icon {
    width: 18px;
    height: 18px;
    background: #1976d2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.65rem;
    font-weight: bold;
}

.download-icon {
    color: #1976d2;
    font-size: 1rem;
    position: absolute;
    top: 20px;
    right: 20px;
    transition: transform 0.3s;
}

.article-card:hover .download-icon {
    transform: scale(1.2);
}

/* =============================================
   ARTICLE CONTENT
============================================= */
.article-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-authors {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 12px;
    font-style: italic;
}

.article-abstract {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.abstract-label {
    font-weight: 700;
    color: #1976d2;
}

.article-journal {
    font-size: 0.8rem;
    color: #1976d2;
    font-weight: 600;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

/* 


/* =============================================
   FOOTER
============================================= */
.footer {
  background: var(--ink); color: rgba(255,255,255,.85);
  padding: 48px 0 24px;
}
.footer-cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px; margin-bottom: 32px;
}
.footer-title {
  color: #fff; font-size: 1.05rem; font-weight: 700;
  margin-bottom: 16px;
}
.footer-col p {
  line-height: 1.65; color: rgba(255,255,255,.7);
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links a {
  color: rgba(255,255,255,.75); font-size: .9rem;
  transition: color .2s;
}
.footer-links a:hover {
  color: #fff;
}
.social-links {
  display: flex; gap: 10px;
}
.social-icon {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.1); border-radius: 6px;
  font-size: 1.2rem; transition: all .3s;
}
.social-icon:hover {
  background: var(--blue); transform: translateY(-3px);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px; text-align: center;
  font-size: .85rem; color: rgba(255,255,255,.6);
}

/* =============================================
   PRIVACY BANNER
============================================= */
.privacy-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9998;
  background: var(--white); border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,.15);
  padding: 20px;
  transform: translateY(100%);
  transition: transform .4s var(--ease);
}
.privacy-banner.show { transform: translateY(0); }
.privacy-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; gap: 20px; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
}
.privacy-text {
  flex: 1; min-width: 280px; font-size: .88rem; color: var(--body);
}
.privacy-text a { color: var(--blue); text-decoration: underline; }
.privacy-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.privacy-btn {
  padding: 9px 20px; border-radius: 6px; font-size: .85rem;
  font-weight: 700; border: 1.5px solid transparent;
  transition: all .2s; cursor: pointer;
}
.privacy-accept {
  background: var(--blue); color: #fff; border-color: var(--blue);
}
.privacy-accept:hover { background: var(--blue-dk); }
.privacy-decline {
  background: transparent; color: var(--body); border-color: var(--border);
}
.privacy-decline:hover { background: var(--surface); }

/* =============================================
   SCROLL TO TOP
============================================= */
.scroll-top-btn {
  position: fixed; bottom: 28px; right: 28px; z-index: 1000;
  width: 48px; height: 48px;
  background: var(--blue); color: #fff;
  border: none; border-radius: 50%;
  font-size: 1.3rem;
  box-shadow: var(--shadow-m);
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: all .3s var(--ease);
}
.scroll-top-btn.visible,
.scroll-top-btn.on {
  opacity: 1; visibility: visible;
}
.scroll-top-btn:hover {
  background: var(--blue-dk);
  transform: translateY(-4px);
  box-shadow: var(--shadow-l);
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 900px) {
  .nav-links, .nav-search {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-top: 1px solid var(--border);
    flex-direction: column; gap: 0; padding: 12px;
    opacity: 0; pointer-events: none;
    transition: opacity .3s;
  }
  .nav-links.open, .nav-search.open {
    opacity: 1; pointer-events: auto;
  }
  .nav-search { padding: 12px; }
  .nav-search input { width: 100%; }
  .hamburger { display: block; }

  .panel-layout {
    grid-template-columns: 1fr;
  }

  .category-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 280px; z-index: 9999;
    transform: translateX(-100%);
    transition: transform .3s var(--ease);
  }
  .category-sidebar.open {
    transform: translateX(0);
  }
  .cat-mobile-close {
    display: block;
  }
  .cat-mobile-btn {
    display: block;
  }
}

@media (max-width: 600px) {
  .modal-card { padding: 24px; }
  .modal-metrics { flex-direction: column; gap: 16px; }
}
