/* ============================================================
   aitoolcluster — Pages CSS (Phase 3)
   Categories, Submit Tool, Admin
   ============================================================ */

/* ── Breadcrumb ──────────────────────────────────────────── */
.pg-breadcrumb {
  padding: 16px 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-light);
}
.pg-breadcrumb ol {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap; font-size: 13px; color: var(--text-secondary);
}
.pg-breadcrumb li { display: flex; align-items: center; gap: 6px; }
.pg-breadcrumb li:not(:last-child)::after {
  content: '\f054'; font-family: 'Font Awesome 6 Free';
  font-weight: 900; font-size: 9px; color: var(--text-secondary); opacity: .5;
}
.pg-breadcrumb a { color: var(--text-secondary); transition: var(--transition); }
.pg-breadcrumb a:hover { color: var(--purple); }
.pg-breadcrumb li[aria-current="page"] { color: var(--text); font-weight: 600; }

/* ── Page Hero ───────────────────────────────────────────── */
.pg-page-hero {
  padding: 48px 0 40px; text-align: center;
  background: var(--gradient-soft);
}
.pg-page-hero h1 {
  font-family: var(--font-display); font-size: clamp(26px,4vw,36px);
  font-weight: 800; margin-bottom: 10px;
}
.pg-page-hero p {
  color: var(--text-secondary); font-size: 16px; max-width: 520px; margin: 0 auto;
}

/* ── Category Hero (single) ──────────────────────────────── */
.pg-cat-hero {
  padding: 48px 0 36px; text-align: center;
  background: var(--gradient-soft);
}
.pg-cat-hero-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--card-bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--purple); margin: 0 auto 18px;
}
.pg-cat-hero h1 {
  font-family: var(--font-display); font-size: 30px; font-weight: 800; margin-bottom: 8px;
}
.pg-cat-hero p {
  color: var(--text-secondary); font-size: 15px; max-width: 500px; margin: 0 auto 12px;
}
.pg-cat-count {
  font-size: 13px; color: var(--text-secondary); font-weight: 600;
}

/* ── Full categories grid (all cats page) ────────────────── */
.pg-cat-grid-full {
  grid-template-columns: repeat(4, 1fr);
}

/* ── Pagination ──────────────────────────────────────────── */
.pg-pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 16px; margin-top: 40px;
}
.pg-page-info { font-size: 14px; color: var(--text-secondary); font-weight: 500; }

/* ── Empty state ─────────────────────────────────────────── */
.pg-empty {
  text-align: center; padding: 60px 20px; color: var(--text-secondary);
}
.pg-empty i { font-size: 40px; margin-bottom: 16px; opacity: .4; display: block; }
.pg-empty p { font-size: 15px; margin-bottom: 16px; }

