:root {
  --bg-main: #090d16;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(56, 189, 248, 0.3);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-cyan: #38bdf8;
  --accent-emerald: #34d399;
  --accent-amber: #fbbf24;
  --accent-purple: #c084fc;
  --accent-rose: #f43f5e;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-serif: 'Newsreader', Georgia, serif;
}

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

body {
  background: radial-gradient(circle at 50% 0%, rgba(30, 58, 138, 0.25) 0%, rgba(9, 13, 22, 1) 80%);
  color: var(--text-primary);
  font-family: var(--font-main);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.app-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

/* Header */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.top-nav h1 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.top-nav .subtext {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.nav-actions {
  display: flex;
  gap: 10px;
}

.btn-primary, .btn-secondary {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
}

.btn-primary {
  background: #0284c7;
  color: #fff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}
.btn-primary:hover {
  background: #0369a1;
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border-color: var(--border-color);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Tabs Navigation */
.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2rem;
  background: rgba(15, 23, 42, 0.6);
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.tab-btn {
  flex: 1 1 auto;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-align: center;
}

.tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border: 1px solid var(--border-highlight);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.1);
}

/* Content Container & Panes */
.tab-pane {
  display: none;
  animation: fadeIn 0.25s ease forwards;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(12px);
}

.hero-card {
  border-color: var(--border-highlight);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 58, 138, 0.3));
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.08);
}

.badge-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-cyan);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.badge-mini {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(52, 211, 153, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.hero-title {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 10px;
  color: #fff;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 1rem;
  color: #cbd5e1;
  max-width: 860px;
  margin-bottom: 1.75rem;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.meta-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem;
}

.meta-box .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

.meta-box .val {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-mono);
  display: block;
  margin: 4px 0 2px;
}

.meta-box .sub {
  font-size: 0.78rem;
  color: var(--accent-emerald);
}

/* Grids */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.grid-3col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

@media (max-width: 860px) {
  .grid-2col {
    grid-template-columns: 1fr;
  }
}

/* Letter Preview */
.letter-preview {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  line-height: 1.65;
  color: #e2e8f0;
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.letter-preview p {
  margin-bottom: 0.85rem;
}

.letter-preview ul {
  margin: 0.5rem 0 1rem 1.5rem;
}

/* Projects */
.project-item {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.project-item p {
  font-size: 0.88rem;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.link-btn {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-decoration: none;
}
.link-btn:hover {
  text-decoration: underline;
}

/* Document Sections */
.doc-section {
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-color);
}
.doc-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.doc-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}

.feature-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
}

.feature-box h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 6px;
}

.feature-box p {
  font-size: 0.85rem;
  color: #cbd5e1;
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0;
}

.data-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.data-table .num {
  text-align: right;
  font-family: var(--font-mono);
}

.data-table .bold {
  font-weight: 700;
  color: #fff;
}

.data-table .highlight {
  color: var(--accent-cyan);
  font-weight: 800;
}

.data-table .profit {
  color: var(--accent-emerald);
  font-weight: 800;
  font-size: 1.15rem;
}

.data-table .sub-profit {
  color: var(--accent-emerald);
  font-size: 0.85rem;
}

.data-table .neg {
  color: var(--text-muted);
}

.data-table .pos {
  color: var(--accent-emerald);
  font-weight: 700;
}

.data-table.compact td, .data-table.compact th {
  padding: 8px 10px;
}

.data-table tfoot th {
  border-top: 2px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 12px;
}

.table-responsive {
  overflow-x: auto;
}

.table-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.note-box {
  margin-top: 1rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid var(--border-highlight);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.83rem;
  color: #bae6fd;
}

/* SWOT Grid */
.swot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.swot-box {
  padding: 1.25rem;
  border-radius: 12px;
  font-size: 0.85rem;
}

.swot-box strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.swot-box ul {
  padding-left: 1.2rem;
  color: #cbd5e1;
}

