/* =============================================================
   GetHumanized – Global Components CSS
   Nav + Footer shared across every page
   ============================================================= */

/* ── Navbar ──────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,9,26,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  height: 60px; display: flex; align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: #e2e8f0;
}
.logo-icon {
  font-size: 18px; color: #9d6ffc;
  animation: gh-spin 6s linear infinite;
  display: inline-block;
}
@keyframes gh-spin { to { transform: rotate(360deg); } }
.logo-text { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; color: #e2e8f0; }
.badge {
  font-size: 9px; font-weight: 700; letter-spacing: 0.8px;
  padding: 2px 6px; border-radius: 99px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.4);
  color: #9d6ffc;
}
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-link {
  font-size: 14px; font-weight: 500; color: #94a3b8;
  text-decoration: none; transition: color .2s;
}
.nav-link:hover, .nav-link.active { color: #e2e8f0; }
.btn-nav {
  font-size: 13px; font-weight: 600; padding: 7px 16px;
  border-radius: 99px; background: #7c3aed; color: #fff;
  text-decoration: none; transition: opacity .2s;
  border: none; cursor: pointer;
}
.btn-nav:hover { opacity: 0.88; }

/* ── Hamburger ───────────────────────────────────────────────── */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 36px; height: 36px;
  background: transparent; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px; cursor: pointer; padding: 6px; z-index: 200;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block; height: 2px; border-radius: 99px;
  background: #94a3b8; transition: all .25s;
}
.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none; position: fixed;
    top: 60px; left: 0; right: 0;
    height: auto;
    max-height: calc(100vh - 60px);
    background: rgba(7,9,26,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column; align-items: stretch;
    padding: 16px 20px 32px; gap: 4px;
    z-index: 150; overflow-y: auto;
  }
  .nav-open .nav-links { display: flex; }
  .nav-link { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .btn-nav { margin-top: 12px; text-align: center; padding: 14px; font-size: 15px; border-radius: 10px; display: block; }
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 28px 24px;
}
.footer-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 16px;
}
.footer-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px; color: #e2e8f0;
  text-decoration: none;
}
.footer-brand-icon { font-size: 16px; color: #9d6ffc; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a {
  font-size: 13px; color: #64748b;
  text-decoration: none; transition: color .2s;
}
.footer-links a:hover { color: #e2e8f0; }
.footer-copy {
  font-size: 12px; color: #64748b;
  width: 100%; text-align: center;
  padding-top: 8px; margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-copy a { color: #64748b; text-decoration: none; transition: color .2s; }
.footer-copy a:hover { color: #9d6ffc; }

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  .footer-brand { justify-content: center; }
  .footer-links { justify-content: center; gap: 12px 18px; }
}

/* ── Prevent horizontal scroll (body only — html clips fixed elements) ── */
body { overflow-x: hidden; }

/* ───────────────────────────────────────────────────────────── */
/* ── Auth Buttons & User Menu (Copied from style.css) ───────── */
/* ───────────────────────────────────────────────────────────── */
.auth-buttons { display: flex; align-items: center; gap: 10px; }
.btn-signin { font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 99px; color: #94a3b8; border: 1px solid rgba(255,255,255,0.08); background: transparent; transition: all 0.2s; cursor: pointer;}
.btn-signin:hover { color: #fff; border-color: rgba(255,255,255,0.15); }
.user-menu { display: flex; align-items: center; gap: 14px; }
.usage-pill { display: flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 99px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); font-size: 12px; font-weight: 600; color: #94a3b8; white-space: nowrap; }
.usage-track-mini { width: 50px; height: 4px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; }
.usage-fill-mini { height: 100%; border-radius: 99px; width: 0%; background: #9d6ffc; transition: width 0.6s ease, background 0.6s ease; }
.user-avatar-wrap { position: relative; }
.user-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #7c3aed, #9333ea); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.user-avatar:hover { transform: scale(1.08); box-shadow: 0 0 0 4px rgba(124,58,237,0.15); }
.user-dropdown { position: absolute; top: calc(100% + 10px); right: 0; min-width: 200px; background: #0f1228; border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 12px; box-shadow: 0 15px 35px -5px rgba(0,0,0,0.5); display: none; z-index: 200; }
.user-avatar-wrap:hover .user-dropdown, .user-dropdown:hover { display: block; }
.dropdown-email { font-size: 13px; font-weight: 600; color: #fff; padding-bottom: 6px; word-break: break-all; }
.dropdown-plan { font-size: 11px; color: #64748b; display: flex; align-items: center; gap: 6px; }
.plan-dot { width: 6px; height: 6px; border-radius: 50%; background: #9d6ffc; flex-shrink: 0; }
.dropdown-divider { border: none; border-top: 1px solid rgba(255,255,255,0.08); margin: 10px 0; }
.dropdown-logout { font-size: 13px; font-weight: 500; color: #94a3b8; padding: 6px 0; width: 100%; text-align: left; transition: color 0.2s; background: transparent; border: none; cursor: pointer;}
.dropdown-logout:hover { color: #ef4444; }
.dropdown-action { display: block; font-size: 13px; font-weight: 500; color: #fff; text-decoration: none; padding: 6px 0; transition: color 0.2s; cursor: pointer;}
.dropdown-action:hover { color: #9d6ffc; }
.dropdown-action-btn { font-size: 13px; font-weight: 500; color: #fff; padding: 6px 0; width: 100%; text-align: left; transition: color 0.2s; background: transparent; border: none; cursor: pointer;}
.dropdown-action-btn:hover { color: #9d6ffc; }
.theme-toggle { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); display: flex; align-items: center; justify-content: center; font-size: 15px; cursor: pointer; transition: all .2s; flex-shrink: 0; }
.theme-toggle:hover { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.08); }
.theme-icon-light { display: none; }
body.light .theme-icon-dark  { display: none; }
body.light .theme-icon-light { display: block; }

@media (max-width: 720px) {
  .auth-buttons { flex-direction: column; gap: 8px; padding-top: 8px; }
  .auth-buttons .btn-signin, .auth-buttons .btn-nav { width: 100%; text-align: center; padding: 12px; font-size: 15px; border-radius: 10px; }
  .user-menu { flex-direction: row; gap: 10px; padding-top: 8px; }
}

/* ───────────────────────────────────────────────────────────── */
/* ── Global Light Mode Variables ────────────────────────────── */
/* ───────────────────────────────────────────────────────────── */
body.light {
  --bg:          #f8f9ff;
  --bg2:         #eef0fa;
  --surface:     rgba(0,0,0,0.04);
  --surface-h:   rgba(0,0,0,0.07);
  --border:      rgba(0,0,0,0.1);
  --border-h:    rgba(124,58,237,0.4);
  --text:        #0f172a;
  --text-dim:    #475569;
  --text-muted:  #94a3b8;
  --shadow:      0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg:   0 8px 48px rgba(0,0,0,0.18);
}

/* Footer Light Mode Overrides */
body.light .site-footer { border-top-color: var(--border); }
body.light .footer-brand { color: var(--text); }
body.light .footer-links a { color: var(--text-dim); }
body.light .footer-links a:hover { color: var(--text); }
body.light .footer-copy { color: var(--text-muted); border-top-color: var(--border); }
body.light .footer-copy a { color: var(--text-dim); }
body.light .footer-copy a:hover { color: var(--text); }

/* Navbar Light Mode Overrides */
body.light .navbar { background: rgba(248,249,255,0.92); border-bottom-color: var(--border); }
body.light .logo { color: var(--text); }
body.light .logo-text { color: var(--text); }
body.light .nav-link { color: var(--text-dim); border-bottom-color: rgba(0,0,0,0.06); }
body.light .nav-link:hover, body.light .nav-link.active { color: var(--text); }
body.light .btn-signin { color: var(--text-dim); border-color: rgba(0,0,0,0.15); }
body.light .btn-signin:hover { color: var(--text); border-color: rgba(0,0,0,0.3); }
body.light .nav-hamburger { border-color: rgba(0,0,0,0.15); }
body.light .nav-hamburger span { background: var(--text-muted); }

/* ───────────────────────────────────────────────────────────── */
/* ── Auth Modal (Global) ────────────────────────────────────── */
/* ───────────────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; padding: 20px; animation: fadeIn 0.2s ease; }
.modal-overlay.open { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card { position: relative; width: 100%; max-width: 400px; background: #0f1228; border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 32px; box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(124,58,237,0.1); animation: slideUp 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-close { position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #94a3b8; background: rgba(0,0,0,0.04); border: 1px solid rgba(255,255,255,0.1); transition: all 0.2s; cursor: pointer; }
.modal-close:hover { color: #fff; background: rgba(0,0,0,0.07); }
.modal-brand { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 28px; }
.modal-logo-icon { color: #a78bfa; font-size: 20px; }
.auth-tabs { position: relative; display: flex; gap: 0; background: rgba(0,0,0,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 99px; padding: 3px; margin-bottom: 28px; }
.auth-tab { flex: 1; padding: 8px 0; border-radius: 99px; font-size: 13px; font-weight: 600; color: #94a3b8; position: relative; z-index: 1; transition: color 0.2s; background: transparent; border: none; cursor: pointer; }
.auth-tab.active { color: #fff; }
.auth-tab-slider { position: absolute; top: 3px; left: 3px; bottom: 3px; width: calc(50% - 3px); background: linear-gradient(135deg, #7c3aed, #9333ea); border-radius: 99px; transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); z-index: 0; box-shadow: 0 2px 12px rgba(124,58,237,0.4); }
.auth-tab-slider.register { transform: translateX(100%); }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: #475569; }
.form-group input { padding: 11px 14px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: #fff; font-size: 14px; outline: none; transition: border-color 0.2s, background 0.2s; }
.form-group input:focus { border-color: rgba(124,58,237,0.4); background: rgba(255,255,255,0.08); }
.form-error { font-size: 13px; color: #ef4444; background: rgba(239,68,68,0.1); padding: 10px 14px; border-radius: 8px; display: none; margin-bottom: 4px; }
.form-error.visible { display: block; }
.btn-auth { width: 100%; padding: 12px; font-size: 15px; font-weight: 600; color: #fff; background: #7c3aed; border: none; border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: opacity 0.2s, transform 0.2s; }
.btn-auth:hover:not(:disabled) { transform: translateY(-1px); opacity: 0.9; }
.btn-auth:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-google { width: 100%; padding: 12px; font-size: 14px; font-weight: 600; color: #fff; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 12px; transition: background 0.2s; }
.btn-google:hover { background: rgba(255,255,255,0.08); }
.auth-switch { text-align: center; font-size: 13px; color: #94a3b8; margin-top: 8px; }
.auth-link { color: #a78bfa; font-weight: 600; cursor: pointer; transition: color 0.2s; border: none; background: transparent; }
.auth-link:hover { color: #c4b5fd; }
.or-divider { display: flex; align-items: center; text-align: center; color: #475569; font-size: 12px; font-weight: 600; text-transform: uppercase; margin: 16px 0; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; border-bottom: 1px solid rgba(255,255,255,0.1); }
.or-divider span { padding: 0 10px; }
.auth-plan-note { font-size: 12px; color: #64748b; text-align: center; margin-top: -4px; }
