/* ============================================================
   linebroadcast.com – Main Stylesheet
   PHP 8.4 | Responsive | Cross-browser | WebP images
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --green-primary: #06C755;
  --green-dark:    #04a344;
  --green-light:   #e8faf0;
  --blue-fb:       #1877F2;
  --blue-fb-dark:  #0d5fcc;
  --gold:          #f5a623;
  --gold-dark:     #d4891a;
  --dark:          #1a1a2e;
  --dark-2:        #16213e;
  --text-main:     #2d3748;
  --text-muted:    #718096;
  --white:         #ffffff;
  --gray-bg:       #f7f8fc;
  --border:        #e2e8f0;
  --shadow-sm:     0 2px 8px rgba(0,0,0,.08);
  --shadow-md:     0 4px 20px rgba(0,0,0,.12);
  --shadow-lg:     0 8px 40px rgba(0,0,0,.16);
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     24px;
  --transition:    .3s ease;
  --font-th:       'Sarabun', 'Noto Sans Thai', sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-th);
  color: var(--text-main);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-primary); }

ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  text-align: center;
  margin-bottom: .5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-th);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-green {
  background: var(--green-primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(6,199,85,.35);
}
.btn-green:hover {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6,199,85,.45);
}

.btn-outline-green {
  background: transparent;
  color: var(--green-primary);
  border: 2px solid var(--green-primary);
}
.btn-outline-green:hover {
  background: var(--green-primary);
  color: var(--white);
}


.btn-blue {
  background: var(--blue-fb);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(21, 11, 161, 0.35);
}
.btn-blue:hover {
  background: var(--blue-fb);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 13, 238, 0.45);
}
.btn-outline-blue {
  background: transparent;
  color: var(--blue-fb);
  border: 2px solid var(--blue-fb);
}
.btn-outline-blue:hover {
  background: var(--blue-fb);
  color: var(--white);
}

.btn-gold {
  background: linear-gradient(135deg, #f5a623, #e8901a);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(245,166,35,.4);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #e8901a, #d4791a);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }
.btn-sm { padding: .5rem 1.25rem; font-size: .9rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid var(--green-primary);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

.header-logo img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--green-primary);
  line-height: 1.1;
}

.logo-tagline {
  font-size: .72rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.main-nav a {
  padding: .5rem .9rem;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-main);
  transition: all var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--green-light);
  color: var(--green-primary);
}

/* Header CTA */
.header-cta {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

.header-line-contact {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--green-light);
  border: 1.5px solid var(--green-primary);
  border-radius: 50px;
  padding: .4rem 1rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--green-dark);
  transition: all var(--transition);
}

.header-line-contact:hover {
  background: var(--green-primary);
  color: var(--white);
}

.header-line-contact .line-icon {
  width: 22px;
  height: 22px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .5rem;
  border: none;
  background: none;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem;
  gap: .25rem;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  padding: .65rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-main);
  transition: all var(--transition);
}

.mobile-nav a:hover { background: var(--green-light); color: var(--green-primary); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #0a1628 0%, #0d2137 40%, #0a3d1f 100%);
  color: var(--white);
  padding: 5rem 0 4rem;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/banner1.webp') center/cover no-repeat;
  opacity: .08;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(6,199,85,.2);
  border: 1px solid rgba(6,199,85,.4);
  color: #6ee7a0;
  padding: .35rem 1rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-title .highlight {
  color: var(--green-primary);
}

.hero-title .highlight-gold {
  color: var(--gold);
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrap img {
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--green-primary);
  line-height: 1;
}

.hero-stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  margin-top: .2rem;
}

/* ============================================================
   FEATURES STRIP
   ============================================================ */
.features-strip {
  background: var(--green-primary);
  padding: 1.5rem 0;
  overflow: hidden;
}

.features-strip-inner {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--white);
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
}

.strip-item svg { flex-shrink: 0; }

/* ============================================================
   ABOUT / INTRO SECTION
   ============================================================ */
.section { padding: 5rem 0; }
.section-alt { background: var(--gray-bg); }

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.intro-img img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
}

.intro-text .tag {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  padding: .3rem .9rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.intro-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

.intro-text p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: 1.75rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .95rem;
  color: var(--text-main);
}

.check-list li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--green-primary);
  color: var(--white);
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .15rem;
}

/* ============================================================
   FEATURES TABS (Line OA / Facebook)
   ============================================================ */
.features-tabs {
  padding: 5rem 0;
}

.tab-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .75rem 2rem;
  border-radius: 50px;
  font-family: var(--font-th);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  transition: all var(--transition);
}

