/* ===== User Bar and Quick Navigation ===== */
.user-info-bar {
  position: absolute;
  top: 1.2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 0.7em;
  background: rgba(250, 246, 255, 0.85);
  backdrop-filter: blur(4px);
  padding: 0.5em 1.2em 0.5em 0.7em;
  border-radius: 2em;
  box-shadow: 0 2px 16px rgba(130, 90, 220, 0.07);
  font-size: 0.98em;
  z-index: 200;
  transition: box-shadow 0.15s;
  opacity: 0;
  transform: translateY(-12px);
  animation: fadeSlideIn 0.48s cubic-bezier(.7,1.2,.42,1) forwards;
}

@keyframes fadeSlideIn {
  to { opacity: 1; transform: none; }
}

.quick-nav {
  display: flex;
  gap: 1em;
  margin-right: 1.2em;
}
.quick-nav a {
  color: #a07cff;
  font-weight: 600;
  text-decoration: none;
  padding: 0.36em 0.85em;
  border-radius: 0.8em;
  font-size: 1em;
  transition: background 0.15s, color 0.14s;
}
.quick-nav a:hover,
.quick-nav a.active {
  background: #f3edff;
  color: #8256e3;
}
.user-avatar {
  font-size: 1.3em;
  color: #a07cff;
  display: flex;
  align-items: center;
}
.user-email {
  font-weight: 400;
  color: #8d82b7;
  font-size: 0.97em;
  max-width: 170px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.logout-btn {
  font-size: 0.97em;
  padding: 0.37em 1.1em;
  background: linear-gradient(90deg, #ad8cff 20%, #8256e3 90%);
  color: #fff;
  border: none;
  border-radius: 1em;
  font-weight: 600;
  margin-left: 0.7em;
  box-shadow: 0 1px 6px rgba(160,108,255,0.09);
  cursor: pointer;
  transition: background 0.17s, transform 0.14s;
}
.logout-btn:hover {
  background: #9e74e3;
  transform: translateY(-2px) scale(1.04);
}

@media (max-width: 720px) {
  .user-info-bar {
    left: 50%;
    right: auto;
    transform: translate(-50%, -12px);
    padding: 0.45em 1.05em 0.45em 0.65em;
  }
  .quick-nav a { padding: 0.33em 0.75em; font-size: 0.95em; }
  .logout-btn { display: none; }
}

/* Terms acceptance modal */
body.terms-modal-open {
  overflow: hidden;
}

.terms-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(33, 22, 73, 0.7);
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.terms-modal {
  max-width: 540px;
  width: 100%;
  background: #fff;
  color: #2a2340;
  border-radius: 18px;
  box-shadow: 0 28px 58px rgba(24, 39, 75, 0.28);
  padding: 32px;
  line-height: 1.6;
}

.terms-modal h2 {
  margin: 0 0 12px;
  font-size: 1.55rem;
}

.terms-body {
  max-height: 48vh;
  overflow-y: auto;
  margin-bottom: 18px;
}

.terms-body a {
  color: #6a4bff;
}

.terms-points {
  margin: 18px 0 0;
  padding-left: 20px;
}

.terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
  margin-top: 12px;
}

.terms-checkbox input[type="checkbox"] {
  margin-top: 4px;
}

.terms-actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}

.terms-btn {
  background: linear-gradient(90deg, #6a4bff 10%, #4b2ce0 90%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 22px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(80, 60, 180, 0.18);
}

.terms-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.terms-error {
  color: #c03535;
  margin-top: 16px;
  display: none;
}
