/* ============================================================
   TFL+ (TAFU LAO PLUS) — หวยพัฒนา
   ธีม: ม่วงเข้ม #26215C / ม่วงกลาง #7F77DD / ทอง #EF9F27
   ฟอนต์: Anuphan (ไทยไม่มีหัว มินิมอล ทันสมัย)
   ============================================================ */

:root {
  --purple-dark: #26215C;
  --purple-deep: #1c1847;
  --purple-mid: #7F77DD;
  --purple-soft: #8e86e6;
  --gold: #EF9F27;
  --gold-dark: #d98a14;
  --ink: #2b2750;
  --muted: #7b7896;
  --line: #ece9f6;
  --bg-soft: #f6f5fb;
  --white: #ffffff;
  --radius: 18px;
  --shadow-sm: 0 6px 18px rgba(38, 33, 92, .08);
  --shadow-md: 0 18px 40px rgba(38, 33, 92, .12);
  --shadow-purple: 0 18px 40px rgba(127, 119, 221, .35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Anuphan", "Noto Sans Thai", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

.container { width: min(1180px, 92%); margin-inline: auto; }

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--purple-dark);
  margin-bottom: 2.4rem;
}
.section-title .dot { color: var(--gold); margin: 0 .5rem; }

/* ===== ปุ่ม ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: inherit; font-weight: 600; font-size: .98rem;
  border: none; border-radius: 999px; cursor: pointer; white-space: nowrap;
  padding: .72rem 1.5rem; transition: transform .15s ease, box-shadow .2s ease, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 10px 22px rgba(239,159,39,.35); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-purple { background: var(--purple-mid); color: #fff; box-shadow: var(--shadow-purple); }
.btn-purple:hover { background: var(--purple-soft); }
.btn-grad { background: linear-gradient(135deg, #340068, #5a00b3); color: #fff; box-shadow: var(--shadow-purple); }
.btn-grad:hover { filter: brightness(1.12); }
.btn-white { background: #fff; color: var(--purple-dark); box-shadow: var(--shadow-sm); }
.btn-outline { background: transparent; border: 1.5px solid #fff; color: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: .95rem 1.8rem; font-size: 1.05rem; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 1.2rem; padding: .8rem 0; width: min(1340px, 95%); }
.nav-brand { display: flex; align-items: center; gap: .8rem; flex-shrink: 0; }
.brand-tfl {
  font-weight: 800; font-size: 1.7rem; color: var(--purple-dark); letter-spacing: -1px;
  position: relative;
}
.brand-tfl sup { color: var(--gold); font-size: .9rem; }
.brand-tfl-img { height: 36px; width: auto; flex-shrink: 0; }
.brand-divider { width: 1px; height: 34px; background: #26215C; opacity: .35; flex-shrink: 0; }
.brand-logo { width: 46px; height: 46px; object-fit: contain; flex-shrink: 0; }
.brand-sub { line-height: 1.15; white-space: nowrap; flex-shrink: 0; }
.brand-sub b { color: var(--purple-dark); font-size: 1.02rem; display: block; font-weight: 700; white-space: nowrap; }
.brand-sub span { color: var(--gold); font-size: .64rem; font-weight: 700; letter-spacing: 1.5px; white-space: nowrap; }

.nav-menu { display: flex; gap: 1rem; margin-left: 2.5rem; }
.nav-menu a {
  font-size: .82rem; font-weight: 500; color: var(--ink); padding: .3rem 0;
  position: relative; transition: color .2s; white-space: nowrap;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--purple-mid); }
.nav-menu a.active::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 3px;
  background: var(--purple-mid); border-radius: 3px;
}
.nav-actions { display: flex; align-items: center; gap: .65rem; flex-shrink: 0; margin-left: auto; }
.lang-select { position: relative; }
.lang-current {
  display: flex; align-items: center; gap: .45rem; font-family: inherit; font-size: .92rem; font-weight: 500;
  color: var(--ink); padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer; background: #fff; transition: border-color .2s; white-space: nowrap;
}
.lang-current:hover { border-color: var(--purple-mid); }
.lang-current img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.lang-caret { transition: transform .2s; }
.lang-select.open .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 180px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md);
  padding: .4rem; z-index: 200; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.lang-select.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu li {
  display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 10px;
  cursor: pointer; font-size: .9rem; font-weight: 500; white-space: nowrap; transition: background .15s, color .15s;
}
.lang-menu li img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.lang-menu li:hover { background: var(--bg-soft); }
.lang-menu li.active { background: var(--purple-mid); color: #fff; }
.nav-login {
  font-size: .92rem; font-weight: 600; color: var(--purple-mid); white-space: nowrap;
  padding: .55rem 1.1rem; border: 1.5px solid var(--purple-mid); border-radius: 999px;
  transition: all .2s; background: #fff;
}
.nav-login:hover { background: var(--purple-mid); color: #fff; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--purple-dark); border-radius: 2px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background-color: #2b2466;
  background-image: url("../adset/hero-bg.png");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  color: #fff; overflow: hidden;
  padding-top: 2rem;
}
.hero-temple {
  position: absolute; left: 50%; bottom: 70px; transform: translateX(-50%);
  width: 480px; opacity: .9; pointer-events: none;
}
.hero-flag { position: absolute; right: 12%; top: 14%; width: 54px; border-radius: 4px; opacity: .9; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.hero-inner {
  position: relative; z-index: 10;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center;
  padding-bottom: 3rem;
}
.hero-eyebrow { font-size: 1.1rem; font-weight: 500; color: #343434; margin-bottom: .4rem; }
.hero-title { display: flex; align-items: center; gap: 1rem; margin-bottom: .8rem; }
.hero-title h1 {
  font-size: clamp(2.6rem, 6vw, 4.3rem); font-weight: 800; line-height: 1; letter-spacing: -1px;
  background: linear-gradient(135deg, #340068, #5a00b3);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-title .hero-logo { width: 100px; height: 100px; flex-shrink: 0; }
.hero-sub { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; color: #343434; margin-bottom: 1.6rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .9rem;
  background: #ffffff; border: 1px solid rgba(255,255,255,.9);
  padding: .85rem 1.4rem; border-radius: 16px;
  box-shadow: 0 14px 34px rgba(38,33,92,.18);
}
.hero-badge .shield-mini {
  width: 40px; height: 46px; background: linear-gradient(135deg, #340068, #5a00b3); border-radius: 8px 8px 50% 50%;
  display: grid; place-items: center; flex-shrink: 0;
}
.hero-badge .shield-mini svg { width: 22px; height: 22px; }
.hero-badge b { display: block; font-size: 1rem; color: #343434; }
.hero-badge span { font-size: .82rem; color: #343434; }

/* ปุ่มดาวน์โหลดแอป (Hero) */
.hero-download { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.4rem; }
.store-btn {
  display: inline-flex; align-items: center; gap: .7rem; min-width: 200px;
  padding: 0 1.4rem; height: 56px; border-radius: 999px;
  background: #121019; color: #fff; transition: transform .15s ease, box-shadow .2s ease;
  box-shadow: 0 10px 24px rgba(18, 16, 25, .28);
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(18, 16, 25, .38); }
.store-ic { flex-shrink: 0; }
.store-txt { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.store-txt small { font-size: .72rem; opacity: .9; }
.store-txt b { font-size: 1.25rem; font-weight: 600; }

/* มือถือ (รูปจริง) */
.hero-phone-wrap { position: relative; display: grid; place-items: center; }
.hero-phone-img {
  width: 100%; max-width: 444px; height: auto; position: relative; z-index: 20;
  transform: translateY(145px);
  filter: drop-shadow(0 40px 70px rgba(28, 24, 71, .45));
}
.phone {
  width: 280px; height: 560px; background: #0c0a1f; border-radius: 42px;
  padding: 12px; box-shadow: 0 40px 80px rgba(0,0,0,.45); position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 24px; background: #0c0a1f; border-radius: 0 0 16px 16px; z-index: 3;
}
.phone-screen {
  width: 100%; height: 100%; background: linear-gradient(160deg,#efeefb,#fff);
  border-radius: 32px; overflow: hidden; position: relative;
}
.phone-status { display: flex; justify-content: space-between; padding: 14px 20px 4px; font-size: .7rem; color: #222; font-weight: 600; }
.phone-head { background: linear-gradient(135deg,var(--purple-dark),var(--purple-mid)); color:#fff; padding: 6px 18px 18px; }
.phone-head .pf-top { display:flex; justify-content: space-between; align-items:center; }
.phone-head .pf-logo { font-weight: 800; font-size: 1.2rem; }
.phone-head .pf-logo sup { color: var(--gold); }
.phone-balance { margin-top: 12px; background: rgba(255,255,255,.14); border-radius: 14px; padding: 12px 14px; display:flex; gap:10px; align-items:center; }
.phone-balance .pf-coin { width: 30px; height:30px; border-radius:50%; background: var(--gold); display:grid; place-items:center; font-size:.9rem; }
.phone-balance small { font-size:.62rem; opacity:.85; display:block; }
.phone-balance b { font-size: 1rem; }
.phone-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px 6px; padding: 16px 14px; }
.pf-app { text-align:center; font-size:.56rem; color:#444; }
.pf-app i { width: 42px; height: 42px; border-radius: 14px; background: #efeefb; display:grid; place-items:center; margin: 0 auto 5px; color: var(--purple-mid); }
.pf-app i svg { width: 22px; height: 22px; }
.phone-cta { margin: 4px 14px; }
.phone-cta .pf-btn1 { background: var(--purple-mid); color:#fff; text-align:center; padding:11px; border-radius: 12px; font-weight:700; font-size:.82rem; display:flex; justify-content:center; gap:8px; }
.phone-cta .pf-btn2 { border:1.5px solid var(--purple-mid); color: var(--purple-mid); text-align:center; padding:11px; border-radius: 12px; font-weight:700; font-size:.82rem; margin-top:8px; }

/* โล่ปลอดภัย 100% */
.hero-shield {
  position: absolute; right: -10px; bottom: 40px; width: 150px; height: 178px;
  background: linear-gradient(160deg, #9b93ed, #6c61c9);
  clip-path: path("M75 0 L150 28 L150 95 Q150 150 75 178 Q0 150 0 95 L0 28 Z");
  display: grid; place-items: center; text-align: center; color:#fff;
  box-shadow: 0 24px 50px rgba(38,33,92,.5); z-index: 4;
}
.hero-shield b { font-size: 1.25rem; display:block; line-height:1.1; }
.hero-shield span { font-size: 1.9rem; font-weight: 800; }

/* แถบสถิติ */
.hero-stats { position: relative; z-index: 2; background: linear-gradient(135deg, #410082, #5300a3); border-top: 1px solid rgba(255,255,255,.12); }
.hero-stats .container { display: grid; grid-template-columns: repeat(4,1fr); padding-right: 380px; }
.stat { display: flex; align-items: center; gap: .9rem; padding: 1.3rem .5rem; color:#fff; position: relative; }
.stat:not(:last-child)::after { content:""; position:absolute; right:0; top:25%; height:50%; width:1px; background: rgba(255,255,255,.18); }
.stat .stat-ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.12); display:grid; place-items:center; flex-shrink:0; }
.stat .stat-ic svg { width: 24px; height: 24px; }
.stat b { font-size: 1.5rem; font-weight: 800; line-height: 1; color: #ffffff; }
.stat .stat-txt small { display:block; }
.stat .stat-txt .s1 { font-size:.86rem; font-weight:600; }
.stat .stat-txt .s2 { font-size:.72rem; opacity:.8; }

/* ============================================================
   LATEST RESULT (การ์ดตั๋วผลหวยงวดล่าสุด)
   ============================================================ */
.latest-result { padding: 3rem 0; background: var(--bg-soft); }
.result-carousel { position: relative; }
.result-track {
  display: flex; gap: 1.4rem; overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x mandatory; padding: 4px 2px 8px;
  -ms-overflow-style: none; scrollbar-width: none;
  /* ไล่จาง (เฟด) ขอบขวา ให้ใบที่ 2 ค่อยๆ จางหาย = เอฟเฟกต์ peek */
  -webkit-mask-image: linear-gradient(to right, #000 70%, transparent 97%);
  mask-image: linear-gradient(to right, #000 70%, transparent 97%);
}
.result-track::-webkit-scrollbar { display: none; }
.result-ticket {
  position: relative; flex: 0 0 64%; scroll-snap-align: start;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 1.4rem 1.7rem;
  display: flex; align-items: stretch; gap: 1.4rem;
}
/* ป้าย "งวดล่าสุด" */
.rt-badge {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  background: linear-gradient(135deg, #340068, #5a00b3); color: #fff;
  font-size: .72rem; font-weight: 700; padding: .28rem .8rem; border-radius: 999px;
  box-shadow: 0 6px 14px rgba(52, 0, 104, .3);
  animation: badgeBlink 1.2s ease-in-out infinite;
}
@keyframes badgeBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.94); }
}
/* ปุ่มเลื่อนซ้าย-ขวา */
.result-prev, .result-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: #fff; color: var(--purple-mid); box-shadow: var(--shadow-md);
  display: grid; place-items: center; transition: background .2s, color .2s;
}
.result-prev { left: -14px; }
.result-next { right: -14px; }
.result-prev:hover, .result-next:hover { background: var(--purple-mid); color: #fff; }
.rt-animal { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 90px; flex-shrink: 0; }
.rt-animal img { width: 80px; height: 80px; object-fit: contain; }
.rt-animal span { margin-top: .5rem; color: #555; font-size: .95rem; text-align: center; line-height: 1.2; }
.rt-divider { border-left: 2px dashed #d8d4e8; margin: 0 .4rem; }
.rt-main { flex: 1; display: flex; flex-direction: column; gap: 1.1rem; justify-content: center; }
.rt-head { display: flex; align-items: center; gap: .6rem; }
.rt-logo { width: 38px; height: 38px; object-fit: contain; flex-shrink: 0; }
.rt-title b { display: block; font-size: 1.18rem; color: var(--purple-dark); line-height: 1.2; }
.rt-title span { font-size: .88rem; color: #8b88a0; }
.rt-nums { display: flex; gap: .5rem; flex-wrap: wrap; }
.rt-nums span {
  width: 46px; height: 46px; border-radius: 50%; background: #E9D7FF; color: #5B21B6;
  display: grid; place-items: center; font-weight: 700; font-size: 1.25rem; box-shadow: var(--shadow-sm);
}
@media (max-width: 720px) {
  .result-ticket { flex: 0 0 90%; }
}
@media (max-width: 560px) {
  .rt-nums span { width: 38px; height: 38px; font-size: 1.05rem; }
  .result-ticket { padding: 1.1rem; gap: .8rem; }
}

/* ============================================================
   WHY US
   ============================================================ */
.why { padding: 4rem 0; background: #fff; }
.why-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 1.2rem; }
.why-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.2rem; text-align: center; transition: .25s; box-shadow: var(--shadow-sm);
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.why-card .why-ic {
  width: 60px; height: 60px; border-radius: 16px; margin: 0 auto 1rem;
  background: linear-gradient(135deg, #efeefb, #e3e0f7); display: grid; place-items: center; color: var(--purple-mid);
}
.why-card:hover .why-ic { background: linear-gradient(135deg,var(--purple-mid),var(--purple-dark)); color:#fff; }
.why-card .why-ic svg { width: 30px; height: 30px; }
.why-card h3 { font-size: 1.05rem; color: var(--purple-dark); margin-bottom: .4rem; }
.why-card p { font-size: .85rem; color: var(--muted); }

/* ============================================================
   BUY ONLINE
   ============================================================ */
.buy { padding: 1rem 0 4rem; }
.buy-grid { display: grid; grid-template-columns: 1.05fr 0.8fr 1.15fr 1fr; gap: 1.4rem; align-items: stretch; }
.buy-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); }

/* การ์ด 2: รูปเครื่องสุ่มผลรางวัล (ไม่มีกรอบ) */
.buy-machine { padding: 0; display: grid; place-items: center; background: transparent; border: none; box-shadow: none; }
.buy-machine img { max-width: 100%; max-height: 340px; object-fit: contain; }

.buy-left h3 { font-size: 1.5rem; color: var(--purple-dark); margin-bottom: 1.2rem; }
.buy-check { display:flex; align-items:center; gap:.7rem; padding:.5rem 0; font-weight:500; }
.buy-check .ck { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, #340068, #5a00b3); display:grid; place-items:center; color:#fff; flex-shrink:0; }
.buy-check .ck svg { width: 13px; height:13px; }
.buy-left .btn { margin-top: 1.3rem; }

/* เครื่องออกหวย */
.buy-mid { text-align:center; display:flex; flex-direction:column; justify-content:center; }

/* การ์ด 3: ตรวจผลรางวัล */
.buy-check-result { text-align:center; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.bcr-ic { width:64px; height:64px; border-radius:18px; background:linear-gradient(135deg,#340068,#5a00b3); display:grid; place-items:center; color:#fff; margin-bottom:1rem; }
.bcr-ic svg { width:32px; height:32px; }
.buy-check-result h4 { font-size:1.35rem; color:var(--purple-dark); margin-bottom:.5rem; }
.buy-check-result p { font-size:.9rem; color:var(--muted); margin-bottom:1.3rem; }
.machine { margin: .5rem auto 0; width: 210px; }
.machine-globe {
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.9), rgba(220,216,245,.5) 55%, rgba(180,174,225,.35));
  border: 6px solid rgba(255,255,255,.7); box-shadow: inset 0 8px 30px rgba(127,119,221,.4), 0 16px 30px rgba(38,33,92,.18);
  position: relative; margin: 0 auto; overflow: hidden;
}
.machine-globe .draw-num {
  position: absolute; top: 26px; left: 50%; transform: translateX(-50%);
  width: 54px; height: 54px; border-radius: 50%; background: var(--purple-dark); color: var(--gold);
  display:grid; place-items:center; font-size: 1.8rem; font-weight: 800; box-shadow: 0 6px 14px rgba(0,0,0,.3);
}
.balls { position:absolute; bottom: 14px; left:50%; transform: translateX(-50%); display:grid; grid-template-columns: repeat(4,1fr); gap:4px; width: 150px; }
.ball {
  width: 34px; height: 34px; border-radius: 50%; display:grid; place-items:center;
  font-weight: 800; font-size: 1rem; color:#fff; animation: floatBall 2.6s ease-in-out infinite;
}
.ball:nth-child(1){ background: var(--gold);} .ball:nth-child(2){ background: var(--purple-mid); animation-delay:.3s;}
.ball:nth-child(3){ background: var(--gold); animation-delay:.6s;} .ball:nth-child(4){ background: var(--purple-mid); animation-delay:.9s;}
.ball:nth-child(5){ background: var(--purple-mid); animation-delay:.2s;} .ball:nth-child(6){ background: var(--gold); animation-delay:.5s;}
.ball:nth-child(7){ background: var(--purple-mid); animation-delay:.8s;} .ball:nth-child(8){ background: var(--gold); animation-delay:1.1s;}
@keyframes floatBall { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-7px);} }
.machine-base { width: 150px; height: 30px; margin: -6px auto 0; background: linear-gradient(var(--purple-mid),var(--purple-dark)); border-radius: 0 0 16px 16px; color:#fff; font-size:.6rem; font-weight:700; letter-spacing:2px; display:grid; place-items:center; }

.buy-result { text-align:center; }
.buy-result h4 { color: var(--purple-dark); font-size: 1.15rem; }
.buy-result .date { font-size:.82rem; color: var(--muted); margin-bottom: .8rem; }
.result-nums { display:flex; justify-content:center; gap:.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.result-nums span {
  width: 42px; height: 42px; border-radius: 12px; background: #efeefb; color: var(--purple-dark);
  display:grid; place-items:center; font-size: 1.3rem; font-weight: 800;
}
.buy-result .lnk { color: var(--purple-mid); font-weight:600; font-size:.9rem; display:inline-flex; gap:.3rem; align-items:center; }

/* การ์ดแนะนำเพื่อน */
.buy-ref {
  background: #5a00b3 url("../adset/referral-bg.png") center/cover no-repeat;
  color:#fff; position:relative; overflow:hidden;
}
.buy-ref h3 { font-size: 1.3rem; line-height:1.25; margin-bottom:.4rem; }
.buy-ref .big { font-size: 3rem; font-weight: 800; color: var(--gold); line-height:1; margin:.4rem 0; }
.buy-ref p { font-size:.9rem; opacity:.9; margin-bottom: 1.2rem; }
.buy-ref .btn { padding: .45rem 1rem; font-size: .8rem; align-self: flex-start; }

/* ============================================================
   BANKS
   ============================================================ */
.banks { padding: 3rem 0; background: var(--bg-soft); }
.banks h2 { text-align:center; color: var(--purple-dark); font-size: 1.35rem; margin-bottom: 1.8rem; }
.banks-marquee { overflow: hidden; position: relative; }
.banks-loop { display: flex; align-items: center; gap: 1rem; width: max-content; animation: banksScroll 22s linear infinite; }
.banks-loop:hover { animation-play-state: paused; }
@keyframes banksScroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 0.5rem)); }
}
.bank-item {
  flex: 0 0 auto; height: 84px; background:#fff; border:1px solid var(--line);
  border-radius: 14px; display:flex; align-items:center; gap:.8rem; box-shadow: var(--shadow-sm); padding: .8rem 1.3rem;
}
.bank-item img { height: 54px; width: auto; object-fit: contain; flex-shrink: 0; }
.bank-name b { display:block; font-size: 1rem; color: var(--purple-dark); line-height: 1.2; white-space: nowrap; }
.bank-name span { font-size: .76rem; color: var(--muted); white-space: nowrap; }

/* ============================================================
   NEWS / PROMO
   ============================================================ */
.news { padding: 4rem 0; }
.news-head { display:flex; justify-content: space-between; align-items:center; margin-bottom: 1.8rem; }
.news-head h2 { color: var(--purple-dark); font-size: 1.5rem; }
.news-head a { color: var(--purple-mid); font-weight:600; font-size:.92rem; display:inline-flex; gap:.3rem; align-items:center; }
.news-grid { display:grid; grid-template-columns: repeat(4,1fr); gap: 1.4rem; }
.news-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-sm); transition:.25s; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.news-thumb { height: 180px; overflow: hidden; position: relative; background: var(--bg-soft); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.news-card:hover .news-thumb img { transform: scale(1.06); }
.news-thumb .tag { position:absolute; top:12px; left:12px; background: var(--gold); color:#fff; font-size:.72rem; font-weight:700; padding:.25rem .7rem; border-radius:999px; }
.news-thumb .headline { position:absolute; bottom:12px; left:14px; color:#fff; }
.news-thumb .headline small { font-size:.74rem; opacity:.9; display:block; }
.news-thumb .headline b { font-size: 1.7rem; }
.news-body { padding: 1.1rem 1.2rem 1.4rem; }
.news-body h3 { font-size: 1.02rem; color: var(--purple-dark); margin-bottom:.4rem; }
.news-body p { font-size:.85rem; color: var(--muted); margin-bottom:.7rem; }
.news-body .date { font-size:.78rem; color:#aaa; display:flex; align-items:center; gap:.3rem; }

/* ============================================================
   CERT BANNER
   ============================================================ */
.cert { padding: 1rem 0 4rem; }
.cert-inner {
  background: #e9e6f5 url("../adset/cert-bg.png") center/cover no-repeat; border-radius: 24px;
  display:grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items:center;
  padding: 0 3rem; position:relative; overflow:hidden; aspect-ratio: 1080 / 240;
}
.cert-logo { width: 143px; height:143px; }
.cert-text h3 { color: var(--purple-dark); font-size: 1.5rem; margin-bottom:.4rem; }
.cert-text p { color: var(--muted); font-size:.95rem; margin-bottom: 1rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: linear-gradient(160deg,#26215C,#1a1640); color: #d8d5ee; padding: 3.2rem 0 0; }
.footer-grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2.4rem; }
.footer-brand .brand-tfl { color:#fff; }
.footer-brand p { font-size:.86rem; opacity:.8; margin: 1rem 0; max-width: 280px; }
.footer-social { display:flex; gap:.7rem; }
.footer-social a { width: 38px; height:38px; border-radius:50%; background: rgba(255,255,255,.1); display:grid; place-items:center; color:#fff; transition:.2s; }
.footer-social a:hover { background: var(--gold); }
.footer-col h4 { color:#fff; font-size:1rem; margin-bottom: 1rem; }
.footer-col a { display:block; font-size:.88rem; opacity:.8; padding:.3rem 0; transition:.2s; }
.footer-col a:hover { opacity:1; color: var(--gold); padding-left: 4px; }
.footer-app { display:flex; flex-direction:column; gap:.6rem; }
.footer-app img { width: 160px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.2rem 0; display:flex; justify-content: space-between; align-items:center; font-size:.82rem; opacity:.8; flex-wrap: wrap; gap:.6rem; }
.footer-bottom .lang-select { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color:#fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1150px) {
  .nav-menu, .nav-login { display: none; }
  .nav-toggle { display: flex; }
  .nav-menu.open {
    display: flex; position: absolute; top: 100%; left:0; right:0; flex-direction: column;
    background:#fff; padding: 1rem 6%; gap:.4rem; box-shadow: var(--shadow-md); margin:0;
  }
  .hero-inner { grid-template-columns: 1fr; text-align:center; }
  .hero-title { justify-content:center; }
  .hero-badge { margin: 0 auto; }
  .hero-phone-wrap { margin-top: 2rem; }
  .why-grid { grid-template-columns: repeat(2,1fr); }
  .buy-grid { grid-template-columns: repeat(2,1fr); }
  .news-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats .container { grid-template-columns: repeat(2,1fr); gap:.5rem; padding-right: 0; }
  .stat::after { display:none; }
  .cert-inner { grid-template-columns: 1fr; text-align:center; justify-items:center; aspect-ratio: auto; min-height: 200px; padding: 2rem 1.5rem; }
}
@media (max-width: 560px) {
  .why-grid, .news-grid, .buy-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-shield { right: 0; width: 120px; height: 142px; }
  .result-nums span { width: 36px; height:36px; font-size:1.1rem; }
}
