@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Rajdhani:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700;800;900&display=swap');
@font-face {
  font-family: 'Future Earth';
  src: url('fonts/future-earth.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
:root {
  --bg: #0a0a0a;
  --card: #111111;
  --border: #292929;
  --foreground: #ebebeb;
  --muted: #8c8c8c;
  /* Main accent (purple) - matches "COMO FUNCIONA" step numbers tone */
  --primary: #7a00ff;
  --primary-dim: rgba(122,0,255,0.15);
  --primary-glow: rgba(122,0,255,0.25);

  /* Soft accent used only for the HERO "ENTRAR" button text */
  --primary-soft: #c07fcd;
  --primary-soft-dim: rgba(192,127,205,0.15);
  --primary-soft-glow: rgba(192,127,205,0.25);
  --yellow: #eab308;
  --red: #ef4444;
  --font-mono: 'Share Tech Mono', monospace;
  --font-head: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--foreground);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Scanlines */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
  pointer-events: none;
  z-index: 9999;
}

/* Noise */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
}

/* Pages */
.page { display: none; min-height: 100vh; padding: 64px 24px 100px; position: relative; overflow: hidden; }
.page.active { display: block; animation: fadeInUp 0.5s ease forwards; }

@keyframes fadeInUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

/* Glitch */
@keyframes glitch-skew { 0%,100%{transform:skew(0deg)} 20%{transform:skew(-0.5deg)} 40%{transform:skew(0.5deg)} 60%{transform:skew(-0.3deg)} 80%{transform:skew(0.3deg)} }
.glitch { animation: glitch-skew 4s infinite; font-family: var(--font-head); display: inline-block; }

/* Spin */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

/* Typography */
.font-mono { font-family: var(--font-mono); }
.font-head { font-family: var(--font-head); }
.font-body { font-family: var(--font-body); }
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted); }

