:root {
  --bg-color: #ffffff;
  --text-color: #333333;
  --accent-color: #0070f3; /* Standard Blue */
  --accent-hover: #0051a2;
  --card-bg: #f9f9f9;
  --border-color: #eaeaea;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  font-family: var(--font-main);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  margin-top: 0;
  color: #111;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.8rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  color: #555;
}

.small-text {
  font-size: 0.8rem;
  color: #888;
}

/* --- Header & Nav --- */
.hero {
  background-color: #fff;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.logo-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.official-seal {
  background: #000;
  color: #fff;
  padding: 0.2rem 0.5rem;
  font-weight: bold;
  font-size: 0.8rem;
  border-radius: 4px;
}

.logo-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: #555;
  text-decoration: none;
  font-weight: 500;
}

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

/* --- Buttons --- */
.btn-primary, .btn-secondary {
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
  border: 1px solid transparent;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: #fff;
  border-color: #ccc;
  color: #333;
}

.btn-secondary:hover {
  background: #f0f0f0;
  border-color: #bbb;
}

.btn-primary:disabled, .btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* --- Cards --- */
.standard-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
}

.compliance-list {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 1rem 0;
  color: #444;
}

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

/* --- Forms --- */
input[type="text"], textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  margin-bottom: 1rem;
}

input[type="text"]:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(0,112,243,0.2);
}

/* --- Audit Section --- */
.audit-section {
  background: #f5f5f5;
  padding: 3rem 0;
  margin-top: 3rem;
  border-top: 1px solid var(--border-color);
}

.audit-section-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: #ddd;
  border-radius: 5px;
  margin: 1.5rem 0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent-color);
  width: 0%;
  transition: width 0.3s ease;
}

/* --- Profile --- */
.profile-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.profile-avatar-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.profile-info h1 {
  margin: 0;
  font-size: 2.5rem;
}

.certificate-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* --- Advanced Features --- */
.tarot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.tarot-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.tarot-img {
  font-size: 3rem;
  margin: 1rem 0;
}

.graveyard-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.tombstone {
  background: #eee;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #555;
}

.blame-chart {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #eee;
}

.blame-bar-bg {
  background: #eee;
  height: 8px;
  border-radius: 4px;
}

.blame-bar-fill {
  background: var(--accent-color);
  height: 100%;
  border-radius: 4px;
}

/* --- Leaderboard --- */
.leaderboard-card {
  background: #fff;
  border: 1px solid #eee;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.leaderboard-card .score {
  margin-left: auto;
  font-weight: bold;
  color: var(--accent-color);
}

/* --- Modal --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.hidden {
  display: none !important;
}

/* Mobile */
@media (max-width: 600px) {
  .logo-area {
    flex-direction: column;
    align-items: flex-start;
  }
  .main-nav {
    margin-top: 1rem;
  }
}
