/* mindtested.com — single stylesheet, no framework, no unused CSS.
   Loaded with font-display:swap fonts and preload (see layout.ejs) to avoid render blocking. */

:root {
  --navy: #0B2545;
  --navy-light: #124170;
  --teal: #14B8A6;
  --teal-light: #5EEAD4;
  --ink: #1A2433;
  --muted: #5B7083;
  --border: #E4E9EF;
  --bg: #FAFBFC;
  --white: #FFFFFF;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-light); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* --- Header --- */
.site-header {
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  position: sticky; top: 0; z-index: 50;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: #C7D3E0; font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--white); text-decoration: none; }
.site-header .btn-outline { border-color: rgba(255,255,255,0.55); color: var(--white); }
.site-header .btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn {
  display: inline-block; padding: 10px 20px; border-radius: 8px;
  font-weight: 600; font-size: 14px; border: none; cursor: pointer;
}
.btn-primary { background: var(--teal); color: var(--navy); }
.btn-primary:hover { background: var(--teal-light); text-decoration: none; }
.btn-outline { background: transparent; border: 1.5px solid var(--navy); color: var(--navy); }

/* --- Hero --- */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); color: var(--white); padding: 3px 0; }
.hero h1 { font-size: clamp(28px, 4vw, 44px); margin: 0 0 16px; line-height: 1.15; }
.hero p { font-size: 18px; color: #C7D3E0; max-width: 560px; margin: 0 0 28px; }
.programme-pills { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.programme-pills a {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2);
  color: var(--white); padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
}

/* --- Cards / grids --- */
.section { padding: 3px 0; }
.section-title { font-size: 26px; margin: 0 0 28px; }
.grid { display: grid; gap: 3px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: 0 8px 24px rgba(11,37,69,0.08); transform: translateY(-2px); }
.card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }

/* Icon-only cards (subcategory browse cards) override the 16:9 thumbnail crop above */
.subcategory-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 28px 16px; gap: 12px;
}
.subcategory-card img { aspect-ratio: unset; width: 56px; height: 56px; object-fit: contain; }
.subcategory-card .card-title { margin: 0; }

