/* =============================================
   refundtaxthai.com — Main Stylesheet
   Color Palette: #FF5A5A → #FF8B5A → #FFA95A → #FFD45A
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Sarabun:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Prompt:wght@400;500;600;700;800&display=swap');

/* ---- CSS Variables ---- */
:root {
  --color-1: #FF5A5A;
  --color-2: #FF8B5A;
  --color-3: #FFA95A;
  --color-4: #FFD45A;
  --color-dark: #0f0500;
  --color-deep: #1a0800;
  --color-surface: #1e0c00;
  --color-card: rgba(255,255,255,0.04);
  --color-card-hover: rgba(255,140,90,0.08);
  --color-border: rgba(255,169,90,0.15);
  --color-border-hover: rgba(255,169,90,0.35);
  --text-primary: #fff5ea;
  --text-secondary: rgba(255,235,210,0.75);
  --text-muted: rgba(255,220,180,0.5);
  --gradient-brand: linear-gradient(90deg, #FF5A5A, #FF8B5A, #FFA95A, #FFD45A);
  --gradient-hero: linear-gradient(135deg, #0f0500 0%, #1a0800 40%, #220d00 70%, #1a0800 100%);
  --gradient-card: linear-gradient(145deg, rgba(255,90,90,0.06) 0%, rgba(255,212,90,0.04) 100%);
  --gradient-cta: linear-gradient(135deg, #FF5A5A, #FF8B5A);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-card: 0 8px 32px rgba(255,90,90,0.1);
  --shadow-glow: 0 0 40px rgba(255,140,90,0.2);
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Sarabun', sans-serif;
  background: var(--color-dark);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  color-scheme: dark;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Prompt', sans-serif;
  color: var(--text-primary);
  line-height: 1.3;
}

a { color: var(--color-3); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-4); }

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

/* ---- Utility ---- */
.text-brand { background: var(--gradient-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-muted-custom { color: var(--text-muted); }
.text-secondary-custom { color: var(--text-secondary); }
.section-gap { padding: 80px 0; }
.section-gap-sm { padding: 50px 0; }

/* ---- Gradient Text ---- */
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Custom Nav Links (used directly in header, no .navbar-nav wrapper) ---- */
.nav-link {
  color: rgba(255,235,210,0.72) !important;
  font-weight: 500;
  padding: 8px 14px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary) !important;
  background: rgba(255,169,90,0.1);
}

/* ---- Navbar ---- */
.navbar-custom {
  background: rgba(15,5,0,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar-custom.scrolled {
  background: rgba(15,5,0,0.98);
  box-shadow: 0 4px 30px rgba(255,90,90,0.1);
}

.navbar-brand-custom {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Prompt', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
}

.brand-refund { color: #FF5A5A; }
.brand-tax { color: #FFA95A; }
.brand-thai { color: var(--text-primary); }
.brand-dot { color: var(--color-4); font-size: 0.9em; }

.navbar-nav .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  padding: 8px 14px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 15px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--text-primary) !important;
  background: rgba(255,169,90,0.1);
}

.navbar-toggler {
  border: 1px solid var(--color-border);
  padding: 6px 10px;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C169%2C90%2C0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---- Hero Section ---- */
.hero-section {
  background: var(--gradient-hero);
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0 60px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(255,90,90,0.08) 0%, transparent 60%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(255,212,90,0.06) 0%, transparent 60%);
  animation: heroGlow 10s ease-in-out infinite alternate-reverse;
}

@keyframes heroGlow {
  from { opacity: 0.5; transform: scale(1); }
  to   { opacity: 1;   transform: scale(1.1); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,90,90,0.12);
  border: 1px solid rgba(255,90,90,0.25);
  color: var(--color-3);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--color-1);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 580px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-actions { animation: fadeInUp 0.8s ease 0.6s both; }

/* ---- Buttons ---- */
.btn-primary-custom {
  background: var(--gradient-cta);
  color: white;
  border: none;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  font-family: 'Sarabun', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(255,90,90,0.35);
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,90,90,0.5);
  color: white;
}

.btn-secondary-custom {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--color-border);
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  font-family: 'Sarabun', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-secondary-custom:hover {
  background: rgba(255,169,90,0.1);
  border-color: var(--color-border-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* ---- Section Titles ---- */
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 48px;
  max-width: 600px;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-3);
  margin-bottom: 10px;
}

/* ---- Cards ---- */
.knowledge-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.knowledge-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transition: var(--transition);
}

.knowledge-card:hover {
  background: var(--color-card-hover);
  border-color: var(--color-border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

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

.knowledge-card .card-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.knowledge-card .card-icon.icon-1 { background: rgba(255,90,90,0.15); color: #FF5A5A; }
.knowledge-card .card-icon.icon-2 { background: rgba(255,139,90,0.15); color: #FF8B5A; }
.knowledge-card .card-icon.icon-3 { background: rgba(255,169,90,0.15); color: #FFA95A; }
.knowledge-card .card-icon.icon-4 { background: rgba(255,212,90,0.15); color: #FFD45A; }
.knowledge-card .card-icon.icon-5 { background: rgba(255,90,90,0.12); color: #FF8B5A; }
.knowledge-card .card-icon.icon-6 { background: rgba(255,212,90,0.12); color: #FFA95A; }

.knowledge-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.knowledge-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.knowledge-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-3);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}

.knowledge-card .card-link:hover { gap: 10px; color: var(--color-4); }

/* ---- Article Cards ---- */
.article-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.article-card-img {
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,90,90,0.15), rgba(255,212,90,0.1));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-card-img img { width: 100%; height: 100%; object-fit: cover; }
.article-card-img .placeholder-icon { font-size: 3rem; color: var(--color-3); opacity: 0.5; }

.article-card-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-category {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-3);
  margin-bottom: 10px;
  background: rgba(255,169,90,0.1);
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid rgba(255,169,90,0.2);
}

.article-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
  flex: 1;
}

.article-card-title a { color: inherit; }
.article-card-title a:hover { color: var(--color-3); }

.article-card-excerpt {
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

/* ---- Stats Bar ---- */
.stats-bar {
  background: rgba(255,255,255,0.03);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 40px 0;
}

.stat-item {
  text-align: center;
  padding: 10px 20px;
}

.stat-number {
  font-family: 'Prompt', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label { color: var(--text-secondary); font-size: 14px; }

/* ---- Testimonial Cards ---- */
.testimonial-card {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: var(--transition);
  height: 100%;
}

.testimonial-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.testimonial-review {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
  position: relative;
  padding-left: 20px;
}

.testimonial-review::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -5px;
  font-size: 2rem;
  color: var(--color-3);
  font-family: 'Prompt', sans-serif;
  line-height: 1;
}

.testimonial-meta { display: flex; align-items: center; gap: 12px; }

.testimonial-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gradient-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.testimonial-name { font-weight: 700; font-size: 14.5px; color: var(--text-primary); }
.testimonial-occupation { font-size: 12.5px; color: var(--text-muted); }

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,212,90,0.12);
  border: 1px solid rgba(255,212,90,0.2);
  color: #FFD45A;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 10px;
}

/* ---- FAQ Section ---- */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover { border-color: var(--color-border-hover); }

.faq-question {
  background: transparent;
  color: var(--text-primary);
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  width: 100%;
  border: none;
}

.faq-question:hover { background: rgba(255,169,90,0.05); }

.faq-question .faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: var(--transition);
  color: var(--color-3);
}

.faq-question[aria-expanded="true"] .faq-icon {
  background: var(--gradient-cta);
  border-color: transparent;
  color: white;
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.7;
}

/* ---- Knowledge Page ---- */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-tab {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 600;
  border: 1.5px solid var(--color-border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  background: transparent;
}

.filter-tab:hover,
.filter-tab.active {
  background: rgba(255,169,90,0.12);
  border-color: rgba(255,169,90,0.4);
  color: var(--text-primary);
}

/* ---- Single Article ---- */
.article-hero {
  background: var(--gradient-hero);
  padding: 80px 0 50px;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.article-breadcrumb a { color: var(--text-muted); transition: var(--transition); }
.article-breadcrumb a:hover { color: var(--color-3); }
.article-breadcrumb .separator { color: rgba(255,220,180,0.3); }

.article-content-wrapper {
  max-width: 820px;
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.article-content {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.85;
}

.article-content h2 {
  font-size: 1.6rem;
  color: var(--text-primary);
  margin: 36px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

.article-content h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin: 28px 0 12px;
}

.article-content p { margin-bottom: 16px; }

.article-content ul, .article-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.article-content li { margin-bottom: 8px; }

.article-content strong { color: var(--text-primary); }

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 14.5px;
}

.article-content table th {
  background: rgba(255,169,90,0.1);
  color: var(--text-primary);
  padding: 10px 14px;
  text-align: left;
  border: 1px solid var(--color-border);
  font-weight: 700;
}

.article-content table td {
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  color: var(--text-secondary);
}

.article-content .alert {
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 20px;
  border: 1px solid;
  font-size: 14.5px;
}

.article-content .alert-warning {
  background: rgba(255,212,90,0.08);
  border-color: rgba(255,212,90,0.25);
  color: #FFD45A;
}

.article-content .alert-info {
  background: rgba(255,139,90,0.08);
  border-color: rgba(255,139,90,0.25);
  color: #FF8B5A;
}

/* ---- Tax Calculator ---- */
.calculator-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.calc-group {
  margin-bottom: 24px;
}

.calc-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.calc-input {
  width: 100%;
  background: #1c0a00;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: #fff5ea;
  padding: 12px 16px;
  font-family: 'Sarabun', sans-serif;
  font-size: 15px;
  transition: var(--transition);
  color-scheme: dark;
}

.calc-input:focus {
  outline: none;
  border-color: var(--color-3);
  background: #1c0a00;
  box-shadow: 0 0 0 3px rgba(255,169,90,0.1);
}

select.calc-input,
select.calc-select {
  /* Force OS native picker to dark mode */
  color-scheme: dark;
  background-color: #1c0a00 !important;
  color: #fff5ea !important;

  /* Custom arrow */
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23FFA95A' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  padding-right: 40px;
}

/* Native dropdown option list - dark background */
select.calc-input option,
select.calc-select option,
select option {
  background-color: #1c0a00;
  color: #fff5ea;
}

/* ---- Custom Select Component (.cselect) ---- */
.cselect {
  position: relative;
  width: 100%;
  user-select: none;
}

.cselect-btn {
  width: 100%;
  background: #1c0a00;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: #fff5ea;
  padding: 12px 40px 12px 16px;
  font-family: 'Sarabun', sans-serif;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.cselect-btn:hover,
.cselect.open .cselect-btn {
  border-color: var(--color-3);
  background: #1c0a00;
  box-shadow: 0 0 0 3px rgba(255,169,90,0.1);
}

.cselect-arrow {
  font-size: 12px;
  color: var(--color-3);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.cselect.open .cselect-arrow {
  transform: rotate(180deg);
}

.cselect-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #1c0a00;
  border: 1.5px solid rgba(255,169,90,0.25);
  border-radius: var(--radius-sm);
  z-index: 999;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.cselect.open .cselect-dropdown {
  display: block;
  animation: fadeInDown 0.18s ease;
}

.cselect-option {
  padding: 11px 16px;
  color: rgba(255,235,210,0.75);
  font-size: 14.5px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border-bottom: 1px solid rgba(255,169,90,0.07);
}

.cselect-option:last-child { border-bottom: none; }

.cselect-option:hover {
  background: rgba(255,169,90,0.1);
  color: #fff5ea;
}

.cselect-option.selected {
  background: rgba(255,90,90,0.12);
  color: var(--color-3);
  font-weight: 600;
}

.cselect-dropdown::-webkit-scrollbar { width: 4px; }
.cselect-dropdown::-webkit-scrollbar-thumb { background: rgba(255,169,90,0.3); border-radius: 2px; }


.result-box {
  background: rgba(255,90,90,0.08);
  border: 1.5px solid rgba(255,90,90,0.2);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  margin-top: 28px;
}

.result-label { color: var(--text-muted); font-size: 13px; margin-bottom: 8px; }

.result-amount {
  font-family: 'Prompt', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.result-amount.refund { color: #4ade80; }
.result-amount.payable { color: #FF5A5A; }
.result-amount.zero { color: var(--color-4); }

/* ---- About Page ---- */
.team-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: var(--transition);
  height: 100%;
}

.team-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.team-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: white;
}

.team-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.team-title { color: var(--color-3); font-size: 13.5px; font-weight: 600; margin-bottom: 12px; }
.team-bio { color: var(--text-secondary); font-size: 13.5px; line-height: 1.6; }

.credential-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,169,90,0.1);
  border: 1px solid rgba(255,169,90,0.2);
  color: var(--color-3);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  margin: 3px;
}

/* ---- Contact ---- */
.contact-form-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.form-control-custom {
  background: rgba(255,255,255,0.05);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 12px 16px;
  font-family: 'Sarabun', sans-serif;
  font-size: 15px;
  width: 100%;
  transition: var(--transition);
}

.form-control-custom:focus {
  outline: none;
  border-color: var(--color-3);
  background: rgba(255,169,90,0.05);
  box-shadow: 0 0 0 3px rgba(255,169,90,0.1);
}

.form-control-custom::placeholder { color: var(--text-muted); }

.form-label-custom {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* ---- Page Header ---- */
.page-header {
  background: var(--gradient-hero);
  padding: 70px 0 50px;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(255,90,90,0.06) 0%, transparent 50%);
}

.page-header h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }
.page-header .page-subtitle { color: var(--text-secondary); font-size: 1.05rem; margin-top: 10px; }

/* ---- Footer ---- */
.footer-main {
  background: var(--color-deep);
  border-top: 1px solid var(--color-border);
  padding: 60px 0 30px;
}

.footer-brand {
  font-family: 'Prompt', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-heading {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

.footer-links { list-style: none; padding: 0; margin: 0; }

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover { color: var(--color-3); padding-left: 4px; }

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}

.social-btn:hover {
  border-color: var(--color-3);
  color: var(--color-3);
  background: rgba(255,169,90,0.1);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom a { color: var(--text-muted); transition: var(--transition); }
.footer-bottom a:hover { color: var(--color-3); }

/* ---- Cookie Banner ---- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 700px;
  background: rgba(26,8,0,0.96);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  z-index: 9999;
  display: none;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px; height: 44px;
  background: var(--gradient-cta);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(255,90,90,0.4);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  border: none;
}

.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(255,90,90,0.5); }

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

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ---- Divider ---- */
.gradient-divider {
  height: 1px;
  background: var(--gradient-brand);
  opacity: 0.15;
  border: none;
  margin: 60px 0;
}

/* ---- Infographic Steps ---- */
.step-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 24px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  margin-bottom: 14px;
}

.step-item:hover {
  border-color: var(--color-border-hover);
  background: var(--color-card-hover);
}

.step-number {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gradient-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Prompt', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: white;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.step-content p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* ---- Sidebar ---- */
.sidebar-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

/* ---- Alert / Notice ---- */
.notice-box {
  background: rgba(255,212,90,0.06);
  border: 1px solid rgba(255,212,90,0.2);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  gap: 14px;
}

.notice-box .notice-icon {
  font-size: 1.4rem;
  color: var(--color-4);
  flex-shrink: 0;
  margin-top: 2px;
}

.notice-box .notice-text {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* ---- Loading Spinner ---- */
.spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(255,169,90,0.2);
  border-top-color: var(--color-3);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}

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

/* ---- Highlight Box ---- */
.highlight-box {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-3);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 24px 0;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.7;
}

/* ---- Breadcrumb ---- */
.breadcrumb-custom {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

.breadcrumb-custom a { color: var(--text-muted); transition: var(--transition); }
.breadcrumb-custom a:hover { color: var(--color-3); }
.breadcrumb-custom .active { color: var(--text-secondary); }

/* ---- Empty State ---- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state i { font-size: 3rem; margin-bottom: 16px; opacity: 0.4; }
.empty-state p { margin-bottom: 0; }

/* ---- Tags ---- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: rgba(255,169,90,0.08);
  border: 1px solid rgba(255,169,90,0.15);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-muted);
  transition: var(--transition);
  text-decoration: none;
}

.tag:hover {
  background: rgba(255,169,90,0.15);
  border-color: rgba(255,169,90,0.35);
  color: var(--color-3);
}

/* ---- Search Box ---- */
.search-box {
  position: relative;
}

.search-box input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 11px 16px 11px 44px;
  font-family: 'Sarabun', sans-serif;
  font-size: 14.5px;
  transition: var(--transition);
}

.search-box input:focus {
  outline: none;
  border-color: var(--color-3);
  background: rgba(255,169,90,0.04);
}

.search-box input::placeholder { color: var(--text-muted); }

.search-box .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}

/* ---- Pagination ---- */
.pagination-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.page-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.page-btn:hover,
.page-btn.active {
  background: rgba(255,169,90,0.12);
  border-color: rgba(255,169,90,0.4);
  color: var(--text-primary);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .section-gap { padding: 50px 0; }
  .hero-section { min-height: 70vh; padding: 60px 0 40px; }
  .hero-title { font-size: 1.8rem; }
  .calculator-card { padding: 24px; }
  .contact-form-card { padding: 24px; }
  .btn-primary-custom, .btn-secondary-custom { padding: 12px 20px; font-size: 14px; }
  .stat-number { font-size: 1.7rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .back-to-top { bottom: 20px; right: 16px; }
  .cookie-banner { bottom: 10px; }
  .article-content h2 { font-size: 1.3rem; }
  .knowledge-card, .testimonial-card { padding: 22px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary-custom,
  .hero-actions .btn-secondary-custom { width: 100%; justify-content: center; }
  .filter-tabs { gap: 6px; }
  .filter-tab { padding: 6px 14px; font-size: 12.5px; }
}

/* ---- Print ---- */
@media print {
  .navbar-custom, .footer-main, .back-to-top, .cookie-banner { display: none; }
  body { background: white; color: black; }
}