.swot-box.s { background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.3); color: var(--accent-emerald); }
.swot-box.w { background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.3); color: var(--accent-amber); }
.swot-box.o { background: rgba(56, 189, 248, 0.1); border: 1px solid rgba(56, 189, 248, 0.3); color: var(--accent-cyan); }
.swot-box.t { background: rgba(244, 63, 94, 0.1); border: 1px solid rgba(244, 63, 94, 0.3); color: var(--accent-rose); }

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.skill-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
}

.skill-icon {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.skill-card h4 {
  font-size: 0.98rem;
  color: #fff;
  margin-bottom: 6px;
}

.skill-card p {
  font-size: 0.82rem;
  color: #cbd5e1;
}

/* ========================================================================= */
/* CV CONTROLS & SHEETS                                                      */
/* ========================================================================= */

.cv-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.5rem;
  background: rgba(15, 23, 42, 0.8);
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.cv-control-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.control-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.switch-pills, .lang-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.switch-btn, .lang-btn {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-family: var(--font-main);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.switch-btn:hover, .lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.switch-btn.active, .lang-btn.active {
  background: #0284c7;
  color: #fff;
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.4);
}

.lang-btn.active {
  background: #047857;
  border-color: #34d399;
  box-shadow: 0 0 12px rgba(4, 120, 87, 0.4);
}

.cv-sheet {
  background: #ffffff;
  color: #111827;
  border-radius: 12px;
  padding: 3rem 2.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-family: var(--font-main);
}

.cv-header {
  border-bottom: 2px solid #111827;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.cv-name {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
}

.cv-role {
  font-size: 1.05rem;
  font-weight: 600;
  color: #475569;
  margin: 4px 0 6px;
}

.cv-contact {
  font-size: 0.85rem;
  color: #64748b;
  font-family: var(--font-mono);
}

.cv-section {
  margin-bottom: 1.75rem;
}

.cv-section-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 4px;
  margin-bottom: 0.75rem;
}

.cv-body-text {
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.6;
}

.cv-item {
  margin-bottom: 1.2rem;
}

.cv-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.95rem;
  color: #0f172a;
  margin-bottom: 4px;
}

.cv-link {
  font-size: 0.8rem;
  color: #0284c7;
  font-family: var(--font-mono);
  margin-left: 6px;
}

.cv-date {
  font-size: 0.8rem;
  color: #64748b;
  font-family: var(--font-mono);
}

.cv-item p {
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.55;
}

.cv-list {
  padding-left: 1.2rem;
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.6;
}

.cv-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.6;
}

/* ========================================================================= */
/* OFFICIAL BUNDESAGENTUR FÜR ARBEIT FORM (BA GZ 04 - 01/2025)               */
/* ========================================================================= */

.form-page-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.official-ba-page {
  background: #ffffff;
  color: #000000;
  border: 1px solid #94a3b8;
  border-radius: 4px;
  padding: 2.5rem 2.75rem 2rem;
  font-family: Arial, Helvetica, sans-serif;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  position: relative;
  font-size: 0.88rem;
}