.category-header { display: flex; align-items: center; gap: 16px; }
.category-header img { width: 56px; height: 56px; flex-shrink: 0; }
.card-body { padding: 3px; }
.card-title { font-size: 15px; font-weight: 600; margin: 0 0 3px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.badge-free { background: #E6FBF8; color: #0F766E; }
.badge-paid { background: #FFF4E6; color: #9A5B00; }

/* --- Testimonials --- */
.testimonial { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.testimonial p { font-style: italic; color: var(--ink); }
.testimonial .who { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 12px; }

/* --- Forms --- */
.form-group { margin-bottom: 18px; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 15px; font-family: var(--font);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.social-auth-row { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.social-btn {
  flex: 1; min-width: 130px; padding: 10px; border: 1.5px solid var(--border); border-radius: 8px;
  background: var(--white); text-align: center; font-weight: 600; font-size: 14px; color: var(--ink);
}

/* --- Footer --- */
.site-footer { background: var(--navy); color: #C7D3E0; padding: 48px 0 24px; margin-top: 3px; }
.site-footer a { color: #C7D3E0; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 3px; margin-bottom: 3px; }
.site-footer h4 { color: var(--white); font-size: 14px; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; font-size: 14px; }
.fine-print { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 13px; color: #8FA3B8; }

/* --- Breadcrumbs --- */
.breadcrumb-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  list-style: none; margin: 3px 0 0; padding: 18px 32px; width: 100%; box-sizing: border-box;
  background: #E6FBF8; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 15px;
}
.breadcrumb-item { display: inline-flex; }
.breadcrumb-item a { color: var(--navy-light); font-weight: 600; }
.breadcrumb-item span { color: var(--muted); font-weight: 600; }
.breadcrumb-item [title] { cursor: help; border-bottom: 1px dotted currentColor; }
.breadcrumb-sep { color: var(--border); font-weight: 400; }

/* The breadcrumb already carries its own top margin — without this override,
   the .section that immediately follows adds its full padding on top of that,
   making the gap bigger than the fixed 3px intended everywhere else. */
nav[aria-label="Breadcrumb"] + .section { padding-top: 3px; }

/* --- Body card (wraps main page content below the breadcrumb) --- */
.body-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px;
}

/* --- Two-column layout: main content + sidebar --- */
.content-layout { display: grid; grid-template-columns: 2.2fr 1fr; gap: 3px; align-items: start; }
@media (max-width: 860px) { .content-layout { grid-template-columns: 1fr; } }

.sidebar-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; margin-bottom: 3px;
}
.sidebar-card h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); margin: 0 0 14px; }
.sidebar-list { list-style: none; margin: 0; padding: 0; }
.sidebar-list li { margin-bottom: 4px; }
.sidebar-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 10px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--ink);
}
.sidebar-list a:hover { background: var(--bg); text-decoration: none; color: var(--navy); }
.sidebar-list .count { color: var(--muted); font-size: 12px; font-weight: 400; }
.sidebar-resource {
  display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border);
}
.sidebar-resource:last-child { border-bottom: none; }
.sidebar-resource img { width: 64px; height: 36px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.sidebar-resource-title { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
/* --- Rich text: editor container + rendered output --- */
.rich-editor-container { background: var(--white); border-radius: 8px; }
.rich-toolbar {
  display: flex; flex-wrap: wrap; gap: 4px; padding: 8px;
  background: var(--bg); border: 1.5px solid var(--border); border-bottom: none;
  border-radius: 8px 8px 0 0;
}
.rich-toolbar-btn {
  background: var(--white); border: 1px solid var(--border); border-radius: 6px;
  padding: 6px 10px; font-size: 13px; font-weight: 600; color: var(--ink);
  cursor: pointer; font-family: var(--font); line-height: 1;
}
.rich-toolbar-btn:hover { background: var(--bg); border-color: var(--navy-light); }
.rich-toolbar-sep { width: 1px; background: var(--border); margin: 2px 4px; }
.rich-editor-surface {
  min-height: 160px; padding: 14px 16px; border: 1.5px solid var(--border);
  border-radius: 0 0 8px 8px; font-family: var(--font); font-size: 15px; line-height: 1.6;
}
.rich-editor-surface:focus { outline: 2px solid var(--teal); outline-offset: -2px; }
.rich-editor-surface p { margin: 0 0 10px; }
.rich-editor-surface ul, .rich-editor-surface ol { margin: 0 0 10px; padding-left: 22px; }
.rich-editor-surface blockquote {
  margin: 0 0 10px; padding: 2px 14px; border-left: 3px solid var(--teal); color: var(--muted);
}
.rich-editor-surface h1, .rich-editor-surface h2, .rich-editor-surface h3 { margin: 14px 0 8px; }

.rich-content { line-height: 1.7; }
.rich-content p { margin: 0 0 14px; }
.rich-content ul, .rich-content ol { margin: 0 0 14px; padding-left: 22px; }
.rich-content li { margin-bottom: 6px; }
.rich-content blockquote {
  margin: 0 0 14px; padding: 4px 16px; border-left: 3px solid var(--teal); color: var(--muted);
}
.rich-content h1, .rich-content h2, .rich-content h3, .rich-content h4 { margin: 20px 0 10px; }
.rich-content code { background: var(--bg); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.rich-content pre { background: var(--bg); padding: 12px; border-radius: 8px; overflow-x: auto; }

/* --- Utility --- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.tool-embed-inline { margin-top: 3px; }
@media (max-width: 720px) {
  .nav-links { display: none; } /* replaced by mobile menu in main.js */
  .container { padding: 0 3px; }
  .body-card { padding: 16px; }
  .breadcrumb-card { padding: 12px 16px; }
  .hero h1 { font-size: 26px; }
}

/* --- Category banner image (add this to public/css/main.css) --- */
.body-card-banner-wrap { padding: 0; overflow: hidden; }
.category-banner { width: 100%; height: 280px; object-fit: cover; display: block; }
.body-card-content { padding: 32px; }



/* --- Admin category tree (add this to public/css/main.css) --- */
.cat-tree-root { list-style: none; margin: 16px 0 0; padding: 0; }
.cat-tree-children { list-style: none; margin: 0; padding-left: 26px; border-left: 1.5px dashed var(--border); }
.cat-tree-item { margin: 6px 0; }
.cat-tree-item details > summary { cursor: pointer; list-style: none; }
.cat-tree-item details > summary::-webkit-details-marker { display: none; }
.cat-tree-item details > summary::before { content: "▸"; display: inline-block; width: 16px; color: var(--muted); }
.cat-tree-item details[open] > summary::before { content: "▾"; }
.cat-tree-row {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 12px; border-radius: 8px; background: var(--bg);
}
.cat-tree-row img { width: 24px; height: 24px; }
.cat-tree-name { font-weight: 600; }
.cat-tree-badge {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px;
  padding: 2px 8px; border-radius: 999px; background: var(--teal); color: var(--navy);
}
.cat-tree-badge-off { background: var(--border); color: var(--muted); }
.cat-tree-actions { display: inline-flex; gap: 10px; margin-left: 8px; font-size: 13px; }
.cat-tree-actions a { color: var(--navy-light); font-weight: 600; }
.cat-tree-actions form { display: inline; }
.cat-tree-actions button {
  background: none; border: none; color: #B91C1C; font-weight: 600; font-size: 13px;
  cursor: pointer; padding: 0; font-family: var(--font);
}

/* --- Admin & creator panel: sidebar layout --- */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .admin-layout { grid-template-columns: 1fr; } }

.admin-sidebar {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 12px; position: sticky; top: 88px;
}
.admin-sidebar-brand {
  display: flex; align-items: center; gap: 10px; padding: 6px 10px 16px;
  border-bottom: 1px solid var(--border); margin-bottom: 12px;
}
.admin-sidebar-brand strong { font-size: 15px; color: var(--navy); }
.admin-sidebar-brand span { font-size: 12px; color: var(--muted); font-weight: 600; }
.admin-sidebar-section { margin-bottom: 18px; }
.admin-sidebar-section:last-child { margin-bottom: 0; }
.admin-sidebar-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted);
  font-weight: 700; margin: 0 0 6px; padding: 0 10px;
}
.admin-sidebar-link {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px;
  color: var(--ink); font-weight: 500; font-size: 14px; margin-bottom: 2px;
}
.admin-sidebar-link:hover { background: var(--bg); text-decoration: none; }
.admin-sidebar-link.active { background: var(--navy); color: var(--white); font-weight: 600; }
.admin-sidebar-link .icon { width: 18px; text-align: center; flex-shrink: 0; }
.admin-sidebar-count {
  margin-left: auto; background: var(--teal); color: var(--navy); font-size: 11px; font-weight: 800;
  padding: 1px 7px; border-radius: 999px; line-height: 1.5;
}
.admin-sidebar-link.active .admin-sidebar-count { background: var(--teal-light); }