/* ── 404 ─────────────────────────────────────────────────── */
.pg-404 { padding: 100px 0; text-align: center; }
.pg-404-inner { max-width: 480px; margin: 0 auto; }
.pg-404-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--bg-lavender); display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: var(--purple); margin: 0 auto 24px;
}
.pg-404 h1 { font-family: var(--font-display); font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.pg-404 p { color: var(--text-secondary); margin-bottom: 28px; font-size: 15px; }
.pg-404-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Forms ────────────────────────────────────────────────── */
.pg-form-wrap {
  max-width: 720px; margin: 0 auto;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px;
}
.pg-form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.pg-field { display: flex; flex-direction: column; gap: 6px; }
.pg-field-full { grid-column: 1 / -1; }
.pg-field label {
  font-size: 14px; font-weight: 600; color: var(--text);
}
.pg-req { color: #DC2626; }
.pg-field input,
.pg-field select,
.pg-field textarea {
  padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--bg);
  font-size: 14px; color: var(--text); transition: var(--transition);
  font-family: var(--font-body);
}
.pg-field input:focus,
.pg-field select:focus,
.pg-field textarea:focus {
  border-color: var(--purple-light);
  box-shadow: 0 0 0 3px rgba(124,58,237,.08);
}
.pg-field textarea { resize: vertical; min-height: 100px; }
.pg-field select { cursor: pointer; }

/* ── Alerts ──────────────────────────────────────────────── */
.pg-alert {
  padding: 14px 18px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; margin-bottom: 20px;
}
.pg-alert-error {
  background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA;
}
[data-theme="dark"] .pg-alert-error { background: #450a0a; border-color: #7f1d1d; }

/* ── Success state ───────────────────────────────────────── */
.pg-success { text-align: center; padding: 40px 20px; }
.pg-success-icon {
  font-size: 48px; color: #059669; margin-bottom: 18px;
}
.pg-success h2 {
  font-family: var(--font-display); font-size: 22px; font-weight: 800; margin-bottom: 10px;
}
.pg-success p { color: var(--text-secondary); font-size: 15px; }

/* ── Prose content (static pages) ─────────────────────────── */
.pg-content { max-width: 780px; margin: 0 auto; }
.pg-content h2 {
  font-family: var(--font-display); font-size: 22px; font-weight: 800;
  margin: 36px 0 12px; color: var(--text);
}
.pg-content h2:first-child { margin-top: 0; }
.pg-content p {
  font-size: 15px; line-height: 1.8; color: var(--text-secondary); margin-bottom: 14px;
}
.pg-content a { color: var(--purple); font-weight: 500; }
.pg-content a:hover { text-decoration: underline; }

/* ============================================================
   TOOLS LISTING PAGE
   ============================================================ */

.tl-layout {
  display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start;
}

/* Sidebar */
.tl-sidebar-sticky {
  position: sticky; top: calc(var(--header-h) + 24px);
  display: flex; flex-direction: column; gap: 16px;
}
.tl-filter-block {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; overflow: hidden;
}
.tl-filter-block h3 {
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
  color: var(--text);
}
.tl-filter-block h3 i { font-size: 14px; color: var(--purple); }
.tl-filter-options { display: flex; flex-direction: column; gap: 2px; }
.tl-option {
  display: block; padding: 8px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  transition: var(--transition); cursor: pointer;
}
.tl-option:hover { background: var(--bg-lavender); color: var(--purple); }
.tl-option.active { background: var(--bg-lavender); color: var(--purple); font-weight: 600; }
.tl-search-input {
  width: 100%; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--bg);
  font-size: 13px; color: var(--text); transition: var(--transition);
}
.tl-search-input:focus { border-color: var(--purple-light); box-shadow: 0 0 0 3px rgba(124,58,237,.08); }

/* Results bar */
.tl-results-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border-light);
}
.tl-results-count { font-size: 14px; font-weight: 600; color: var(--text); }
.tl-active-filter {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 500;
  background: var(--bg-lavender); color: var(--purple);
}
.tl-active-filter a { color: var(--purple); font-size: 11px; }
.tl-active-filter a:hover { opacity: .7; }
.tl-mobile-filter-btn {
  display: none; margin-left: auto;
  padding: 8px 16px; border-radius: var(--radius-pill);
  background: var(--card-bg); border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--text);
  cursor: pointer; transition: var(--transition);
}
.tl-mobile-filter-btn:hover { border-color: var(--purple-light); color: var(--purple); }
.tl-mobile-filter-btn i { margin-right: 4px; }

