:root {
  --primary: #3a6cf6;
  --primary-dark: #2c55c9;
  --accent: #8b2be2;
  --text: #1f2430;
  --muted: #6c7387;
  --bg: #f4f6fb;
  --card: #ffffff;
  --border: #e6e8f1;
}

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

body {
  font-family: "Poppins", Arial, sans-serif;
  background: #f5f7fb;
  color: var(--text);
  line-height: 1.6;
  padding-top: 88px; /* reserve space for fixed navbar */
}

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

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-shell {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1200;
  background: linear-gradient(90deg, #2f4272, #24355c);
  color: #f5f7ff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #f5f7ff;
  cursor: pointer;
  font-size: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
}

.brand i {
  background: rgba(255, 255, 255, 0.08);
  padding: 8px;
  border-radius: 10px;
  color: #f5f7ff;
}

.brand-name {
  color: #f5f7ff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 500;
  color: #dfe6ff;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.2s;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.clock {
  background: rgba(255, 255, 255, 0.06);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  color: #d0d6f5;
  display: grid;
  gap: 2px;
  text-align: right;
}

.time {
  font-weight: 700;
  color: #ffffff;
}

.primary-btn,
.ghost-btn {
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.2s, background 0.2s;
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(58, 108, 246, 0.25);
}

.primary-btn:hover {
  transform: translateY(-1px);
}

.primary-btn.large {
  padding: 12px 22px;
}

.ghost-btn {
  background: var(--card);
  color: var(--primary);
  border: 1px solid var(--border);
}

.ghost-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.primary-btn.full,
.ghost-btn.full {
  width: 100%;
}

.nav-actions .current {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.ghost-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.sale-banner {
  background: linear-gradient(135deg, #7c3aed, #b621ff);
  color: #ffffff;
  text-align: center;
  padding: 12px 8px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2px;
}

.hero {
  background: linear-gradient(180deg, #f4f6fc 0%, #eef1fa 70%);
  padding: 70px 0 100px;
  text-align: center;
}

.hero-content h1 {
  font-size: clamp(36px, 4.5vw, 48px);
  margin-bottom: 10px;
  color: #2a2f45;
  font-weight: 800;
}

.hero-sub {
  color: #28b776;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 20px;
}

.hero-lede {
  color: #7a8298;
  max-width: 680px;
  margin: 0 auto 20px;
}

.search-wrap {
  margin-top: -80px;
  margin-bottom: 48px;
}

.search-card {
  background: linear-gradient(120deg, rgba(18, 24, 44, 0.9), rgba(30, 21, 49, 0.9)), url("https://images.unsplash.com/photo-1545239351-1141bd82e8a6?auto=format&fit=crop&w=1400&q=80") center/cover no-repeat;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
  color: #f5f7ff;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.search-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.tab {
  background: rgba(255, 255, 255, 0.08);
  color: #e7ecff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.tab.active {
  background: #ffffff;
  color: #1a1f35;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.search-row input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 14px;
}

.search-row input::placeholder {
  color: #cfd5f5;
}

.search-options {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  color: #dfe4ff;
  font-size: 14px;
}

.location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tags {
  display: flex;
  gap: 8px;
  align-items: center;
}

.tag {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f5f7ff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}

.features {
  padding: 60px 0;
  background: #f3f5fa;
}

.section-head {
  text-align: center;
  margin-bottom: 26px;
}

.section-head h2 {
  font-size: clamp(28px, 3.2vw, 34px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(58, 108, 246, 0.12);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 20px;
  margin: 0 auto 10px;
}

.feature-card h3 {
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--muted);
  font-size: 14px;
}

.cta {
  padding: 16px 0 60px;
}

.cta-box {
  background: linear-gradient(135deg, rgba(58, 108, 246, 0.12), rgba(139, 43, 226, 0.12));
  border: 1px solid rgba(58, 108, 246, 0.25);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.cta-box h2 {
  margin-bottom: 6px;
}

.cta-box p {
  color: var(--muted);
  margin: 0;
}

.products {
  padding: 40px 0 80px;
  background: #f7f8fc;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  position: relative;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
}

.product-card h3 {
  margin: 12px 0 6px;
}

.product-card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.badge.in-stock {
  background: #2bbf6a;
}

.badge.out {
  background: #f55d5d;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price {
  font-weight: 700;
  font-size: 18px;
  color: #7c3aed;
}

.footer {
  background: linear-gradient(135deg, #304674, #25395f);
  color: #d4d9e8;
  padding: 30px 0 20px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.footer h4 {
  margin-bottom: 10px;
  color: #ffffff;
}

.footer p {
  margin: 4px 0;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  color: #d4d9e8;
  font-size: 14px;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  color: #d4d9e8;
  font-size: 14px;
}

.footer-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.footer-line i {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px;
}

.footer .label {
  font-weight: 700;
  color: #ffffff;
}

.footer a {
  color: #d4d9e8;
}

.footer-location {
  margin: 8px 0;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  font-size: 18px;
}

.social-links a {
  color: #ffffff;
  transition: opacity 0.2s ease;
}

.social-links a:hover {
  opacity: 0.8;
}

.badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.pay-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 8px 12px;
  font-weight: 700;
  color: #ffffff;
  font-size: 13px;
}

.app-download h5 {
  margin: 8px 0;
  color: #ffffff;
}

.app-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
}

.app-badge.primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  box-shadow: 0 10px 26px rgba(58, 108, 246, 0.25);
}

.app-badge i {
  font-size: 16px;
}

.social {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  font-size: 18px;
}

.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 18px;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  color: #c7cde1;
}

.footer-base-center {
  justify-content: center;
  text-align: center;
  gap: 14px;
}

.auth-body {
  background-image: linear-gradient(180deg, rgba(244, 246, 251, 0.92), rgba(244, 246, 251, 0.92)),
    radial-gradient(circle at 80% 70%, rgba(139, 43, 226, 0.08), transparent 28%),
    radial-gradient(circle at 18% 18%, rgba(58, 108, 246, 0.08), transparent 22%),
    url("https://images.unsplash.com/photo-1542838132-92c53300491e?auto=format&fit=crop&w=1800&q=70");
  background-size: cover, auto, auto, cover;
  background-position: center, center, center, center;
  background-repeat: no-repeat;
  min-height: 100vh;
}

.auth-main {
  padding: 40px 0 60px;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: stretch;
}

.auth-centered .auth-grid {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1040px;
  margin: 0 auto;
}

.auth-centered .auth-main {
  display: flex;
  justify-content: center;
}

.auth-centered .primary-btn.full {
  padding: 14px 20px;
  font-size: 15px;
}

.auth-centered .auth-card {
  max-width: 1000px;
  margin: 0 auto;
}

.auth-centered .auth-aside {
  display: none;
}

.auth-card,
.aside-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
}

.auth-card h1 {
  font-size: clamp(30px, 4vw, 40px);
  margin-bottom: 6px;
}

.auth-sub {
  color: var(--muted);
  margin-bottom: 14px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

.auth-form {
  display: grid;
  gap: 16px;
}

.input-group {
  display: grid;
  gap: 6px;
}

.helper-text {
  font-size: 12px;
  color: var(--muted);
}

.input-group span {
  font-weight: 600;
  font-size: 14px;
}

.input-field {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: #f9fafc;
  border-radius: 14px;
  padding: 14px 14px;
}

.input-field i {
  color: var(--muted);
}

.input-field input,
.input-field select,
.input-field textarea {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 15px;
  color: var(--text);
}

.select-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.textarea-field {
  align-items: flex-start;
}

.textarea-field textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.4;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.form-row.gap {
  gap: 12px;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.text-link {
  color: var(--primary);
  font-weight: 600;
}

.form-footer {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 15px;
  margin-top: 8px;
}

.form-status {
  margin-top: 8px;
  font-size: 14px;
  color: var(--primary);
  display: none;
}

.form-status.show {
  display: block;
}

.form-status.success {
  color: #2bbf6a;
}

.form-status.error {
  color: #d64545;
}

.form-fields {
  display: none;
  gap: 12px;
}

.form-fields.show {
  display: grid;
}

.auth-aside {
  display: flex;
  align-items: stretch;
}

.aside-card h3 {
  margin: 10px 0 12px;
}

.highlight-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.highlight-list i {
  color: #2bbf6a;
  margin-right: 8px;
}

@media (max-width: 900px) {
  .nav-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    display: none;
    flex-direction: column;
    gap: 10px;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-start;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links.open,
  .nav-actions.open {
    display: flex;
  }

  .nav-actions .clock {
    width: 100%;
  }

  .nav-actions .primary-btn,
  .nav-actions .ghost-btn {
    width: 100%;
  }

  .search-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 40px 0 70px;
  }

  .cta-box {
    align-items: flex-start;
  }

  .auth-grid {
    grid-template-columns: 1fr;
  }

  .auth-aside {
    order: -1;
  }

  .form-row.gap {
    flex-direction: column;
  }
}

/* Responsive tune-ups */
@media (max-width: 768px) {
  body {
    padding-top: 72px;
  }

  .container {
    padding: 0 14px;
  }

  .nav-bar {
    gap: 10px;
  }

  .nav-links {
    gap: 12px;
    font-size: 14px;
  }

  .nav-actions {
    gap: 8px;
  }

  .hero {
    padding: 32px 0 52px;
  }

  .search-wrap {
    margin-top: -50px;
  }

  .cta-box,
  .auth-card,
  .aside-card {
    padding: 18px;
  }

  .feature-card,
  .product-card {
    padding: 14px;
  }

  .product-card img {
    height: 160px;
  }

  .footer {
    padding: 24px 0 18px;
  }

  .auth-centered .auth-card {
    width: 100%;
  }

  .form-row {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 8px;
  }

  .brand {
    font-size: 16px;
  }

  .clock {
    width: 100%;
    text-align: left;
  }

  .search-card,
  .cta-box,
  .auth-card,
  .aside-card {
    padding: 14px;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .section-head h2 {
    font-size: 24px;
  }

  .product-card img {
    height: 140px;
  }
}