.tab-btn.active-line {
  background: var(--green-primary);
  border-color: var(--green-primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(6,199,85,.35);
}

.tab-btn.active-fb {
  background: var(--blue-fb);
  border-color: var(--blue-fb);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(24,119,242,.35);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--green-primary);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.feature-card.fb-card::before { background: var(--blue-fb); }

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.feature-icon.green { background: var(--green-light); }
.feature-icon.blue  { background: #e8f0fe; }

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: .5rem;
}

.feature-card p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Restrictions */
.restrictions-box {
  background: #fff8e1;
  border: 1.5px solid #ffc107;
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  margin-top: 2rem;
}

.restrictions-box h4 {
  color: #e65100;
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.restrictions-box ul {
  list-style: disc;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.restrictions-box ul li {
  font-size: .92rem;
  color: var(--text-main);
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing { padding: 5rem 0; background: var(--gray-bg); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.price-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}

.price-card.popular {
  border-color: var(--green-primary);
  transform: scale(1.04);
  box-shadow: var(--shadow-md);
}

.price-card.popular::before {
  content: '⭐ ยอดนิยม';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-primary);
  color: var(--white);
  padding: .25rem 1rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
}

.price-card:hover:not(.popular) {
  border-color: var(--green-primary);
  box-shadow: var(--shadow-sm);
}

.price-duration {
  font-size: .9rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .5rem;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
  margin-bottom: .25rem;
}

.price-amount span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.price-per-month {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.price-features {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.price-features li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  color: var(--text-main);
}

.price-features li::before {
  content: '✓';
  color: var(--green-primary);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-note {
  text-align: center;
  margin-top: 2.5rem;
  padding: 1.25rem 2rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-size: .95rem;
  color: var(--text-muted);
}

.pricing-note strong { color: var(--dark); }

/* ============================================================
   HOW TO INSTALL
   ============================================================ */
.how-to { padding: 5rem 0; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  counter-reset: step-counter;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition);
  counter-increment: step-counter;
  position: relative;
}

.step-card::before {
  content: counter(step-counter);
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background: var(--green-primary);
  color: var(--white);
  border-radius: 50%;
  font-weight: 800;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 32px;
}

.step-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.step-card h3 { font-size: 1rem; margin-bottom: .5rem; }
.step-card p { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }

.install-tabs {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.install-tab-btn {
  padding: .6rem 1.5rem;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: var(--white);
  font-family: var(--font-th);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-muted);
}

.install-tab-btn.active {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}

/* ============================================================
   REGISTER SECTION
   ============================================================ */
.register-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #0a1628 0%, #0d2137 60%, #0a3d1f 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.register-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(6,199,85,.1) 0%, transparent 60%);
}

.register-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.register-text h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.register-text p {
  color: rgba(255,255,255,.75);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.register-steps {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 2rem;
}

.register-step {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

.register-step-num {
  width: 28px;
  height: 28px;
  background: var(--green-primary);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.register-step-text {
  font-size: .95rem;
  color: rgba(255,255,255,.85);
  padding-top: .1rem;
}

.register-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.qr-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 280px;
  width: 100%;
}

.qr-card img {
  width: 160px;
  height: 160px;
  margin: 0 auto 1rem;
  border-radius: var(--radius-sm);
}

.qr-card .qr-id {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-primary);
  margin-bottom: .25rem;
}

.qr-card .qr-desc {
  font-size: .85rem;
  color: var(--text-muted);
}

/* ============================================================
   TESTIMONIALS / REVIEWS
   ============================================================ */
.reviews { padding: 5rem 0; background: var(--gray-bg); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.review-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.review-stars {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: .75rem;
}

.review-text {
  font-size: .95rem;
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.review-name { font-weight: 700; font-size: .95rem; }
.review-role { font-size: .8rem; color: var(--text-muted); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding: 5rem 0; }

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-item:hover { box-shadow: var(--shadow-sm); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  background: var(--white);
  border: none;
  font-family: var(--font-th);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  text-align: left;
  gap: 1rem;
  transition: background var(--transition);
}

.faq-question:hover { background: var(--gray-bg); }

.faq-question.open { background: var(--green-light); color: var(--green-dark); }

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .9rem;
  transition: all var(--transition);
}

.faq-question.open .faq-icon {
  background: var(--green-primary);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.8;
  background: var(--white);
}

.faq-answer.open { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.8);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}

.footer-brand .footer-logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.footer-brand .footer-logo-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green-primary);
}

.footer-brand p {
  font-size: .9rem;
  line-height: 1.7;
  color: rgba(255,255,255,.6);
  margin-bottom: 1.25rem;
}

.footer-social {
  display: flex;
  gap: .75rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
}

.footer-social a:hover { background: var(--green-primary); }

.footer-col h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--green-primary);
  display: inline-block;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer-col ul li a {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--green-primary); }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  margin-bottom: .6rem;
}

.footer-contact-item svg { flex-shrink: 0; color: var(--green-primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: .85rem;
  color: rgba(255,255,255,.4);
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a1628 0%, #0d2137 50%, #0a3d1f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(6,199,85,.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 20%, rgba(24,119,242,.06) 0%, transparent 40%);
}

.auth-card {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 460px;
  overflow: hidden;
}

.auth-card-header {
  background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
  padding: 2.5rem 2rem 2rem;
  text-align: center;
}

.auth-card-header img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  border: 3px solid rgba(255,255,255,.3);
}

.auth-card-header h1 {
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: .25rem;
}

.auth-card-header p {
  font-size: .9rem;
  color: rgba(255,255,255,.8);
}

.auth-card-body {
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: .4rem;
}

