:root {
  --primary-red: #ff3b3b;
  --primary-red-hover: #ff5555;
  --primary-red-glow: rgba(255, 59, 59, 0.4);
  --bg-dark: #0b0b0e;
  --bg-darker: #060608;
  --card-bg: rgba(18, 18, 22, 0.7);
  --card-bg-solid: #16161c;
  --card-border: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: #a0a0ab;
  --text-muted: #71717a;

  --font-thai: 'Kanit', sans-serif;
  --font-num: 'Outfit', 'Kanit', sans-serif;

  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 20px rgba(255, 59, 59, 0.25);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

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

body {
  font-family: var(--font-thai);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
  -webkit-overflow-scrolling: touch;
}

.bg-blur {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
  max-width: 100%;
}

.bg-blur-1 {
  background: var(--primary-red);
  top: 10%;
  left: -10%;
  animation: floatBlur 20s infinite alternate;
}

.bg-blur-2 {
  background: #2563eb;
  bottom: 10%;
  right: -10%;
  animation: floatBlur 25s infinite alternate-reverse;
}

@keyframes floatBlur {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(80px, 50px) scale(1.2);
  }
}

.container {
  width: 100%;
  max-width: 1200px;
  padding: 2rem 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.top-nav {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 11, 14, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.85rem 2rem;
  transition: var(--transition-smooth);
}

.top-nav.scrolled {
  background: rgba(6, 6, 8, 0.9);
  padding: 0.65rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.15rem;
  transition: var(--transition-smooth);
}

.nav-brand:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.nav-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 59, 59, 0.3));
  transition: var(--transition-smooth);
  border-radius: 6px;
}

.nav-brand:hover .nav-logo {
  transform: scale(1.05);
}

.nav-brand-text {
  font-family: var(--font-num);
  background: linear-gradient(135deg, #ffffff 60%, #a0a0ab);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.2px;
}

.nav-menu {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:not(.support-btn)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-red);
  transition: var(--transition-smooth);
  border-radius: 2px;
}

.nav-link:not(.support-btn):hover::after,
.nav-link:not(.support-btn).active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link i {
  font-size: 0.9rem;
  opacity: 0.8;
}

.nav-link.support-btn {
  background: rgba(255, 59, 59, 0.1);
  border: 1.5px solid rgba(255, 59, 59, 0.3);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  color: var(--primary-red);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255, 59, 59, 0.05);
}

.nav-link.support-btn:hover {
  background: var(--primary-red);
  color: var(--text-primary);
  border-color: var(--primary-red);
  box-shadow: 0 4px 20px rgba(255, 59, 59, 0.4);
  transform: translateY(-2px);
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.nav-download-btn {
  background: rgba(255, 59, 59, 0.05);
  border: 2px solid var(--primary-red);
  color: var(--primary-red);
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--transition-smooth);
  text-decoration: none;
  box-shadow: 0 0 12px rgba(255, 59, 59, 0.2), inset 0 0 6px rgba(255, 59, 59, 0.1);
}

.nav-download-btn:hover {
  background: var(--primary-red);
  color: var(--text-primary);
  border-color: var(--primary-red);
  box-shadow: 0 0 20px var(--primary-red-glow), 0 0 5px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.nav-download-btn:active {
  transform: scale(0.92);
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--transition-smooth);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.nav-toggle:active {
  transform: scale(0.95);
}

.app-header {
  text-align: center;
  margin-bottom: 0.5rem;
  padding-top: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
  font-family: var(--font-num);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: var(--primary-red);
}

.logo-icon {
  font-size: 1rem;
}

.main-title {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.main-title-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
  filter: drop-shadow(0 0 12px rgba(255, 59, 59, 0.25));
}

.main-title .highlight {
  color: var(--primary-red);
  text-shadow: 0 0 15px var(--primary-red-glow);
}

.subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
}

.app-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.gradient-border-wrapper {
  position: relative;
  border-radius: 24px;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--primary-red), #27272a, var(--primary-red), #09090b);
  background-size: 300% 300%;
  animation: gradientMovement 10s ease infinite;
  box-shadow: var(--shadow-lg);
}

@keyframes gradientMovement {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.calc-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 23px;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.mode-selector-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mode-label-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.mode-toggle-container {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mode-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-family: var(--font-thai);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.mode-btn:hover {
  color: var(--text-primary);
}

.mode-btn.active {
  background: var(--card-bg-solid);
  color: var(--primary-red);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.calc-display-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-label {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1.5px solid var(--card-border);
  border-radius: 16px;
  padding: 0.75rem 1.25rem;
  transition: var(--transition-smooth);
}

.input-wrapper:focus-within {
  border-color: var(--primary-red);
  box-shadow: 0 0 15px rgba(255, 59, 59, 0.15), inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.currency-symbol {
  font-family: var(--font-thai);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--primary-red);
  margin-right: 0.5rem;
}

#price-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-num);
  font-size: 2.2rem;
  font-weight: 700;
  text-align: right;
  padding-right: 3.5rem;
}

#price-input::placeholder {
  color: rgba(255, 255, 255, 0.15);
}

.backspace-btn {
  position: absolute;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition-smooth);
}

