/*
 * Premium Footer V3.1.1 — รับซื้อโน๊ตบุ๊คเสีย.com
 * Standalone, scoped footer stylesheet. Shared across all public PHP routes.
 * No external icon/font/library dependency. Desktop/tablet/mobile + reduced motion.
 */
.premium-footer {
  --pf-bg: #111721;
  --pf-bg-deep: #0b111a;
  --pf-ink: #f6f6f8;
  --pf-muted: #aeb7c6;
  --pf-dim: #8d99aa;
  --pf-line: rgba(227, 237, 249, .13);
  --pf-red: #e82e4c;
  --pf-warm: #e7c8a6;
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  background: var(--pf-bg);
  color: var(--pf-ink);
  font-family: 'Prompt', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
.premium-footer, .premium-footer * { box-sizing: border-box; }
.premium-footer a { color: inherit; text-decoration: none; }
.premium-footer a:focus-visible {
  outline: 2px solid #ffd5b2;
  outline-offset: 4px;
  border-radius: 4px;
}
.premium-footer::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 640px;
  height: 640px;
  top: 140px;
  left: -340px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181, 32, 53, .15), transparent 65%);
}
.premium-footer::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 550px;
  bottom: -180px;
  right: -200px;
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(197, 155, 112, .10), transparent 70%);
}

/* High-intent, full-width call-to-action band. */
.premium-footer .pf-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(112deg, #b81735 1%, #d62b44 44%, #850e2c 100%);
  border-top: 1px solid rgba(255, 255, 255, .3);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}