/* --- Dashboard stat cards --- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.stat-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 4px;
}
.stat-card .stat-value { font-size: 26px; font-weight: 800; color: var(--navy); line-height: 1; }
.stat-card .stat-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.stat-card .stat-link { font-size: 13px; font-weight: 700; color: var(--navy-light); margin-top: 6px; }
.stat-card.stat-accent { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); border-color: transparent; }
.stat-card.stat-accent .stat-value { color: var(--white); }
.stat-card.stat-accent .stat-label { color: #C7D3E0; }
.stat-card.stat-accent .stat-link { color: var(--teal-light); }

/* --- Professional data table (admin/creator listings) --- */
.data-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; background: var(--white); }
.data-table th {
  text-align: left; padding: 12px 14px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--muted); font-weight: 700; background: var(--bg); border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--bg); }
.data-table .cell-title { font-weight: 600; color: var(--ink); }
.data-table .cell-muted { color: var(--muted); font-size: 13px; }
.data-table .cell-actions { white-space: nowrap; }
.data-table .cell-actions a { font-weight: 600; font-size: 13px; margin-right: 12px; }
.data-table .cell-actions a:last-child { margin-right: 0; }
.data-table .cell-actions button {
  background: none; border: none; color: #B91C1C; font-weight: 600; font-size: 13px;
  cursor: pointer; padding: 0; font-family: var(--font);
}
.data-table-empty { padding: 28px 16px; text-align: center; color: var(--muted); }