.backspace-btn:hover {
  background: rgba(255, 59, 59, 0.15);
  color: var(--primary-red);
  border-color: rgba(255, 59, 59, 0.3);
}

.backspace-btn:active {
  transform: scale(0.95);
}

.keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.key-btn {
  background: var(--card-bg-solid);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  font-family: var(--font-num);
  font-size: 1.6rem;
  font-weight: 600;
  padding: 1.2rem;
  border-radius: 16px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  user-select: none;
}

.key-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: #1e1e26;
  transform: translateY(-2px);
}

.key-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
}

.clear-key {
  color: var(--primary-red);
  font-family: var(--font-thai);
  font-weight: 700;
}

.clear-key:hover {
  background: rgba(255, 59, 59, 0.1);
  border-color: rgba(255, 59, 59, 0.3);
}

.calc-action-btn {
  background: var(--primary-red);
  color: var(--text-primary);
  border: none;
  font-family: var(--font-thai);
  font-size: 1.3rem;
  font-weight: 600;
  padding: 1.2rem;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-glow);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.calc-action-btn:hover {
  background: var(--primary-red-hover);
  box-shadow: 0 0 25px rgba(255, 59, 59, 0.5);
  transform: translateY(-2px);
}

.calc-action-btn:active {
  transform: translateY(1px);
}

.calc-action-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
  transform: scale(0);
  transition: transform 0.5s ease-out;
  pointer-events: none;
}

.calc-action-btn:active::after {
  transform: scale(1);
  transition: transform 0s;
}

.result-card-container {
  background: var(--card-bg-solid);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  box-shadow: var(--shadow-lg);
  min-height: 100%;
}

.result-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.result-header i {
  color: var(--primary-red);
  font-size: 1.5rem;
}

.result-header h2 {
  font-size: 1.4rem;
  font-weight: 600;
}

.badge {
  background: rgba(255, 59, 59, 0.15);
  color: var(--primary-red);
  border: 1px solid rgba(255, 59, 59, 0.25);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: auto;
  transition: var(--transition-smooth);
}

.result-breakdown {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.result-item-info {
  display: flex;
  flex-direction: column;
}

.result-item-label {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.result-item-math {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.result-item-value {
  font-family: var(--font-num);
  font-size: 1.8rem;
  font-weight: 700;
}

.result-item-value .unit {
  font-family: var(--font-thai);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.total-amount .result-item-value {
  color: var(--text-primary);
}

.highlighted-state {
  color: var(--primary-red);
  text-shadow: 0 0 10px rgba(255, 59, 59, 0.2);
}

.highlighted-user {
  color: #10b981;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.result-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.05));
}

.tip-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--card-border);
  padding: 1.25rem;
  border-radius: 16px;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: var(--transition-smooth);
}

.tip-icon {
  color: var(--primary-red);
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

#tip-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tip-box.active-green {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.03);
}

.tip-box.active-green .tip-icon {
  color: #10b981;
}

.animate-pulse {
  animation: pulseValue 0.5s ease-out;
}

@keyframes pulseValue {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.03);
    opacity: 1;
  }

  100% {
    transform: scale(1);
  }
}

.info-section,
.faq-section {
  width: 100%;
}

.section-card {
  background: var(--card-bg-solid);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
}

.section-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 1rem;
}

.section-title i {
  color: var(--primary-red);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.step-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 1.5rem;
  position: relative;
  transition: var(--transition-smooth);
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 59, 59, 0.2);
  background: rgba(255, 59, 59, 0.01);
}

.step-number {
  background: var(--primary-red);
  color: var(--text-primary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 10px rgba(255, 59, 59, 0.3);
}

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-smooth);
  background: rgba(255, 255, 255, 0.01);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
}

.faq-trigger {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-thai);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.faq-icon {
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  padding: 0 1.5rem;
  border-top: 1px solid transparent;
}

.faq-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.faq-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.faq-content li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.faq-item.active {
  border-color: rgba(255, 59, 59, 0.2);
  background: rgba(255, 59, 59, 0.02);
}

.faq-item.active .faq-trigger {
  color: var(--primary-red);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--primary-red);
}