.premium-footer .pf-cta::before {
  content: '';
  position: absolute;
  right: 14%;
  top: -65%;
  width: 450px;
  height: 450px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(255, 255, 255, .018), 0 0 0 160px rgba(255, 255, 255, .025);
  pointer-events: none;
}
.premium-footer .pf-cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(290px, .88fr);
  align-items: center;
  column-gap: clamp(30px, 5vw, 84px);
  padding-block: 45px 48px;
}
.premium-footer .pf-kicker {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 15px;
  color: #fff0e7;
  font-size: .69rem;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.5;
}
.premium-footer .pf-kicker-mark {
  display: inline-block;
  width: 19px;
  height: 2px;
  background: var(--pf-warm);
  border-radius: 10px;
}
.premium-footer .pf-cta h2 {
  margin: 0 0 12px;
  color: #fff;
  font-family: 'Kanit', 'Prompt', sans-serif;
  font-weight: 600;
  font-size: clamp(1.85rem, 3.5vw, 3.1rem);
  line-height: 1.24;
  letter-spacing: -.035em;
}
.premium-footer .pf-cta h2 span { color: #ffe6d2; }
.premium-footer .pf-cta-copy p {
  color: rgba(255,255,255,.88);
  font-size: .86rem;
  line-height: 1.95;
  max-width: 690px;
  margin: 0;
}
.premium-footer .pf-cta-aside { min-width: 0; }
.premium-footer .pf-cta-actions { display: grid; gap: 10px; }
.premium-footer .pf-action {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 69px;
  padding: 12px 17px;
  border-radius: 13px;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.premium-footer .pf-action:hover { transform: translateY(-2px); }
.premium-footer .pf-action-line {
  background: #fff;
  color: #242a36;
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 8px 26px rgba(56, 0, 19, .14);
}
.premium-footer .pf-action-line:hover { box-shadow: 0 15px 32px rgba(56, 0, 19, .23); }
.premium-footer .pf-action-phone {
  background: rgba(29, 6, 22, .21);
  color: #fff;
  border: 1px solid rgba(255,255,255,.34);
  backdrop-filter: blur(6px);
}
.premium-footer .pf-action-phone:hover { background: rgba(29, 6, 22, .34); }
.premium-footer .pf-action-symbol {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  border-radius: 12px;
  font-size: 1.17rem;
  font-weight: 700;
  background: rgba(225, 39, 66, .1);
  color: #d32945;
}
.premium-footer .pf-action-phone .pf-action-symbol {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}
.premium-footer .pf-action-label { display: grid; gap: 0; min-width: 0; }
.premium-footer .pf-action-label small { font-size: .69rem; opacity: .74; line-height: 1.4; }
.premium-footer .pf-action-label strong { font-size: 1rem; font-weight: 700; line-height: 1.55; overflow-wrap: anywhere; }
.premium-footer .pf-action-arrow { font-size: 1.15rem; justify-self: end; opacity: .8; }
.premium-footer .pf-cta-disclaimer { margin: 9px 2px 0; font-size: .69rem; color: rgba(255,255,255,.79); line-height: 1.65; }

/* Compact but useful information architecture: preparation ribbon + four columns. */
.premium-footer .pf-body { position: relative; }
.premium-footer .pf-guidance {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 32px);
  min-height: 82px;
  padding-block: 22px;
  border-bottom: 1px solid var(--pf-line);
}
.premium-footer .pf-guidance-title {
  color: #d4d8df;
  font-size: .84rem;
  white-space: nowrap;
}
.premium-footer .pf-guidance-title b { color: #fff; font-weight: 650; }
.premium-footer .pf-guidance-items { display: flex; flex: 1; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; }
.premium-footer .pf-guidance-items span { display: flex; align-items: baseline; gap: 8px; color: #d5dce6; font-size: .84rem; }
.premium-footer .pf-guidance-items b { color: var(--pf-warm); font-size: .69rem; letter-spacing: .07em; }
.premium-footer .pf-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, .84fr) minmax(0, .91fr) minmax(0, 1.15fr);
  gap: clamp(24px, 3vw, 47px);
  padding-block: 44px 36px;
}
.premium-footer .pf-about, .premium-footer .pf-section { min-width: 0; }
.premium-footer .pf-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; max-width: 100%; }
.premium-footer .pf-brand-logo {
  display: grid;
  place-items: center;
  flex: 0 0 69px;
  width: 69px;
  height: 69px;
  padding: 6px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.premium-footer .pf-brand-logo img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.premium-footer .pf-brand-name { display: grid; min-width: 0; gap: 5px; }
.premium-footer .pf-brand-name strong {
  color: #fff;
  font-family: 'Kanit', 'Prompt', sans-serif;
  font-size: clamp(.96rem, 1.3vw, 1.13rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.premium-footer .pf-brand-name small { color: var(--pf-warm); font-size: .57rem; font-weight: 600; letter-spacing: .12em; line-height: 1.45; }
.premium-footer .pf-about-desc { color: var(--pf-muted); font-size: .88rem; line-height: 1.93; margin: 0 0 17px; max-width: 360px; }
.premium-footer .pf-value-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.premium-footer .pf-value-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 4px 10px;
  color: #d9dce6;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 100px;
  font-size: .65rem;
  line-height: 1.45;
}
.premium-footer .pf-section h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 6px 0 22px;
  color: #fff;
  font-family: 'Kanit', 'Prompt', sans-serif;
  font-size: 1rem;
  font-weight: 550;
  letter-spacing: -.01em;
  line-height: 1.35;
}
.premium-footer .pf-section h3::before { content: ''; width: 4px; height: 17px; border-radius: 5px; background: linear-gradient(#f55b68, #ab1431); flex: 0 0 4px; }
.premium-footer .pf-links { padding: 0; margin: 0; list-style: none; display: grid; gap: 2px; }
.premium-footer .pf-links li { margin: 0; padding: 0; }
.premium-footer .pf-links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  padding: 5px 0;
  color: var(--pf-muted);
  font-size: .84rem;
  line-height: 1.65;
  transition: color .2s ease;
}
.premium-footer .pf-links a:hover { color: #fff; }
.premium-footer .pf-links a span { color: #c6a991; font-size: .8rem; opacity: .48; transition: transform .2s ease, opacity .2s ease; }
.premium-footer .pf-links a:hover span { transform: translate(2px,-2px); opacity: 1; }
.premium-footer .pf-contact-note { color: var(--pf-muted); font-size: .82rem; line-height: 1.8; margin: -7px 0 14px; }
.premium-footer .pf-contact-row {
  display: grid;
  grid-template-columns: 33px minmax(0,1fr) 13px;
  align-items: center;
  gap: 9px;
  min-height: 57px;
  margin-top: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 12px;
  background: rgba(255,255,255,.038);
  transition: background .2s ease, border-color .2s ease;
}
.premium-footer .pf-contact-row:hover { border-color: rgba(241,127,135,.43); background: rgba(255,255,255,.075); }
.premium-footer .pf-contact-icon { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 10px; color: #f7b6b4; background: rgba(237, 52, 78, .16); font-size: .94rem; }
.premium-footer .pf-contact-row small { display: block; color: var(--pf-dim); font-size: .65rem; line-height: 1.35; }
.premium-footer .pf-contact-row strong { display: block; color: #fff; font-size: .88rem; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.premium-footer .pf-contact-go { color: var(--pf-warm); font-size: .83rem; }
.premium-footer .pf-utility-links { display: flex; flex-wrap: wrap; gap: 3px 8px; margin-top: 15px; font-size: .69rem; color: #aeb4bf; }
.premium-footer .pf-utility-links a:hover { color: #fff; }
.premium-footer .pf-utility-links > span { opacity: .6; }
.premium-footer .pf-assurance { display: flex; align-items: stretch; gap: 15px; padding: 0 0 25px; }
.premium-footer .pf-assurance-line { display: block; width: 2px; flex: 0 0 2px; border-radius: 2px; background: linear-gradient(#eac7a0,#b82640); }
.premium-footer .pf-assurance p { font-size: .79rem; color: #aeb8c5; line-height: 1.75; margin: 0; }
.premium-footer .pf-assurance b { color: #ead1b3; font-weight: 650; }

/* Deliberately quieter bottom bar: legal + requested credits, in every route. */
.premium-footer .pf-bottom { background: rgba(5,9,15,.45); border-top: 1px solid var(--pf-line); }
.premium-footer .pf-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 35px; padding-block: 19px; }
.premium-footer .pf-copyright { margin: 0; color: #8f9cab; font-size: .76rem; line-height: 1.7; }
.premium-footer .pf-copyright span { padding: 0 5px; }
.premium-footer .pf-credits { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 0; color: #929eac; font-size: .75rem; }
.premium-footer .pf-credits > span + span::before { content: ''; display: inline-block; width: 1px; height: 12px; margin: 0 13px; vertical-align: middle; background: rgba(255,255,255,.22); }
.premium-footer .pf-credits a { color: #ecf0f5; font-weight: 600; padding-left: 3px; }
.premium-footer .pf-credits a:hover { color: #f4bfaa; }

@media (max-width: 1150px) {
  .premium-footer .pf-columns { grid-template-columns: minmax(0,1.4fr) minmax(0,.92fr) minmax(0,.92fr); gap: 26px 38px; }
  .premium-footer .pf-contact { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 10px 14px; align-items: center; }
  .premium-footer .pf-contact h3, .premium-footer .pf-contact-note { grid-column: 1; margin: 0; }
  .premium-footer .pf-contact-note { align-self: start; }
  .premium-footer .pf-contact-row { margin-top: 0; grid-row: 1 / 3; }
  .premium-footer .pf-utility-links { grid-column: 1 / -1; margin-top: 0; }
}
@media (max-width: 900px) {
  .premium-footer .pf-cta-inner { grid-template-columns: 1fr; gap: 24px; padding-block: 40px; }
  .premium-footer .pf-cta-copy p { max-width: 740px; }
  .premium-footer .pf-cta-actions { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .premium-footer .pf-action { grid-template-columns: 37px minmax(0,1fr) 18px; gap: 10px; }
  .premium-footer .pf-guidance { flex-wrap: wrap; gap: 10px 23px; }
  .premium-footer .pf-columns { grid-template-columns: 1fr 1fr; }
  .premium-footer .pf-about { grid-column: 1 / -1; }
  .premium-footer .pf-about-desc { max-width: 680px; }
  .premium-footer .pf-contact { grid-column: 1 / -1; }
  .premium-footer .pf-bottom-inner { align-items: flex-start; flex-direction: column; gap: 10px; }
}
@media (max-width: 600px) {
  .premium-footer { font-size: 13px; }
  .premium-footer .pf-cta-inner { padding-block: 34px 36px; gap: 22px; }
  .premium-footer .pf-kicker { font-size: .6rem; letter-spacing: .1em; margin-bottom: 13px; }
  .premium-footer .pf-cta h2 { font-size: clamp(1.8rem, 7.4vw, 2.25rem); }
  .premium-footer .pf-cta-copy p { font-size: .86rem; line-height: 1.85; }
  .premium-footer .pf-cta-actions { grid-template-columns: 1fr; }
  .premium-footer .pf-action { min-height: 63px; }
  .premium-footer .pf-cta-disclaimer { font-size: .65rem; }
  .premium-footer .pf-guidance { align-items: flex-start; padding-block: 18px; gap: 10px; }
  .premium-footer .pf-guidance-title { white-space: normal; font-size: .78rem; }
  .premium-footer .pf-guidance-items { gap: 5px 12px; justify-content: flex-start; }
  .premium-footer .pf-guidance-items span { font-size: .75rem; gap: 5px; }
  .premium-footer .pf-columns { padding-block: 28px 24px; gap: 28px 18px; }
  .premium-footer .pf-brand-logo { flex-basis: 60px; width: 60px; height: 60px; border-radius: 15px; }
  .premium-footer .pf-brand { gap: 12px; margin-bottom: 15px; }
  .premium-footer .pf-brand-name strong { font-size: 1rem; }
  .premium-footer .pf-brand-name small { font-size: .52rem; }
  .premium-footer .pf-about-desc { font-size: .85rem; }
  .premium-footer .pf-value-tags span { font-size: .59rem; }
  .premium-footer .pf-section h3 { font-size: .95rem; margin: 0 0 12px; gap: 7px; }
  .premium-footer .pf-links a { font-size: .78rem; min-height: 31px; padding: 4px 0; gap: 5px; }
  .premium-footer .pf-links a span { display: none; }
  .premium-footer .pf-contact { display: block; border-top: 1px solid var(--pf-line); padding-top: 20px; }
  .premium-footer .pf-contact-note { margin-bottom: 12px; }
  .premium-footer .pf-contact-row { margin-top: 8px; }
  .premium-footer .pf-utility-links { margin-top: 13px; }
  .premium-footer .pf-assurance { padding-bottom: 22px; }
  .premium-footer .pf-bottom-inner { padding-top: 20px; padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  .premium-footer .pf-credits { line-height: 2; }
  .premium-footer .pf-credits > span + span::before { margin-inline: 8px; }
}
@media (max-width: 370px) {
  .premium-footer .pf-columns { column-gap: 12px; }
  .premium-footer .pf-brand-name strong { font-size: .87rem; }
  .premium-footer .pf-section h3 { font-size: .81rem; }
  .premium-footer .pf-links a { font-size: .73rem; }
  .premium-footer .pf-credits > span + span::before { margin-inline: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .premium-footer .pf-action, .premium-footer .pf-links a, .premium-footer .pf-links a span,
  .premium-footer .pf-contact-row { transition: none; }
  .premium-footer .pf-action:hover, .premium-footer .pf-links a:hover span { transform: none; }
}

/* Footer Partner Directory V3.4.4 — separate premium band; no changes to existing images or sizes. */
.premium-footer .pf-network {
  position:relative;
  margin:0;
  background:linear-gradient(145deg,#131e2d 0%,#1b2636 55%,#101823 100%);
  border-top:1px solid rgba(244,213,191,.17);
  border-bottom:1px solid rgba(244,213,191,.12);
  overflow:hidden;
}
.premium-footer .pf-network:before {
  content:'';position:absolute;pointer-events:none;right:-240px;top:-190px;width:640px;height:610px;
  background:radial-gradient(circle,rgba(218,49,80,.15),transparent 70%);
}
.premium-footer .pf-network-inner {position:relative;padding-top:clamp(33px,4vw,51px);padding-bottom:clamp(37px,4vw,55px)}
.premium-footer .pf-network-heading {display:flex;justify-content:space-between;gap:20px 35px;align-items:center;margin-bottom:24px;min-width:0}
.premium-footer .pf-network-kicker {font-size:10px;font-weight:700;letter-spacing:.12em;color:#edbdba;margin:0 0 10px}
.premium-footer .pf-network-kicker span {color:#fa7089;font-size:15px;vertical-align:middle;margin-right:5px}
.premium-footer .pf-network-heading h2 {font-size:clamp(20px,2.4vw,31px);font-weight:750;line-height:1.3;letter-spacing:-.02em;color:#fff;margin:0}
.premium-footer .pf-network-heading h2 span {color:#f1a6ac;margin-left:.25em}
.premium-footer .pf-network-heading p:not(.pf-network-kicker) {color:#aebccb;font-size:.85rem;margin:9px 0 0;max-width:780px;line-height:1.9}
.premium-footer .pf-network-count {flex:none;display:flex;gap:10px;align-items:center;border:1px solid rgba(255,255,255,.13);border-radius:14px;background:rgba(255,255,255,.035);padding:11px 17px;color:#f1f3f7}
.premium-footer .pf-network-count strong {font-size:29px;line-height:1;font-variant-numeric:tabular-nums}
.premium-footer .pf-network-count small {font-size:11px;color:#c7a8aa}
.premium-footer .pf-network-grid {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:0;min-width:0}
.premium-footer .pf-network-grid .pf-network-link {display:flex;align-items:center;gap:10px;min-width:0;min-height:54px;border:1px solid rgba(236,243,249,.14);border-radius:12px;background:linear-gradient(125deg,rgba(255,255,255,.065),rgba(255,255,255,.026));padding:11px 12px;color:#e9eef5;transition:border-color .2s,background .2s,transform .2s;line-height:1.5}
.premium-footer .pf-network-link:hover {border-color:rgba(245,126,142,.6);background:rgba(223,65,86,.14);transform:translateY(-2px)}
.premium-footer .pf-network-link strong {min-width:0;flex:1;font-size:12px;font-weight:650;overflow-wrap:anywhere}
.premium-footer .pf-network-spark {display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;color:#f7b4a9;border-radius:8px;background:rgba(241,105,116,.13);font-size:12px}
.premium-footer .pf-network-arrow {font-size:11px;color:#eab6aa;opacity:.65}
.premium-footer .pf-network-note {font-size:11px;line-height:1.85;color:#95a4b7;margin:16px 0 0}
@media(max-width:1100px) { .premium-footer .pf-network-grid {grid-template-columns:repeat(4,minmax(0,1fr))} }
@media(max-width:850px) { .premium-footer .pf-network-grid {grid-template-columns:repeat(3,minmax(0,1fr))} }
@media(max-width:600px) {
 .premium-footer .pf-network-heading {align-items:flex-start;gap:12px}
 .premium-footer .pf-network-heading h2 span {display:block;margin-left:0}
 .premium-footer .pf-network-heading p:not(.pf-network-kicker) {font-size:.79rem}
 .premium-footer .pf-network-count {padding:7px 9px;gap:6px}
 .premium-footer .pf-network-count strong {font-size:20px}
 .premium-footer .pf-network-count small {font-size:9px}
 .premium-footer .pf-network-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .premium-footer .pf-network-grid .pf-network-link {padding:10px 9px;gap:7px;min-height:50px}
 .premium-footer .pf-network-spark {width:21px;height:21px;flex-basis:21px}
 .premium-footer .pf-network-link strong {font-size:11px}
 .premium-footer .pf-network-note {font-size:10px}
}
@media(max-width:340px) { .premium-footer .pf-network-grid {grid-template-columns:minmax(0,1fr)} }
@media(prefers-reduced-motion:reduce){.premium-footer .pf-network-grid .pf-network-link{transition:none}.premium-footer .pf-network-link:hover{transform:none}}