.status-pill {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  text-transform: capitalize;
}
.status-pill-published, .status-pill-active, .status-pill-approved, .status-pill-paid { background: #E6FBF8; color: #0F766E; }
.status-pill-draft, .status-pill-pending { background: #FFF4E6; color: #9A5B00; }
.status-pill-archived, .status-pill-rejected, .status-pill-suspended { background: #FDEAEA; color: #B91C1C; }

/* --- Cache management --- */
.cache-type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.cache-type-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.cache-type-head { display: flex; align-items: flex-start; gap: 12px; }
.cache-type-head .icon { font-size: 22px; line-height: 1; }
.cache-type-head h3 { margin: 0 0 4px; font-size: 15px; color: var(--navy); }
.cache-type-head p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* --- Contact form honeypot: hidden from sighted users, but present in the
   DOM (unlike display:none/visibility:hidden, which some spam bots detect
   and skip) so a bot auto-filling every field trips it. --- */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Star rating input (resource comment form) ---
   Radios are in DOM order 5,4,3,2,1; row-reverse flips the VISUAL order to
   1..5 left-to-right (natural reading order) while keeping the CSS trick
   working: checking/hovering a star highlights itself plus every label
   AFTER it in DOM order, which — thanks to row-reverse — are the ones
   visually to its LEFT, i.e. exactly the stars that should light up. */
.star-rating-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-rating-input input {
  position: absolute; opacity: 0; width: 1px; height: 1px; overflow: hidden;
}
.star-rating-input label {
  font-size: 28px; color: var(--border); cursor: pointer; line-height: 1; transition: color .12s ease;
}
.star-rating-input input:focus-visible + label { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 3px; }
.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
  color: #F2C94C;
}

/* --- Resource cards (category page resource listing) ---
   Deliberately distinct from the generic .card browse tiles: overlaid type
   and price chips on the thumbnail, a gradient icon fallback when there's no
   image, and a proper star rating in the meta row instead of just a price
   badge under a photo. */
.resource-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px;
}
.resource-card {
  display: block; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.resource-card:hover {
  box-shadow: 0 12px 28px rgba(11,37,69,0.12); transform: translateY(-3px);
  border-color: var(--teal); text-decoration: none;
}
.resource-card-media { position: relative; aspect-ratio: 16/9; background: var(--bg); overflow: hidden; }
.resource-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.resource-card-media-fallback {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}
.resource-card-media-fallback span { font-size: 44px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25)); }

.resource-card-type-chip {
  position: absolute; top: 10px; left: 10px; background: rgba(11,37,69,0.72); color: var(--white);
  font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .2px;
  backdrop-filter: blur(2px);
}
.resource-card-price-chip {
  position: absolute; top: 10px; right: 10px; font-size: 12px; font-weight: 800;
  padding: 4px 11px; border-radius: 999px; box-shadow: 0 2px 8px rgba(11,37,69,0.2);
}
.resource-card-price-chip.is-free { background: var(--teal); color: var(--navy); }
.resource-card-price-chip.is-paid { background: var(--white); color: var(--navy); }

.resource-card-body { padding: 14px 16px 16px; }
.resource-card-title {
  margin: 0 0 8px; font-weight: 700; font-size: 15px; color: var(--ink); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.7em;
}
.resource-card-meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.resource-card-stars { color: #B8860B; font-weight: 700; display: inline-flex; align-items: center; gap: 3px; }
.resource-card-review-count { color: var(--muted); font-weight: 500; }
.resource-card-meta-muted { color: var(--muted); font-weight: 500; }
.resource-card-meta-dot { color: var(--border); }

@media (max-width: 480px) {
  .resource-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .resource-card-body { padding: 10px 12px 12px; }
}

/* --- Header account dropdown --- */
.account-menu { position: relative; }
.account-menu-trigger {
  display: flex; align-items: center; gap: 8px; background: var(--white); border: 1.5px solid var(--border);
  border-radius: 999px; padding: 6px 12px 6px 6px; cursor: pointer; font-family: var(--font);
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.account-menu-trigger:hover { border-color: var(--navy-light); }
.account-menu-avatar {
  width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: flex;
  align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex-shrink: 0; overflow: hidden;
}
.account-menu-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-menu-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-caret { font-size: 10px; color: var(--muted); transition: transform .15s ease; }
.account-menu.open .account-menu-caret { transform: rotate(180deg); }

.account-menu-panel {
  display: none; position: absolute; top: calc(100% + 8px); right: 0; min-width: 240px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(11,37,69,0.16);
  padding: 8px; z-index: 60;
}
.account-menu.open .account-menu-panel { display: block; }
.account-menu-header { padding: 10px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.account-menu-header strong { display: block; font-size: 14px; color: var(--ink); }
.account-menu-header span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; word-break: break-all; }
.account-menu-panel a, .account-menu-logout {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: 14px;
  font-weight: 500; color: var(--ink); width: 100%; text-align: left; background: none; border: none;
  cursor: pointer; font-family: var(--font);
}
.account-menu-panel a:hover, .account-menu-logout:hover { background: var(--bg); text-decoration: none; }
.account-menu-panel .icon { width: 18px; text-align: center; flex-shrink: 0; }
.account-menu-logout { color: #B91C1C; }
.account-menu-divider { height: 1px; background: var(--border); margin: 6px 0; }

@media (max-width: 480px) {
  .account-menu-panel {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0; border-radius: 16px 16px 0 0;
    min-width: 0; padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -12px 32px rgba(11,37,69,0.18);
  }
  .account-menu-name { display: none; }
}