.faq-item.active .faq-content {
  padding: 1rem 1.5rem 1.25rem 1.5rem;
  border-color: var(--card-border);
}

.download-section {
  width: 100%;
}

.download-card {}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.install-method-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 1.75rem;
  transition: var(--transition-smooth);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.install-method-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 59, 59, 0.2);
  background: rgba(255, 59, 59, 0.01);
}

.method-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.brand-icon {
  font-size: 1.8rem;
  transition: var(--transition-smooth);
}

.ios-card .brand-icon {
  color: #a0a0ab;
}

.android-card .brand-icon {
  color: #a0a0ab;
}

.install-method-card:hover.ios-card .brand-icon {
  color: #ffffff;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.install-method-card:hover.android-card .brand-icon {
  color: #3ddc84;
  filter: drop-shadow(0 0 8px rgba(61, 220, 132, 0.5));
}

.install-method-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.install-steps {
  list-style-type: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  counter-reset: step-counter;
}

.install-steps li {
  position: relative;
  padding-left: 2.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.install-steps li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-num);
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.install-method-card:hover .install-steps li::before {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: var(--text-primary);
  box-shadow: 0 0 10px var(--primary-red-glow);
}

.icon-hint {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0 0.15rem;
  display: inline-block;
  vertical-align: middle;
}

.install-method-card:hover .icon-hint {
  color: var(--text-secondary);
}

.privacy-guarantee-box {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(16, 185, 129, 0.15);
  background: rgba(16, 185, 129, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--transition-smooth);
}

.privacy-guarantee-box:hover {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.07);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.05);
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: #10b981;
  font-size: 1.05rem;
}

.privacy-icon {
  font-size: 1.2rem;
  animation: pulseGreen 2s infinite alternate ease-in-out;
}

@keyframes pulseGreen {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 2px rgba(16, 185, 129, 0.2));
  }

  100% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.6));
  }
}

.privacy-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.support-section {
  width: 100%;
}

.support-card {
  background: var(--card-bg-solid);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.support-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.support-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.support-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.support-features {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.support-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.support-feature-item i {
  color: #10b981;
  font-size: 1.1rem;
}

.support-qr-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.qr-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px solid var(--card-border);
  padding: 1.75rem;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  transition: var(--transition-smooth);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.qr-box:hover {
  border-color: rgba(255, 59, 59, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(255, 59, 59, 0.12);
  background: rgba(255, 59, 59, 0.01);
}

.qr-code-img {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  border: 4px solid #ffffff;
  object-fit: contain;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.qr-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.qr-box:hover .qr-text {
  color: var(--text-primary);
}

.qr-text i {
  color: var(--primary-red);
  animation: heartbeat 1.5s infinite alternate;
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.15);
  }
}

.info-banner {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 1.25rem 1.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}

.info-banner:hover {
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(37, 99, 235, 0.15);
}

.info-banner-icon {
  color: #3b82f6;
  font-size: 1.4rem;
  margin-top: 0.2rem;
  animation: pulseBlue 2s infinite alternate ease-in-out;
}

@keyframes pulseBlue {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 2px rgba(59, 130, 246, 0.2));
  }

  100% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.6));
  }
}

.info-banner-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

.info-banner-text p {
  margin: 0;
}

.info-banner-text .banner-link {
  color: #60a5fa;
  text-decoration: underline;
  font-weight: 500;
  margin-left: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition-smooth);
}

.info-banner-text .banner-link:hover {
  color: #93c5fd;
  text-shadow: 0 0 8px rgba(96, 165, 250, 0.4);
}

