:root {
  --primary-color: #5e3b1d;
  --secondary-color: #003366;
  --accent-gold: #d4af37;
  --bg-light: #fdfaf6;
  --bg-dark: #1a1a1a;
  --text-dark: #2c1a0f;
  --text-light: #eee;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

.sacred-nav {
  background: var(--primary-color);
  padding: 1rem 2rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.sacred-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.sacred-nav a:hover, .sacred-nav a.active, .sacred-nav a.nav-highlight {
  background: rgba(255,255,255,0.2);
}

.hero-section, .portal-header, .constitution-header {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
}

.seal-icon-large {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.hero-section h1, .portal-header h1, .constitution-header h1 {
  font-size: 2.5rem;
  margin: 0.5rem 0;
}

.hero-tagline {
  font-size: 1.2rem;
  opacity: 0.9;
  margin: 0.5rem 0;
}

.hero-subtitle {
  font-size: 1rem;
  opacity: 0.8;
}

.search-section {
  max-width: 600px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.search-input {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  outline: none;
}

.search-input:focus {
  border-color: var(--primary-color);
}

.section-block {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section-title {
  color: var(--primary-color);
  border-bottom: 2px solid var(--accent-gold);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: #666;
  margin-bottom: 1.5rem;
}

.coin-showcase .coin-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.coin-stat {
  text-align: center;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: 8px;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.25rem;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.contract-info {
  background: #f5f5f5;
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.contract-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
  flex-wrap: wrap;
}

.contract-label {
  font-weight: bold;
  min-width: 140px;
}

.contract-hash {
  font-family: monospace;
  font-size: 0.85rem;
  background: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  word-break: break-all;
}

.copy-btn {
  background: var(--secondary-color);
  color: #fff;
  border: none;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
}

.copy-btn:hover {
  opacity: 0.9;
}

.wallet-widget, .transfer-section, .defi-section {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.network-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #e8f5e9;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.network-dot {
  width: 10px;
  height: 10px;
  background: #4caf50;
  border-radius: 50%;
}

.wallet-connected {
  color: #4caf50;
  font-weight: bold;
}

.wallet-disconnected {
  color: #666;
}

.balance-display {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.balance-row {
  display: flex;
  justify-content: space-between;
  margin: 0.5rem 0;
}

.balance-eth, .balance-value {
  font-weight: bold;
  font-family: monospace;
}

.coin-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
  margin: 0.25rem;
}

.coin-btn-wallet {
  background: var(--secondary-color);
  color: #fff;
}

.coin-btn-primary {
  background: var(--primary-color);
  color: #fff;
}

.coin-btn-secondary {
  background: #666;
  color: #fff;
}

.coin-btn-verify {
  background: var(--accent-gold);
  color: #000;
}

.coin-btn-transfer {
  background: #4caf50;
  color: #fff;
}

.coin-btn-defi {
  background: #9c27b0;
  color: #fff;
}

.coin-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.form-group {
  margin: 1rem 0;
}

.form-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.transfer-input {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.defi-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.defi-tab {
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  border-radius: 4px;
}

.defi-tab.active {
  background: var(--secondary-color);
  color: #fff;
  border-color: var(--secondary-color);
}

.defi-tab-content {
  display: none;
}

.defi-tab-content.active {
  display: block;
}

.coin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.tech-tag {
  background: var(--bg-light);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
}

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

.quick-link {
  display: block;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
  transition: all 0.2s;
}

.quick-link:hover {
  background: var(--primary-color);
  color: #fff;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  border-radius: 20px;
  font-size: 0.9rem;
}

.filter-btn.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

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

.scroll-card {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.scroll-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.scroll-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.scroll-title {
  font-weight: 500;
  color: var(--primary-color);
}

.scroll-category {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.25rem;
}

.sacred-footer {
  text-align: center;
  padding: 2rem;
  background: var(--primary-color);
  color: #fff;
  margin-top: 2rem;
}

.sacred-footer p {
  margin: 0.25rem 0;
  opacity: 0.9;
}

.hierarchy-display {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 500px;
  margin: 1rem auto;
}

.hierarchy-level {
  padding: 0.75rem 1rem;
  border-radius: 4px;
  text-align: center;
  font-weight: 500;
}

.level-1 { background: #fff3cd; color: #856404; }
.level-2 { background: #d4edda; color: #155724; }
.level-3 { background: #cce5ff; color: #004085; }
.level-4 { background: #e2d5f3; color: #563d7c; }
.level-5 { background: #f5f5f5; color: #333; }

.document-categories {
  display: grid;
  gap: 2rem;
}

.doc-category h3 {
  color: var(--secondary-color);
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.doc-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.doc-btn {
  padding: 0.5rem 1rem;
  background: var(--bg-light);
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.doc-btn:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.draft-form .form-section {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

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

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.portal-btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}

.btn-preview { background: var(--secondary-color); color: #fff; }
.btn-generate { background: var(--primary-color); color: #fff; }
.btn-reset { background: #666; color: #fff; }
.btn-print { background: #333; color: #fff; }
.btn-download { background: #4caf50; color: #fff; }
.btn-file { background: var(--accent-gold); color: #000; }

.document-preview {
  background: #fff;
  padding: 2rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: 'Times New Roman', serif;
}

.legal-document .doc-header {
  text-align: center;
  border-bottom: 2px solid #000;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.constitution-nav {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
}

.constitution-nav ul {
  columns: 2;
  list-style: none;
  padding: 0;
}

.constitution-nav a {
  color: var(--secondary-color);
  text-decoration: none;
}

.constitution-nav a:hover {
  text-decoration: underline;
}

.constitution-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.constitution-section {
  background: #fff;
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.constitution-section h2 {
  color: var(--primary-color);
  border-bottom: 2px solid var(--accent-gold);
  padding-bottom: 0.5rem;
}

.constitution-section h3 {
  color: var(--secondary-color);
  margin-top: 1.5rem;
}

.constitution-seal {
  text-align: center;
  padding: 2rem;
}

.seal-container {
  display: inline-block;
  padding: 2rem;
  border: 3px double var(--accent-gold);
  border-radius: 8px;
}

.seal-icon {
  font-size: 3rem;
}

.definition-section {
  margin: 2rem 0;
}

.definition-card {
  background: #fff;
  padding: 1.5rem;
  margin: 1rem 0;
  border-left: 4px solid var(--primary-color);
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.definition-card h3 {
  color: var(--primary-color);
  margin: 0 0 0.5rem 0;
}

.definition-card p {
  margin: 0;
  color: #444;
}

.definition-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 1rem;
  background: #fff;
  margin: 1rem auto;
  max-width: 800px;
  border-radius: 8px;
}

.definition-nav a {
  padding: 0.5rem 1rem;
  background: var(--bg-light);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 20px;
}

.definition-nav a:hover {
  background: var(--primary-color);
  color: #fff;
}

.definitions-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.live-data-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.live-stat-card {
  text-align: center;
  padding: 1rem;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eee;
}

.filing-record {
  background: var(--bg-light);
  padding: 1rem;
  border-radius: 8px;
  min-height: 100px;
}

.filing-entry {
  background: #fff;
  padding: 1rem;
  margin: 0.5rem 0;
  border-radius: 4px;
  border-left: 4px solid var(--accent-gold);
}

.filing-hash {
  font-family: monospace;
  font-size: 0.8rem;
  color: #666;
}

@media (max-width: 768px) {
  .sacred-nav {
    padding: 0.5rem;
    gap: 0.5rem;
  }
  
  .sacred-nav a {
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
  }
  
  .hero-section h1 {
    font-size: 1.8rem;
  }
  
  .section-block {
    padding: 1rem;
    margin: 1rem;
  }
  
  .constitution-nav ul {
    columns: 1;
  }
}

.portal-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.portal-nav-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.portal-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.portal-tab {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--primary-color);
  background: #fff;
  color: var(--primary-color);
  cursor: pointer;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s;
}

.portal-tab:hover, .portal-tab.active {
  background: var(--primary-color);
  color: #fff;
}

.role-portals {
  display: flex;
  gap: 0.5rem;
}

.role-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.2s;
}

.trustees-btn {
  background: #4a6fa5;
  color: #fff;
}

.heirs-btn {
  background: #8b5a2b;
  color: #fff;
}

.role-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.tab-content {
  display: none;
}

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

.wizard-container {
  max-width: 800px;
  margin: 0 auto;
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
}

.wizard-step h3 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

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

.wizard-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.wizard-option:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.wizard-option.selected {
  border-color: var(--primary-color);
  background: var(--bg-light);
}

.option-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.option-title {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.option-desc {
  font-size: 0.85rem;
  color: #666;
}

.wizard-back, .wizard-restart {
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-right: 0.5rem;
}

.wizard-back {
  background: #666;
  color: #fff;
}

.wizard-restart {
  background: var(--secondary-color);
  color: #fff;
}

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

.recommendation-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background: #fff;
  border: 2px solid #eee;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.recommendation-card:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.rec-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.rec-title {
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.rec-category {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.rec-btn {
  padding: 0.5rem 1rem;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
}

.draft-workspace {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  margin-top: 2rem;
  border: 2px solid var(--accent-gold);
}

.doc-textarea {
  min-height: 200px;
  font-family: 'Georgia', serif;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--primary-color);
}

.doc-header {
  text-align: center;
  border-bottom: 2px double #000;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.doc-seal {
  font-size: 3rem;
}

.doc-body {
  padding: 1rem 0;
}

.doc-content-body {
  white-space: pre-wrap;
  margin: 1rem 0;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 4px;
}

.doc-footer {
  border-top: 1px solid #ccc;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.signature-block {
  margin: 2rem 0;
}

.seal-line {
  text-align: center;
  font-weight: bold;
  margin-top: 2rem;
}

.workflow-stages {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}

.workflow-stages::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #ddd;
  z-index: 0;
}

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  background: var(--bg-light);
  padding: 0 0.5rem;
}

.stage-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.stage.active .stage-number {
  background: var(--primary-color);
  color: #fff;
}

.stage-label {
  font-size: 0.8rem;
  color: #666;
}

.filing-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.option-group {
  margin: 1rem 0;
}

.option-group label {
  display: block;
  margin: 0.5rem 0;
  cursor: pointer;
}

.tracking-search {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.verify-input-group {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}

.verify-success {
  padding: 1rem;
  background: #d4edda;
  color: #155724;
  border-radius: 6px;
  margin-top: 1rem;
}

.verify-error {
  padding: 1rem;
  background: #f8d7da;
  color: #721c24;
  border-radius: 6px;
  margin-top: 1rem;
}

.portal-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.role-overview, .rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.role-card, .right-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.role-icon, .right-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
}

.role-card h3, .right-card h3 {
  color: var(--primary-color);
  margin: 0 0 0.5rem 0;
}

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

.course-module {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.module-header {
  background: var(--primary-color);
  color: #fff;
  padding: 1rem;
}

.module-number {
  font-size: 0.8rem;
  opacity: 0.8;
}

.module-header h3 {
  margin: 0.25rem 0 0 0;
  font-size: 1.1rem;
}

.module-lessons {
  padding: 1rem;
  margin: 0;
  list-style: none;
}

.module-lessons li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}

.module-lessons li:last-child {
  border-bottom: none;
}

.module-progress {
  padding: 1rem;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent-gold);
  border-radius: 4px;
}

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

.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tool-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.tool-card h3 {
  color: var(--primary-color);
  margin: 0 0 0.5rem 0;
}

.tool-card p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}

.quick-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.quick-doc-btn {
  padding: 0.75rem 1.25rem;
  background: var(--bg-light);
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
  transition: all 0.2s;
}

.quick-doc-btn:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

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

.checklist-category h3 {
  color: var(--secondary-color);
  border-bottom: 2px solid var(--accent-gold);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.check-item {
  display: block;
  padding: 0.5rem 0;
  cursor: pointer;
}

.check-item input {
  margin-right: 0.5rem;
}

.case-studies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.case-study {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.case-study h3 {
  color: var(--primary-color);
  margin: 0 0 0.75rem 0;
}

.case-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--bg-light);
  border-radius: 20px;
  font-size: 0.8rem;
  margin-right: 0.5rem;
  margin-top: 0.75rem;
}

.roadmap {
  max-width: 700px;
  margin: 0 auto;
}

.roadmap-step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.roadmap-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 50px;
  bottom: -30px;
  width: 2px;
  background: var(--accent-gold);
}

.step-marker {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  z-index: 1;
}

.step-content {
  flex: 1;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.step-content h3 {
  color: var(--primary-color);
  margin: 0 0 0.75rem 0;
}

.step-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.doc-link {
  padding: 0.25rem 0.75rem;
  background: var(--bg-light);
  border-radius: 4px;
  font-size: 0.85rem;
}

.step-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--secondary-color);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
}

.bill-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.bill-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: #fff;
  border-radius: 6px;
  align-items: flex-start;
}

.bill-num {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.bill-item p {
  margin: 0;
  font-size: 0.95rem;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.faq-item h3 {
  color: var(--primary-color);
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
}

.faq-item p {
  margin: 0;
  color: #444;
}

.inheritance-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.draft-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #fff;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.draft-item button {
  padding: 0.5rem 1rem;
  background: var(--secondary-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.no-drafts {
  text-align: center;
  color: #666;
  padding: 2rem;
}

.status-confirmed {
  color: #155724;
  background: #d4edda;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.status-pending {
  color: #856404;
  background: #fff3cd;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.filing-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  flex: 1;
}

@media (max-width: 768px) {
  .portal-nav-section {
    flex-direction: column;
  }
  
  .portal-tabs {
    width: 100%;
    justify-content: center;
  }
  
  .role-portals {
    width: 100%;
    justify-content: center;
  }
  
  .filing-content {
    grid-template-columns: 1fr;
  }
  
  .workflow-stages {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .workflow-stages::before {
    display: none;
  }
}

.nav-dynasty {
  background: linear-gradient(135deg, #d4af37, #8b5a2b) !important;
  font-weight: bold;
}

.nav-dynasty:hover {
  background: linear-gradient(135deg, #e5c048, #9c6b3c) !important;
}

.dynasty-integration {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
}

.dynasty-integration .section-title {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
}

.dynasty-integration .section-subtitle {
  color: #ccc;
}

.dynasty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.dynasty-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
}

.dynasty-card:hover {
  background: rgba(212,175,55,0.1);
  border-color: var(--accent-gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(212,175,55,0.2);
}

.dynasty-coming {
  opacity: 0.6;
  cursor: default;
}

.dynasty-coming:hover {
  transform: none;
}

.dynasty-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}

.dynasty-card h3 {
  color: var(--accent-gold);
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.dynasty-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #aaa;
}

.dynasty-status {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1.5rem;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  margin-top: 1.5rem;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #666;
}

.status-dot.status-active {
  background: #28a745;
  box-shadow: 0 0 8px rgba(40,167,69,0.5);
}

.chain-filing-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  padding: 2rem;
  border-radius: 12px;
  margin-top: 2rem;
}

.chain-filing-section h3 {
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.chain-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(40,167,69,0.2);
  border-radius: 6px;
  margin-bottom: 1rem;
}

.chain-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #28a745;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.chain-btn {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #d4af37, #8b5a2b);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.chain-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212,175,55,0.4);
}

.filing-hash {
  font-family: monospace;
  background: rgba(0,0,0,0.3);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  word-break: break-all;
  margin: 1rem 0;
}

.dynasty-link-section {
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid rgba(212,175,55,0.3);
  margin-top: 1.5rem;
}

.dynasty-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold);
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: all 0.2s;
}

.dynasty-link-btn:hover {
  background: var(--accent-gold);
  color: #1a1a2e;
}

.auth-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.auth-name {
  font-weight: bold;
  color: #fff;
}

.auth-role {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: rgba(212,175,55,0.3);
  border-radius: 12px;
  color: var(--accent-gold);
}

.auth-btn {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-btn:hover {
  background: #fff;
  color: #333;
}

.auth-btn-primary {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #1a1a2e;
}

.auth-btn-primary:hover {
  background: #e5c048;
  border-color: #e5c048;
}

@media (max-width: 480px) {
  .sacred-nav {
    flex-direction: column;
    padding: 0.5rem;
    gap: 0.25rem;
  }
  
  .sacred-nav a {
    padding: 0.5rem;
    font-size: 0.85rem;
  }
  
  .hero-section, .portal-header, .constitution-header {
    padding: 2rem 1rem;
  }
  
  .hero-section h1, .portal-header h1 {
    font-size: 1.75rem;
  }
  
  .section-block {
    padding: 1.5rem 1rem;
    margin: 0.5rem;
  }
  
  .coin-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dynasty-grid {
    grid-template-columns: 1fr;
  }
  
  .portal-tabs {
    flex-wrap: wrap;
  }
  
  .portal-tab {
    flex: 1 1 45%;
    text-align: center;
    font-size: 0.85rem;
  }
  
  .wizard-options {
    grid-template-columns: 1fr;
  }
  
  .doc-buttons {
    grid-template-columns: 1fr;
  }
  
  .draft-form .form-row {
    flex-direction: column;
  }
  
  .role-portals {
    flex-direction: column;
    width: 100%;
  }
  
  .role-btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .sacred-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .coin-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .wallet-actions {
    flex-direction: column;
  }
  
  .coin-btn {
    width: 100%;
  }
  
  .curriculum-grid {
    grid-template-columns: 1fr;
  }
  
  .roadmap-step {
    flex-direction: column;
    text-align: center;
  }
  
  .step-number {
    margin: 0 auto 1rem;
  }
}

@media (min-width: 1200px) {
  .section-block {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-gold);
  color: #1a1a2e;
  padding: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

*:focus {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

.dynasty-widget {
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 12px;
  padding: 1rem;
  color: #f5f5dc;
  font-family: Georgia, serif;
}

.dynasty-widget .widget-header {
  color: #d4af37;
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(212,175,55,0.2);
}

.dynasty-widget .widget-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(74, 222, 128, 0.2);
  border-radius: 20px;
  color: #4ade80;
  font-size: 0.85rem;
}

.dynasty-widget .widget-status.offline {
  background: rgba(248, 113, 113, 0.2);
  color: #f87171;
}

.dynasty-widget .widget-stats {
  display: flex;
  gap: 1.5rem;
  margin: 0.75rem 0;
}

.dynasty-widget .stat-item {
  text-align: center;
}

.dynasty-widget .stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: bold;
  color: #d4af37;
}

.dynasty-widget .stat-label {
  font-size: 0.75rem;
  color: #aaa;
}

.dynasty-widget .widget-compliance {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.dynasty-widget .compliance-badge {
  padding: 0.25rem 0.5rem;
  background: rgba(212,175,55,0.2);
  border-radius: 4px;
  font-size: 0.7rem;
  color: #d4af37;
}

.dynasty-widget .coin-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.dynasty-widget .coin-icon {
  font-size: 1.5rem;
}

.dynasty-widget .coin-name {
  font-weight: bold;
}

.dynasty-widget .coin-network {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.75rem;
}

.dynasty-widget .widget-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #d4af37, #8b5a2b);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.dynasty-widget .widget-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212,175,55,0.4);
}

.dynasty-widget .quick-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dynasty-widget .quick-link {
  display: block;
  padding: 0.5rem 0.75rem;
  background: rgba(255,255,255,0.05);
  color: #f5f5dc;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.dynasty-widget .quick-link:hover {
  background: rgba(212,175,55,0.2);
  color: #d4af37;
}

.cross-platform-section {
  background: linear-gradient(135deg, rgba(212,175,55,0.1), rgba(139,90,43,0.1));
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.cross-platform-section h3 {
  color: #d4af37;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.platform-card {
  background: rgba(26,26,46,0.8);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 8px;
  padding: 1rem;
  text-decoration: none;
  color: #f5f5dc;
  transition: all 0.2s;
}

.platform-card:hover {
  border-color: #d4af37;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(212,175,55,0.2);
}

.platform-card-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.platform-card-name {
  font-weight: bold;
  color: #d4af37;
  margin-bottom: 0.25rem;
}

.platform-card-desc {
  font-size: 0.8rem;
  color: #aaa;
}

.archive-container, .portal-container, .compact-container, .treasury-container, 
.council-container, .court-container, .genesis-container, .forge-container,
.throne-content, .ministry-content, .ceremony-container, .calendar-container,
.scroll-index-container, .notary-container, .compact-archive, .public-compact,
.private-compact, .trust-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

.archive-section, .calendar-section, .ministry-section, .citizen-section {
  margin-bottom: 3rem;
}

.archive-section h2, .calendar-section h2, .ministry-section h2, .citizen-section h2 {
  color: #d4af37;
  border-bottom: 2px solid rgba(212,175,55,0.3);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.archive-grid, .tier-grid, .service-grid, .court-grid, .seal-grid, .structure-grid,
.benefit-grid, .schedule-grid, .terms-grid, .option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.archive-card, .tier-card, .service-card, .court-card, .seal-card, .structure-card,
.benefit-card, .term-card, .option-card {
  background: linear-gradient(135deg, rgba(26,26,46,0.9), rgba(22,33,62,0.9));
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: #f5f5dc;
  transition: all 0.3s;
}

.archive-card:hover, .tier-card:hover, .service-card:hover, .court-card:hover,
.seal-card:hover, .structure-card:hover, .benefit-card:hover, .term-card:hover,
.option-card:hover {
  border-color: #d4af37;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212,175,55,0.2);
}

.archive-card h3, .tier-card h3, .service-card h3, .court-card h3, .seal-card h3,
.structure-card h3, .benefit-card h3, .term-card h3, .option-card h3 {
  color: #d4af37;
  margin-bottom: 0.5rem;
}

.archive-card p, .service-card p, .court-card p, .seal-card p, .structure-card p,
.benefit-card p, .term-card p, .option-card p {
  color: #aaa;
  font-size: 0.9rem;
}

.tier-card.featured {
  border-color: #d4af37;
  background: linear-gradient(135deg, rgba(212,175,55,0.1), rgba(26,26,46,0.9));
}

.tier-btn, .option-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.5rem;
  background: linear-gradient(135deg, #d4af37, #b8860b);
  color: #1a1a2e;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: all 0.2s;
}

.tier-btn:hover, .option-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212,175,55,0.3);
}

.event-list, .event-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-card, .timeline-event {
  background: rgba(26,26,46,0.8);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.event-date, .event-date-badge {
  background: linear-gradient(135deg, #d4af37, #b8860b);
  color: #1a1a2e;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
  min-width: 80px;
}

.event-date-badge .month {
  display: block;
  font-size: 0.8rem;
}

.event-date-badge .day {
  display: block;
  font-size: 1.5rem;
}

.event-card h3, .timeline-event h3 {
  color: #f5f5dc;
  margin-bottom: 0.25rem;
}

.event-type {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: rgba(212,175,55,0.2);
  color: #d4af37;
  border-radius: 4px;
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

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

.throne-card, .ministry-card, .treasury-action-card {
  background: rgba(26,26,46,0.8);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
  text-decoration: none;
  color: #f5f5dc;
  transition: all 0.3s;
}

.throne-card:hover, .ministry-card:hover, .treasury-action-card:hover {
  border-color: #d4af37;
  transform: translateY(-3px);
}

.throne-card.occupied {
  border-color: #d4af37;
  background: linear-gradient(135deg, rgba(212,175,55,0.1), rgba(26,26,46,0.9));
}

.throne-number {
  font-size: 1.5rem;
  font-weight: bold;
  color: #d4af37;
  margin-bottom: 0.5rem;
}

.throne-holder {
  color: #aaa;
  font-style: italic;
}

.throne-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #d4af37;
  color: #1a1a2e;
  border-radius: 4px;
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.throne-status.vacant {
  background: rgba(150,150,150,0.3);
  color: #aaa;
}

.ministry-icon, .action-icon, .benefit-icon, .service-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.requirements-list, .responsibilities-list, .authority-list, .process-steps,
.steps-list, .witness-list, .purpose-list, .compact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.requirement-item, .step-item, .process-step, .authority-item, .service-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  background: rgba(26,26,46,0.5);
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.req-num, .step-num {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #d4af37, #b8860b);
  color: #1a1a2e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.requirement-item h4, .step-item h4, .process-step h4, .authority-item h4, 
.service-item h4 {
  color: #f5f5dc;
  margin-bottom: 0.25rem;
}

.requirement-item p, .step-item p, .process-step p, .authority-item p,
.service-item p {
  color: #aaa;
  font-size: 0.9rem;
  margin: 0;
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(212,175,55,0.3);
}

.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.timeline-marker {
  position: absolute;
  left: -2rem;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #d4af37, #b8860b);
  color: #1a1a2e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.timeline-content h3 {
  color: #d4af37;
  margin-bottom: 0.25rem;
}

.block-card {
  background: linear-gradient(135deg, rgba(26,26,46,0.9), rgba(22,33,62,0.9));
  border: 2px solid #d4af37;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.block-card.genesis {
  box-shadow: 0 0 30px rgba(212,175,55,0.3);
}

.block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(212,175,55,0.3);
}

.block-number {
  font-size: 2rem;
  font-weight: bold;
  color: #d4af37;
}

.block-status {
  background: #4caf50;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

.block-field {
  margin-bottom: 1rem;
}

.field-label {
  color: #888;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.25rem;
}

.field-value {
  color: #f5f5dc;
}

.field-value.mono {
  font-family: monospace;
  font-size: 0.85rem;
  word-break: break-all;
}

.significance-points, .point-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.point-icon {
  font-size: 1.5rem;
}

.compliance-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.compliance-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(26,26,46,0.8);
  border: 1px solid rgba(150,150,150,0.3);
  border-radius: 6px;
}

.compliance-item.active {
  border-color: #4caf50;
  background: rgba(76,175,80,0.1);
}

.compliance-icon {
  color: #4caf50;
  font-weight: bold;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.stat-card {
  background: linear-gradient(135deg, rgba(26,26,46,0.9), rgba(22,33,62,0.9));
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #d4af37;
}

.stat-label {
  color: #aaa;
  font-size: 0.85rem;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.seal-input, .search-input {
  width: 100%;
  max-width: 400px;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(212,175,55,0.3);
  border-radius: 8px;
  background: rgba(26,26,46,0.8);
  color: #f5f5dc;
  font-size: 1rem;
}

.seal-input:focus, .search-input:focus {
  border-color: #d4af37;
  outline: none;
}

.verify-form {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.verify-btn {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #d4af37, #b8860b);
  color: #1a1a2e;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.verify-btn:hover {
  transform: translateY(-2px);
}

.verify-result {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  background: rgba(26,26,46,0.5);
}

.archive-list, .compact-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.archive-item, .compact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(26,26,46,0.6);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 8px;
  text-decoration: none;
  color: #f5f5dc;
  transition: all 0.2s;
}

.archive-item:hover, .compact-item:hover {
  border-color: #d4af37;
  background: rgba(212,175,55,0.1);
}

.doc-icon, .item-icon {
  font-size: 1.25rem;
}

.doc-title, .item-title {
  font-weight: bold;
  color: #d4af37;
}

.doc-desc {
  color: #aaa;
  font-size: 0.85rem;
  margin-left: auto;
}

.scroll-list {
  list-style: none;
  padding: 0;
  columns: 2;
  gap: 1rem;
}

.scroll-list li {
  margin-bottom: 0.5rem;
}

.scroll-list a {
  color: #f5f5dc;
  text-decoration: none;
  transition: color 0.2s;
}

.scroll-list a:hover {
  color: #d4af37;
}

.scroll-category {
  margin-bottom: 2rem;
}

.scroll-category h2 {
  color: #d4af37;
  border-bottom: 2px solid rgba(212,175,55,0.3);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.notice-box {
  background: linear-gradient(135deg, rgba(212,175,55,0.1), rgba(26,26,46,0.9));
  border: 2px solid #d4af37;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}

.notice-box h2 {
  color: #d4af37;
}

.compact-section, .compact-preamble, .compact-article, .compact-signature {
  margin-bottom: 2rem;
}

.compact-preamble, .compact-article {
  background: rgba(26,26,46,0.5);
  border-radius: 10px;
  padding: 1.5rem;
}

.compact-article h2 {
  color: #d4af37;
  margin-bottom: 1rem;
}

.compact-article ul {
  padding-left: 1.5rem;
}

.compact-article li {
  margin-bottom: 0.5rem;
  color: #ddd;
}

.signature-block {
  margin-top: 2rem;
  padding: 2rem;
  background: rgba(26,26,46,0.5);
  border-radius: 10px;
}

.signature-line {
  display: block;
  margin-bottom: 1rem;
  color: #aaa;
}

.schedule-item {
  background: rgba(26,26,46,0.6);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 8px;
  padding: 1rem;
}

.schedule-item h4 {
  color: #d4af37;
  margin-bottom: 0.5rem;
}

.schedule-item p {
  margin: 0.25rem 0;
  color: #ccc;
  font-size: 0.9rem;
}

.seal-level, .court-level, .role-desc {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: rgba(212,175,55,0.2);
  color: #d4af37;
  border-radius: 4px;
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.court-level {
  background: rgba(150,150,150,0.2);
  color: #aaa;
}

.auth-icon {
  font-size: 1.5rem;
  color: #d4af37;
}

.index-search {
  text-align: center;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .scroll-list {
    columns: 1;
  }
  
  .archive-grid, .tier-grid, .service-grid, .throne-grid, .ministry-cards,
  .stat-grid, .action-grid {
    grid-template-columns: 1fr;
  }
  
  .event-card, .timeline-event {
    flex-direction: column;
  }
  
  .compliance-grid {
    flex-direction: column;
  }
}

/* ============================================
   OMEGA PORTAL COMMAND CENTER
   ============================================ */

.command-center {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 30px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 16px;
  border: 2px solid #c9a227;
}

.command-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(201, 162, 39, 0.3);
}

.command-header h2 {
  color: #c9a227;
  font-size: 1.8rem;
  margin: 0;
}

.command-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #10b981;
  font-size: 0.9rem;
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse 2s infinite;
}

.status-indicator.online { background: #10b981; }
.status-indicator.offline { background: #ef4444; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.command-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(201, 162, 39, 0.2);
  transition: transform 0.2s, border-color 0.2s;
}

.command-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 162, 39, 0.5);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.card-icon {
  font-size: 1.5rem;
}

.card-header h3 {
  color: #fff;
  font-size: 1.1rem;
  margin: 0;
}

.card-content {
  color: rgba(255, 255, 255, 0.8);
}

.sync-status, .logistics-stats, .filing-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.sync-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}

.sync-indicator.synced { background: #10b981; }
.sync-indicator.pending { background: #f59e0b; }

.stat-mini {
  background: rgba(201, 162, 39, 0.1);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
}

.stat-mini span {
  font-weight: bold;
  color: #c9a227;
}

.sync-actions, .logistics-actions, .quick-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cmd-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  background: linear-gradient(135deg, #c9a227, #8b6914);
  color: #1a1a2e;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.cmd-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 2px 8px rgba(201, 162, 39, 0.3);
}

.cmd-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(201, 162, 39, 0.3);
}

.cmd-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.integration-toggle {
  margin-top: 12px;
  font-size: 0.85rem;
}

.integration-toggle label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.integration-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #c9a227;
}

.entity-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.entity-btn {
  padding: 10px;
  border: 1px solid rgba(201, 162, 39, 0.3);
  background: rgba(201, 162, 39, 0.1);
  color: #c9a227;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.entity-btn:hover {
  background: rgba(201, 162, 39, 0.2);
  border-color: #c9a227;
}

.command-quick-nav {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 20px;
}

.command-quick-nav h4 {
  color: #c9a227;
  margin: 0 0 16px;
  font-size: 1rem;
}

.quick-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.quick-nav-item {
  padding: 12px;
  background: rgba(201, 162, 39, 0.1);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-size: 0.85rem;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.quick-nav-item:hover {
  background: rgba(201, 162, 39, 0.2);
  border-color: rgba(201, 162, 39, 0.3);
}

/* Learning OS Section */
.learning-os {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 30px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 16px;
  border: 1px solid rgba(201, 162, 39, 0.2);
}

.learning-header {
  text-align: center;
  margin-bottom: 24px;
}

.learning-header h2 {
  color: #c9a227;
  font-size: 1.6rem;
  margin: 0 0 8px;
}

.learning-header p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.learning-modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.learning-module {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.learning-module:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(201, 162, 39, 0.3);
  transform: translateY(-2px);
}

.module-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
}

.learning-module h4 {
  color: #fff;
  margin: 0 0 8px;
  font-size: 1rem;
}

.learning-module p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin: 0 0 12px;
}

.module-progress {
  background: rgba(255, 255, 255, 0.1);
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #c9a227, #f5d742);
  transition: width 0.3s;
}

/* Mobile responsiveness for command center */
@media (max-width: 768px) {
  .command-center, .learning-os {
    margin: 0 16px 24px;
    padding: 20px;
  }
  
  .command-header {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .command-grid {
    grid-template-columns: 1fr;
  }
  
  .entity-types {
    grid-template-columns: 1fr;
  }
  
  .quick-nav-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