/* Section bg number */
.section-num {
  position: absolute;
  top: 1rem;
  left: 0;
  font-family: var(--font-head);
  font-size: clamp(6.1875rem, 20vw, 12.1875rem);
  font-weight: 900;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* Page header */
.page-header { margin-bottom: 2.5rem; }
.page-title { font-family: var(--font-head); font-size: clamp(1.5875rem, 5vw, 2.1875rem); font-weight: 900; letter-spacing: 0.15em; color: var(--foreground); }
.page-desc { font-family: var(--font-body); font-size: 1.1rem; color: var(--primary); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }
.page-sub { font-family: var(--font-mono); font-size: 14px; color: var(--muted); margin-top: 6px; letter-spacing: 0.1em; }

/* Max width wrapper */
.inner { max-width: 460px; margin: 0 auto; position: relative; z-index: 10; }
.inner-wide { max-width: 680px; margin: 0 auto; position: relative; z-index: 10; }

/* ---- HOME ---- */
#page-home {
  display: none;
  width: 100%;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
#page-home.active { display: block; }

/* Background / Texture Elements */
.hero-wrapper {
  position: relative;
  width: 100%;
  max-width: 430px; /* Constrain for desktop to look like mobile */
  aspect-ratio: 9 / 20;
  margin: 0 auto;
  overflow: hidden;
}

.hero-bg-num, .hero-bg-jap, .hero-bg-grid, .hero-bg-melt,
.hero-tech-elements img {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.hero-bg-num {
  top: -9%;
  left: -7%;
  width: 81%;
  opacity: 1;
}

.hero-bg-jap {
  top: 13%;
  left: -3%;
  width: 30%;
  opacity: 1;
}

.hero-bg-grid {
  top: 7%;
  right: 16px;
  width: 19%;
  opacity: 1;
}

.hero-bg-melt {
  bottom: 41px;
  right: 1%;
  width: 24%;
  opacity: 1;
}

.hero-oculos {
  bottom: 37%;
  right: 2%;
  left: auto;
  width: 23%;
  opacity: 1;
  z-index: 2;
}

.hero-braco {
  top: 14%;
  bottom: auto;
  right: 1%;
  width: 44%;
  opacity: 1;
}

.hero-cod1 {
  bottom: 16%;
  left: 3%;
  width: 40%;
  opacity: 1;
}

.hero-pointer1, .hero-pointer2 {
  opacity: 1;
}
.hero-pointer1 {
  top: 57%;
  left: 31%;
  width: 15%;
}
.hero-pointer2 {
  top: 59%;
  right: 30%;
  width: 13%;
}

/* Center Content */
.hero-center-content {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  z-index: 10;
  width: 100%;
}

.hero-404 {
  width: 60%;
  max-width: 300px;
  filter: drop-shadow(0 0 20px rgba(122,0,255,0.7));
  animation: pulse 3s infinite;
}

.hero-btn-wrapper {
  display: inline-flex;
  background-image: url("images/heropage/contornobotao.png?v=5"), url("images/heropage/fundobotao.png?v=5");
  background-size: 100% 100%, 100% 100%;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  transition: all 0.3s;
  padding: 6px;
}
.hero-btn-wrapper:hover {
  filter: drop-shadow(0 0 25px var(--primary)) drop-shadow(0 0 10px rgba(255,255,255,0.3));
  transform: scale(1.08);
}
.hero-btn-wrapper:active {
  filter: drop-shadow(0 0 35px var(--primary));
  transform: scale(0.95);
}

.btn-enter-text {
  background: transparent;
  border: none;
  color: var(--primary-soft);
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 5vw, 1.8rem);
  line-height: 1;
  padding: 1rem 2.5rem;
  cursor: pointer;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  outline: none;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 0 10px var(--primary-soft-glow);
  transform: translateX(4px); /* Keep horizontal optical centering only */
}

.hero-bottom-text {
  position: absolute;
  bottom: 6%;
  left: 4%;
  width: 70%;
  max-width: 400px;
  z-index: 10;
  text-align: left;
}
.hero-bottom-text img {
  width: 100%;
  opacity: 0.9;
  filter: drop-shadow(0 0 8px rgba(122,0,255,0.4));
}

/* ---- DEVOTION ---- */
.stamp-grid { display: flex; gap: 12px; justify-content: center; margin-bottom: 2rem; flex-wrap: wrap; }
.stamp-box {
  width: 64px; height: 64px;
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 0.8875rem;
  color: rgba(140,140,140,0.4);
  transition: all 0.3s;
  cursor: default;
}
.stamp-box.confirmed { border-color: #22c55e; background: rgba(34,197,94,0.1); color: #22c55e; box-shadow: 0 0 15px rgba(34,197,94,0.3); }
.stamp-box.pending { border-color: rgba(234,179,8,0.5); background: rgba(234,179,8,0.1); color: var(--yellow); animation: pulse 2s infinite; }
.stamp-box.empty-active { cursor: pointer; }
.stamp-box.empty-active:hover { background: var(--primary-dim); border-color: rgba(122,0,255,0.3); }

.progress-text { text-align: center; margin-bottom: 2rem; font-family: var(--font-head); }
.progress-text span:first-child { font-size: 1.3875rem; color: var(--foreground); }
.progress-text span:last-child { font-size: 1.3875rem; color: var(--muted); }

.info-card {
  border: 1px solid rgba(41,41,41,0.6);
  border-radius: 2px;
  background: rgba(17,17,17,0.2);
  padding: 1.25rem;
  margin-top: 1.5rem;
}
.info-card-title { font-family: var(--font-mono); font-size: 13px; color: rgba(140,140,140,0.4); letter-spacing: 0.3em; margin-bottom: 0.75rem; }
.info-step { display: flex; gap: 12px; margin-bottom: 10px; align-items: flex-start; }
.info-step-num { font-family: var(--font-head); font-size: 0.8875rem; color: rgba(122,0,255,0.6); font-weight: 700; min-width: 20px; margin-top: 2px; }
.info-step-text { font-family: var(--font-body); font-size: 0.9875rem; color: var(--muted); line-height: 1.5; }

.alert-card { border-radius: 2px; padding: 1rem; margin-bottom: 1.5rem; }
.alert-yellow { border: 1px solid rgba(234,179,8,0.3); background: rgba(234,179,8,0.05); }
.alert-yellow p { font-family: var(--font-mono); font-size: 14px; color: var(--yellow); letter-spacing: 0.1em; }
.alert-primary { border: 1px solid var(--primary); background: var(--primary-dim); }

/* ---- EXPANSION ---- */
.code-display {
  border: 1px solid rgba(122,0,255,0.3);
  background: var(--primary-dim);
  border-radius: 2px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}
.code-label { font-family: var(--font-mono); font-size: 13px; color: var(--muted); letter-spacing: 0.3em; margin-bottom: 12px; }
.code-value { font-family: var(--font-head); font-size: clamp(2.1875rem, 8vw, 3.6875rem); font-weight: 900; color: var(--primary); letter-spacing: 0.2em; }
.code-divider { height: 1px; background: rgba(122,0,255,0.2); margin: 1.5rem 0; }
.code-count { font-family: var(--font-body); font-size: 0.9375rem; color: var(--muted); letter-spacing: 0.2em; }

.btn-row { display: flex; gap: 12px; margin-bottom: 2rem; }
.btn-outline {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--foreground);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.2em;
  cursor: pointer;
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.3s;
}
.btn-outline:hover { border-color: rgba(122,0,255,0.5); background: var(--primary-dim); }

.left-bar { border-left: 2px solid rgba(122,0,255,0.2); padding-left: 1rem; margin-bottom: 1.5rem; }
.left-bar p { font-family: var(--font-body); font-size: 1.0875rem; color: var(--muted); letter-spacing: 0.05em; }

/* ---- ARCHIVE ---- */
.art-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media(min-width:520px){ .art-grid { grid-template-columns: repeat(3,1fr); } }

.art-card {
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
}
.art-card:hover { border-color: rgba(122,0,255,0.4); box-shadow: 0 0 20px rgba(122,0,255,0.1); }
.art-thumb {
  aspect-ratio: 1;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.art-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.65;
  filter: grayscale(100%) contrast(1.1);
  mix-blend-mode: lighten;
  transition: all 0.4s ease;
}
.art-card:hover .art-thumb img {
  opacity: 1;
  filter: grayscale(20%) contrast(1.1);
  mix-blend-mode: normal;
}
.art-thumb-placeholder { font-family: var(--font-head); font-size: 2.1875rem; color: rgba(255,255,255,0.05); }
.art-info { padding: 8px; }
.art-id { font-family: var(--font-mono); font-size: 12px; color: rgba(122,0,255,0.6); letter-spacing: 0.1em; }
.art-title { font-family: var(--font-body); font-size: 0.9875rem; color: rgba(235,235,235,0.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.art-status { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; margin-top: 2px; }
.art-price { font-family: var(--font-mono); font-size: 12px; color: #22c55e; letter-spacing: 0.1em; margin-top: 4px; display: block; }
.status-available { color: rgba(122,0,255,0.6); }
.status-reserved { color: rgba(234,179,8,0.6); }
.status-locked { color: rgba(140,140,140,0.3); }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.open { display: flex; animation: fadeInUp 0.3s ease; }
.modal-box {
  max-width: 480px; width: 100%;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--card);
  overflow: hidden;
}
.modal-img { aspect-ratio: 1; background: #000; display: flex; align-items: center; justify-content: center; position: relative; }
.modal-img img {
  width: 100%; height: 100%; object-fit: contain;
  opacity: 1;
}
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px;
  background: rgba(10,10,10,0.8);
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer; color: var(--foreground);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1875rem; transition: border-color 0.2s;
}
.modal-close:hover { border-color: rgba(122,0,255,0.5); }
.modal-body { padding: 1.5rem; }
.modal-art-id { font-family: var(--font-mono); font-size: 13px; color: rgba(122,0,255,0.6); letter-spacing: 0.1em; }
.modal-art-title { font-family: var(--font-head); font-size: 1.2875rem; font-weight: 700; letter-spacing: 0.1em; margin-top: 4px; }

/* ---- ACCESS (form) ---- */
.form-group { margin-bottom: 1.25rem; }
.form-label { font-family: var(--font-mono); font-size: 13px; color: rgba(140,140,140,0.6); letter-spacing: 0.3em; display: block; margin-bottom: 6px; }
.form-input, .form-textarea {
  width: 100%;
  background: rgba(17,17,17,0.5);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 1.1875rem;
  padding: 12px 14px;
  transition: border-color 0.2s;
  outline: none;
}
.form-input:focus, .form-textarea:focus { border-color: rgba(122,0,255,0.5); }
.form-textarea { min-height: 80px; resize: none; }
.form-input::placeholder, .form-textarea::placeholder { color: rgba(140,140,140,0.4); }

.btn-primary {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  border: none;
  border-radius: 2px;
  color: white;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.3em;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-primary:hover { background: #6600dd; }
.btn-primary:active { transform: scale(0.98); }

.success-card {
  border: 1px solid rgba(122,0,255,0.3);
  background: var(--primary-dim);
  border-radius: 2px;
  padding: 2.5rem;
  text-align: center;
  display: none;
}
.success-title { font-family: var(--font-head); font-size: 1.4875rem; font-weight: 900; color: var(--primary); letter-spacing: 0.2em; margin-bottom: 10px; }
.access-footer { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid rgba(41,41,41,0.3); text-align: center; }
.access-footer p { font-family: var(--font-head); font-size: 1.4875rem; font-weight: 900; color: rgba(140,140,140,0.15); letter-spacing: 0.3em; }
.access-footer a { font-family: var(--font-mono); font-size: 14px; color: rgba(140,140,140,0.4); letter-spacing: 0.1em; text-decoration: none; transition: color 0.2s; margin-top: 8px; display: block; }
.access-footer a:hover { color: rgba(122,0,255,0.6); }

/* ---- IDENTITY ---- */
.identity-header { text-align: center; margin-bottom: 2rem; }
.identity-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(122,0,255,0.1);
  border: 1px solid rgba(122,0,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 1.6875rem;
  color: var(--primary); margin: 0 auto 1rem;
  box-shadow: inset 0 0 10px rgba(122,0,255,0.1);
  background-size: cover; background-position: center;
}
.identity-avatar-wrapper {
  position: relative; display: inline-block; cursor: pointer; margin: 0 auto 1rem;
}
.identity-avatar-wrapper .identity-avatar { margin-bottom: 0; }
.identity-avatar-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  border-radius: 50%; background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4375rem; opacity: 0; transition: opacity 0.2s;
}
.identity-avatar-wrapper:hover .identity-avatar-overlay,
label:hover .identity-avatar-overlay { opacity: 1; }
.identity-name { font-family: var(--font-head); font-size: 1.6875rem; font-weight: 700; color: var(--foreground); letter-spacing: 0.1em; }
.identity-role { font-family: var(--font-mono); font-size: 14px; color: var(--muted); letter-spacing: 0.2em; margin-top: 4px; }

.identity-section { margin-bottom: 2rem; }
.identity-section-title { font-family: var(--font-mono); font-size: 13px; color: rgba(140,140,140,0.4); letter-spacing: 0.3em; margin-bottom: 12px; }
.identity-link {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--foreground);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 1.0875rem;
  transition: all 0.2s;
  margin-bottom: 8px;
}
.identity-link:hover { border-color: rgba(122,0,255,0.4); background: var(--primary-dim); }
.identity-link-icon { font-size: 1.1875rem; }
.identity-stat { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(41,41,41,0.4); }
.identity-stat-label { font-family: var(--font-mono); font-size: 13px; color: var(--muted); letter-spacing: 0.15em; }
.identity-stat-val { font-family: var(--font-head); font-size: 1.0875rem; color: var(--primary); font-weight: 700; }

/* ---- BOTTOM NAV ---- */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  gap: 4px;
  padding: 6px 6px;
  overflow-x: hidden;
  overflow-y: hidden;
  -webkit-overflow-scrolling: auto;
  touch-action: auto;
  scrollbar-width: auto; /* Firefox */
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 5px 6px;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.3s;
  text-decoration: none;
  border: none; background: transparent;
  flex: 1 1 0;
  min-width: 0;
  max-width: 120px;
}
.nav-item.active { color: var(--primary); }
.nav-item:hover { color: var(--foreground); }
.nav-item-id { font-family: var(--font-head); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; }
.nav-item-label { font-family: var(--font-body); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.nav-item-dot { height: 2px; width: 100%; background: var(--primary); border-radius: 9999px; margin-top: 2px; opacity: 0; transition: opacity 0.2s; }
.nav-item.active .nav-item-dot { opacity: 1; }

@media (max-width: 768px) {
  .bottom-nav {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: none; /* Firefox */
  }
  .bottom-nav::-webkit-scrollbar { display: none; } /* Chrome/Safari */
  .nav-item {
    flex: 0 0 auto;
    min-width: 72px; /* show a hint of the next item on small screens */
    max-width: none;
  }
}

/* ---- AUTH ---- */
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  gap: 0;
}
.auth-tab {
  flex: 1;
  padding: 12px 8px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.3s;
}
.auth-tab:hover { color: var(--foreground); }
.auth-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.auth-panel { animation: fadeInUp 0.35s ease forwards; }
.auth-panel.hidden { display: none; }

/* Input com olho */
.input-eye-wrap {
  position: relative;
}
.input-eye-wrap .form-input {
  padding-right: 44px;
}
.btn-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  padding: 4px;
  transition: color 0.2s;
}
.btn-eye:hover { color: var(--primary); }

/* Hint abaixo do campo */
.form-hint {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(140,140,140,0.4);
  letter-spacing: 0.1em;
  margin-top: 5px;
}

/* Label asterisco */
.label-required { color: var(--primary); margin-left: 2px; }

/* Erro */
.auth-error {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 2px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #ef4444;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

/* Link de troca de aba */
.auth-switch {
  font-family: var(--font-body);
  font-size: 0.9875rem;
  color: var(--muted);
  text-align: center;
  margin-top: 1.25rem;
  letter-spacing: 0.05em;
}
.auth-switch-btn {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--primary);
  cursor: pointer;
  letter-spacing: 0.2em;
  padding: 0;
  margin-left: 6px;
  transition: opacity 0.2s;
}
.auth-switch-btn:hover { opacity: 0.7; }

/* ---- ADMIN ---- */
.admin-block {
  border: 1px solid rgba(41,41,41,0.8);
  border-radius: 2px;
  padding: 1.25rem;
  background: rgba(17,17,17,0.3);
}
.admin-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.admin-block-title {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(122,0,255,0.6);
  letter-spacing: 0.3em;
}
.btn-admin-refresh {
  background: none;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  padding: 5px 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-admin-refresh:hover { border-color: rgba(122,0,255,0.4); color: var(--primary); }

.admin-card {
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1rem;
  margin-bottom: 10px;
  background: rgba(10,10,10,0.5);
  transition: border-color 0.2s;
}
.admin-card:hover { border-color: rgba(122,0,255,0.2); }
.admin-card-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.admin-card-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.admin-card-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(140,140,140,0.4);
  letter-spacing: 0.2em;
}
.admin-card-val {
  font-family: var(--font-head);
  font-size: 1.0375rem;
  color: var(--foreground);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.admin-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 0.75rem;
}
.admin-archive-thumb-wrap {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
}
.admin-archive-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(122,0,255,0.25);
  background: rgba(20,20,20,0.8);
}
.admin-archive-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(140,140,140,0.6);
}
.btn-approve {
  flex: 1;
  padding: 8px;
  background: rgba(122,0,255,0.15);
  border: 1px solid rgba(122,0,255,0.4);
  border-radius: 2px;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-approve:hover { background: rgba(122,0,255,0.3); }
.btn-reject {
  flex: 1;
  padding: 8px;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 2px;
  color: rgba(239,68,68,0.7);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-reject:hover { background: rgba(239,68,68,0.15); }

.admin-empty {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(140,140,140,0.3);
  letter-spacing: 0.2em;
  text-align: center;
  padding: 1.5rem 0;
}

/* Nav admin — cor roxa mais intensa */
.nav-item-admin { color: rgba(122,0,255,0.5) !important; }
.nav-item-admin.active { color: var(--primary) !important; }

/* ---- TOAST NOTIFICATIONS ---- */
.toast-container {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.toast {
  max-width: 400px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--foreground);
  pointer-events: auto;
  animation: toastIn 0.4s ease forwards;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
}
.toast.toast-out {
  animation: toastOut 0.4s ease forwards;
}
.toast-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.toast-body {
  flex: 1;
}
.toast-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.25em;
  margin-bottom: 2px;
  text-transform: uppercase;
}
.toast-message {
  font-size: 0.95rem;
  line-height: 1.4;
  color: rgba(235,235,235,0.85);
  white-space: pre-line;
}

/* Variants */
.toast-success {
  background: rgba(17,17,17,0.92);
  border: 1px solid rgba(122,0,255,0.5);
}
.toast-success .toast-icon { background: rgba(122,0,255,0.2); color: var(--primary); }
.toast-success .toast-title { color: var(--primary); }

.toast-error {
  background: rgba(17,17,17,0.92);
  border: 1px solid rgba(239,68,68,0.4);
}
.toast-error .toast-icon { background: rgba(239,68,68,0.15); color: #ef4444; }
.toast-error .toast-title { color: #ef4444; }

.toast-info {
  background: rgba(17,17,17,0.92);
  border: 1px solid rgba(234,179,8,0.4);
}
.toast-info .toast-icon { background: rgba(234,179,8,0.15); color: #eab308; }
.toast-info .toast-title { color: #eab308; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-20px) scale(0.95); }
}

/* Utility */
.hidden { display: none !important; }

/* HUD / Status Bar (InkCreds) */
.app-hud {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(122, 0, 255, 0.2);
  z-index: 1000;
  padding: 12px 24px;
  box-sizing: border-box;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}
.app-hud:hover {
  background: rgba(20, 20, 20, 0.95);
  border-bottom: 1px solid rgba(16, 185, 129, 0.4);
}

.hud-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hud-user {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-credits {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hud-credits span {
  color: #10b981 !important;
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.5) !important;
  font-family: var(--font-mono) !important;
  font-size: 12px;
  font-weight: bold;
}

.hud-label {
  color: var(--muted);
}

.hud-val {
  color: #ebebeb;
  font-weight: bold;
}

/* Adjust page padding when HUD is active */
body.hud-active .page {
  padding-top: 80px;
}

/* ---- INSTALL APP CARD ---- */
.install-app-card {
  border: 1px solid rgba(122,0,255,0.3);
  border-radius: 2px;
  background: linear-gradient(135deg, rgba(122,0,255,0.06) 0%, rgba(17,17,17,0.4) 50%, rgba(122,0,255,0.04) 100%);
  padding: 1.75rem 1.5rem;
  text-align: center;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
  animation: installCardGlow 4s ease-in-out infinite alternate;
}
.install-app-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: linear-gradient(135deg, rgba(122,0,255,0.4), transparent 40%, transparent 60%, rgba(122,0,255,0.4)) border-box;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
  animation: installBorderPulse 3s ease-in-out infinite;
}
@keyframes installCardGlow {
  0% { box-shadow: 0 0 15px rgba(122,0,255,0.08), inset 0 0 20px rgba(122,0,255,0.03); }
  100% { box-shadow: 0 0 25px rgba(122,0,255,0.15), inset 0 0 30px rgba(122,0,255,0.06); }
}
@keyframes installBorderPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.install-app-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(122,0,255,0.4);
  box-shadow: 0 0 20px rgba(122,0,255,0.3), 0 0 40px rgba(122,0,255,0.1);
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: iconFloat 3s ease-in-out infinite;
}
.install-app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.install-app-title {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--primary);
  letter-spacing: 0.35em;
  margin-bottom: 6px;
  text-shadow: 0 0 12px rgba(122,0,255,0.4);
}

.install-app-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.install-app-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn-install-platform {
  flex: 1;
  max-width: 160px;
  padding: 12px 16px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn-install-platform::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transition: left 0.5s;
}
.btn-install-platform:hover::after {
  left: 100%;
}

.btn-install-android {
  background: rgba(61, 220, 132, 0.08);
  border: 1px solid rgba(61, 220, 132, 0.35);
  color: #3ddc84;
}
.btn-install-android:hover {
  background: rgba(61, 220, 132, 0.18);
  border-color: rgba(61, 220, 132, 0.6);
  box-shadow: 0 0 15px rgba(61, 220, 132, 0.15);
}

.btn-install-ios {
  background: rgba(200, 200, 200, 0.06);
  border: 1px solid rgba(200, 200, 200, 0.25);
  color: rgba(220, 220, 220, 0.9);
}
.btn-install-ios:hover {
  background: rgba(200, 200, 200, 0.12);
  border-color: rgba(200, 200, 200, 0.5);
  box-shadow: 0 0 15px rgba(200, 200, 200, 0.1);
}

.btn-install-platform:active {
  transform: scale(0.96);
}

/* Hide install card if already standalone (PWA installed) */
@media (display-mode: standalone) {
  .install-app-card { display: none; }
}

/* CAROUSEL STYLES */
.art-thumb {
  position: relative;
}
.art-thumb .carousel-img {
  position: absolute;
  top: 0; left: 0;
  opacity: 0 !important;
  pointer-events: none;
  z-index: 1;
}
.art-thumb .carousel-img.active {
  position: relative;
  opacity: 0.65 !important;
  pointer-events: auto;
  z-index: 2;
}
.art-card:hover .art-thumb .carousel-img.active {
  opacity: 1 !important;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 10;
}
.carousel-btn.prev { left: 5px; }
.carousel-btn.next { right: 5px; }
.art-card:hover .carousel-btn {
  opacity: 1;
}
.carousel-btn:hover {
  background: rgba(122,0,255,0.8);
}
.modal-carousel-btn {
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
}
