/* Modern Astro-inspired Minimalist Stylesheet with 1990s Retro Directory Aesthetics */
:root {
  --bg: #0d1117;
  --bg-card: #161b22;
  --bg-code: #1c2128;
  --bg-retro: #080c10;
  --border: #30363d;
  --border-subtle: #21262d;
  --border-retro: #2d333b;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --text-retro: #adbac7;
  --accent: #ff5d01;
  --accent-light: #ff7d33;
  --link: #58a6ff;
  --link-hover: #79c0ff;
  --card-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Courier New", monospace;
}

[data-theme="dark"], html[data-theme="dark"], body[data-theme="dark"] {
  --bg: #0d1117;
  --bg-card: #161b22;
  --bg-code: #1c2128;
  --bg-retro: #080c10;
  --border: #30363d;
  --border-subtle: #21262d;
  --border-retro: #2d333b;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --text-retro: #adbac7;
  --accent: #ff5d01;
  --accent-light: #ff7d33;
  --link: #58a6ff;
  --link-hover: #79c0ff;
  --card-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
}

[data-theme="light"], html[data-theme="light"], body[data-theme="light"] {
  --bg: #f6f8fa;
  --bg-card: #ffffff;
  --bg-code: #f1f3f5;
  --bg-retro: #f0f2f5;
  --border: #d0d7de;
  --border-subtle: #eaeef2;
  --border-retro: #c5cbd2;
  --text: #1f2328;
  --text-muted: #656d76;
  --text-retro: #24292f;
  --accent: #e55300;
  --accent-light: #ff6b1a;
  --link: #0969da;
  --link-hover: #1a7f37;
  --card-shadow: 0 10px 32px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.65;
  padding: 1.5rem 1rem 3rem 1rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.page-wrapper {
  max-width: 980px;
  margin: 0 auto;
}

/* ==========================================================================
   Top Header & Navigation (OUTSIDE the Card, Compact & Sleek)
   ========================================================================== */
.top-header {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.2rem;
  padding: 0 0.25rem;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--link);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.crumb-sep {
  color: var(--text-muted);
  opacity: 0.5;
}

.current-crumb {
  color: var(--text);
  font-weight: 600;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

/* Copy Folder Button */
.copy-folder-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--bg-retro);
  border: 1px solid var(--border-retro);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.copy-folder-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(255, 93, 1, 0.08);
}

.copy-folder-btn.copied {
  color: #2da44e;
  border-color: #2da44e;
  background: rgba(45, 164, 78, 0.12);
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  background: var(--bg-retro);
  border: 1px solid var(--border-retro);
  border-radius: 20px;
  padding: 2px;
  gap: 2px;
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.15rem 0.5rem;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.theme-btn:hover {
  color: var(--text);
}

.theme-btn.active {
  background: var(--bg-card);
  color: var(--text);
  font-weight: 600;
  border-color: var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .theme-btn-dark.active {
  color: #ff9e64;
  border-color: rgba(255, 125, 51, 0.4);
}

[data-theme="light"] .theme-btn-light.active {
  color: #0969da;
  border-color: rgba(9, 105, 218, 0.4);
}


.parent-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.parent-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
  transform: translateY(-1px);
}

.storagify-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  background: rgba(255, 93, 1, 0.12);
  color: var(--accent);
  border: 1px solid rgba(255, 93, 1, 0.28);
  text-decoration: none;
  transition: all 0.15s ease;
}

.storagify-badge:hover {
  background: var(--accent);
  color: #ffffff;
}

/* ==========================================================================
   1990s Retro Monospace (<tt>) Subfolder Browser
   ========================================================================== */
.subfolders-card {
  background: var(--bg-retro);
  border: 1px solid var(--border-retro);
  border-radius: 6px;
  padding: 0.6rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: var(--font-mono);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.subfolders-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--border-retro);
  padding-bottom: 0.3rem;
  margin-bottom: 0.15rem;
}

.nav-bar-label {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.subfolders-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.subfolder-item {
  display: block;
}

.subfolder-item-extra {
  display: none;
}

.subfolder-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: transparent;
  color: var(--link);
  text-decoration: none;
  font-size: 0.76rem;
  font-family: var(--font-mono);
  line-height: 1.35;
  transition: all 0.1s ease;
}

.subfolder-link:hover {
  background: rgba(255, 93, 1, 0.12);
  color: var(--accent);
  text-decoration: underline;
}

.subfolder-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subfolder-badge {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.subfolder-link:hover .subfolder-badge {
  color: var(--accent);
}

.subfolders-expand-btn {
  background: transparent;
  border: 1px dotted var(--border-retro);
  color: var(--link);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.74rem;
  font-family: var(--font-mono);
  cursor: pointer;
  margin-top: 0.2rem;
  align-self: flex-start;
  transition: all 0.1s ease;
  user-select: none;
}

.subfolders-expand-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(255, 93, 1, 0.05);
}