/* Tool rows (blog-style listing) */
.tl-tools-list { display: flex; flex-direction: column; gap: 16px; }
.tl-tool-row {
  display: flex; gap: 20px; padding: 24px;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); transition: var(--transition);
}
.tl-tool-row:hover { border-color: var(--purple-light); box-shadow: var(--card-shadow-hover); }
.tl-tool-logo {
  width: 64px; height: 64px; border-radius: 14px;
  background: var(--gradient-soft); display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.tl-tool-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.tl-tool-logo .tool-avatar-fallback {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: var(--gradient); color: #fff; font-family: var(--font-display);
  font-size: 18px; font-weight: 800; text-transform: uppercase;
}
.tl-tool-body { flex: 1; min-width: 0; }
.tl-tool-top { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.tl-tool-top h2 { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin: 0; }
.tl-tool-top h2 a { color: var(--text); transition: var(--transition); }
.tl-tool-top h2 a:hover { color: var(--purple); }
.tl-tool-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.tl-tool-tagline { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; }
.tl-tool-footer { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.tl-tool-date { font-size: 12px; color: var(--text-secondary); display: flex; align-items: center; gap: 5px; }
.tl-tool-actions { display: flex; gap: 8px; margin-left: auto; }

/* Pagination numbers */
.pg-page-numbers { display: flex; gap: 4px; }
.pg-page-num {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  font-size: 14px; font-weight: 600; color: var(--text-secondary);
  transition: var(--transition); border: 1px solid transparent;
}
.pg-page-num:hover { background: var(--bg-lavender); color: var(--purple); }
.pg-page-num.active {
  background: var(--gradient); color: #fff; border-color: transparent;
}

/* Mobile filter overlay */
.tl-mobile-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.4); display: flex; justify-content: flex-start;
}
.tl-mobile-overlay[hidden] { display: none; }
.tl-mobile-panel {
  width: 300px; max-width: 85vw; height: 100%;
  background: var(--bg); overflow-y: auto; box-shadow: 4px 0 24px rgba(0,0,0,.1);
}
.tl-mobile-panel-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px; border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: 16px;
}
.tl-mobile-panel-header button {
  background: none; border: none; cursor: pointer; font-size: 20px; color: var(--text-secondary);
}
.tl-mobile-panel-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }

/* ============================================================
   BLOG
   ============================================================ */

/* Listing grid: 2 columns on blog page */
.blog-grid-listing { grid-template-columns: repeat(2, 1fr); }

/* Blog thumb image support */
.blog-thumb { position: relative; }
.blog-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; top: 0; left: 0;
}
.blog-card-body h3 a { color: var(--text); transition: var(--transition); }
.blog-card-body h3 a:hover { color: var(--purple); }

/* Single post: featured image */
.bp-featured-image {
  width: 100%; max-height: 400px; border-radius: var(--radius);
  overflow: hidden; margin-bottom: 32px; background: var(--bg-alt);
}
.bp-featured-image img { width: 100%; height: 100%; object-fit: cover; max-height: 400px; }
.bp-featured-fallback {
  width: 100%; height: 280px; display: flex; align-items: center; justify-content: center;
  font-size: 56px; color: rgba(255,255,255,.5);
}

/* Post layout */
.bp-article { padding: 40px 0 0; }
.bp-layout {
  display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start;
}
.bp-main .badge { margin-bottom: 12px; }
.bp-main h1 {
  font-family: var(--font-display); font-size: clamp(24px,4vw,32px);
  font-weight: 800; line-height: 1.3; margin-bottom: 14px;
}
.bp-meta {
  display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px;
  color: var(--text-secondary); margin-bottom: 28px;
  padding-bottom: 20px; border-bottom: 1px solid var(--border-light);
}
.bp-meta span { display: flex; align-items: center; gap: 6px; }

/* Content */
.bp-content { max-width: 720px; }
.bp-content p {
  font-size: 16px; line-height: 1.85; color: var(--text-secondary);
  margin-bottom: 18px;
}
.bp-content h2 {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  color: var(--text); margin: 32px 0 14px;
}
.bp-content a { color: var(--purple); font-weight: 500; }
.bp-content a:hover { text-decoration: underline; }

