@import url("https://fonts.googleapis.com/css2?family=Kanit:wght@400;500;600;700;800&family=Sarabun:wght@400;500;600;700&display=swap");

:root {
  --la-bg: #070512;
  --la-card: rgba(18, 10, 36, 0.78);
  --la-stroke: rgba(255, 255, 255, 0.1);
  --la-text: #f6f3ff;
  --la-muted: #b7adc9;
  --la-pink: #ff4d9d;
  --la-purple: #a855f7;
  --la-violet: #7c3aed;
  --la-cyan: #22d3ee;
  --la-grad: linear-gradient(135deg, #ff4d9d 0%, #a855f7 52%, #7c3aed 100%);
  --la-grad-text: linear-gradient(90deg, #ff7ab8 0%, #c084fc 55%, #67e8f9 100%);
  --la-shadow: 0 16px 40px rgba(168, 85, 247, 0.28);
  --la-radius: 18px;
  --font-primary: "Kanit", "Sarabun", sans-serif;
  --primary-color: #a855f7;
  --primary-color-dark: #7c3aed;
  --primary-gradient: linear-gradient(135deg, #ff4d9d 0%, #a855f7 52%, #7c3aed 100%);
  --body-bg: #070512;
  --card-bg: rgba(18, 10, 36, 0.78);
  --text-primary: #f6f3ff;
  --text-secondary: #b7adc9;
  --border-color: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body.la-theme, body {
  margin: 0;
  font-family: var(--font-primary);
  background: var(--la-bg);
  color: var(--la-text);
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}
body.la-theme {
  background:
    radial-gradient(900px 480px at 85% 8%, rgba(168, 85, 247, 0.28), transparent 55%),
    radial-gradient(700px 420px at 8% 18%, rgba(255, 77, 157, 0.16), transparent 50%),
    radial-gradient(700px 400px at 50% 100%, rgba(34, 211, 238, 0.08), transparent 50%),
    var(--la-bg) !important;
  color: var(--la-text) !important;
}
a { color: #e9d5ff; text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; }

.la-wrap { width: min(1180px, calc(100% - 28px)); margin: 0 auto; }
.la-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.la-orb {
  position: absolute; border-radius: 50%; filter: blur(40px); opacity: .45;
  animation: orbFloat 12s ease-in-out infinite;
}
.la-orb.a { width: 220px; height: 220px; background: #a855f7; top: 8%; right: 8%; }
.la-orb.b { width: 180px; height: 180px; background: #ff4d9d; top: 42%; left: -40px; animation-delay: -4s; }
.la-orb.c { width: 140px; height: 140px; background: #22d3ee; bottom: 12%; right: 18%; animation-delay: -7s; }
@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(20px,-24px) scale(1.08); }
}

.la-header {
  position: sticky; top: 0; z-index: 1200;
  backdrop-filter: blur(18px);
  background: rgba(7, 5, 18, 0.72);
  border-bottom: 1px solid var(--la-stroke);
}
.la-header-inner {
  display: flex; align-items: center; gap: 10px;
  min-height: 64px;
}
.la-logo {
  font-weight: 800; font-size: 1.2rem; letter-spacing: -0.03em;
  background: linear-gradient(90deg, #67e8f9, #c4b5fd);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap; z-index: 2;
}
.la-logo img { height: 36px; }
.la-nav { display: flex; gap: 4px; align-items: center; margin-left: 8px; }
.la-nav a {
  color: #efeaf8; font-weight: 500; padding: 8px 10px; border-radius: 999px; font-size: 0.92rem;
}
.la-nav a:hover, .la-nav a.active { background: rgba(255,255,255,0.08); color: #fff; }
.la-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.la-lang, .la-iconbtn {
  border: 1px solid var(--la-stroke); background: rgba(255,255,255,0.04);
  color: #fff; border-radius: 999px; padding: 8px 12px; cursor: pointer; min-height: 40px;
}
.la-theme-toggle {
  width: 58px; height: 32px; border-radius: 999px; border: 1px solid var(--la-stroke);
  background: #1a132c; position: relative; cursor: pointer; display: inline-flex; align-items: center; justify-content: space-between;
  padding: 0 7px; color: #fbbf24;
}
.la-theme-toggle i { font-size: 13px; }
.la-theme-toggle::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; left: 5px; transition: left .2s ease;
}
html.la-light .la-theme-toggle::after { left: 32px; }
.la-link { color: #fff !important; font-weight: 600; padding: 8px; }
.la-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  border-radius: 12px; padding: 12px 16px; font-weight: 700; color: #fff !important;
  background: var(--la-grad); box-shadow: var(--la-shadow); min-height: 44px;
  position: relative; overflow: hidden; transition: transform .2s ease;
}
.la-btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transform: translateX(-120%);
}
.la-btn:hover { transform: translateY(-2px); }
.la-btn:hover::after { animation: shine .7s ease; }
@keyframes shine { to { transform: translateX(120%); } }
.la-btn-ghost {
  background: rgba(255,255,255,0.06); border: 1px solid var(--la-stroke); box-shadow: none; color: #fff !important;
}
.la-menu-btn { display: none; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.la-nav-mobile { display: none; }

.la-hero { padding: 36px 0 8px; position: relative; z-index: 1; }
.la-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; }
.la-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(103,232,249,.25); background: rgba(34,211,238,.08);
  color: #a5f3fc; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 600;
}
.la-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 10px #22d3ee; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }
.la-hero h1 { font-size: clamp(1.7rem, 5.4vw, 3.3rem); line-height: 1.2; font-weight: 800; margin: 14px 0 10px; }
.la-hero h1 span {
  background: var(--la-grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.la-lead { color: var(--la-muted); font-size: 1rem; max-width: 520px; line-height: 1.7; margin: 0; }
.la-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 8px; }
.la-price-link { color: #d8b4fe; font-size: 14px; }

.la-phone-wrap { display: flex; justify-content: center; }
.la-phone {
  width: min(280px, 100%); height: 520px; border-radius: 36px;
  background: linear-gradient(180deg, #1b1430, #0b0716);
  border: 8px solid #2a203f; box-shadow: 0 30px 80px rgba(168,85,247,.35);
  position: relative; overflow: hidden; animation: phoneFloat 5s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.la-phone::before { content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 86px; height: 14px; background: #0b0716; border-radius: 10px; z-index: 2; }
.la-live { position: absolute; top: 32px; left: 14px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 6px; animation: pulse 1.4s infinite; }
.la-viewers { position: absolute; top: 32px; right: 14px; background: rgba(0,0,0,.45); padding: 4px 8px; border-radius: 8px; font-size: 11px; }
.la-screen {
  height: 100%; background:
    radial-gradient(circle at 50% 20%, rgba(255,77,157,.35), transparent 40%),
    linear-gradient(180deg, #3b1d5c 0%, #12081e 70%);
}
.la-chat { position: absolute; left: 12px; right: 12px; bottom: 16px; display: grid; gap: 7px; }
.la-chat b { display: block; background: rgba(0,0,0,.4); padding: 8px 10px; border-radius: 12px; font-size: 12px; font-weight: 500; }
.la-hearts span { position: absolute; right: 22px; bottom: 90px; animation: floatHeart 3.2s linear infinite; font-size: 18px; }
.la-hearts span:nth-child(2) { right: 48px; animation-delay: .7s; }
.la-hearts span:nth-child(3) { right: 34px; animation-delay: 1.4s; }
@keyframes floatHeart { from { transform: translateY(0) scale(1); opacity: 1; } to { transform: translateY(-220px) scale(1.4); opacity: 0; } }

.la-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 22px 0 6px; position: relative; z-index: 1; }
.la-stat {
  background: var(--la-card); border: 1px solid var(--la-stroke); border-radius: 16px; padding: 16px 10px; text-align: center;
  animation: fadeUp .7s ease both;
}
.la-stat:nth-child(2) { animation-delay: .08s; }
.la-stat:nth-child(3) { animation-delay: .16s; }
.la-stat:nth-child(4) { animation-delay: .24s; }
.la-stat strong { display: block; font-size: 1.45rem; background: var(--la-grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.la-stat span { color: var(--la-muted); font-size: 12px; }

.la-section { padding: 56px 0; position: relative; z-index: 1; }
.la-kicker { color: #d8b4fe; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; }
.la-section h2 { font-size: clamp(1.45rem, 3.2vw, 2.1rem); font-weight: 800; margin: 6px 0 6px; }
.la-section p.sub { color: var(--la-muted); margin: 0 0 20px; line-height: 1.65; }
.la-line { height: 3px; width: 120px; border-radius: 99px; background: linear-gradient(90deg, #22d3ee, #a855f7); margin: 0 0 22px; }

.la-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.la-card, .la-plat, .la-why, .la-svc {
  background: var(--la-card); border: 1px solid var(--la-stroke); border-radius: var(--la-radius); padding: 18px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.la-card:hover, .la-plat:hover, .la-why:hover, .la-svc:hover {
  transform: translateY(-5px); border-color: rgba(168,85,247,.5); box-shadow: var(--la-shadow);
}
.la-card h3, .la-why h3, .la-svc h3 { margin: 0 0 6px; font-size: 1.05rem; }
.la-card p, .la-why p, .la-svc p, .la-plat span { margin: 0; color: var(--la-muted); font-size: .92rem; line-height: 1.6; }
.la-num {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800;
  background: var(--la-grad); margin-bottom: 10px;
}
.la-plats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.la-plat { display: block; }
.la-plat i { font-size: 26px; margin-bottom: 8px; display: block; }
.la-plat b { display: block; margin-bottom: 4px; }
.la-why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.la-svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.la-svc a.more { color: #f9a8d4; font-weight: 700; display: inline-block; margin-top: 10px; }

.la-faq details {
  background: var(--la-card); border: 1px solid var(--la-stroke); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px;
}
.la-faq summary { cursor: pointer; font-weight: 700; list-style: none; padding: 4px 0; }
.la-faq summary::-webkit-details-marker { display: none; }
.la-faq p { color: var(--la-muted); margin: 8px 0 0; line-height: 1.65; }

.la-cta-band {
  border-radius: 22px; padding: 28px 18px; text-align: center;
  background: linear-gradient(135deg, rgba(255,77,157,.18), rgba(124,58,237,.25));
  border: 1px solid rgba(255,255,255,.1);
}
.la-cta-band .la-cta { justify-content: center; }

.la-footer { border-top: 1px solid var(--la-stroke); padding: 36px 0 20px; margin-top: 24px; background: rgba(0,0,0,.2); position: relative; z-index: 1; }
.la-foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 20px; }
.la-foot-grid h5 { font-size: 14px; margin: 0 0 10px; }
.la-foot-grid a, .la-foot-grid p { color: var(--la-muted); display: block; margin: 6px 0; }
.la-copy { color: #8b809c; font-size: 12px; margin-top: 22px; border-top: 1px solid var(--la-stroke); padding-top: 14px; line-height: 1.6; }

.la-modal {
  position: fixed; inset: 0; background: rgba(5,3,12,.78); display: none; place-items: center; z-index: 2000; padding: 12px;
}
.la-modal.open { display: grid; }
.la-modal-card {
  width: min(880px, 100%); display: grid; grid-template-columns: 1fr 1fr; overflow: auto;
  max-height: min(92vh, 720px);
  background: #140a24; border: 1px solid var(--la-stroke); border-radius: 22px;
}
.la-modal-side { padding: 24px; background: linear-gradient(160deg, #2a1148, #12081e); }
.la-modal-form { padding: 24px; }
.la-modal input {
  width: 100%; background: rgba(255,255,255,.06); border: 1px solid var(--la-stroke); color: #fff;
  border-radius: 12px; padding: 12px 14px; margin: 6px 0 12px; min-height: 46px;
}
.la-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.la-float {
  position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); width: 52px; height: 52px; border-radius: 50%;
  background: var(--la-grad); color: #fff; display: grid; place-items: center; box-shadow: var(--la-shadow); z-index: 1500;
  animation: pulse 2s infinite;
}
.scroll-hint { text-align: center; color: #c4b5fd; margin: 16px 0 4px; font-size: 12px; animation: bounce 1.8s infinite; }
@keyframes bounce { 50% { transform: translateY(6px); opacity: .6; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.la-fade { animation: fadeUp .7s ease both; }

html.la-light body.la-theme { background: #f6f3ff !important; color: #1f1630 !important; }
html.la-light .la-header { background: rgba(255,255,255,.86); }
html.la-light .la-card, html.la-light .la-plat, html.la-light .la-why, html.la-light .la-svc, html.la-light .la-stat, html.la-light .la-faq details {
  background: #fff; color: #1f1630; border-color: #ece6f8;
}
html.la-light .la-lead, html.la-light .la-section p.sub, html.la-light .la-card p, html.la-light .la-why p { color: #5b5270; }

body.la-theme .card, body.la-theme .card-custom, body.la-theme .well, body.la-theme .g-card,
body.la-theme .table, body.la-theme .page-header {
  background: rgba(18, 10, 36, 0.78) !important;
  color: #fff !important;
  border-color: rgba(168,85,247,.25) !important;
}
body.la-theme .form-control, body.la-theme input, body.la-theme select, body.la-theme textarea {
  background: rgba(255,255,255,.06) !important; color: #fff !important; border-color: rgba(255,255,255,.12) !important;
}
body.la-theme .btn-primary, body.la-theme .btn-hero {
  background: var(--la-grad) !important; border: 0 !important; color: #fff !important;
}
body.la-theme .table td, body.la-theme .table th { color: #efeaf8 !important; border-color: rgba(255,255,255,.08) !important; }

@media (max-width: 980px) {
  .la-hero-grid, .la-modal-card, .la-foot-grid, .la-steps, .la-why-grid, .la-svc-grid { grid-template-columns: 1fr; }
  .la-plats, .la-stats { grid-template-columns: 1fr 1fr; }
  .la-nav { display: none; }
  .la-nav.open {
    display: flex; position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(10,6,22,.96); padding: 12px; flex-direction: column; align-items: stretch;
    border-bottom: 1px solid var(--la-stroke);
  }
  .la-nav.open a { padding: 12px; min-height: 44px; }
  .la-menu-btn { display: inline-flex; }
  .la-nav-mobile { display: flex; }
  .la-desk-only { display: none !important; }
  .la-phone { height: 420px; width: min(240px, 82vw); }
  .la-hero { padding-top: 22px; }
  .la-section { padding: 40px 0; }
  .la-modal-side { display: block; padding: 16px 16px 10px; }
  .la-login-plats { grid-template-columns: repeat(3, 1fr); }
  .la-login-plats span { flex-direction: column; gap: 4px; padding: 8px 4px; font-size: 11px; text-align: center; }
  .la-float { width: 48px; height: 48px; }
}
@media (max-width: 560px) {
  .la-tools .la-theme-toggle, .la-tools .la-lang { display: none; }
  .la-btn { width: auto; }
  .la-cta .la-btn { flex: 1 1 140px; }
  .la-phone-wrap { margin-top: 8px; }
  .scroll-hint { display: none; }
  .la-stat strong { font-size: 1.2rem; }
  .la-hero h1 { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.la-header-inner { position: relative; }
.la-nav.open { z-index: 1300; }

/* Inner pages */
body.la-theme .app-content,
body.user .app-content {
  padding: 16px 0 32px;
  position: relative;
  z-index: 1;
}
body.la-theme .page-header {
  padding: 20px 16px !important;
  border-radius: 18px !important;
  margin-bottom: 16px !important;
}
body.la-theme .page-header h1 {
  font-size: clamp(1.3rem, 4vw, 1.9rem) !important;
  margin-bottom: 6px !important;
  line-height: 1.3 !important;
}
body.la-theme .page-header .lead {
  font-size: 0.95rem !important;
  margin: 0 !important;
  line-height: 1.6 !important;
}
body.la-theme .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
body.la-theme .status-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
body.la-theme .status-filters .btn {
  min-height: 40px;
  border-radius: 999px !important;
}
body.la-theme .btn,
body.la-theme .btn-primary,
body.user .btn {
  min-height: 44px;
}
body.la-theme .form-control,
body.la-theme .form-select {
  min-height: 44px;
}
body.la-theme .account-header h1 { font-size: clamp(1.3rem, 4vw, 1.8rem) !important; }
body.la-theme .account-header p { color: var(--la-muted); margin: 0; }
body.la-theme .welcome-header { border-radius: 18px; }

@media (max-width: 980px) {
  body.la-theme .signup-form-container,
  body.la-theme .signin-form-side {
    padding: 18px 14px !important;
  }
  body.la-theme .signin-page-container {
    padding: 12px !important;
    min-height: auto !important;
  }
  body.la-theme .signin-card { border-radius: 18px !important; }
  body.la-theme .neworder-container { margin-top: 8px !important; }
  body.la-theme .filter-controls .row { row-gap: 10px; }
  .la-tools .la-btn { padding: 10px 12px; font-size: 13px; }
}
@media (max-width: 560px) {
  .la-wrap { width: min(1180px, calc(100% - 20px)); }
  .la-cta { gap: 8px; }
  .la-cta .la-btn { flex: 1 1 calc(50% - 8px); }
  .la-phone { height: 360px; width: min(210px, 70vw); }
  .la-section { padding: 32px 0; }
  .la-plats { gap: 8px; }
  .la-plat { padding: 14px; }
  .la-footer { padding-bottom: 72px; }
  body.la-theme .page-header { padding: 16px 12px !important; }
  body.la-theme table { font-size: 13px; }
}

body.la-theme input[type="checkbox"],
body.la-theme input[type="radio"] {
  width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  accent-color: #a855f7;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin-right: 6px;
}
.la-row label { display: inline-flex; align-items: center; gap: 6px; color: var(--la-muted); }
.la-modal.open .la-modal-card { animation: fadeUp .35s ease; }

.la-google-wrap { margin: 4px 0 16px; }
.la-google-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 46px; border-radius: 12px;
  background: #fff; color: #1f1f1f !important; font-weight: 700;
  border: 1px solid #e5e7eb; box-shadow: 0 1px 2px rgba(0,0,0,.08);
  transition: transform .15s ease, box-shadow .15s ease;
}
.la-google-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.12); color: #111 !important; }
.la-or { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--la-muted); font-size: 12px; }
.la-or::before, .la-or::after { content: ""; flex: 1; height: 1px; background: var(--la-stroke); }
.la-or span { white-space: nowrap; }

.la-modal.open { overflow: auto; }
body:has(.la-modal.open) { overflow: hidden; }
.la-page, .app-content, .container.main-content-area, .g-card, .well {
  position: relative;
  z-index: 1;
}
body.la-theme .g-card, body.la-theme .well, body.la-theme .error-page-wrapper {
  background: rgba(18, 10, 36, 0.78);
  color: #fff;
  border-radius: 18px;
}
body.la-theme .error-title, body.la-theme .error-description, body.la-theme .error-code {
  color: #f6f3ff !important;
}
body.la-theme .container { position: relative; z-index: 1; }
.la-google-btn svg { flex-shrink: 0; }