/* Sibling Docs Bar (1990s <tt> look) */
.sibling-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-family: var(--font-mono);
  padding: 0.3rem 0.6rem;
  background: var(--bg-retro);
  border: 1px solid var(--border-retro);
  border-radius: 6px;
}

.doc-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: var(--bg-code);
  border: 1px solid var(--border);
  color: var(--link);
  text-decoration: none;
  font-size: 0.74rem;
  font-family: var(--font-mono);
  transition: all 0.15s ease;
}

.doc-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: underline;
}

/* ==========================================================================
   The Beautiful Cornered Page Card (4 Rounded Corners, Shadow, Clean)
   ========================================================================== */
.page-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 3rem;
  box-shadow: var(--card-shadow);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

@media (max-width: 768px) {
  .page-card {
    padding: 1.5rem 1.25rem;
    border-radius: 12px;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  font-weight: 600;
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

h1 { font-size: 2.2rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; margin-top: 0; }
h2 { font-size: 1.6rem; border-bottom: 1px solid var(--border); padding-bottom: 0.4rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p, ul, ol, table, blockquote {
  margin-bottom: 1.2rem;
}

ul, ol {
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.35rem;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Code & Inline Backticks */
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background-color: var(--bg-code);
  color: var(--accent);
  padding: 0.2em 0.4em;
  border-radius: 6px;
  border: 1px solid var(--border);
}

pre {
  background-color: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  position: relative;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text);
  font-size: 0.92em;
}

pre.mermaid {
  background: transparent !important;
  border: none !important;
  text-align: center;
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
  overflow-x: auto;
}

/* Media styling: Images & Videos */
.image-container, .video-container {
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000000;
  display: inline-block;
  max-width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  transition: transform 0.2s ease;
}

a img:hover {
  transform: scale(1.01);
}

video {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  background: #000;
}

/* Standard Markdown Tables */
.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.markdown-body th, .markdown-body td {
  border: 1px solid var(--border);
  padding: 0.65rem 1rem;
  text-align: left;
}

.markdown-body th {
  background-color: var(--bg-code);
  font-weight: 600;
}

.markdown-body tr:nth-child(even) {
  background-color: rgba(125, 125, 125, 0.04);
}

/* Blockquotes */
blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ==========================================================================
   1990s Boring Retro Apache Directory Listing & Gallery Card
   ========================================================================== */
.apache-card {
  background: var(--bg-retro);
  border: 1px solid var(--border-retro);
  border-radius: 6px;
  padding: 1.5rem 2rem;
  font-family: var(--font-mono);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.apache-index-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  border-bottom: 1px dashed var(--border-retro);
  padding-bottom: 0.5rem;
}

.apache-index-header h1, .apache-index-header h2, .apache-index-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-family: var(--font-mono);
  border-bottom: none;
  padding-bottom: 0;
  letter-spacing: -0.02em;
}

.apache-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--bg-code);
  color: var(--text-muted);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  border: 1px solid var(--border-retro);
}

.apache-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  line-height: 1.35;
  margin: 0.5rem 0 1.25rem 0;
}

.apache-table th {
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  text-align: left;
  padding: 0.35rem 0.5rem;
  border-bottom: 1px dashed var(--border-retro);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.apache-table td {
  padding: 0.22rem 0.5rem;
  border-bottom: none;
  color: var(--text-retro);
  white-space: nowrap;
}

.apache-table tr:hover td {
  background: rgba(255, 93, 1, 0.1);
}

.apache-table .col-icon {
  width: 28px;
  text-align: center;
}

.apache-table a {
  font-weight: 500;
  color: var(--link);
}

.apache-table a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Gallery Layout for Directory Media Preview */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.gallery-card {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem;
  transition: transform 0.15s, border-color 0.15s;
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
}

.gallery-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.gallery-card .card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.gallery-card .card-title {
  font-weight: 600;
  font-size: 0.8rem;
  word-break: break-all;
  line-height: 1.25;
}

.gallery-card .card-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 0.4rem;
}

.gallery-card img, .gallery-card video {
  max-height: 130px;
  object-fit: cover;
  width: 100%;
  border-radius: 4px;
  margin-bottom: 0.4rem;
}

.gallery-card .audio-card-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.25rem;
  background: var(--bg-code);
  border-radius: 4px;
  margin-bottom: 0.4rem;
}

