* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #080d1a;
  color: #ffffff;
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.container {
  max-width: 1050px;
  width: 100%;
}

.main-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 850px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
}

.left-col, .right-col {
  display: flex;
  flex-direction: column;
  min-width: 0; /* stops wide content (like photos) from stretching a column */
}

header {
  text-align: center;
  margin-bottom: 24px;
}

.logo {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 2px solid #00d4ff;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

header h1 {
  color: #00d4ff;
  font-size: 2.2rem;
  margin-bottom: 5px;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

header p {
  color: #8a99ad;
}

.card {
  background-color: #0f172a;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid #1e293b;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.card h2 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #e2e8f0;
}

.section-subtext {
  font-size: 0.85rem;
  color: #8a99ad;
  margin-top: -10px;
  margin-bottom: 15px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 600;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.online {
  background-color: #00f0ff;
  box-shadow: 0 0 12px #00f0ff;
}

ul {
  list-style: none;
}

li {
  padding: 10px 0;
  border-bottom: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
}

li:last-child {
  border-bottom: none;
}

li strong {
  color: #8a99ad;
}

.download-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, #00d4ff, #0066ff);
  color: #080d1a;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 20px;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-align: center;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.25);
}

.download-btn-primary:hover {
  background: linear-gradient(135deg, #33dcff, #1a75ff);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #1e293b;
}

.download-item:last-child {
  border-bottom: none;
}

.download-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.download-title {
  font-weight: 600;
  color: #ffffff;
}

.download-subtext {
  font-size: 0.85rem;
  color: #8a99ad;
}

.download-btn-secondary {
  background-color: #1e293b;
  color: #00d4ff;
  border: 1px solid #00d4ff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.download-btn-secondary:hover {
  background-color: #00d4ff;
  color: #080d1a;
}

.discord-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background-color: #5865f2;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 20px;
  border-radius: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 0 15px rgba(88, 101, 244, 0.25);
}

.discord-btn:hover {
  background-color: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(88, 101, 244, 0.45);
}

.discord-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: currentColor;
}

/* --- COMMUNITY PREVIEWS --- */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.preview-grid > p {
  grid-column: 1 / -1;
}

.preview-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 8px;
}

.preview-btn:focus-visible {
  outline: 2px solid #00d4ff;
  outline-offset: 2px;
}

.preview-img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #1e293b;
  transition: all 0.2s ease;
  background-color: #1e293b;
}

.preview-btn:hover .preview-img,
.preview-btn:focus-visible .preview-img {
  border-color: #00d4ff;
  transform: scale(1.03);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.3);
}

/* --- REVIEWS --- */
.review-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.review-form input,
.review-form select,
.review-form textarea {
  background-color: #162032;
  border: 1px solid #1e293b;
  border-radius: 6px;
  padding: 10px 12px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.review-form input:focus,
.review-form select:focus,
.review-form textarea:focus {
  border-color: #00d4ff;
}

.form-row {
  display: flex;
  gap: 10px;
}

.form-row select {
  flex: 1;
}

.submit-review-btn {
  background: linear-gradient(135deg, #00d4ff, #0066ff);
  color: #080d1a;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.submit-review-btn:hover {
  background: linear-gradient(135deg, #33dcff, #1a75ff);
}

.divider {
  height: 1px;
  background-color: #1e293b;
  margin: 16px 0;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px;
}

.no-reviews {
  color: #8a99ad;
  font-size: 0.9rem;
  text-align: center;
  padding: 10px 0;
}

.review-item {
  background-color: #162032;
  border-radius: 8px;
  padding: 12px 14px;
  border: 1px solid #1e293b;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.review-user {
  font-weight: 600;
  color: #00d4ff;
  font-size: 0.9rem;
}

.review-stars {
  color: #00f0ff;
  font-size: 0.85rem;
  letter-spacing: 2px;
}

.review-text {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.4;
  font-style: italic;
  overflow-wrap: anywhere;
}

/* --- FOOTER LINKS --- */
footer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #1e293b;
  text-align: center;
  color: #8a99ad;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.footer-link {
  color: #00d4ff;
  font-size: 0.85rem;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #33dcff;
}

.footer-btn {
  background: none;
  border: none;
  color: #00d4ff;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.footer-btn:hover {
  color: #33dcff;
}

/* --- MODAL OVERLAY --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(8, 13, 26, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: #0f172a;
  border: 1px solid #00d4ff;
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.2);
  border-radius: 12px;
  max-width: 550px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #1e293b;
}

.modal-header h2 {
  font-size: 1.2rem;
  color: #00d4ff;
}

.modal-close {
  background: none;
  border: none;
  color: #8a99ad;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.modal-close:hover,
.modal-close:focus-visible {
  color: #ffffff;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-body h3 {
  color: #ffffff;
  font-size: 1rem;
  margin-top: 8px;
}

/* --- PHOTO VIEWER --- */
.photo-modal-card {
  max-width: 900px;
  max-height: 90vh;
}

#photo-modal-img {
  display: block;
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
  background-color: #080d1a;
}

#photo-modal-caption:empty {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
  }
}