/* Share */
.bp-share {
  margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border-light);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 48px;
}
.bp-share span { font-size: 14px; font-weight: 600; }
.bp-share-icons { display: flex; gap: 8px; }
.bp-share-icons a {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-lavender); display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 14px; transition: var(--transition);
}
.bp-share-icons a:hover { background: var(--purple); color: #fff; }

/* Sidebar */
.bp-sidebar-sticky {
  position: sticky; top: calc(var(--header-h) + 24px);
  display: flex; flex-direction: column; gap: 20px;
}
.bp-sidebar-block {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.bp-sidebar-block h3 {
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  margin-bottom: 16px;
}
.bp-recent-item {
  display: flex; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--border-light); transition: var(--transition);
}
.bp-recent-item:last-child { border-bottom: none; }
.bp-recent-item:hover .bp-recent-title { color: var(--purple); }
.bp-recent-thumb {
  width: 56px; height: 42px; border-radius: 8px;
  overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.bp-recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bp-recent-info { min-width: 0; }
.bp-recent-title {
  font-size: 13px; font-weight: 600; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  line-height: 1.4; transition: var(--transition);
}
.bp-recent-date { font-size: 11px; color: var(--text-secondary); margin-top: 4px; display: block; }

/* Tags */
.bp-tags {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border-light);
}
.bp-tags-label {
  font-size: 14px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 6px;
}
.bp-tags-label i { color: var(--purple); font-size: 14px; }
.bp-tag {
  display: inline-flex; padding: 5px 14px; border-radius: var(--radius-pill);
  background: var(--bg-lavender); color: var(--purple);
  font-size: 12px; font-weight: 600; transition: var(--transition);
}
.bp-tag:hover { background: var(--purple); color: #fff; }
.bp-sidebar-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* Article bottom spacing */
.bp-article { padding: 40px 0 64px; }

/* Blog category pills */
.bp-cat-pills {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px;
}
.bp-cat-pill {
  padding: 7px 18px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600; border: 1px solid var(--border);
  background: var(--card-bg); color: var(--text-secondary);
  transition: var(--transition);
}
.bp-cat-pill:hover { border-color: var(--purple-light); color: var(--purple); }
.bp-cat-pill.active { background: var(--gradient); color: #fff; border-color: transparent; }

/* Sidebar category list */
.bp-cat-list { display: flex; flex-direction: column; gap: 2px; }
.bp-cat-link {
  display: block; padding: 8px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  transition: var(--transition);
}
.bp-cat-link:hover { background: var(--bg-lavender); color: var(--purple); }
.bp-cat-link.active { background: var(--bg-lavender); color: var(--purple); font-weight: 600; }

/* Blog listing sidebar */
.bp-sidebar-listing { display: block; }

@media (max-width: 1024px) {
  .bp-layout { grid-template-columns: 1fr; }
  .bp-sidebar { order: 1; }
}
@media (max-width: 768px) {
  .blog-grid-listing { grid-template-columns: 1fr; }
  .bp-featured-image { max-height: 240px; }
  .bp-featured-image img { max-height: 240px; }
  .bp-featured-fallback { height: 180px; font-size: 40px; }
}

/* ============================================================
   ADMIN LOGIN
   ============================================================ */
.adm-login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--gradient-soft); padding: 24px;
}
.adm-login-card {
  width: 100%; max-width: 420px;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px 36px;
  box-shadow: var(--card-shadow);
}
.adm-login-card h1 {
  font-family: var(--font-display); font-size: 22px; font-weight: 800;
  text-align: center; margin-bottom: 6px;
}
.adm-login-sub {
  text-align: center; font-size: 14px; color: var(--text-secondary);
  margin-bottom: 24px;
}
.adm-login-card .pg-field { margin-bottom: 18px; }
.adm-input-wrap {
  position: relative;
}
.adm-input-wrap i {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-secondary); font-size: 14px; pointer-events: none;
}
.adm-input-wrap input {
  padding-left: 42px; width: 100%;
}
.adm-back-link {
  display: block; text-align: center; margin-top: 20px;
  font-size: 13px; color: var(--text-secondary); transition: var(--transition);
}
.adm-back-link:hover { color: var(--purple); }

/* ============================================================
   ADMIN DASHBOARD
   ============================================================ */
.adm-user {
  font-size: 14px; font-weight: 600; color: var(--text-secondary);
  display: flex; align-items: center; gap: 6px;
}

/* Stats */
.adm-stats { padding: 32px 0 0; }
.adm-stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.adm-stat-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 24px;
}
.adm-stat-highlight { border-color: var(--purple-light); }
.adm-stat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--bg-lavender); display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--purple); flex-shrink: 0;
}
.adm-stat-num {
  font-family: var(--font-display); font-size: 28px; font-weight: 800;
}
.adm-stat-label { font-size: 13px; color: var(--text-secondary); }

