:root {
  --teal: #5fbad1;
  --aqua: #3fc7e0;
  --dark: #0c1316;
  --white: #ffffff;
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--dark);
  color: var(--white);
  margin: 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 28px;
}

.tab {
  padding: .6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  transition: 0.25s ease;
}

.tab.active,
.tab:hover {
  background: linear-gradient(90deg, var(--aqua), var(--teal));
  color: #0b1518;
  border-color: transparent;
  transform: translateY(-2px);
}

/* Product cards */
.cards {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
}

@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .cards { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.card:hover {
  border-color: var(--aqua);
  box-shadow: 0 10px 30px rgba(63, 199, 224, 0.2);
  transform: translateY(-4px);
}

.card.best {
  border: 2px solid var(--aqua);
  background: linear-gradient(180deg, rgba(63,199,224,0.1), rgba(95,186,209,0.08));
}

.badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  color: #0b1518;
  background: var(--aqua);
  padding: .25rem .65rem;
  border-radius: 999px;
}

.price {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--aqua);
}

.btn {
  display: inline-block;
  text-align: center;
  padding: .75rem 1rem;
  border-radius: 12px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--aqua), var(--teal));
  color: #0b1518;
  transition: 0.25s ease;
}

.btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* -----------------------------------------------------
   Restore Hero + Header Styling
----------------------------------------------------- */
header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}

.logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.hero {
  position: relative;
  height: 84vh;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(32,42,46,1) 0%, rgba(63,199,224,0.10) 50%, rgba(32,42,46,1) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(60% 60% at 50% 50%, rgba(63,199,224,.25), rgba(95,186,209,.1) 40%, transparent 70%);
  filter: blur(60px);
  animation: pulse 8s infinite ease-in-out;
  pointer-events: none; /* ✅ Allows clicking through overlay */
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1; /* ✅ Ensures text/buttons are above background */
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.hero img {
  max-width: 220px;
  height: auto;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
  margin: 0 auto 1.5rem auto;
}

.cta {
  background: linear-gradient(90deg, var(--aqua), var(--teal));
  color: #0b1518;
  font-weight: 700;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(63,199,224,0.25);
}

.cta:hover {
  filter: brightness(1.05);
}


/* -----------------------------------------------------
   Sleek Header Styling
----------------------------------------------------- */
.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 28, 31, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.brand-name {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-item {
  position: relative;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s ease;
  font-weight: 500;
}

.nav-item::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--aqua), var(--teal));
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-item:hover {
  color: #fff;
}

.nav-item:hover::after {
  width: 100%;
}

/* Remove default underline from logo/brand link */
.main-header a {
  text-decoration: none !important;
}

/* Optional: if any underline persists due to gradient clip */
.main-header .brand-name,
.main-header .brand-main,
.main-header .brand-sub {
  text-decoration: none !important;
}

/* -----------------------------------------------------
   Branded Logotype Styling
----------------------------------------------------- */
.brand-name {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: -0.02em;
  display: inline-block;
  text-transform: none;
}

.brand-main {
  color: var(--aqua);
  text-shadow: 0 0 12px rgba(63,199,224,0.4);
}

.brand-sub {
  color: var(--white);
  opacity: 0.9;
  margin-left: 4px;
  background: linear-gradient(90deg, var(--aqua), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-name:hover .brand-main {
  color: var(--teal);
  text-shadow: 0 0 14px rgba(95,186,209,0.45);
}

.brand-name:hover .brand-sub {
  opacity: 1;
  filter: brightness(1.15);
}

/* -----------------------------------------------------
   Mobile Navigation
----------------------------------------------------- */
.menu-toggle {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.menu-toggle:hover {
  transform: scale(1.1);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  width: 100%;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 40;
  padding: 0.8rem 0;
  transition: all 0.3s ease-in-out;
}

.mobile-nav.open {
  display: flex;
  animation: fadeDown 0.3s ease;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-link {
  color: rgba(255,255,255,0.8);
  padding: 0.75rem 0;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.mobile-link:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}


/* Keep header pretty; remove accidental underline on brand link */
.main-header a { text-decoration: none !important; }

/* Mobile: wrap nav nicely instead of overflowing */
@media (max-width: 640px) {
  .nav-menu {
    flex-wrap: wrap;              /* allow wrapping */
    gap: 0.5rem 1rem;             /* tighter gaps */
    justify-content: center;      /* center rows */
    padding: 0.4rem 0;            /* breathing room */
  }
  .nav-item {
    font-size: .95rem;
    line-height: 1.2;
  }
  .brand-name { display: none; }  /* hide long brand text on very small screens */
}

/* --- If you prefer horizontal scroll instead of wrap, use this instead:
@media (max-width: 640px) {
  .nav-menu {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    gap: 1rem;
    padding: 0.25rem 0.5rem;
    scrollbar-width: thin;
  }
  .nav-item { flex: 0 0 auto; }
}
*/

/* Keep your nice hover underline */
.nav-item {
  position: relative;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  transition: color .2s ease;
}
.nav-item::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--aqua), var(--teal));
  transition: width .3s ease;
  border-radius: 2px;
}
.nav-item:hover { color: #fff; }
.nav-item:hover::after { width: 100%; }


.sub-price {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}


/* ===== Floating Particles Background ===== */
.particle-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aqua);
  opacity: 0.15;
  animation: floatParticle 18s linear infinite;
}