.ba-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.fake-qr-block {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qr-pattern {
  width: 32px;
  height: 32px;
  background-image: 
    radial-gradient(#000 2px, transparent 2px),
    radial-gradient(#000 2px, transparent 2px);
  background-size: 8px 8px;
  background-position: 0 0, 4px 4px;
  border: 2px solid #000;
}

.qr-num {
  font-weight: 700;
  font-size: 1rem;
}

.ba-logo-mark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  color: #000000;
}

.ba-red-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e11d48;
  display: inline-block;
}

.ba-address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.ba-address-box {
  border: 1px solid #000;
  padding: 10px 14px;
  min-height: 120px;
  position: relative;
}

.ba-box-num {
  position: absolute;
  top: -18px;
  left: 0;
  font-size: 0.8rem;
  font-weight: 700;
}

.ba-box-label {
  position: absolute;
  top: -18px;
  left: 18px;
  font-size: 0.8rem;
  color: #000;
}

.ba-box-content {
  font-size: 0.88rem;
  line-height: 1.45;
}

.ba-title-block {
  margin: 1.5rem 0 1.25rem;
}

.ba-main-title {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.25;
  color: #000;
  margin-bottom: 4px;
}

.ba-sub-title {
  font-size: 0.85rem;
  color: #333;
  padding-bottom: 8px;
  border-bottom: 2px solid #000;
}

.ba-info-banner {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.ba-info-banner .info-i {
  background: #0284c7;
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.ba-section {
  margin-bottom: 1.5rem;
}

.ba-sec-head {
  font-size: 1.05rem;
  font-weight: 800;
  color: #000;
  margin-bottom: 0.75rem;
}

.ba-field-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
}

.ba-field-block {
  margin-bottom: 0.85rem;
}

.ba-field-num {
  font-weight: 700;
  min-width: 18px;
}

.ba-field-text {
  flex: 1;
}

.ba-radio-group {
  display: flex;
  gap: 16px;
  font-weight: 700;
  min-width: 140px;
  justify-content: flex-end;
}

.ba-radio.checked {
  color: #000;
}

.ba-check-list {
  margin-top: 6px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.86rem;
}

.ba-check-item.checked {
  font-weight: 600;
  color: #000;
}

.ba-input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.ba-input-col {
  display: flex;
  flex-direction: column;
}

.ba-input-col label {
  font-size: 0.75rem;
  margin-bottom: 2px;
}

.ba-input-val {
  border: 1px solid #000;
  padding: 6px 10px;
  background: #f8fafc;
  font-weight: 700;
  font-size: 0.9rem;
  min-height: 32px;
}

.ba-summary-textarea {
  border: 1px solid #000;
  padding: 12px 14px;
  background: #fdfdfd;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-top: 8px;
}

.ba-summary-textarea p {
  margin-bottom: 0.75rem;
}
.ba-summary-textarea p:last-child {
  margin-bottom: 0;
}

.ba-legal-note {
  font-size: 0.8rem;
  color: #444;
  margin: 1.25rem 0 1rem;
}

.ba-sig-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 1rem;
  align-items: flex-end;
}

.ba-sig-col label {
  font-size: 0.75rem;
  display: block;
  margin-bottom: 2px;
}

.ba-sig-val {
  border: 1px solid #000;
  padding: 6px 10px;
  background: #f8fafc;
  font-size: 0.88rem;
  min-height: 42px;
  display: flex;
  align-items: center;
}

.ba-sig-box {
  border: 1px solid #000;
  min-height: 70px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.8rem;
}

.ba-page-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 10px;
  border-top: 1px solid #000;
  font-size: 0.8rem;
}

.ba-barcode-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ba-barcode-lines {
  font-family: monospace;
  letter-spacing: 2px;
  font-weight: 800;
}

/* Footer */
.footer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

/* PRINT STYLESHEET (A4 PDF EXPORT) */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .no-print {
    display: none !important;
  }

  .app-layout {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .tab-pane {
    display: block !important;
    page-break-after: always;
  }

  .official-ba-page {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    page-break-after: always;
  }

  .card, .cv-sheet {
    box-shadow: none !important;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    color: #000000 !important;
    padding: 1.5rem !important;
  }

  .meta-box, .feature-box, .skill-card, .project-item {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #000000 !important;
  }

  .hero-title, .top-nav h1, h2, h3, h4, .meta-box .val, .data-table th, .data-table td {
    color: #000000 !important;
  }

  .data-table .highlight, .data-table .profit {
    color: #047857 !important;
  }
}

/* Smooth Scrolling & Clickable Citations */
html {
  scroll-behavior: smooth;
}

.cite-link {
  display: inline-block;
  padding: 1px 5px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 4px;
  text-decoration: none;
  vertical-align: baseline;
  line-height: 1;
  transition: all 0.2s ease;
  margin: 0 2px;
}

.cite-link:hover {
  background: var(--accent-cyan);
  color: #090d16;
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.bib-entry {
  position: relative;
  padding: 10px 14px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  list-style-position: inside;
}

.bib-entry:target {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}

.bib-ext-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #60a5fa;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  margin-top: 6px;
  padding: 3px 10px;
  background: rgba(96, 165, 250, 0.1);
  border-radius: 4px;
  border: 1px solid rgba(96, 165, 250, 0.25);
  transition: all 0.2s ease;
}

.bib-ext-link:hover {
  background: #2563eb;
  border-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}
