@font-face {
  font-family: 'LINE Seed Sans TH';
  src: url('../font/LINE_Seed_Sans_TH_V1.003/Web/WOFF2/LINESeedSansTH_W_Th.woff2') format('woff2'),
       url('../font/LINE_Seed_Sans_TH_V1.003/Web/WOFF/LINESeedSansTH_W_Th.woff') format('woff');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'LINE Seed Sans TH';
  src: url('../font/LINE_Seed_Sans_TH_V1.003/Web/WOFF2/LINESeedSansTH_W_Rg.woff2') format('woff2'),
       url('../font/LINE_Seed_Sans_TH_V1.003/Web/WOFF/LINESeedSansTH_W_Rg.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'LINE Seed Sans TH';
  src: url('../font/LINE_Seed_Sans_TH_V1.003/Web/WOFF2/LINESeedSansTH_W_Bd.woff2') format('woff2'),
       url('../font/LINE_Seed_Sans_TH_V1.003/Web/WOFF/LINESeedSansTH_W_Bd.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'LINE Seed Sans TH';
  src: url('../font/LINE_Seed_Sans_TH_V1.003/Web/WOFF2/LINESeedSansTH_W_XBd.woff2') format('woff2'),
       url('../font/LINE_Seed_Sans_TH_V1.003/Web/WOFF/LINESeedSansTH_W_XBd.woff') format('woff');
  font-weight: 800;
  font-style: normal;
}
@font-face {
  font-family: 'LINE Seed Sans TH';
  src: url('../font/LINE_Seed_Sans_TH_V1.003/Web/WOFF2/LINESeedSansTH_W_He.woff2') format('woff2'),
       url('../font/LINE_Seed_Sans_TH_V1.003/Web/WOFF/LINESeedSansTH_W_He.woff') format('woff');
  font-weight: 900;
  font-style: normal;
}

:root {
  --primary: #00c853;
  --primary-glow: rgba(0, 200, 83, 0.15);
  --primary-glow-strong: rgba(0, 200, 83, 0.3);
  --primary-hover: #00b047;
  --bg-dark: #f6faf7;
  --surface-dark: #ffffff;
  --surface-border: rgba(16, 32, 20, 0.08);
  --surface-border-active: rgba(0, 200, 83, 0.45);
  --text-primary: #121b15;
  --text-secondary: #4b5e51;
  --text-muted: #829a8c;
  --error: #d32f2f;
  --success: #00c853;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-en: 'LINE Seed Sans TH', sans-serif;
  --font-th: 'LINE Seed Sans TH', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-th), var(--font-en);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Background Animation Elements */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 20% 30%, rgba(0, 200, 83, 0.03) 0%, transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(0, 230, 118, 0.03) 0%, transparent 40%),
              #f6faf7;
  z-index: -3;
}

/* Scrollbar styles */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 200, 83, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 200, 83, 0.3);
}

/* Global utility premium elements */
.glass-panel {
  background: var(--surface-dark);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 24px;
  box-shadow: 0 10px 40px 0 rgba(16, 32, 20, 0.05);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: rgba(0, 200, 83, 0.2);
  box-shadow: 0 16px 48px 0 rgba(0, 200, 83, 0.06);
}

/* Premium Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #ffffff;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px var(--primary-glow);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 0;
  padding-bottom: 120%;
  background: rgba(255, 255, 255, 0.2);
  opacity: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.btn-primary:active::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  transition: 0s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow-strong);
  filter: brightness(1.05);
}

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

/* Custom inputs */
.input-group {
  margin-bottom: 24px;
}

.input-wrapper {
  position: relative;
  width: 100%;
}

.input-field {
  width: 100%;
  padding: 14px 16px;
  background: rgba(16, 32, 20, 0.02);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  transition: var(--transition-smooth);
}

.input-wrapper .input-field {
  padding-left: 44px;
}

.input-field:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 15px var(--primary-glow);
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  transition: var(--transition-smooth);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-field:focus + .input-icon {
  color: var(--primary);
}

/* Page transitions */
.fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

/* PC styling to emulate a mobile device viewport for frontend homepage */
@media (min-width: 481px) {
  .home-container {
    max-width: 430px;
    width: 100%;
    margin: 0 auto !important;
    min-height: 100vh;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.1);
    border-left: 1px solid var(--surface-border);
    border-right: 1px solid var(--surface-border);
    background: rgba(246, 250, 247, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px 16px !important;
  }
  
  .info-list {
    grid-template-columns: 1fr !important;
  }
}

