/* ============================================
   TVNexly Store — Shared Styles
   ============================================ */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #8b5cf6;
  --accent: #ec4899;
  --dark: #0f172a;
  --darker: #0a0e1a;
  --light: #f8faff;
  --gray: #64748b;
  --border: #e8edf8;
  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --gradient-soft: linear-gradient(135deg, #eef1ff 0%, #fdf2f8 100%);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, .06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 20px 48px rgba(99, 102, 241, .15);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: #fff;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dark);
}

a { text-decoration: none; transition: all .25s ease; }

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-gradient-brand { background: var(--gradient); }
.bg-soft { background: var(--gradient-soft); }
.bg-light-section { background: var(--light); }

/* ===== Buttons ===== */
.btn-brand {
  background: var(--gradient);
  color: #fff;
  border: none;
  font-weight: 700;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  box-shadow: 0 8px 20px rgba(99, 102, 241, .35);
  transition: all .3s ease;
}
.btn-brand:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(99, 102, 241, .45);
  color: #fff;
}
.btn-outline-brand {
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  padding: .7rem 1.75rem;
  border-radius: 50px;
  background: transparent;
  transition: all .3s ease;
}
.btn-outline-brand:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

/* ===== Navbar ===== */
.navbar-brand-logo {
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}
.navbar {
  padding: 1.1rem 0;
  background: rgba(255,255,255,.85) !important;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: all .3s ease;
}
.navbar .nav-link {
  font-weight: 600;
  color: var(--dark) !important;
  margin: 0 .6rem;
  position: relative;
}
.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient);
  transition: width .3s ease;
}
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after { width: 100%; }
.navbar .nav-link.active { color: var(--primary) !important; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 160px 0 100px;
  background: var(--darker);
  overflow: hidden;
  color: #fff;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(99,102,241,.35), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(236,72,153,.30), transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(139,92,246,.20), transparent 60%);
  z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 4rem); }
.hero p.lead { color: rgba(255,255,255,.75); }
.badge-pill-soft {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  padding: .5rem 1.2rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  backdrop-filter: blur(10px);
}

.page-hero {
  padding: 150px 0 70px;
  background: var(--darker);
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
}
.page-hero::before {
  content:'';
  position: absolute; inset:0;
  background:
    radial-gradient(circle at 20% 30%, rgba(99,102,241,.35), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(236,72,153,.28), transparent 45%);
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.7); }

/* ===== Sections ===== */
.section { padding: 90px 0; }
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: .75rem;
}
.section-subtitle {
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--gradient-soft);
  padding: .4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

/* ===== Product Cards ===== */
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all .3s ease;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.product-thumb {
  height: 190px;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-thumb i {
  font-size: 3.2rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.product-thumb .badge-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--gradient);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .35rem .8rem;
  border-radius: 50px;
  letter-spacing: .05em;
}
.product-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-body h3 {
  font-size: 1.15rem;
  margin-bottom: .5rem;
}
.product-body p {
  color: var(--gray);
  font-size: .92rem;
  flex-grow: 1;
}
.product-price {
  font-size: 1.6rem;
  font-weight: 900;
  margin: .75rem 0;
}
.product-price span {
  font-size: .9rem;
  color: var(--gray);
  font-weight: 500;
  text-decoration: line-through;
  margin-left: .4rem;
}
.product-actions {
  display: flex;
  gap: .6rem;
  margin-top: .5rem;
}
.product-actions .btn-brand,
.product-actions .btn-outline-brand {
  flex: 1;
  text-align: center;
  padding: .6rem .9rem;
  font-size: .9rem;
}

/* ===== Feature Icons ===== */
.feature-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-soft);
  color: var(--primary);
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
  height: 100%;
  transition: all .3s ease;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

/* ===== Testimonials ===== */
.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
}
.testimonial-card .stars { color: #fbbf24; margin-bottom: .75rem; }
.testimonial-author {
  display: flex; align-items: center; gap: .85rem; margin-top: 1.25rem;
}
.testimonial-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700;
  flex-shrink: 0;
}

/* ===== FAQ Accordion ===== */
.faq-item {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
  transition: border-color .25s, box-shadow .25s;
}
.faq-item:hover, .faq-item.open {
  border-color: var(--primary);
  box-shadow: 0 4px 24px rgba(99,102,241,.09);
}
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 20px 24px; cursor: pointer; user-select: none;
  font-weight: 700;
}
.faq-chevron {
  width: 28px; height: 28px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #f1f4ff; border-radius: 8px;
  color: var(--primary); font-size: .75rem;
  transition: transform .3s, background .25s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); background: var(--primary); color:#fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner { padding: 0 24px 20px; color: var(--gray); border-top: 1px solid #f0f2fb; padding-top: 14px; }

/* ===== Newsletter ===== */
.newsletter-section {
  background: var(--gradient);
  border-radius: 28px;
  padding: 3.5rem 2rem;
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
}
.newsletter-section h2 { color: #fff; }
.newsletter-form .form-control {
  border-radius: 50px;
  border: none;
  padding: .85rem 1.5rem;
  min-width: 280px;
}
.newsletter-form .btn-brand {
  background: var(--dark);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}

/* ===== Stats ===== */
.stat-box { text-align: center; }
.stat-box h3 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: .25rem;
}
.stat-box p { color: var(--gray); font-weight: 600; margin: 0; }

/* ===== Footer ===== */
footer.site-footer {
  background: var(--darker);
  color: rgba(255,255,255,.65);
  padding: 70px 0 25px;
}
footer.site-footer h5 { color: #fff; margin-bottom: 1.25rem; }
footer.site-footer a { color: rgba(255,255,255,.6); }
footer.site-footer a:hover { color: #fff; }
footer.site-footer .footer-logo {
  font-weight: 900;
  font-size: 1.5rem;
  color: #fff;
}
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer ul li { margin-bottom: .6rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 50px;
  padding-top: 25px;
  font-size: .9rem;
  text-align: center;
}
.social-icons a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  margin-right: .5rem;
}
.social-icons a:hover { background: var(--gradient); border-color: transparent; }

/* ===== Generic Content (legal pages) ===== */
.legal-content h2 { margin-top: 2rem; font-size: 1.4rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--gray); }
.legal-content { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--shadow-sm); }

/* ===== Misc ===== */
.rounded-20 { border-radius: 20px; }
.shadow-soft { box-shadow: var(--shadow-md); }
.breadcrumb-nexly a { color: rgba(255,255,255,.6); }
.breadcrumb-nexly .active { color: #fff; }

/* ===== Forms ===== */
.form-control, .form-select {
  border-radius: 12px;
  border: 1.5px solid var(--border);
  padding: .8rem 1.1rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 .2rem rgba(99,102,241,.15);
}
label { font-weight: 600; margin-bottom: .4rem; display: inline-block; }

/* ===== Back to top ===== */
.back-to-top {
  position: fixed; bottom: 25px; right: 25px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  opacity: 0; visibility: hidden;
  transition: all .3s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; }