.support-hotline {
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 0.75rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.support-label {
  color: var(--text-muted);
  font-weight: 500;
  margin-right: 0.25rem;
}

.phone-link {
  color: #10b981 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.5rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 6px;
  transition: var(--transition-smooth);
}

.phone-link:hover {
  color: #34d399 !important;
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
  transform: translateY(-1px);
}

.app-footer {
  background-color: var(--bg-darker);
  border-top: 1px solid var(--card-border);
  padding: 1.5rem 3rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-left p,
.footer-right p {
  font-weight: 400;
  letter-spacing: 0.2px;
}

.footer-center .footer-brand {
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 1.5px;
  font-family: var(--font-num);
}

@media (max-width: 992px) {
  body {
    padding-bottom: 0;
  }

  .top-nav {
    padding: 0.75rem 1.5rem;
  }

  .nav-actions {
    display: flex;
  }

  .nav-toggle {
    display: flex !important;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(11, 11, 14, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    align-items: stretch;
    display: none;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
  }

  .nav-menu.show {
    display: flex;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  .nav-link {
    padding: 0.5rem 0;
    font-size: 1.05rem;
  }

  .nav-link.support-btn {
    text-align: center;
    justify-content: center;
    margin-top: 0.5rem;
  }

  .app-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .download-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .support-card {
    padding: 1.75rem;
  }

  .support-content {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    text-align: center;
  }

  .support-features {
    align-items: center;
  }

  .support-feature-item {
    justify-content: center;
  }

  .nav-brand-text {
    display: none;
  }

  .app-footer {
    flex-direction: column;
    text-align: center;
    gap: 0.85rem;
    padding: 2rem 1.5rem;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 576px) {
  .container {
    padding: 1rem 1rem;
    gap: 1.5rem;
  }

  .main-title {
    font-size: 2.1rem;
  }

  .main-title-logo {
    height: 38px;
  }

  .subtitle {
    font-size: 1rem;
  }

  .calc-card {
    padding: 1.5rem 1.25rem;
    gap: 1.25rem;
  }

  #price-input {
    font-size: 1.8rem;
  }

  .currency-symbol {
    font-size: 1.8rem;
  }

  .key-btn {
    font-size: 1.4rem;
    padding: 1rem;
    border-radius: 12px;
  }

  .calc-action-btn {
    font-size: 1.15rem;
    padding: 1rem;
  }

  .result-card-container {
    padding: 1.5rem 1.25rem;
  }

  .result-item-value {
    font-size: 1.5rem;
  }

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

  .section-card {
    padding: 1.5rem 1.25rem;
  }

  .faq-trigger {
    font-size: 1rem;
    padding: 1rem 1.25rem;
  }

  .mode-toggle-container {
    flex-direction: column;
    gap: 2px;
  }

  .mode-btn {
    padding: 0.5rem;
    font-size: 0.85rem;
  }

  .info-banner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
  }

  .info-banner-links {
    justify-content: center;
    gap: 0.75rem;
    flex-direction: column;
    align-items: center;
  }

  .support-hotline {
    justify-content: center;
  }
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(11, 11, 14, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: none;
  justify-content: space-around;
  align-items: center;
  z-index: 1001;
  padding: 0.25rem 0.5rem;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  gap: 0.2rem;
  flex: 1;
  transition: var(--transition-smooth);
  padding: 0.25rem 0;
}

.bottom-nav-item i {
  font-size: 1.2rem;
  transition: var(--transition-smooth);
}

.bottom-nav-item:hover {
  color: var(--text-primary);
}

.bottom-nav-item.active {
  color: var(--primary-red);
  font-weight: 600;
}

.bottom-nav-item.active i {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 8px var(--primary-red-glow));
}

.direct-install-container {
  background: linear-gradient(135deg, rgba(255, 59, 59, 0.08) 0%, rgba(37, 99, 235, 0.04) 100%);
  border: 1px dashed rgba(255, 59, 59, 0.25);
  padding: 1.75rem;
  border-radius: 20px;
  margin-bottom: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: borderPulse 3s infinite alternate;
  transition: var(--transition-smooth);
}

.direct-install-container:hover {
  border-color: var(--primary-red);
  box-shadow: 0 12px 30px rgba(255, 59, 59, 0.12);
  background: linear-gradient(135deg, rgba(255, 59, 59, 0.12) 0%, rgba(37, 99, 235, 0.08) 100%);
}

.direct-install-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.direct-install-icon {
  font-size: 2.5rem;
  color: var(--primary-red);
  animation: bounceIcon 2s infinite ease-in-out;
}

.direct-install-text {
  flex: 1;
  min-width: 250px;
}

.direct-install-text h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.direct-install-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.direct-install-btn {
  background: var(--primary-red);
  color: var(--text-primary);
  border: none;
  font-family: var(--font-thai);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-glow);
  transition: var(--transition-smooth);
}

.direct-install-btn:hover {
  background: var(--primary-red-hover);
  box-shadow: 0 0 20px rgba(255, 59, 59, 0.4);
  transform: translateY(-2px);
}

.direct-install-btn:active {
  transform: scale(0.96);
}

@keyframes bounceIcon {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes borderPulse {
  0% {
    border-color: rgba(255, 59, 59, 0.15);
  }

  100% {
    border-color: rgba(255, 59, 59, 0.45);
  }
}

.nav-download-btn.installable {
  animation: pulseGlow 2s infinite alternate;
  border-color: var(--primary-red) !important;
  color: var(--primary-red) !important;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 8px rgba(255, 59, 59, 0.2);
  }

  100% {
    box-shadow: 0 0 18px rgba(255, 59, 59, 0.6), inset 0 0 6px rgba(255, 59, 59, 0.2);
  }
}