@keyframes floatParticle {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.25;
  }
  50% {
    transform: translateY(-60vh) scale(1.2);
    opacity: 0.5;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.25;
  }
}


/* ---------- Auth pages layout ---------- */
.auth-page {
  min-height: calc(100vh - 80px); /* account for sticky header */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 40px 16px;
  background: linear-gradient(135deg, var(--dark) 0%, #111b1f 55%, rgba(95,186,209,0.25) 100%);
}

.auth-card {
  width: 100%;
  max-width: 520px;             /* replaces max-w-[520px] */
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  position: relative;
  z-index: 1;
}

.auth-card--wide { max-width: 760px; } /* for register page */

@media (min-width: 768px) {
  .auth-card { padding: 32px; border-radius: 18px; }
}

.auth-logo {
  height: 56px;                 /* keeps logo tidy */
  width: auto;
  display: block;
  margin: 0 auto 16px;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
}

/* Inputs */
.input-field {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  outline: none;
  transition: box-shadow .2s, border-color .2s;
}
.input-field::placeholder { color: rgba(255,255,255,0.6); }
.input-field:focus {
  border-color: var(--aqua);
  box-shadow: 0 0 0 3px rgba(63,199,224,0.25);
}

/* Particle backdrop stays behind */
.particle-bg { z-index: 0; }

/* Buttons */
.btn-auth {
  display: inline-block;
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  font-weight: 800;
  color: #0b1518;
  background: linear-gradient(90deg, var(--aqua), var(--teal));
  transition: filter .2s ease;
}
.btn-auth:hover { filter: brightness(1.08); }

/* === Auth form alignment & spacing fix === */
.auth-card form {
  display: flex;
  flex-direction: column;
  align-items: center;       /* centers all inputs inside */
  justify-content: center;
}

.auth-card form .input-field {
  width: 90%;                /* shrink inputs slightly within card */
  max-width: 420px;          /* keeps them tidy on larger screens */
  text-align: left;
}

.auth-card form .g-recaptcha {
  transform: scale(0.95);
  transform-origin: center;
}

.auth-card form .btn-auth {
  width: 90%;
  max-width: 420px;
}

@media (min-width: 768px) {
  .auth-card.auth-card--wide form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    justify-items: center;
  }

  .auth-card.auth-card--wide form .input-field {
    width: 90%;
    max-width: 340px;
  }

  .auth-card.auth-card--wide form .g-recaptcha,
  .auth-card.auth-card--wide form .btn-auth {
    grid-column: span 2;
  }
}

/* Dropdown animation */
#userDropdown {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
#userDropdown:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
}

/* Login Card extras */
    .login-card {
        background: var(--dark);
        padding: 40px;
        max-width: 480px;
        margin: 80px auto;
        border-radius: 14px;
        box-shadow: 0 0 40px rgba(0,0,0,0.4);
        border: 1px solid rgba(63,199,224,0.25);
    }

    .login-card h1 {
        margin-bottom: 22px;
        color: var(--aqua);
        font-size: 1.8rem;
        font-weight: 700;
    } 

    /* FIX: Perfectly consistent input styling */
    .login-input {
        width: 100%;
        padding: 12px 16px;
        background: #e7f1ff;
        border: none;
        border-radius: 8px;
        font-size: 1rem;
        font-family: inherit;
        box-sizing: border-box; /* forces equal left/right padding visually */
        outline: none;
    }

    .login-input:focus {
        box-shadow: 0 0 0 2px var(--aqua);
    }

    .login-btn {
        width: 100%;
        padding: 12px 16px;
        border-radius: 8px;
        background: var(--aqua);
        color: #000;
        font-size: 1.05rem;
        font-weight: 600;
        cursor: pointer;
        border: none;
        margin-top: 8px;
    }

    .login-btn:hover {
        opacity: .9;
    }

    label {
        font-weight: 500;
        margin-bottom: 4px;
    }
