﻿/* ==============================
   QuickPOS โ€” Custom Stylesheet
   ============================== */

:root {
    --primary: #2192FF;
    --primary-dark: #1a7ce0;
    --accent: #38E54D;
    --accent-dark: #16a34a;
    --dark: #0d1b2a;
    --navy: #1a3a5c;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'IBM Plex Sans Thai', sans-serif; background: #fff; margin: 0; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ==============================
   NavBar
   ============================== */
.qpos-navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.qpos-navbar.scrolled {
    background: rgba(255,255,255,0.85);
    border-bottom-color: rgba(33,146,255,0.15);
    box-shadow: 0 2px 24px rgba(33,146,255,0.08);
}
.qpos-logo-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 800; color: #fff; letter-spacing: -1px;
    flex-shrink: 0;
}
.qpos-nav-link {
    padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 500;
    color: #444; text-decoration: none; transition: background 0.2s, color 0.2s;
    font-family: 'IBM Plex Sans Thai', sans-serif;
}
.qpos-nav-link:hover { background: rgba(33,146,255,0.1); color: var(--primary); }
.qpos-btn-contact {
    padding: 9px 22px; border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; font-weight: 600; font-size: 14px; text-decoration: none;
    box-shadow: 0 4px 15px rgba(33,146,255,0.35);
    transition: transform 0.2s; font-family: 'IBM Plex Sans Thai', sans-serif; white-space: nowrap;
}
.qpos-btn-contact:hover { transform: translateY(-1px); color: #fff; }

.qpos-hamburger {
    background: none; border: none; cursor: pointer; padding: 8px;
    border-radius: 8px; display: flex; flex-direction: column; gap: 5px;
}
.qpos-hamburger span {
    display: block; width: 22px; height: 2px;
    background: #333; border-radius: 2px; transition: all 0.3s;
}
.qpos-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.qpos-hamburger.open span:nth-child(2) { opacity: 0; }
.qpos-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.qpos-mobile-menu {
    display: none; background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px); border-top: 1px solid rgba(33,146,255,0.1);
}
.qpos-mobile-menu.open { display: block; }
.qpos-mobile-link {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; background: none; border: none; border-radius: 0;
    border-bottom: 1px solid rgba(33,146,255,0.18);
    padding: 13px 4px;
    font-size: 15px; font-weight: 500; color: #333;
    text-decoration: none; font-family: 'IBM Plex Sans Thai', sans-serif;
    text-align: left; cursor: pointer; box-sizing: border-box;
}
.qpos-mobile-link:hover { color: var(--primary); }
.qpos-mobile-caret { font-size: 22px; color: #555; transition: transform 0.2s; display: inline-block; line-height: 1; }
.qpos-mobile-hardware-toggle.open .qpos-mobile-caret { transform: rotate(180deg); }
.qpos-mobile-submenu {
    display: none; background: #1a2a40;
    border-radius: 8px; margin: 2px 0 4px; overflow: hidden;
}
.qpos-mobile-submenu.open { display: block; }
.qpos-mobile-submenu-item {
    display: block; padding: 11px 18px;
    color: #fff; font-size: 14px; font-weight: 500;
    text-decoration: none; font-family: 'IBM Plex Sans Thai', sans-serif;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.qpos-mobile-submenu-item:last-child { border-bottom: none; }
.qpos-mobile-submenu-item:hover { background: rgba(255,255,255,0.1); color: #fff; }
.qpos-dropdown { position: relative; }
/* Bridge pseudo-element fills the gap so hover doesn't break mid-travel */
.qpos-dropdown::after {
    content: ''; position: absolute;
    top: 100%; left: -8px; right: -8px; height: 12px;
}
.qpos-dropdown-toggle { display: flex !important; align-items: center; gap: 5px; cursor: pointer; user-select: none; }
.qpos-dropdown-caret { font-size: 20px; color: #555; transition: transform 0.2s; display: inline-block; line-height: 1; }
.qpos-dropdown:hover .qpos-dropdown-caret { transform: rotate(180deg); }
.qpos-dropdown-menu {
    display: none; position: absolute;
    top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
    background: #fff; border-radius: 12px;
    box-shadow: 0 8px 32px rgba(33,146,255,0.18);
    min-width: 130px; z-index: 200; padding: 6px;
    border: 1px solid rgba(33,146,255,0.12);
}
.qpos-dropdown:hover .qpos-dropdown-menu { display: block; }
.qpos-dropdown-item {
    display: block; padding: 9px 14px; border-radius: 8px;
    font-size: 14px; font-weight: 500; color: #444;
    text-decoration: none; font-family: 'IBM Plex Sans Thai', sans-serif;
    white-space: nowrap;
}
.qpos-dropdown-item:hover { background: rgba(33,146,255,0.1); color: var(--primary); }

/* ==============================
   Section common
   ============================== */
.section-tag {
    font-size: 13px; font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase; margin-bottom: 10px;
    font-family: 'IBM Plex Sans Thai', sans-serif;
}
.section-tag.blue { color: var(--primary); }
.section-tag.green { color: var(--accent-dark); }
.section-heading {
    font-size: clamp(26px, 3vw, 40px); font-weight: 800;
    color: var(--dark); line-height: 1.25;
    font-family: 'IBM Plex Sans Thai', sans-serif;
}
.section-heading.white { color: #fff; }

/* ==============================
   Hero Section
   ============================== */
#hero {
    min-height: 100vh; padding-top: 64px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f8f0 100%);
    display: flex; align-items: center; overflow: hidden; position: relative;
}
.hero-blob-1 {
    position: absolute; top: -100px; right: -100px;
    width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(33,146,255,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.hero-blob-2 {
    position: absolute; bottom: -80px; left: -80px;
    width: 400px; height: 400px; border-radius: 50%;
    background: radial-gradient(circle, rgba(56,229,77,0.1) 0%, transparent 70%);
    pointer-events: none;
}
.hero-img-wrap {
    border-radius: 28px; overflow: hidden;
    background: linear-gradient(135deg, #dceeff 0%, #d0f5db 100%);
    aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 30px 80px rgba(33,146,255,0.18); position: relative;
}
.hero-badge {
    position: absolute; border-radius: 14px; padding: 10px 16px;
    background: rgba(255,255,255,0.85); backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(33,146,255,0.15);
    display: flex; align-items: center; gap: 8px;
}
.hero-badge-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--accent); box-shadow: 0 0 8px var(--accent);
}
.hero-tag-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(33,146,255,0.1); border-radius: 30px;
    padding: 6px 16px; font-size: 12px; font-weight: 600;
    color: var(--primary); letter-spacing: 0.5px;
}
.hero-title {
    font-size: clamp(32px, 4vw, 52px); font-weight: 800;
    color: var(--dark); line-height: 1.15; letter-spacing: -1px;
}
.hero-title .highlight { color: var(--primary); }
.hero-desc {
    font-size: clamp(15px, 1.5vw, 18px); color: #555;
    line-height: 1.7; font-weight: 300;
}
.hero-btn-primary {
    padding: 14px 32px; border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; font-weight: 700; font-size: 16px;
    text-decoration: none; box-shadow: 0 8px 24px rgba(33,146,255,0.4);
    transition: transform 0.2s; font-family: 'IBM Plex Sans Thai', sans-serif;
    min-width: 160px; text-align: center;
}
.hero-btn-primary:hover { transform: translateY(-2px); color: #fff; }
.hero-btn-secondary {
    padding: 14px 28px; border-radius: 14px;
    background: rgba(255,255,255,0.8); backdrop-filter: blur(10px);
    color: var(--primary); font-weight: 600; font-size: 16px;
    text-decoration: none; border: 2px solid rgba(33,146,255,0.25);
    transition: all 0.2s; font-family: 'IBM Plex Sans Thai', sans-serif;
}
.hero-btn-secondary:hover { background: rgba(33,146,255,0.08); color: var(--primary); }
.hero-stat-val { font-size: 22px; font-weight: 800; color: var(--primary); }
.hero-stat-label { font-size: 12px; color: #888; font-weight: 300; }

/* ==============================
   Placeholder (image stub)
   ============================== */
.img-placeholder {
    background: repeating-linear-gradient(45deg, rgba(33,146,255,0.06) 0px, rgba(33,146,255,0.06) 10px, rgba(56,229,77,0.04) 10px, rgba(56,229,77,0.04) 20px);
    border: 1.5px dashed rgba(33,146,255,0.25);
    border-radius: 16px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 8px;
    font-family: monospace; font-size: 11px;
    color: rgba(33,146,255,0.5); text-align: center; padding: 16px;
}

/* ==============================
   Feature Section
   ============================== */
#features { padding: 80px 0; background: #fff; }

.feat-icon-bar { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.feat-icon-btn {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    background: rgba(33,146,255,0.55); border: none; border-radius: 20px;
    padding: 16px 14px; cursor: pointer; width: 96px; flex-shrink: 0;
    transition: background 0.25s, box-shadow 0.2s;
    box-shadow: 0 0 0 3px transparent, 0 0 0 5px transparent;
}
.feat-icon-btn > div { transform: scale(1.18); }
.feat-icon-btn span {
    font-size: 13px; font-weight: 600; color: #fff;
    white-space: nowrap; font-family: 'IBM Plex Sans Thai', sans-serif;
}
.feat-icon-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--primary);
}

/* Mobile icon bar slider */
.feat-btn-mobile { display: none; align-items: center; gap: 8px; }
.feat-slider-nav {
    flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
    border: 2px solid rgba(33,146,255,0.7); background: rgba(33,146,255,0.08);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 18px; font-weight: 700; transition: opacity 0.2s, background 0.2s;
}
.feat-slider-nav:hover:not(:disabled) { background: rgba(33,146,255,0.18); }
.feat-slider-nav:disabled { opacity: 0.25; cursor: default; }
.feat-slider-viewport { flex: 1; overflow: hidden; padding: 6px; margin: -6px; }
.feat-slider-track { display: flex; gap: 10px; transition: transform 0.3s ease; }
.feat-slider-track .feat-icon-btn { flex: 0 0 calc(33.33% - 7px); }

.feat-play-btn {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    width: 52px; height: 52px; border-radius: 50%; background: #FF0000;
    border: none; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(255,0,0,0.35); transition: transform 0.2s, box-shadow 0.2s;
}
.feat-play-btn:hover { transform: translateX(-50%) scale(1.1); box-shadow: 0 6px 24px rgba(255,0,0,0.5); }
.hero-play-label {
    position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
    font-size: 11px; font-weight: 600; color: #e00;
    font-family: 'IBM Plex Sans Thai', sans-serif;
    white-space: nowrap; pointer-events: none; letter-spacing: 0.3px;
}

.feat-bullet {
    display: flex; align-items: center; gap: 10px;
    font-family: 'IBM Plex Sans Thai', sans-serif; font-size: 15px; color: #444;
}
.feat-bullet-dot {
    width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; color: #fff; font-weight: 700;
}

/* ==============================
   Outstanding Points
   ============================== */
.outstanding-point {
    cursor: pointer; border-radius: 16px; padding: 16px 20px;
    border-left: 4px solid transparent; transition: all 0.25s;
}
.outstanding-point.active {
    background: rgba(33,146,255,0.07);
    border-left-color: var(--primary);
}
.outstanding-point.active-green {
    background: rgba(56,229,77,0.07);
    border-left-color: var(--accent-dark);
}
.outstanding-set[data-color="green"] .outstanding-point {
    border-left-width: 0;
    border-right: 4px solid transparent;
}
.outstanding-set[data-color="green"] .outstanding-point.active-green {
    border-right-color: var(--accent-dark);
}
.outstanding-badge {
    display: inline-block; border-radius: 8px; padding: 4px 12px;
    font-size: 13px; font-weight: 700; color: #fff;
    font-family: 'IBM Plex Sans Thai', sans-serif; margin-bottom: 8px;
}
.outstanding-badge.blue { background: var(--primary); }
.outstanding-badge.green { background: var(--accent-dark); }

/* ==============================
   Plan Cards
   ============================== */
.plan-card-wrap {
    border-radius: 28px; padding: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
}
.plan-card-wrap.plan-blue { background: linear-gradient(160deg, #eef8ff 0%, #c8e8f8 100%); }
.plan-card-wrap.plan-yellow { background: linear-gradient(160deg, #fffbe0 0%, #f5d97a 100%); }
.plan-card-wrap.plan-red { background: linear-gradient(160deg, #ffe8e4 0%, #f0907a 100%); }
.plan-card-wrap.plan-gold { background: linear-gradient(160deg, #fff3d6 0%, #e0a830 100%); }

.plan-card-inner { background: #fff; border-radius: 20px; overflow: hidden; }
.plan-card-header { padding: 22px 20px 18px; text-align: center; }
.plan-card-name { font-size: 24px; font-weight: 800; font-family: 'IBM Plex Sans Thai', sans-serif; margin-bottom: 4px; }
.plan-card-wrap.plan-blue   .plan-card-name { color: #4C8CE4; }
.plan-card-wrap.plan-yellow .plan-card-name { color: #E89951; }
.plan-card-wrap.plan-red    .plan-card-name { color: #C13383; }
.plan-card-suitable { font-size: 13px; color: #1a2a3a; font-weight: 300; font-family: 'IBM Plex Sans Thai', sans-serif; }
.plan-card-price-row {
    border-bottom: 1px solid #e8e8e8; padding: 14px 20px; text-align: center;
    font-size: 18px; font-weight: 700; color: #1F6F5F; font-family: 'IBM Plex Sans Thai', sans-serif;
}
.plan-per-pos {
    background: #0d2f6e; padding: 12px 20px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    font-size: 15px; font-weight: 700; color: #fff; font-family: 'IBM Plex Sans Thai', sans-serif; letter-spacing: 0.5px;
}
.plan-feature-list { padding: 4px 20px 8px; }
.plan-feature-row {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 0;
    border-bottom: 1.5px dashed rgba(0,0,0,0.12);
    font-family: 'IBM Plex Sans Thai', sans-serif; font-size: 15px; color: #111;
}
.plan-feature-row:last-child { border-bottom: none; }
.plan-feature-icon { flex-shrink: 0; width: 32px; height: 32px; }

/* ==============================
   One-Time Advantages
   ============================== */
#one-time { padding: 80px 0; background: #fff; }

/* ==============================
   Slider (image-based)
   ============================== */
.qpos-slider { position: relative; }
.qpos-slider-track-wrap { overflow: hidden; cursor: grab; }
.qpos-slider-track-wrap:active { cursor: grabbing; }
.qpos-slider-grid { display: grid; gap: 20px; margin-bottom: 28px; }
.qpos-slider-dots { display: flex; justify-content: center; gap: 10px; }
.qpos-dot {
    height: 10px; border-radius: 5px; background: rgba(0,0,0,0.12);
    border: 2px solid transparent; cursor: pointer; padding: 0;
    transition: all 0.3s; width: 10px;
}
.qpos-dot.active {
    background: var(--primary); border-color: var(--primary);
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--primary);
    width: 10px;
}
.qpos-dot.green.active {
    background: var(--accent); border-color: var(--accent);
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent);
}

/* ==============================
   POS Set Cards
   ============================== */
.set-card {
    border-radius: 20px; padding: 18px; display: flex; flex-direction: row; gap: 0;
    background: rgba(33,146,255,0.06);
    border: 1.5px solid rgba(33,146,255,0.12);
    align-items: stretch;
}
.set-card.green {
    background: rgba(56,229,77,0.06);
    border-color: rgba(56,229,77,0.2);
}
.set-card-left {
    width: 46%; flex-shrink: 0; display: flex; flex-direction: column;
    align-items: center; gap: 10px; padding-right: 16px;
}
.set-card-right {
    flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-start;
}
.set-card-name {
    font-size: 15px; font-weight: 700; color: #0d1b2a; text-align: left;
    font-family: 'IBM Plex Sans Thai', sans-serif; line-height: 1.3;
}
.set-price-btn {
    background: #0d1b2a; color: #fff; border-radius: 50px;
    padding: 5px 14px; font-size: 13px; font-weight: 700;
    font-family: 'IBM Plex Sans Thai', sans-serif; text-align: center; white-space: nowrap;
}
.set-card.green .set-price-btn { background: #1a5c38; }
.set-bullet { display: flex; align-items: flex-start; gap: 6px; font-family: 'IBM Plex Sans Thai', sans-serif; font-size: 12px; color: #444; }
.set-bullet-arrow { color: var(--primary); font-weight: 700; font-size: 10px; flex-shrink: 0; margin-top: 2px; }
.set-bullet-arrow.green { color: var(--accent); }

/* ==============================
   Set Card Image Thumb
   ============================== */
.set-img-thumb {
    aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; width: 100%;
    background: rgba(33,146,255,0.08);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 6px;
    cursor: zoom-in; transition: opacity 0.18s;
    position: relative;
}
.set-img-thumb:hover { opacity: 0.82; }
.lightbox-zoom-icon {
    position: absolute; bottom: 8px; right: 8px;
    width: 28px; height: 28px; object-fit: contain;
    pointer-events: none; opacity: 0.75;
}

/* ==============================
   Lightbox Modal
   ============================== */
.lightbox-dialog {
    width: 94vw; max-width: 94vw;
    margin: 1.5vh auto;
}
.lightbox-content {
    background: rgba(8,8,18,0.95); border: none; border-radius: 18px;
    padding: 48px 28px 28px; position: relative;
    display: flex; flex-direction: column; align-items: center;
    max-height: calc(97vh - 3rem); overflow-y: auto; width: 100%;
}
.lightbox-img-wrap {
    width: 100%; display: flex; align-items: center; justify-content: center;
}
.lightbox-img-wrap img {
    max-width: 100%; max-height: 70vh;
    object-fit: contain; border-radius: 10px; display: block;
}
@media (max-width: 576px) {
    .lightbox-dialog { width: 97vw; max-width: 97vw; margin: 0 auto; }
    .lightbox-content {
        padding: 44px 14px 18px; border-radius: 14px;
        max-height: calc(100vh - 1.5rem);
    }
    .lightbox-img-wrap img { max-height: 52vh; }
}
.lightbox-placeholder {
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    color: rgba(255,255,255,0.35); font-size: 13px;
    font-family: 'IBM Plex Sans Thai', sans-serif; padding: 40px 0;
}
.lightbox-caption {
    color: #fff; text-align: center; margin-top: 16px;
    font-size: 16px; font-weight: 600;
    font-family: 'IBM Plex Sans Thai', sans-serif;
}
.lightbox-detail {
    color: rgba(255,255,255,0.65); text-align: left; margin-top: 8px;
    font-size: 14px; font-weight: 300; line-height: 1.7;
    font-family: 'IBM Plex Sans Thai', sans-serif;
    max-width: 560px;
}
.lightbox-close {
    position: absolute; top: 12px; right: 14px;
    background: rgba(255,255,255,0.12); border: none; border-radius: 50%;
    width: 34px; height: 34px; color: #fff; font-size: 14px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.18s; z-index: 10;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* ==============================
   Comparison Table Modal
   ============================== */
.cmp-modal-content { border-radius: 24px; border: none; }
.cmp-modal-body { padding: 0 24px 32px; overflow-x: hidden; }
.cmp-table { table-layout: fixed; width: 100%; font-family: 'IBM Plex Sans Thai', sans-serif; font-size: 15px; }
.cmp-table th, .cmp-table td { vertical-align: middle; word-break: break-word; }
.cmp-table thead th { background: #f0f7ff; position: sticky; top: 0; z-index: 2; box-shadow: 0 2px 0 0 #dee2e6; }
.cmp-feature-col-header { font-size: 16px; font-weight: 700; color: #0d1b2a; text-align: center; }
.cmp-plan-col-header { text-align: center !important; padding: 12px 8px; vertical-align: top !important; }
.cmp-th-name { display: block; font-size: 18px; font-weight: 700; }
.cmp-th-icon { display: block; height: 52px; width: auto; margin: 6px auto 4px; }
.cmp-th-price { display: block; font-size: 22px; font-weight: 800; color: #1F6F5F; margin: 3px 0; }
.cmp-th-suffix { font-size: 13px; color: #aaa; font-weight: 300; margin-left: 2px; }
.cmp-th-suitable { display: block; font-size: 13px; color: #888; }
.cmp-table tbody tr.cmp-group-row th {
    background-color: #0d2b52 !important;
    color: #ffffff !important;
    --bs-table-color: #ffffff;
    --bs-table-bg: #0d2b52;
    font-size: 14px; font-weight: 700; padding: 9px 12px;
    letter-spacing: 0.3px;
}
.cmp-feature-cell { font-size: 15px; color: #444; padding: 9px 10px; }
.cmp-val-cell { text-align: center !important; padding: 8px 4px; font-size: 18px; vertical-align: middle !important; }
.cmp-icon-yes { color: #16a34a !important; font-size: 20px; line-height: 1; }
.cmp-icon-no  { color: #dc2626 !important; font-size: 18px; line-height: 1; }
.cmp-text-val { font-size: 14px; color: #444; text-align: center; display: block; }
@media (max-width: 576px) {
    .cmp-modal-body { padding: 0 8px 20px; }
    .cmp-table { font-size: 11px; }
    .cmp-th-name { font-size: 12px; }
    .cmp-th-icon { height: 36px; }
    .cmp-th-price { font-size: 15px; }
    .cmp-th-suitable { font-size: 10px; }
    .cmp-feature-cell { font-size: 11px; padding: 5px 5px; }
    .cmp-val-cell { font-size: 13px; padding: 5px 2px; }
    .cmp-icon-yes { font-size: 15px !important; }
    .cmp-icon-no  { font-size: 14px !important; }
    .cmp-table tbody tr.cmp-group-row th { font-size: 11px; padding: 6px 6px; }
    .cmp-text-val { font-size: 11px; }
}

/* ==============================
   Video Modal
   ============================== */
.video-modal-content { border-radius: 24px; border: none; background: rgba(255,255,255,0.97); }
.video-ratio { background: #000; border-radius: 16px; overflow: hidden; }
.video-caption { font-family: 'IBM Plex Sans Thai', sans-serif; color: #555; font-size: 14px; line-height: 1.7; margin-top: 14px; }

/* ==============================
   Page Header (inner pages)
   ============================== */
.page-header {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f8f0 100%);
    padding: 120px 0 60px; text-align: center; position: relative; overflow: hidden;
}
.page-header::before {
    content: ''; position: absolute; top: -100px; right: -100px;
    width: 400px; height: 400px; border-radius: 50%;
    background: radial-gradient(circle, rgba(33,146,255,0.12) 0%, transparent 70%);
}

/* ==============================
   Contact Page
   ============================== */
.contact-card {
    background: rgba(255,255,255,0.9); border-radius: 20px; padding: 28px 24px;
    box-shadow: 0 4px 24px rgba(33,146,255,0.08);
    border: 1.5px solid rgba(33,146,255,0.1);
    height: 100%;
}
.contact-icon-wrap {
    width: 52px; height: 52px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(33,146,255,0.12), rgba(56,229,77,0.12));
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.form-control, .form-select {
    border-radius: 12px; border: 1.5px solid rgba(33,146,255,0.2);
    padding: 12px 16px; font-family: 'IBM Plex Sans Thai', sans-serif; font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary); box-shadow: 0 0 0 3px rgba(33,146,255,0.1); outline: none;
}
.btn-qpos-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; border: none; border-radius: 14px; padding: 14px 40px;
    font-weight: 700; font-size: 16px; font-family: 'IBM Plex Sans Thai', sans-serif;
    cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 20px rgba(33,146,255,0.35);
}
.btn-qpos-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(33,146,255,0.45); color:#fff; }

/* ==============================
   About Page
   ============================== */
.about-stat-card {
    background: rgba(255,255,255,0.9); border-radius: 20px; padding: 28px 20px;
    text-align: center; box-shadow: 0 4px 24px rgba(33,146,255,0.08);
    border: 1.5px solid rgba(33,146,255,0.1);
}
.about-stat-val { font-size: 36px; font-weight: 800; color: var(--primary); }
.about-stat-label { font-size: 14px; color: #666; font-weight: 300; }
.team-card {
    background: rgba(255,255,255,0.9); border-radius: 20px; padding: 24px;
    text-align: center; box-shadow: 0 4px 24px rgba(33,146,255,0.06);
    border: 1.5px solid rgba(33,146,255,0.1);
}
.team-avatar {
    width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 800; color: #fff;
}
.value-card {
    border-radius: 20px; padding: 28px 24px;
    background: linear-gradient(135deg, rgba(33,146,255,0.04) 0%, rgba(56,229,77,0.04) 100%);
    border: 1.5px solid rgba(33,146,255,0.1); height: 100%;
}
.value-icon {
    width: 48px; height: 48px; border-radius: 12px; margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
}

/* ==============================
   Footer
   ============================== */
.qpos-footer { background: #0a1220; padding: 60px 0 32px; color: #fff; }
.footer-desc { font-family: 'IBM Plex Sans Thai', sans-serif; font-weight: 300; font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.8; margin-bottom: 20px; }
.footer-social-btn {
    width: 38px; height: 38px; border-radius: 10px;
    background: rgba(255,255,255,0.08); display: flex;
    align-items: center; justify-content: center;
    color: rgba(255,255,255,0.7); text-decoration: none;
    transition: background 0.2s; border: 1px solid rgba(255,255,255,0.08);
}
.footer-social-btn:hover { background: rgba(33,146,255,0.3); color: #fff; }
.footer-contact-row { display: flex; gap: 8px; align-items: flex-start; font-family: 'IBM Plex Sans Thai', sans-serif; font-size: 13px; color: rgba(255,255,255,0.6); }
.footer-contact-row svg { flex-shrink: 0; margin-top: 2px; }
.footer-col-title { font-family: 'IBM Plex Sans Thai', sans-serif; font-weight: 700; font-size: 15px; color: #fff; margin-bottom: 16px; }
.footer-link { display: block; font-family: 'IBM Plex Sans Thai', sans-serif; font-weight: 300; font-size: 14px; color: rgba(255,255,255,0.55); text-decoration: none; margin-bottom: 10px; transition: color 0.2s; }
.footer-link:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-family: 'IBM Plex Sans Thai', sans-serif; font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--accent); }

/* ==============================
   Btn wide
   ============================== */
.btn-wide {
    display: inline-block; padding: 16px 64px; border-radius: 50px;
    font-weight: 700; font-size: 16px; text-decoration: none;
    font-family: 'IBM Plex Sans Thai', sans-serif; transition: transform 0.2s, box-shadow 0.2s; cursor: pointer;
}
.btn-wide:hover { transform: translateY(-2px); }
.btn-wide-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; box-shadow: 0 8px 28px rgba(33,146,255,0.35); border: none;
}
.btn-wide-primary:hover { box-shadow: 0 10px 32px rgba(33,146,255,0.45); color: #fff; }
.btn-wide-outline-blue {
    background: transparent; color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-wide-outline-blue:hover { background: var(--primary); color: #fff; }
.btn-wide-outline-green {
    background: transparent; color: var(--accent);
    border: 2px solid var(--accent);
}
.btn-wide-outline-green:hover { background: var(--accent); color: var(--dark); }
.btn-wide-green {
    background: linear-gradient(135deg, var(--accent), #2bc43f);
    color: var(--dark); border: none; box-shadow: 0 8px 28px rgba(56,229,77,0.4);
}
.btn-wide-green:hover { box-shadow: 0 10px 32px rgba(56,229,77,0.5); color: var(--dark); }

/* ==============================
   Responsive
   ============================== */
/* Tablet (both orientations): feature buttons 2×5 grid */
@media (min-width: 768px) and (max-width: 1199px) {
    .feat-icon-bar .feat-icon-btn {
        flex: 0 0 calc(20% - 9.6px);
        max-width: calc(20% - 9.6px);
    }
}

/* Tablet portrait: force mobile layout + shrink hero */
@media (min-width: 768px) and (max-width: 1199px) and (orientation: portrait) {
    /* Navbar: hide desktop links, show hamburger */
    #qpos-navbar .d-md-flex { display: none !important; }
    #qpos-navbar .d-flex.d-md-none { display: flex !important; }
    #qpos-mobile-menu { display: none !important; }
    #qpos-mobile-menu.open { display: block !important; }

    /* Hero: shrink to content height */
    #hero {
        min-height: auto;
        align-items: flex-start;
        padding-bottom: 50px;
    }
    #hero .container {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }
}

/* ── Plan mobile icon navigation ── */
.plan-icon-btn {
    background: none;
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 6px 10px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.plan-icon-btn img { display: block; height: 60px; width: auto; }
#plans-mobile .plan-icon-btn.active {
    border-color: var(--primary);
    background: rgba(33,146,255,0.07);
}
#otp-plans-mobile .plan-icon-btn.active {
    border-color: var(--accent);
    background: rgba(56,229,77,0.07);
}

/* ── Plan mobile scroll track ── */
.plan-mobile-track {
    display: flex;
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}
.plan-mobile-track .plan-slide,
.plan-mobile-track .otp-plan-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: center; }

@media (max-width: 767px) {
    #hero { padding-top: 64px; }
    .hero-order-1 { order: 1; }
    .hero-order-2 { order: 2; }
    .feat-icon-bar { display: none; }
    .feat-btn-mobile { display: flex; }
    .feat-content-grid { grid-template-columns: 1fr !important; }
    .outstanding-img-first { order: -1; }
    .plans-desktop-wrap { display: none !important; }
    .plans-mobile-wrap { display: block !important; }
}


