/* ===== AURA360 – SHARED STYLES (Mobile First) ===== */
:root {
  --bg-deep: #071a1a;
  --bg-mid: #0d2b2b;
  --bg-card: rgba(13, 43, 43, 0.8);
  --gold: #e8a87c;
  --gold-light: #f5cba0;
  --teal: #2dd4bf;
  --teal-dim: #1a8a7a;
  --purple: #a78bfa;
  --red: #f43f5e;
  --text: #f0ede8;
  --muted: #7a9a98;
  --border: rgba(232, 168, 124, 0.2);
  --nav-h: 60px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: 'Raleway', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===== STARS ===== */
#stars-canvas {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
}
.star {
  position: absolute; border-radius: 50%; background: #fff;
  animation: twinkle var(--d, 3s) ease-in-out infinite var(--delay, 0s);
}
@keyframes twinkle {
  0%, 100% { opacity: 0.1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.4); }
}

/* ===== NAVBAR ===== */
#aura-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem;
  background: rgba(7, 26, 26, 0.7);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(232, 168, 124, 0.15);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}
/* Aurora glow behind nav */
#aura-nav::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(45, 212, 191, 0.03) 0%,
    rgba(232, 168, 124, 0.05) 50%,
    rgba(167, 139, 250, 0.03) 100%);
  pointer-events: none;
}

.nav-logo {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem; font-weight: 900;
  color: var(--gold); text-decoration: none;
  letter-spacing: 1px;
  display: flex; align-items: center; gap: 0.4rem;
  z-index: 1;
  text-shadow: 0 0 20px rgba(232, 168, 124, 0.4);
}
.nav-logo span { color: var(--teal); }
.nav-logo .nav-star { font-size: 0.8rem; animation: spin-slow 8s linear infinite; }
@keyframes spin-slow { to { transform: rotate(360deg); } }

/* Desktop links */
.nav-links-desktop {
  display: none; /* hidden on mobile */
  gap: 1.5rem; list-style: none; align-items: center;
  z-index: 1;
}
.nav-links-desktop a {
  color: var(--muted); text-decoration: none;
  font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase;
  font-weight: 500; transition: color 0.3s;
  position: relative; padding-bottom: 2px;
}
.nav-links-desktop a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.3s;
}
.nav-links-desktop a:hover, .nav-links-desktop a.active { color: var(--gold); }
.nav-links-desktop a:hover::after, .nav-links-desktop a.active::after { width: 100%; }

/* Nav right side */
.nav-right {
  display: flex; align-items: center; gap: 0.8rem; z-index: 1;
}

/* Hamburger */
.hamburger {
  display: flex; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; border-radius: 8px;
  transition: background 0.2s; background: transparent; border: none;
}
.hamburger:hover { background: rgba(232, 168, 124, 0.1); }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--gold); border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
#nav-drawer {
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: rgba(7, 26, 26, 0.97);
  backdrop-filter: blur(30px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-110%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 998;
  padding: 1.5rem 1.5rem 2rem;
}
#nav-drawer.open { transform: translateY(0); }
#nav-drawer ul {
  list-style: none; display: flex; flex-direction: column; gap: 0;
}
#nav-drawer ul li a {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.9rem 0.5rem;
  border-bottom: 1px solid rgba(232, 168, 124, 0.08);
  color: var(--muted); text-decoration: none;
  font-size: 0.9rem; font-weight: 500; letter-spacing: 1px;
  transition: color 0.2s, padding-left 0.2s;
}
#nav-drawer ul li:last-child a { border-bottom: none; }
#nav-drawer ul li a:hover, #nav-drawer ul li a.active {
  color: var(--gold); padding-left: 1rem;
}
#nav-drawer ul li a .di { font-size: 1.1rem; }
.drawer-footer {
  margin-top: 1.5rem; padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

/* ===== CONNECTED USER BUTTON ===== */
#user-btn {
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.3);
  border-radius: 20px; padding: 0.35rem 0.9rem 0.35rem 0.4rem;
  cursor: pointer; transition: all 0.3s;
  color: var(--teal); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.5px; white-space: nowrap;
}
#user-btn:hover { background: rgba(45, 212, 191, 0.18); }
#user-btn .u-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--teal); display: flex; align-items: center;
  justify-content: center; font-size: 0.75rem; color: var(--bg-deep);
  font-weight: 900; flex-shrink: 0;
}
#user-btn .u-caret { font-size: 0.6rem; margin-left: 2px; }

