/* SECTION: RESET */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  font-family: var(--font-text, 'Inter', sans-serif);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* SECTION: UTILITÁRIOS */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.gold-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* SECTION: BOTÕES */
.btn {
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.btn-auth {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius);
  font-weight: 600;
  margin-top: 12px;
  text-align: center;
}

.btn-gold {
  background: var(--gold);
  color: var(--black);
}

.btn-dark {
  background: var(--text);
  color: var(--bg);
}

.btn-outline {
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
}

/* SECTION: HEADER */
:root { --header-height: 92px; }

.header {
  position: fixed;
  top: 0;
  left: 0;
  background: var(--background);
  right: 0;
  z-index: 1200;
}

body { padding-top: var(--header-height);     background: var(--background);}

.header-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 9px 20px;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.header-top .signup {
  color: var(--gold);
  margin-left: 18px;
  font-weight: 600;
  transition: color 0.25s ease;
}
.header-top .signup:hover { color: var(--gold-2); }

.header-top .login {
  padding: 4px 14px;
  border: 1px solid var(--gold);
  border-radius: 20px;
  background: var(--grad-gold);
  color: var(--black);
  font-size: 0.85rem;
  margin-left: 12px;
}
.header-top .login:hover { filter: brightness(1.05); }

.header-main {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
}

.header-center .logo-img {
  height: 32px;
  transition: transform 0.3s ease;
}
.header-center .logo-img:hover { transform: scale(1.05); }

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* SECTION: HEADER BUTTONS */
.icon-btn, .theme-toggle, .header-btn {
  border: 2px solid var(--gold);
  border-radius: 50%;
  width: 39px;
  height: 39px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  transition: all 0.25s ease;
}

.icon-btn:hover, .theme-toggle:hover, .header-btn:hover {
  background: var(--grad-gold);
  color: var(--black);
  box-shadow: 0 0 10px rgba(207,163,73,0.35);
}

/* SECTION: LANGUAGE DROPDOWN */
.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-menu {
  list-style: none;
  margin: 6px 0 0;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  position: absolute;
  top: 52px;
  right: 0;
  width: 170px;
  z-index: 1500;
  animation: fadeIn 0.25s ease;
}
.lang-menu.hidden { display: none; }

.lang-menu li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
}

.lang-menu li img {
  width: 22px;
  border-radius: 3px;
  box-shadow: 0 0 4px rgba(0,0,0,0.15);
}

.lang-menu li:hover {
  background: var(--grad-gold);
  color: var(--black);
  transform: translateX(4px);
}

.lang-menu li.active {
  font-weight: 600;
  background: var(--gold);
  color: var(--black);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* SECTION: TOGGLE ANIMATION */
#theme-toggle i {
  transition: transform 0.4s ease, opacity 0.3s ease;
}
[data-theme="light"] #theme-toggle i.fa-moon { opacity: 1; transform: rotate(0); }
[data-theme="light"] #theme-toggle i.fa-sun { opacity: 0; transform: rotate(90deg); }
[data-theme="dark"] #theme-toggle i.fa-moon { opacity: 0; transform: rotate(-90deg); }
[data-theme="dark"] #theme-toggle i.fa-sun { opacity: 1; transform: rotate(0); }

/* SECTION: TYPOGRAPHY */
body {
  font-family: var(--font-text);
  background: var(--bg);
  color: var(--text);
}
h1, h2, h3, .menu-header {
  font-family: var(--font-title);
}
.brand, .gold, .premium, .user-profile .role {
  font-family: var(--font-alt);
}
.brand {
  font-size: 1.4rem;
  font-weight: 700;
}
.brand .vel { color: var(--text); }
.brand .vet { color: var(--red); }

/* SECTION: CATALOG */
.catalog {
  padding: 40px 20px;
  text-align: center;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  margin: 20px auto;
  max-width: 960px;
}

.catalog-title {
  font-size: 2rem;
  font-family: var(--font-alt);
  margin-bottom: 10px;
}

.catalog-sub {
  color: var(--muted);
  margin-bottom: 20px;
}

.catalog-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* SECTION: PROFILE */
.profile {
  padding: 40px 20px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin: 20px auto;
  max-width: 960px;
}

.profile h1 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

/* SECTION: VIEWER */
.viewer {
  padding: 40px 20px;
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin: 20px auto;
  max-width: 960px;
}

/* SECTION: VIEWPORT GUARD */
:root { --min-mobile-width: 320px; }

.viewport-guard {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: rgba(0,0,0,.85);
  color: #fff;
  backdrop-filter: blur(2px);
}

.viewport-guard .box {
  max-width: 420px;
  border: 1px solid rgba(207,163,73,.5);
  border-radius: 14px;
  padding: 18px 16px;
  background: linear-gradient(180deg, #151515, #0e0e0e);
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}

.viewport-guard h3 {
  margin-bottom: 8px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--gold);
}

.viewport-guard p {
  opacity: .9;
  line-height: 1.4;
  font-size: .95rem;
}

.blocked-vw .viewport-guard { display: flex; }
.blocked-vw body { overflow: hidden; }

.auth-close {
  cursor: pointer;
  border: none;
  margin-left: 321px;
  /* background: none; */
  font-family: inherit;
}


.confirm-box {
  position: absolute;
}