/* =============================================
   Claude para Ingenieros — Estilos Globales
   Paleta: Navy #0A1628 | Orange #FF6B00 | White #FFFFFF
   ============================================= */

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

:root {
  --navy: #0A1628;
  --navy-light: #112240;
  --orange: #FF6B00;
  --orange-hover: #E05E00;
  --white: #FFFFFF;
  --gray-100: #F4F6F9;
  --gray-200: #E2E8F0;
  --gray-400: #94A3B8;
  --gray-600: #64748B;
  --success: #22C55E;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(10, 22, 40, 0.18);
  --shadow-hover: 0 8px 32px rgba(10, 22, 40, 0.28);
  --transition: 0.2s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--navy);
  color: var(--white);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── LOGO ASTERISCO ── */
.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--orange);
  border-radius: 50%;
  font-size: 1.75rem;
  color: var(--white);
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.2);
}

/* ── BOTONES ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn-orange {
  background: var(--orange);
  color: var(--white);
}
.btn-orange:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 107, 0, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.07);
}

.btn-green {
  background: var(--success);
  color: var(--white);
}
.btn-green:hover {
  background: #16A34A;
  transform: translateY(-1px);
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ── BADGES ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-active {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-locked {
  background: rgba(148, 163, 184, 0.12);
  color: var(--gray-400);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

/* ─────────────────────────────────────────────
   PAGE: LOGIN (index.html)
───────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--navy);
  background-image:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(255,107,0,0.12) 0%, transparent 70%);
}

.login-card {
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 40px 32px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
  text-align: center;
}

.login-card .logo {
  width: 64px;
  height: 64px;
  font-size: 2rem;
  margin: 0 auto 20px;
}

.login-card h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.login-card .subtitle {
  font-size: 0.9rem;
  color: var(--gray-400);
  margin-bottom: 32px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.input-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.input-group input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}

.input-group input::placeholder {
  color: var(--gray-600);
}

.input-group input:focus {
  border-color: var(--orange);
  background: rgba(255,255,255,0.09);
}

.login-form .btn-orange {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  border-radius: var(--radius);
  margin-top: 4px;
}

.error-msg {
  display: none;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #FCA5A5;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  text-align: left;
  line-height: 1.5;
}

.error-msg.visible {
  display: block;
}

.login-footer {
  margin-top: 28px;
  font-size: 0.78rem;
  color: var(--gray-600);
}

/* ─────────────────────────────────────────────
   PAGE: MEMBERS (members.html)
───────────────────────────────────────────── */

/* Header */
.members-header {
  background: var(--navy-light);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 12px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-brand .logo {
  width: 40px;
  height: 40px;
  font-size: 1.25rem;
}

.header-brand span {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}

/* Main content */
.members-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

/* Section headers */
.section-header {
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 0.875rem;
  color: var(--gray-400);
  margin-top: 4px;
}

.section-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 40px 0;
}

/* ── MODULE CARDS ── */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.module-card {
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}

.module-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

/* Cover image placeholder */
.module-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}

/* <!-- Replace cover placeholder with <img> when ready --> */
.module-cover .cover-icon {
  font-size: 2.5rem;
  opacity: 0.2;
}

.module-cover .cover-label {
  font-size: 0.7rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* If user adds a real <img> inside .module-cover */
.module-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.module-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.module-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
}

.module-body .btn {
  width: 100%;
  padding: 10px;
  font-size: 0.875rem;
  margin-top: auto;
}

/* ── STORE / ORDERBUMP CARDS ── */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.ob-card {
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}

.ob-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.ob-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}

.ob-cover .cover-icon {
  font-size: 2.5rem;
  opacity: 0.2;
}

.ob-cover .cover-label {
  font-size: 0.7rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ob-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.ob-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.ob-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.ob-body h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  flex: 1;
}

.ob-body p {
  font-size: 0.82rem;
  color: var(--gray-400);
  line-height: 1.55;
  flex: 1;
}

.ob-body .btn {
  width: 100%;
  padding: 10px;
  font-size: 0.875rem;
  margin-top: auto;
}

/* ── BENEFIT CARD (OB4 / OB5) ── */
.benefit-card {
  max-width: 560px;
  margin: 40px auto;
  background: var(--navy-light);
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: 0 0 40px rgba(255, 107, 0, 0.08);
}

.benefit-icon {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 24px;
}

.benefit-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.benefit-card p {
  font-size: 1rem;
  color: var(--gray-200);
  line-height: 1.7;
  margin-bottom: 28px;
}

.benefit-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid rgba(255, 107, 0, 0.3);
  color: var(--orange);
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
}

/* ── BOTÃO VOLTAR ── */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.12);
  color: var(--gray-400);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.btn-back:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

/* ── LOADING SKELETON ── */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── WELCOME BAR ── */
.welcome-bar {
  background: linear-gradient(135deg, rgba(255,107,0,0.12) 0%, rgba(255,107,0,0.04) 100%);
  border: 1px solid rgba(255,107,0,0.2);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.welcome-bar .wave {
  font-size: 1.6rem;
  line-height: 1;
}

.welcome-bar p {
  font-size: 0.9rem;
  color: var(--gray-200);
  line-height: 1.5;
}

.welcome-bar strong {
  color: var(--orange);
}

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */

@media (max-width: 480px) {
  .login-card {
    padding: 32px 20px;
  }

  .login-card h1 {
    font-size: 1.3rem;
  }

  .modules-grid,
  .store-grid {
    grid-template-columns: 1fr;
  }

  .header-brand span {
    display: none;
  }
}

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

@media (min-width: 900px) {
  .modules-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .store-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .members-main {
    padding: 40px 24px 80px;
  }
}
