/* LineTV: FAQ IPTV as a site page (Top Up Balance style) + explanatory diagrams (.fqf) */
.fq { --fq-b: #e6ebf2; --fq-t: #0f172a; --fq-m: #475569; --fq-mm: #64748b; --fq-blue: #2361d0; --fq-green: #16a34a; --fq-red: #dc2626; --fq-amber: #d97706;
	padding: 6px 0 24px; color: var(--fq-t); font-size: 15px; line-height: 1.55; }
.fq *, .fq *::before, .fq *::after { box-sizing: border-box; }
.fq-sub { margin: -4px 0 12px; color: var(--fq-mm); font-size: 14px; }
.fq .ltv-lang { margin-left: 0; align-self: center; }

/* language blocks and tabs (radio inputs, no JS needed for tabs) */
.fq .lang-block { display: none; }
.fq .lang-block.active { display: block; }
.fq .tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; background: transparent; border: 0; }
.fq .tabs > input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.fq .tabs > label { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 9px 13px; border-radius: 12px; background: #fff; border: 1px solid var(--fq-b);
	color: var(--fq-t); font-size: 14px; font-weight: 700; line-height: 1.25; cursor: pointer; user-select: none; box-shadow: 0 4px 12px rgba(15,23,42,.04); }
.fq .tabs > label:hover { background: #f1f5f9; }
.fq .tabs > input:checked + label { background: linear-gradient(135deg, #0b63e5, #1e90ff); color: #fff; border-color: transparent; box-shadow: 0 8px 18px rgba(11,99,229,.25); }
.fq .tabs > input:focus-visible + label { outline: 2px solid #1e90ff; outline-offset: 2px; }
.fq .tab-content { display: none; flex: 0 0 100%; width: 100%; min-width: 0; margin-top: 6px; background: #fff; border: 1px solid var(--fq-b); border-radius: 18px;
	padding: 18px 20px; box-shadow: 0 6px 18px rgba(15,23,42,.05); }
.fq .lang-block input[id$="-tab1"]:checked ~ .content-tab1, .fq .lang-block input[id$="-tab2"]:checked ~ .content-tab2,
.fq .lang-block input[id$="-tab3"]:checked ~ .content-tab3, .fq .lang-block input[id$="-tab4"]:checked ~ .content-tab4,
.fq .lang-block input[id$="-tab5"]:checked ~ .content-tab5, .fq .lang-block input[id$="-tab6"]:checked ~ .content-tab6,
.fq .lang-block input[id$="-tab7"]:checked ~ .content-tab7 { display: block; }

/* text */
.fq .tag { display: flex; gap: 10px; padding: 12px 15px; margin: 0 0 14px; border-radius: 14px; background: linear-gradient(135deg, #eff6ff, #f0fdf4); border: 1px solid #bfdbfe; color: #1e40af; font-size: 15px; }
.fq .tag strong { display: block; color: var(--fq-t); font-size: 17px; font-weight: 800; margin-bottom: 2px; }
.fq .section-title { display: flex; align-items: center; gap: 8px; margin: 18px 0 8px; padding-bottom: 6px; border-bottom: 1px solid #eef2f7; font-size: 17px; font-weight: 800; color: var(--fq-t); }
.fq p { margin: 0 0 10px; color: var(--fq-m); font-size: 15px; }
.fq .highlight { font-weight: 800; color: #0d6efd; background: #eff6ff; padding: 1px 7px; border-radius: 7px; white-space: nowrap; }
.fq ul { margin: 0 0 12px; padding: 0; list-style: none; }
.fq ul li { position: relative; margin-bottom: 6px; padding-left: 27px; color: var(--fq-m); font-size: 15px; }
.fq ul li::before { content: "\2713"; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, #0d6efd, #22c55e); color: #fff; font-size: 10px; font-weight: 900; }
.fq .callout { margin: 12px 0; padding: 11px 14px; border-radius: 14px; background: #f8fafc; border: 1px solid var(--fq-b); border-left: 4px solid #0d6efd; box-shadow: none; }
.fq .callout p { margin: 0; color: #334155; font-weight: 600; }
.fq .callout.green { border-left-color: #22c55e; background: #f0fdf4; border-color: #bbf7d0; border-left-color: #22c55e; }
.fq details { background: #fff; border: 1px solid var(--fq-b); border-radius: 14px; padding: 11px 14px; margin: 0 0 10px; }
.fq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; font-weight: 800; font-size: 15.5px; color: var(--fq-t); }
.fq summary::-webkit-details-marker { display: none; }
.fq .summary-arrow { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; color: #fff;
	background: linear-gradient(135deg, #0d6efd, #0ea5e9); transition: transform .2s; }
.fq details[open] .summary-arrow { transform: rotate(90deg); }
.fq details[open] summary { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid #eef2f7; }

/* ---------- diagrams ---------- */
.fqf { margin: 0 0 16px; padding: 14px; border-radius: 16px; background: #f8fafc; border: 1px solid var(--fq-b); }
.fqi { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.fqf-ic { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: #e6efff; color: var(--fq-blue); flex: 0 0 auto; }
.fqf-ic.is-good { background: #e3f6ea; color: var(--fq-green); }
.fqf-ic.is-bad { background: #fde8e8; color: var(--fq-red); }
.fqf-flow { display: flex; align-items: stretch; gap: 8px; margin-bottom: 12px; }
.fqf-step { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 12px 10px; border-radius: 14px; background: #fff; border: 1px solid var(--fq-b); }
.fqf-step b { font-size: 15px; color: var(--fq-t); line-height: 1.3; }
.fqf-step small { font-size: 12.5px; color: var(--fq-mm); line-height: 1.35; }
.fqf-step.is-accent { border-color: #93c5fd; box-shadow: 0 0 0 3px #e6efff; }
.fqf-step.is-good .fqf-ic { background: #e3f6ea; color: var(--fq-green); }
.fqf-step.is-accent .fqf-ic { background: linear-gradient(135deg, #0b63e5, #1e90ff); color: #fff; }
.fqf-arrow { display: flex; align-items: center; color: #94a3b8; flex: 0 0 auto; }
.fqf-fill { display: block; width: 70%; height: 7px; margin-top: 4px; border-radius: 99px; background: #e2e8f0; overflow: hidden; }
.fqf-fill span { display: block; height: 100%; width: 80%; border-radius: 99px; background: linear-gradient(90deg, #0b63e5, #22c55e); animation: fqfFill 3.2s ease-in-out infinite; }
@keyframes fqfFill { 0% { width: 8%; } 60% { width: 85%; } 100% { width: 85%; } }
.fqf-pair { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
.fqf-card { background: #fff; border: 1px solid var(--fq-b); border-radius: 14px; padding: 12px; min-width: 0; }
.fqf-card.is-good { border-color: #bbf7d0; }
.fqf-card.is-bad { border-color: #fecaca; }
.fqf-card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.fqf-card-h > div { flex: 1 1 auto; min-width: 0; }
.fqf-card-h b { display: block; font-size: 15px; color: var(--fq-t); line-height: 1.3; }
.fqf-card-h small { display: block; font-size: 12.5px; color: var(--fq-mm); line-height: 1.35; }
.fqf-card.is-good .fqf-card-h .fqf-ic { background: #e3f6ea; color: var(--fq-green); }
.fqf-card.is-bad .fqf-card-h .fqf-ic { background: #fde8e8; color: var(--fq-red); }
.fqf-card.is-accent .fqf-card-h .fqf-ic { background: #fff1f2; color: #e11d48; }
.fqf-mark { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; flex: 0 0 auto; }
.fqf-mark .fqi { width: 15px; height: 15px; stroke-width: 3; }
.fqf-card.is-good .fqf-mark, .fqf-card.is-accent .fqf-mark { background: var(--fq-green); }
.fqf-card.is-bad .fqf-mark { background: var(--fq-red); }
.fqf-strip { display: flex; gap: 3px; flex: 1 1 auto; min-width: 0; }
.fqf-strip i { flex: 1 1 0; height: 16px; border-radius: 4px; background: linear-gradient(180deg, #60a5fa, #2563eb); }
.fqf-card.is-good .fqf-strip i { background: linear-gradient(180deg, #4ade80, #16a34a); }
.fqf-strip i.is-gap { background: repeating-linear-gradient(45deg, #fecaca 0 4px, #fff 4px 8px); border: 1px dashed var(--fq-red); }
.fqf-strip-l { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 12.5px; color: var(--fq-mm); flex-wrap: wrap; }
.fqf-strip-l .fqi { width: 14px; height: 14px; }
.fqf-strip-l .is-bad, .fqf-strip-l .is-good { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; padding: 2px 8px; border-radius: 99px; }
.fqf-strip-l .is-bad { background: #fde8e8; color: var(--fq-red); }
.fqf-strip-l .is-good { background: #e3f6ea; color: var(--fq-green); }
.fqf-link { display: flex; align-items: center; gap: 8px; }
.fqf-link .fqf-ic { width: 36px; height: 36px; border-radius: 10px; }
.fqf-wire { flex: 1 1 auto; height: 6px; border-radius: 99px; position: relative; }
.fqf-wire.is-lan { background: linear-gradient(90deg, #16a34a, #22c55e); }
.fqf-wire.is-wifi { height: auto; display: flex; justify-content: space-around; align-items: center; }
.fqf-wire.is-wifi i { width: 6px; height: 26px; border-radius: 3px; background: #94a3b8; }
.fqf-wire.is-wifi i:nth-child(2) { background: #cbd5e1; }
.fqf-wire.is-wifi::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 3px dashed #f59e0b; transform: translateY(-50%); }
.fqf-cush { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: #e3f6ea; color: var(--fq-green); flex: 0 0 auto; }
.fqf-chips { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 10px; }
.fqf-chips .fqf-step { flex-direction: row; text-align: left; align-items: center; gap: 10px; flex-wrap: wrap; }
.fqf-chips .fqf-step b { flex: 1 1 60%; }
.fqf-chips .fqf-step small { flex: 1 1 100%; padding-left: 52px; margin-top: -6px; }
.fqf-split { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 10px; }
.fqf-box { background: #fff; border: 1px solid var(--fq-b); border-radius: 14px; padding: 12px; min-width: 0; }
.fqf-box-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 800; font-size: 14px; color: var(--fq-t); }
.fqf-box-h .fqi { color: var(--fq-blue); }
.fqf-bar { display: grid; grid-template-columns: 58px minmax(0,1fr); grid-template-areas: "v t" ". l"; column-gap: 10px; row-gap: 2px; margin-bottom: 9px; align-items: center; }
.fqf-bar-v { grid-area: v; font-weight: 800; font-size: 15px; color: var(--fq-t); text-align: right; }
.fqf-bar-ic { display: flex; justify-content: flex-end; color: var(--fq-blue); }
.fqf-bar-t { grid-area: t; height: 12px; border-radius: 99px; background: #eef2f7; overflow: hidden; }
.fqf-bar-t span { display: block; height: 100%; border-radius: 99px; }
.fqf-bar-t .is-warn { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.fqf-bar-t .is-good { background: linear-gradient(90deg, #16a34a, #4ade80); }
.fqf-bar-t .is-blue { background: linear-gradient(90deg, #0b63e5, #60a5fa); }
.fqf-bar-t .is-jump { width: 100% !important; background: repeating-linear-gradient(90deg, #fbbf24 0 18px, transparent 18px 26px, #fbbf24 26px 36px, transparent 36px 58px); opacity: .9; }
.fqf-bar-l { grid-area: l; font-size: 12.5px; color: var(--fq-mm); line-height: 1.35; }
.fqf-bar-l b { color: var(--fq-t); }
.fqf-meters { display: grid; gap: 10px; }
.fqf-meter { display: grid; grid-template-columns: 110px minmax(0,1fr); grid-template-areas: "b w" ". s"; column-gap: 10px; align-items: center; }
.fqf-meter b { grid-area: b; font-size: 13.5px; color: var(--fq-t); }
.fqf-meter > .fqf-wave, .fqf-meter > .fqf-strip { grid-area: w; }
.fqf-meter small { grid-area: s; font-size: 12px; color: var(--fq-mm); }
.fqf-meter .fqf-strip i { height: 10px; }
.fqf-wave { display: block; height: 18px; background-repeat: repeat-x; background-size: 40px 18px; background-position: left center; }
.fqf-wave.is-low { background-image: linear-gradient(transparent 7px, #16a34a 7px, #16a34a 10px, transparent 10px); }
.fqf-wave.is-jit { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='18'%3E%3Cpath d='M0 9 L6 9 L9 2 L13 16 L16 9 L24 9 L27 4 L30 14 L33 9 L40 9' fill='none' stroke='%23d97706' stroke-width='2.4' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.fqf-time { position: relative; display: flex; height: 14px; border-radius: 99px; background: #eef2f7; overflow: visible; }
.fqf-time span { height: 100%; }
.fqf-time span:first-child { border-radius: 99px 0 0 99px; }
.fqf-time .is-played { background: #2563eb; }
.fqf-time .is-ready { background: #93c5fd; }
.fqf-time .is-none { background: repeating-linear-gradient(45deg, #e2e8f0 0 5px, #fff 5px 10px); border-radius: 0 99px 99px 0; }
.fqf-time em { position: absolute; top: -4px; width: 4px; height: 22px; margin-left: -2px; border-radius: 2px; background: var(--fq-t); }
.fqf-time-l { display: flex; justify-content: space-between; gap: 8px; margin-top: 7px; font-size: 12.5px; color: var(--fq-mm); flex-wrap: wrap; }
.fqf-time-l .is-live { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; color: #e11d48; }
.fqf-time-l .is-live i { width: 8px; height: 8px; border-radius: 50%; background: #e11d48; animation: fqfBlink 1.4s infinite; }
@keyframes fqfBlink { 50% { opacity: .25; } }
.fqf-devs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fqf-devs .fqf-ic { width: 36px; height: 36px; border-radius: 10px; }
.fqf-ipt { padding: 3px 9px; border-radius: 99px; background: #eef2f7; color: #334155; font-size: 12px; font-weight: 800; }
.fqf-funnel { display: grid; grid-template-columns: minmax(0,1.6fr) 40px minmax(0,1fr); align-items: center; gap: 0; margin-bottom: 10px; }
.fqf-pipe { display: flex; flex-direction: column; justify-content: center; padding: 12px 14px; color: #fff; min-width: 0; }
.fqf-pipe.is-wide { min-height: 92px; border-radius: 14px 0 0 14px; background: linear-gradient(135deg, #0b63e5, #1e90ff); }
.fqf-pipe.is-narrow { min-height: 46px; border-radius: 0 14px 14px 0; background: linear-gradient(135deg, #d97706, #f59e0b); }
.fqf-pipe span { font-size: 12.5px; opacity: .9; }
.fqf-pipe b { font-size: 20px; line-height: 1.15; }
.fqf-pipe small { font-size: 11.5px; opacity: .9; }
.fqf-neck { align-self: stretch; background: linear-gradient(90deg, #1e90ff, #f59e0b); clip-path: polygon(0 0, 100% 25%, 100% 75%, 0 100%); }
@media (prefers-reduced-motion: reduce) { .fqf-fill span, .fqf-time-l .is-live i { animation: none; } }

@media (max-width: 767px) {
	html body .content-wrapper .content-header:has(.fq) { padding: 8px 8px 0 !important; }
	.fq { padding-top: 0; font-size: 14px; }
	.fq-sub { font-size: 13px; margin-bottom: 10px; }
	.fq .tabs { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
	.fq .tabs > label { padding: 8px 9px; font-size: 13px; gap: 6px; border-radius: 11px; }
	.fq .tabs > label[for$="-tab7"] { grid-column: 1 / -1; }
	.fq .tab-content { grid-column: 1 / -1; padding: 12px; border-radius: 15px; }
	.fq .tag { padding: 10px 12px; font-size: 13.5px; }
	.fq .tag strong { font-size: 15.5px; }
	.fq .section-title { font-size: 15.5px; margin-top: 14px; }
	.fq p, .fq ul li { font-size: 14px; line-height: 1.5; }
	.fq details { padding: 10px 12px; }
	.fq summary { font-size: 14.5px; }
	.fqf { padding: 10px; margin-bottom: 12px; border-radius: 14px; }
	.fqf-flow { flex-direction: column; gap: 2px; }
	/* step: icon on the left, title + caption on the right (compact on phones) */
	.fqf-step, .fqf-chips .fqf-step { display: grid; grid-template-columns: 38px minmax(0,1fr); column-gap: 10px; row-gap: 1px; text-align: left; align-items: center; padding: 8px 10px; }
	.fqf-step .fqf-ic { grid-row: 1 / span 3; align-self: center; }
	.fqf-step b, .fqf-step small, .fqf-chips .fqf-step b, .fqf-chips .fqf-step small { grid-column: 2; padding: 0; margin: 0; }
	.fqf-fill { grid-column: 2; width: 100%; margin-top: 3px; }
	.fqf-arrow { justify-content: center; transform: rotate(90deg); height: 14px; }
	.fqf-arrow .fqi { width: 16px; height: 16px; }
	.fqf-pair, .fqf-chips, .fqf-split { grid-template-columns: minmax(0,1fr); gap: 8px; }
	.fqf-ic { width: 38px; height: 38px; }
	.fqf-funnel { grid-template-columns: minmax(0,1.3fr) 26px minmax(0,1fr); }
	.fqf-pipe { padding: 10px; }
	.fqf-pipe b { font-size: 17px; }
	.fqf-meter { grid-template-columns: 92px minmax(0,1fr); }
	.fqf-bar { grid-template-columns: 46px minmax(0,1fr); }
}