/* Title */
.adm-page-title {
  font-family: var(--font-display); font-size: 24px; font-weight: 800;
  margin-bottom: 20px;
}

/* Tabs */
.adm-tabs {
  display: flex; gap: 4px; border-bottom: 2px solid var(--border);
  margin-bottom: 24px; overflow-x: auto;
}
.adm-tab {
  padding: 12px 20px; font-size: 14px; font-weight: 600;
  color: var(--text-secondary); border-bottom: 2px solid transparent;
  margin-bottom: -2px; white-space: nowrap; transition: var(--transition);
  display: flex; align-items: center; gap: 8px;
}
.adm-tab:hover { color: var(--purple); }
.adm-tab.active { color: var(--purple); border-bottom-color: var(--purple); }
.adm-tab-badge {
  background: var(--purple); color: #fff; font-size: 11px;
  padding: 2px 8px; border-radius: 20px; font-weight: 700;
}

/* Submission cards */
.adm-submissions { display: flex; flex-direction: column; gap: 16px; }
.adm-sub-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.adm-sub-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; margin-bottom: 10px; flex-wrap: wrap;
}
.adm-sub-header h3 {
  font-family: var(--font-display); font-size: 17px; font-weight: 700;
  margin-right: 10px; display: inline;
}
.adm-sub-status {
  display: inline-flex; padding: 3px 12px; border-radius: 20px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.adm-status-pending  { background: #FEF3C7; color: #92400E; }
.adm-status-approved { background: #D1FAE5; color: #065F46; }
.adm-status-rejected { background: #FEE2E2; color: #991B1B; }
[data-theme="dark"] .adm-status-pending  { background: #78350F; color: #FDE68A; }
[data-theme="dark"] .adm-status-approved { background: #064E3B; color: #6EE7B7; }
[data-theme="dark"] .adm-status-rejected { background: #7F1D1D; color: #FCA5A5; }

.adm-sub-date { font-size: 12px; color: var(--text-secondary); white-space: nowrap; display: flex; align-items: center; gap: 5px; }
.adm-sub-tagline { font-size: 14px; color: var(--text); font-weight: 500; margin-bottom: 6px; }
.adm-sub-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; }
.adm-sub-meta {
  display: flex; gap: 20px; font-size: 13px; color: var(--text-secondary);
  flex-wrap: wrap; margin-bottom: 14px;
}
.adm-sub-meta span { display: flex; align-items: center; gap: 6px; }
.adm-sub-meta a { color: var(--purple); word-break: break-all; }
.adm-sub-meta a:hover { text-decoration: underline; }
.adm-sub-actions { display: flex; gap: 10px; }
.adm-sub-notes {
  font-size: 13px; color: var(--text-secondary); margin-top: 12px;
  padding-top: 12px; border-top: 1px solid var(--border-light);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .tl-sidebar { display: none; }
  .tl-layout { grid-template-columns: 1fr; }
  .tl-mobile-filter-btn { display: flex; align-items: center; }
}

@media (max-width: 768px) {
  .pg-form-grid { grid-template-columns: 1fr; }
  .pg-form-wrap { padding: 24px 20px; }
  .pg-cat-grid-full { grid-template-columns: repeat(2, 1fr); }
  .adm-stats-grid { grid-template-columns: 1fr; }
  .adm-sub-header { flex-direction: column; }
  .adm-login-card { padding: 32px 24px; }
  .tl-tool-row { flex-direction: column; gap: 14px; }
  .tl-tool-logo { width: 52px; height: 52px; }
  .tl-tool-footer { flex-direction: column; align-items: flex-start; gap: 10px; }
  .tl-tool-actions { margin-left: 0; }
  .pg-pagination { flex-wrap: wrap; }
}

@media (max-width: 430px) {
  .pg-page-hero { padding: 36px 0 28px; }
  .pg-cat-grid-full { grid-template-columns: 1fr 1fr; }
  .adm-sub-meta { flex-direction: column; gap: 8px; }
  .adm-sub-actions { flex-direction: column; }
}