.gallery-card .audio-card-box .audio-icon {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.gallery-card .audio-card-box audio {
  width: 100%;
  max-height: 32px;
}

.audio-container {
  margin: 1rem 0;
}

.audio-container audio {
  width: 100%;
  max-width: 420px;
}

/* ==========================================================================
   Storagify Lightbox Modal & Carousel
   ========================================================================== */
.storagify-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
}

.storagify-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
}

.lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-media-wrapper {
  max-width: 85vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.lightbox-media-element {
  max-width: 85vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}

.lightbox-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: #e6edf3;
  background: rgba(22, 27, 34, 0.85);
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  border: 1px solid #30363d;
}

.lightbox-counter {
  font-weight: 600;
  color: var(--accent);
}

.lightbox-caption {
  max-width: 400px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lightbox-download {
  color: var(--link);
  text-decoration: none;
  font-size: 0.85rem;
}

.lightbox-download:hover {
  text-decoration: underline;
}

.lightbox-btn {
  position: absolute;
  background: rgba(22, 27, 34, 0.85);
  border: 1px solid #30363d;
  color: #fff;
  font-size: 1.8rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
  z-index: 10;
  user-select: none;
}

.lightbox-btn:hover {
  background: var(--accent);
  transform: scale(1.08);
}

.lightbox-close {
  top: -40px;
  right: -20px;
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
}

.lightbox-prev {
  left: -70px;
  top: calc(50% - 25px);
}

.lightbox-next {
  right: -70px;
  top: calc(50% - 25px);
}

@media (max-width: 768px) {
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-close { top: 10px; right: 10px; }
}

/* ==========================================================================
   Footer Outside Card
   ========================================================================== */
footer {
  margin-top: 1.75rem;
  padding: 0.5rem 0.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ==========================================================================
   1990s Windows 95 / Netscape / Apache Basic Auth Modal Dialog
   ========================================================================== */
.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-modal {
  width: 440px;
  max-width: 92vw;
  background: #c0c0c0;
  color: #000000;
  font-family: "MS Sans Serif", "Tahoma", "Segoe UI", sans-serif;
  font-size: 12px;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.6);
  padding: 3px;
  user-select: none;
}

.auth-modal-titlebar {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #ffffff;
  padding: 3px 5px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.02em;
}

.auth-modal-title {
  display: flex;
  align-items: center;
  gap: 5px;
}

.auth-modal-close {
  background: #c0c0c0;
  color: #000000;
  width: 16px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #808080;
  border-bottom: 1px solid #808080;
  cursor: pointer;
  line-height: 1;
}

.auth-modal-close:active {
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
}

.auth-modal-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-modal-intro {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.auth-lock-art {
  font-size: 28px;
  line-height: 1;
}

.auth-intro-text {
  font-size: 11.5px;
  line-height: 1.4;
  color: #000000;
}

.auth-site-msg strong {
  color: #000080;
}

.auth-site-msg code {
  font-family: var(--font-mono);
  background: #ffffff;
  color: #000000;
  padding: 1px 4px;
  border: 1px solid #808080;
}

.auth-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-field-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-field-row label {
  width: 90px;
  font-size: 11.5px;
  text-align: right;
  flex-shrink: 0;
  color: #000000;
}

.auth-field-row input[type="text"],
.auth-field-row input[type="password"] {
  flex: 1;
  padding: 3px 5px;
  font-family: var(--font-mono);
  font-size: 12px;
  background: #ffffff;
  color: #000000;
  border-top: 2px solid #808080;
  border-left: 2px solid #808080;
  border-right: 2px solid #dfdfdf;
  border-bottom: 2px solid #dfdfdf;
  outline: none;
}

.auth-field-row input:focus {
  background: #ffffff;
  border-color: #000080;
}

.auth-remember-row {
  margin-top: 2px;
}

.auth-remember-label {
  width: auto !important;
  text-align: left !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.auth-error {
  color: #a00000;
  background: #ffe0e0;
  border: 1px solid #a00000;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: bold;
}

.auth-modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}

.auth-btn {
  min-width: 75px;
  padding: 4px 12px;
  font-family: "MS Sans Serif", "Tahoma", sans-serif;
  font-size: 11.5px;
  background: #c0c0c0;
  color: #000000;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #808080;
  border-bottom: 2px solid #808080;
  cursor: pointer;
  outline: none;
}

.auth-btn:active {
  border-top: 2px solid #808080;
  border-left: 2px solid #808080;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  padding: 5px 11px 3px 13px;
}

.auth-btn-ok {
  font-weight: bold;
  border-color: #000000;
}

/* Lock Button in Top Actions */
.lock-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--bg-retro);
  border: 1px solid var(--border-retro);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.lock-btn:hover {
  border-color: #ff5d01;
  color: #ff5d01;
}

@keyframes authShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.shake {
  animation: authShake 0.4s ease-in-out;
}