/* User dropdown */
#user-dropdown {
  position: fixed; top: calc(var(--nav-h) + 8px); right: 1rem;
  background: white; border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  width: 260px; z-index: 1000;
  overflow: hidden;
  animation: dropIn 0.2s ease;
  display: none;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
#user-dropdown.open { display: block; }
.ud-header {
  padding: 1.2rem;
  background: linear-gradient(135deg, #fdf2f8, #fff);
  border-bottom: 1px solid #f0f0f0;
  display: flex; align-items: center; gap: 0.8rem;
}
.ud-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.ud-name { font-weight: 700; color: #1a1a2e; font-size: 0.95rem; }
.ud-subtitle { color: #888; font-size: 0.75rem; margin-top: 1px; }
.ud-row {
  padding: 0.9rem 1.2rem;
  display: flex; align-items: center; gap: 0.8rem;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer; transition: background 0.15s;
}
.ud-row:hover { background: #fafafa; }
.ud-row:last-child { border-bottom: none; }
.ud-icon { font-size: 1rem; color: #888; width: 20px; text-align: center; }
.ud-label { font-size: 0.72rem; color: #aaa; text-transform: uppercase; letter-spacing: 1px; }
.ud-value { font-weight: 600; color: #1a1a2e; font-size: 0.9rem; }
.ud-badge {
  margin-left: auto; background: #22c55e; color: white;
  font-size: 0.65rem; padding: 2px 8px; border-radius: 10px; font-weight: 700;
}
.ud-arrow { margin-left: auto; color: #ccc; font-size: 0.8rem; }

/* ===== SUBSCRIPTION MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  animation: fadeOverlay 0.3s ease;
}
@keyframes fadeOverlay { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  background: white; border-radius: 24px;
  width: 100%; max-width: 420px;
  padding: 2rem 1.5rem;
  position: relative;
  animation: slideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #1a1a2e;
}
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 30px; height: 30px; border-radius: 50%;
  background: #f5f5f5; border: none; cursor: pointer;
  font-size: 1rem; color: #888; display: flex;
  align-items: center; justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover { background: #eee; }
.modal-title { font-size: 1.4rem; font-weight: 800; color: #1a1a2e; margin-bottom: 0.3rem; }
.modal-subtitle { color: #888; font-size: 0.85rem; margin-bottom: 1.5rem; }

/* Plans */
.plan-option {
  border: 2px solid #eee; border-radius: 14px;
  padding: 1rem; margin-bottom: 0.8rem;
  cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; gap: 0.8rem;
  position: relative;
}
.plan-option.selected {
  border-color: #f43f5e;
  background: linear-gradient(135deg, rgba(244,63,94,0.05), transparent);
}
.plan-radio {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid #ddd; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.plan-radio.checked {
  border-color: #f43f5e;
  background: #f43f5e;
}
.plan-radio.checked::after {
  content: ''; width: 8px; height: 8px;
  border-radius: 50%; background: white;
}
.plan-info { flex: 1; }
.plan-price { font-size: 1.1rem; font-weight: 800; color: #1a1a2e; }
.plan-price span { font-size: 0.75rem; font-weight: 500; color: #888; }
.plan-desc { font-size: 0.78rem; color: #888; margin-top: 1px; }
.plan-badge {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.5px;
  padding: 3px 8px; border-radius: 8px;
}
.badge-prepago { background: rgba(244, 63, 94, 0.15); color: #f43f5e; }
.badge-postpago { background: rgba(99, 102, 241, 0.15); color: #6366f1; }

/* Phone input */
.phone-label { font-size: 0.8rem; font-weight: 600; color: #555; margin-bottom: 0.5rem; display: block; }
.phone-input-wrap {
  display: flex; gap: 0; border: 1.5px solid #e0e0e0;
  border-radius: 12px; overflow: hidden;
  transition: border-color 0.2s; margin-bottom: 1rem;
}
.phone-input-wrap:focus-within { border-color: #f43f5e; }
.phone-flag {
  padding: 0.75rem 0.8rem; background: #f5f5f5;
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; color: #555; font-weight: 600;
  border-right: 1.5px solid #e0e0e0; white-space: nowrap;
  flex-shrink: 0;
}
.phone-input-wrap input {
  flex: 1; border: none; outline: none; padding: 0.75rem 0.8rem;
  font-size: 0.95rem; color: #1a1a2e; font-family: inherit;
  background: transparent; min-width: 0;
}
.phone-input-wrap input::placeholder { color: #bbb; }

/* Terms */
.terms-wrap {
  display: flex; align-items: flex-start; gap: 0.6rem;
  margin-bottom: 1.2rem; cursor: pointer;
}
.terms-wrap input[type="checkbox"] {
  width: 18px; height: 18px; border: 2px solid #ddd;
  border-radius: 4px; cursor: pointer; flex-shrink: 0;
  accent-color: #f43f5e; margin-top: 1px;
}
.terms-wrap label {
  font-size: 0.8rem; color: #888; cursor: pointer; line-height: 1.5;
}
.terms-wrap a { color: #f43f5e; text-decoration: underline; }

.sub-btn {
  width: 100%; padding: 0.95rem;
  background: linear-gradient(135deg, #f43f5e, #a855f7);
  color: white; border: none; border-radius: 14px;
  font-size: 1rem; font-weight: 800; cursor: pointer;
  letter-spacing: 0.5px; transition: all 0.3s;
  box-shadow: 0 8px 25px rgba(244, 63, 94, 0.3);
}
.sub-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(244, 63, 94, 0.4); }
.sub-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.sub-fine-print { font-size: 0.7rem; color: #bbb; text-align: center; margin-top: 0.8rem; line-height: 1.5; }

/* My subscription modal */
.mysub-section {
  background: #fafafa; border-radius: 12px;
  padding: 1.2rem; margin-bottom: 1.2rem;
}
.mysub-plan-label { font-size: 0.68rem; color: #aaa; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.3rem; }
.mysub-plan-name { font-size: 1.1rem; font-weight: 800; color: #1a1a2e; display: flex; align-items: center; gap: 0.6rem; }
.mysub-active { font-size: 0.68rem; background: #dcfce7; color: #16a34a; padding: 2px 8px; border-radius: 8px; font-weight: 700; }
.mysub-row { display: flex; justify-content: space-between; padding: 0.6rem 0; border-top: 1px solid #eee; font-size: 0.85rem; }
.mysub-row-label { color: #888; }
.mysub-row-value { font-weight: 600; color: #1a1a2e; }
.mysub-cancel-section { margin-top: 1rem; }
.mysub-cancel-title { font-weight: 700; margin-bottom: 0.3rem; font-size: 0.9rem; }
.mysub-cancel-desc { font-size: 0.78rem; color: #888; margin-bottom: 0.8rem; }
.cancel-sub-btn {
  width: 100%; padding: 0.85rem;
  background: #ef4444; color: white; border: none;
  border-radius: 12px; font-size: 0.9rem; font-weight: 700;
  cursor: pointer; transition: background 0.2s;
}
.cancel-sub-btn:hover { background: #dc2626; }

/* Confirm dialog */
.confirm-box {
  text-align: center; padding: 0.5rem 0.5rem 0;
}
.confirm-emoji { font-size: 3rem; margin-bottom: 0.8rem; display: block; }
.confirm-title { font-size: 1.2rem; font-weight: 800; color: #1a1a2e; margin-bottom: 0.4rem; }
.confirm-desc { color: #888; font-size: 0.85rem; margin-bottom: 0.3rem; }
.confirm-extra { color: #aaa; font-size: 0.78rem; margin-bottom: 1.5rem; }
.confirm-btns { display: flex; gap: 0.8rem; }
.btn-cancel-no {
  flex: 1; padding: 0.85rem; border: 1.5px solid #e0e0e0;
  border-radius: 12px; background: transparent; color: #555;
  font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.btn-cancel-no:hover { background: #f5f5f5; }
.btn-cancel-yes {
  flex: 1; padding: 0.85rem; background: #ef4444;
  border: none; border-radius: 12px; color: white;
  font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: background 0.2s;
}
.btn-cancel-yes:hover { background: #dc2626; }

/* ===== FOOTER ===== */
#aura-footer {
  position: relative; z-index: 1;
  background: rgba(7, 26, 26, 0.9);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem 1.5rem;
  text-align: center;
  margin-top: 4rem;
}
.footer-logo {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem; font-weight: 900;
  color: var(--gold); letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(232, 168, 124, 0.3);
  margin-bottom: 0.3rem;
}
.footer-logo span { color: var(--teal); }
.footer-tagline {
  color: var(--muted); font-size: 0.78rem;
  letter-spacing: 2px; margin-bottom: 1.5rem;
}
.footer-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  justify-content: center; margin-bottom: 1.5rem;
}
.footer-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.78rem; letter-spacing: 1px;
  text-transform: uppercase; transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold); }
.footer-divider {
  width: 40px; height: 1px; background: var(--border);
  margin: 1rem auto;
}
.footer-copy {
  color: rgba(122, 154, 152, 0.5);
  font-size: 0.72rem; letter-spacing: 1px;
}

/* ===== MAIN CONTENT OFFSET ===== */
.page-main {
  position: relative; z-index: 1;
  padding-top: var(--nav-h);
  min-height: 100vh;
}

/* ===== COMMON COMPONENTS ===== */
.section-label {
  color: var(--gold); font-size: 0.7rem;
  letter-spacing: 4px; text-transform: uppercase;
  margin-bottom: 0.6rem; display: block;
}
.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 5vw, 3rem);
  font-weight: 700; line-height: 1.2;
}
.section-desc {
  color: var(--muted); font-size: 0.9rem;
  line-height: 1.8; margin-top: 0.6rem;
}
.btn-gold {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--bg-deep); padding: 0.85rem 2rem;
  border-radius: 30px; font-weight: 700; font-size: 0.85rem;
  letter-spacing: 1.5px; text-decoration: none;
  text-transform: uppercase; transition: all 0.3s;
  box-shadow: 0 8px 25px rgba(232, 168, 124, 0.25);
  border: none; cursor: pointer; font-family: 'Raleway', sans-serif;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(232, 168, 124, 0.4); }
.btn-ghost {
  display: inline-block;
  border: 1px solid var(--border); color: var(--text);
  padding: 0.85rem 2rem; border-radius: 30px;
  font-size: 0.85rem; letter-spacing: 1.5px;
  text-decoration: none; text-transform: uppercase;
  transition: all 0.3s; background: transparent;
  cursor: pointer; font-family: 'Raleway', sans-serif;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px; backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

/* ===== LOADING ===== */
.loading-dots span {
  display: inline-block;
  animation: bounce 0.8s ease-in-out infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.15s; }
.loading-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ===== DESKTOP BREAKPOINT ===== */
@media (min-width: 768px) {
  :root { --nav-h: 64px; }
  #aura-nav { padding: 0 2rem; }
  .nav-links-desktop { display: flex; }
  .hamburger { display: none; }
  #nav-drawer { display: none !important; }
  #aura-footer { padding: 3rem 3rem 2rem; }
}