/* ───────────────────────────────────────────────────────────────────────
   Added for RecRedeved's deployment: styles used by profile.html and
   terms.html (navigation, profile, stats, legal pages) that the original
   stylesheet didn't define, in the same palette.
   ─────────────────────────────────────────────────────────────────────── */
:root {
  --text-muted: #8a99ad;
  --accent: #00d4ff;
  --panel: #0f172a;
  --border: #1e293b;
}

body {
  flex-direction: column;
  align-items: center;
}

.footer-credit {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.download-soon {
  color: var(--text-muted);
  border-color: var(--border);
  cursor: default;
}

.download-soon:hover {
  background-color: #1e293b;
  color: var(--text-muted);
}

/* Navigation */
.nav {
  width: 100%;
  max-width: 1050px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
}

.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 6px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-btn {
  background-color: #1e293b;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 7px 14px;
  font-size: 0.9rem;
}

.nav-btn:hover {
  background-color: var(--accent);
  color: #080d1a;
}

.btn-secondary {
  background-color: #1e293b;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-hero-main {
  background: linear-gradient(135deg, #00d4ff, #0066ff);
  color: #080d1a;
  border: none;
  font-weight: 700;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background-color: var(--panel);
  border: 1px solid var(--accent);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 1100;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Profile */
.profile-page {
  width: 100%;
  max-width: 820px;
}

.profile-banner {
  height: 120px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(135deg, #0066ff, #00d4ff);
  opacity: 0.6;
}

.profile-card {
  background-color: var(--panel);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 0 24px 24px;
  margin-bottom: 20px;
  text-align: center;
}

.profile-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-top: -48px;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  background-color: #1e293b;
}

.platform-badge {
  position: absolute;
  right: -2px;
  bottom: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1e293b;
  border: 2px solid var(--panel);
}

.platform-badge svg {
  width: 16px;
  height: 16px;
  fill: #ffffff;
}

.profile-name {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 10px;
}

.profile-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.profile-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #1e293b;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 7px 14px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-share:hover,
.btn-share.copied {
  background-color: var(--accent);
  color: #080d1a;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-card {
  background-color: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-sub {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #e2e8f0;
}

.info-list li span {
  color: #cbd5e1;
  text-align: right;
  overflow-wrap: anywhere;
}

/* Legal pages */
.legal-page {
  width: 100%;
  max-width: 800px;
}

.legal-header {
  margin-bottom: 20px;
}

.legal-header h1 {
  color: var(--accent);
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.legal-date {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.legal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
}

.legal-body h2 {
  color: var(--accent);
  font-size: 1.05rem;
  margin: 8px 0 0;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  text-decoration: none;
  margin-top: 8px;
}

.legal-back:hover {
  color: #33dcff;
}

/* ───────────────────────────────────────────────────────────────────────
   Added for the sign-in / sign-up page and the signed-in navigation.
   ─────────────────────────────────────────────────────────────────────── */
.nav-auth {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-user {
  color: var(--accent);
  font-weight: 600;
}

.nav-btn-primary {
  background: linear-gradient(135deg, #00d4ff, #0066ff);
  color: #080d1a;
  border: none;
}

.nav-btn-primary:hover {
  background: linear-gradient(135deg, #33dcff, #1a75ff);
  color: #080d1a;
}

.notice {
  width: 100%;
  max-width: 1050px;
  background-color: var(--panel);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.auth-page {
  width: 100%;
  max-width: 440px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  margin-bottom: 20px;
  background-color: #162032;
  border-radius: 8px;
}

.auth-tab {
  background: none;
  border: none;
  border-radius: 6px;
  padding: 10px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab:hover {
  color: #ffffff;
}

.auth-tab.active {
  background-color: var(--panel);
  color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.auth-form {
  display: flex;
  flex-direction: column;
}

.auth-form[hidden],
.auth-form [hidden] {
  display: none;
}

.auth-form > div {
  display: flex;
  flex-direction: column;
}

.auth-intro {
  color: #cbd5e1;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.auth-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 6px;
}

.auth-form input {
  background-color: #162032;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 14px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.auth-form input:focus {
  border-color: var(--accent);
}

.auth-hint {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: -8px 0 14px;
}

.auth-turnstile {
  min-height: 0;
  margin-bottom: 14px;
}

.auth-error {
  color: #f87171;
  font-size: 0.88rem;
  min-height: 1.2em;
  margin-bottom: 10px;
}

.auth-error:empty {
  min-height: 0;
  margin-bottom: 0;
}

.auth-submit {
  background: linear-gradient(135deg, #00d4ff, #0066ff);
  color: #080d1a;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #33dcff, #1a75ff);
}

.auth-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.auth-note {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-top: 14px;
}