.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-th);
  font-size: .95rem;
  color: var(--text-main);
  background: var(--white);
  transition: all var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(6,199,85,.15);
}

.form-control.error { border-color: #e53e3e; }

.form-error {
  font-size: .82rem;
  color: #e53e3e;
  margin-top: .3rem;
  display: flex;
  align-items: center;
  gap: .3rem;
}

.input-group {
  position: relative;
}

.input-group .form-control {
  padding-left: 2.75rem;
}

.input-icon {
  position: absolute;
  left: .9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.input-toggle {
  position: absolute;
  right: .9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  padding: .25rem;
  display: flex;
  align-items: center;
  transition: color var(--transition);
}

.input-toggle:hover { color: var(--green-primary); }

.form-check {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  color: var(--text-muted);
  cursor: pointer;
}

.form-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--green-primary);
  cursor: pointer;
}

.form-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: .5rem;
}

.form-link {
  font-size: .88rem;
  color: var(--green-primary);
  font-weight: 600;
  transition: color var(--transition);
}

.form-link:hover { color: var(--green-dark); text-decoration: underline; }

.btn-auth {
  width: 100%;
  padding: .9rem;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  justify-content: center;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: .85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-footer {
  padding: 1.25rem 2rem;
  background: var(--gray-bg);
  text-align: center;
  font-size: .9rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.auth-footer a {
  color: var(--green-primary);
  font-weight: 600;
}

/* Alert messages */
.alert {
  padding: .85rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}

.alert-success {
  background: #f0fff4;
  border: 1px solid #9ae6b4;
  color: #276749;
}

.alert-error {
  background: #fff5f5;
  border: 1px solid #feb2b2;
  color: #c53030;
}

.alert-info {
  background: #ebf8ff;
  border: 1px solid #90cdf4;
  color: #2c5282;
}

/* Profile page */
.profile-page {
  min-height: 100vh;
  background: var(--gray-bg);
  padding: 2rem 1.25rem;
}

.profile-header {
  background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  color: var(--white);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  border: 3px solid rgba(255,255,255,.4);
}

.profile-info h2 {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: .25rem;
}

.profile-info p {
  color: rgba(255,255,255,.8);
  font-size: .95rem;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  padding: .3rem .9rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  margin-top: .5rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.profile-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.profile-card h3 {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--green-light);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.profile-field {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: .65rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.profile-field:last-child { border-bottom: none; }

.profile-field-label {
  font-size: .85rem;
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
}

.profile-field-value {
  font-size: .9rem;
  font-weight: 600;
  color: var(--dark);
  text-align: right;
  word-break: break-all;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .7rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
}

.status-active { background: #f0fff4; color: #276749; }
.status-inactive { background: #fff5f5; color: #c53030; }
.status-trial { background: #fffbeb; color: #92400e; }
.status-vip { background: #faf5ff; color: #553c9a; }

.logout-btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.5rem;
  background: #fff5f5;
  color: #c53030;
  border: 1.5px solid #feb2b2;
  border-radius: var(--radius-sm);
  font-family: var(--font-th);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.logout-btn:hover { background: #c53030; color: var(--white); border-color: #c53030; }

/* ============================================================
   RECAPTCHA / SECURITY
   ============================================================ */
.recaptcha-wrap {
  margin-bottom: 1.25rem;
}

.rate-limit-msg {
  background: #fff5f5;
  border: 1px solid #feb2b2;
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  font-size: .85rem;
  color: #c53030;
  display: none;
}

.rate-limit-msg.show { display: block; }

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  background: var(--green-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  border: none;
  z-index: 999;
}

.scroll-top.show { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--green-dark); transform: translateY(-3px); }

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255,255,255,.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: none;
}

.btn.loading .spinner { display: inline-block; }
.btn.loading .btn-text { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fade-up { animation: fadeInUp .6s ease forwards; }
.animate-fade    { animation: fadeIn .5s ease forwards; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet: ≤ 992px */
@media (max-width: 992px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image-wrap { order: -1; }
  .hero-image-wrap img { max-width: 380px; }

  .intro-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .intro-img { order: -1; }

  .register-inner { grid-template-columns: 1fr; text-align: center; }
  .register-qr { align-items: center; }

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

/* Mobile: ≤ 768px */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .header-cta .btn { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 3.5rem 0 3rem; }
  .hero-title { font-size: 1.8rem; }

  .section { padding: 3.5rem 0; }

  .features-strip-inner { gap: 1rem; }
  .strip-item { font-size: .85rem; }

  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .price-card.popular { transform: none; }

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

  .footer-bottom { flex-direction: column; text-align: center; }

  .auth-card-body { padding: 1.5rem; }
  .auth-footer { padding: 1rem 1.5rem; }
}

/* Small mobile: ≤ 480px */
@media (max-width: 480px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.25rem; }
  .hero-stat-num { font-size: 1.5rem; }
  .tab-btn { padding: .6rem 1.25rem; font-size: .9rem; }
  .features-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
}

/* Print */
@media print {
  .site-header, .site-footer, .scroll-top { display: none; }
  body { color: #000; }
}
