/* WebRent SaaS Design System (White / #F7F8FA + Dark Ink #111315 + Warm Gold #CA8A04) */
:root {
    --background: #ffffff;
    --foreground: #0f172b;
    --yellow-50: #fefce8;
    --yellow-100: #fef9c2;
    --yellow-200: #fff085;
    --yellow-300: #ffe02a;
    --yellow-400: #fac800;
    --yellow-500: #edb200;
    --yellow-600: #cd8900;
    --amber-50: #fffbeb;
    --amber-200: #fee685;
    --amber-700: #b75000;
}

html, body, button, input, select, textarea {
    font-family: 'IBM Plex Sans Thai', 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

body {
    background-color: #ffffff;
    color: #0f172b;
    line-height: 1.58;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

#hx-sonar-bg {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}

header, main, footer {
    position: relative;
}

main {
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.35) !important;
}

/* Orange Interactive Click Ripple Ring */
@keyframes hxOrangeRipple {
    0% {
        transform: translate(-50%, -50%) scale(0.18);
        opacity: 0.95;
        border-width: 3px;
    }
    70% {
        opacity: 0.48;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0;
        border-width: 1px;
    }
}
.hx-click-burst {
    position: fixed;
    width: 96px;
    height: 96px;
    border-radius: 9999px;
    pointer-events: none;
    z-index: 9996;
    border: 2.5px solid #f97316;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.24) 0%, rgba(251, 146, 60, 0.08) 52%, transparent 74%);
    box-shadow: 0 0 24px rgba(249, 115, 22, 0.32);
    animation: hxOrangeRipple 0.56s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Desktop Custom Sleek Pointer Cursor (PC with fine mouse pointer only) */
#hx-cursor-dot,
#hx-cursor-ring {
    display: none;
}
@media (hover: hover) and (pointer: fine) {
    body.hx-custom-cursor,
    body.hx-custom-cursor a,
    body.hx-custom-cursor button,
    body.hx-custom-cursor label,
    body.hx-custom-cursor [role="button"] {
        cursor: none !important;
    }
    body.hx-custom-cursor input,
    body.hx-custom-cursor textarea,
    body.hx-custom-cursor select {
        cursor: text !important;
    }
    body.hx-custom-cursor #hx-cursor-dot {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 10px;
        height: 10px;
        border-radius: 9999px;
        background: linear-gradient(135deg, #f97316 0%, #f59e0b 100%);
        border: 1.5px solid #ffffff;
        box-shadow: 0 2px 8px rgba(249, 115, 22, 0.45);
        pointer-events: none;
        z-index: 99999;
        transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
        transition: width 0.14s ease, height 0.14s ease, opacity 0.16s ease, background 0.16s ease;
    }
    body.hx-custom-cursor #hx-cursor-ring {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 34px;
        height: 34px;
        border-radius: 9999px;
        border: 1.75px solid rgba(249, 115, 22, 0.55);
        background: rgba(249, 115, 22, 0.05);
        pointer-events: none;
        z-index: 99998;
        transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
        transition: width 0.2s cubic-bezier(0.22, 1, 0.36, 1), height 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.18s ease, background-color 0.18s ease, opacity 0.16s ease;
    }
    body.hx-custom-cursor #hx-cursor-ring.is-hovering {
        width: 46px;
        height: 46px;
        border-color: rgba(249, 115, 22, 0.85);
        background: rgba(249, 115, 22, 0.10);
    }
    body.hx-custom-cursor #hx-cursor-dot.is-clicking {
        width: 14px;
        height: 14px;
        background: #ea580c;
    }
    body.hx-custom-cursor #hx-cursor-ring.is-clicking {
        width: 24px;
        height: 24px;
        border-color: #f97316;
    }
    body.hx-custom-cursor #hx-cursor-dot.is-hidden,
    body.hx-custom-cursor #hx-cursor-ring.is-hidden {
        opacity: 0 !important;
    }
}

.font-mono-code {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.pp-brand-wordmark {
    font-family: 'Syne', 'Plus Jakarta Sans', 'IBM Plex Sans Thai', sans-serif;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.pp-brand-api-grad {
    background: linear-gradient(135deg, #f59e0b 0%, #eab308 45%, #10b981 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.pp-num {
    font-variant-numeric: tabular-nums;
}

/* PlernPay Hero Golden Aurora Sweep */
@keyframes aurora {
    0% { background-position: 50% 50%, 50% 50%; }
    100% { background-position: 350% 50%, 350% 50%; }
}

.pp-aurora {
    position: absolute;
    inset: -10px;
    pointer-events: none;
    opacity: 0.30;
    filter: blur(10px) invert(0);
    background-image:
        repeating-linear-gradient(100deg, #ffffff 0%, #ffffff 7%, transparent 10%, transparent 12%, #ffffff 16%),
        repeating-linear-gradient(100deg, #f59e0b 10%, #fbbf24 15%, #fcd34d 20%, #fef3c7 25%, #f59e0b 30%);
    background-size: 300%, 200%;
    background-position: 50% 50%, 50% 50%;
    mask-image: radial-gradient(ellipse at 100% 0%, black 10%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 100% 0%, black 10%, transparent 70%);
    animation: aurora 60s linear infinite;
}

/* PlernPay Signature Tactile Bevel Buttons */
.pp-btn-dark {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #0f172b;
    color: #ffffff;
    font-weight: 600;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(15, 23, 43, 0.14), 0 4px 6px -4px rgba(15, 23, 43, 0.1);
    transition: transform 0.18s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.pp-btn-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.pp-btn-dark::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent);
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.pp-btn-dark:hover {
    background-color: #1d293d;
}
.pp-btn-dark:active {
    transform: scale(0.97);
}

.pp-btn-gold {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(180deg, #fac800 0%, #cd8900 100%);
    color: #ffffff;
    font-weight: 600;
    border-radius: 0.75rem;
    box-shadow: 0 8px 18px -4px rgba(237, 178, 0, 0.42);
    transition: transform 0.18s ease, filter 0.2s ease, box-shadow 0.2s ease;
}
.pp-btn-gold::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent);
    pointer-events: none;
}
.pp-btn-gold:hover {
    filter: brightness(1.04);
    box-shadow: 0 10px 22px -4px rgba(205, 137, 0, 0.5);
}
.pp-btn-gold:active {
    transform: scale(0.97);
}

.pp-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #ffffff;
    color: #314158;
    border: 1px solid #e2e8f0;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.18s ease;
}
.pp-btn-outline:hover {
    border-color: #cad5e2;
    background-color: #f8fafc;
    box-shadow: 0 2px 6px rgba(15, 23, 43, 0.05);
}
.pp-btn-outline:active {
    transform: scale(0.97);
}

/* Crisp White Cards */
.pp-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 43, 0.04);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.pp-feature-card {
    background-color: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 1rem;
    transition: border-color 0.22s ease, background-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.pp-feature-card:hover {
    border-color: #fff085;
    background-color: rgba(254, 252, 232, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -12px rgba(237, 178, 0, 0.22);
}

.pp-input, .pp-select, .pp-textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border-radius: 0.65rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0f172b;
    font-size: 0.875rem;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.pp-input:focus, .pp-select:focus, .pp-textarea:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #fac800;
    box-shadow: 0 0 0 3px rgba(250, 200, 0, 0.18);
}

/* QR Golden Scan Laser */
@keyframes ppScanBeam {
    0% { top: 8%; opacity: 0.25; }
    50% { top: 88%; opacity: 0.95; }
    100% { top: 8%; opacity: 0.25; }
}
.pp-scan-beam {
    position: absolute;
    left: 6%;
    right: 6%;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #edb200, #ffe02a, #edb200, transparent);
    box-shadow: 0 0 14px rgba(237, 178, 0, 0.78);
    animation: ppScanBeam 2.6s ease-in-out infinite;
    pointer-events: none;
}

.pp-faq-ans {
    border-left: 2px solid #edb200;
    padding-left: 1rem;
    animation: ppFadeIn 0.22s ease both;
}

@keyframes ppFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.pp-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.48s cubic-bezier(0.22, 1, 0.36, 1), transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}
.pp-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hamburger <-> X Smooth Morph (Mobile & Tablet only, hidden cleanly on >= 1024px PC) */
.pp-burger {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
@media (min-width: 1024px) {
    .pp-burger, #pp-nav-dropdown, #pp-nav-backdrop {
        display: none !important;
    }
}
.pp-burger:hover {
    background-color: #fefce8;
    border-color: #ffe02a;
}
.pp-burger-line {
    display: block !important;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background-color: #0f172b;
    transform-origin: center;
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease, background-color 0.2s ease;
}
.pp-burger.is-open {
    background-color: #0f172b !important;
    border-color: #0f172b !important;
    box-shadow: 0 8px 18px -4px rgba(15, 23, 43, 0.3);
}
.pp-burger.is-open .pp-burger-line {
    background-color: #fac800 !important;
}
.pp-burger.is-open .line-1 {
    transform: translateY(7px) rotate(45deg);
}
.pp-burger.is-open .line-2 {
    opacity: 0;
    transform: scaleX(0);
}
.pp-burger.is-open .line-3 {
    transform: translateY(-7px) rotate(-45deg);
}

/* Dropdown Navigation Panel (Replaces Sidebar Drawer) */
.pp-nav-dropdown {
    transform-origin: top center;
    opacity: 0;
    transform: translateY(-10px) scaleY(0.96);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.26s cubic-bezier(0.22, 1, 0.36, 1), transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.26s;
}
.pp-nav-dropdown.is-open {
    opacity: 1;
    transform: translateY(0) scaleY(1);
    pointer-events: auto;
    visibility: visible;
}

/* Cookie Bar Slide-Up + Slow Floating Animation */
@keyframes ppSlideUpBar {
    from { opacity: 0; transform: translateY(32px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes ppCookieFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-7px); }
}
.pp-cookie-float {
    animation: ppSlideUpBar 0.48s cubic-bezier(0.22, 1, 0.36, 1) both, ppCookieFloat 4.5s ease-in-out 0.6s infinite;
}
.pp-cookie-float:hover {
    animation-play-state: paused;
}

/* Tactile Admin Switch & Spring Modal */
.pp-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background-color: #cbd5e1;
    transition: background-color 0.22s ease;
    flex-shrink: 0;
}
.pp-switch::after {
    content: '';
    position: absolute;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 43, 0.25);
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
input:checked + .pp-switch {
    background-color: #edb200;
}
input:checked + .pp-switch::after {
    transform: translateX(18px);
}
@keyframes ppModalPop {
    from { opacity: 0; transform: scale(0.95) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.pp-modal-pop {
    animation: ppModalPop 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Blurred Credentials Privacy Mask */
.pp-secret-blur {
    filter: blur(6px);
    user-select: none;
    transition: filter 0.22s ease, opacity 0.22s ease;
}
.pp-secret-blur.is-revealed {
    filter: blur(0px);
    user-select: text;
}

/* Home Dual-Device GUI Simulator Animations */
@keyframes hxSlideDownNotif {
    0% { opacity: 0; transform: translateY(-22px) scale(0.95); }
    15%, 88% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0.92; transform: translateY(0) scale(1); }
}
.hx-notif-slide {
    animation: hxSlideDownNotif 3.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes hxPacketMove {
    0% { left: 4%; opacity: 0; transform: translateY(-50%) scale(0.7); }
    20% { opacity: 1; transform: translateY(-50%) scale(1.05); }
    80% { opacity: 1; transform: translateY(-50%) scale(1); }
    100% { left: 92%; opacity: 0; transform: translateY(-50%) scale(0.7); }
}
.hx-packet-dot {
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fac800, #10b981);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.75);
    animation: hxPacketMove 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes hxRadarPulse {
    0% { transform: scale(0.82); opacity: 0.75; }
    100% { transform: scale(1.45); opacity: 0; }
}
.hx-radar-ring {
    animation: hxRadarPulse 1.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes hxShakeBlock {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}
.hx-shake-block {
    animation: hxShakeBlock 0.42s ease-in-out;
}

@keyframes hxStepProgress {
    from { width: 0%; }
    to { width: 100%; }
}
.hx-step-progress {
    animation: hxStepProgress 5.5s linear infinite;
}

/* Marquee Strip & Rainbow Stepped-Pyramid Glow Footer */
@keyframes hxMarqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.hx-marquee-wrap {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hx-marquee-track {
    display: flex;
    width: max-content;
    gap: 0.75rem;
    animation: hxMarqueeScroll 34s linear infinite;
}
.hx-marquee-wrap:hover .hx-marquee-track {
    animation-play-state: paused;
}

.hx-rainbow-footer-wrap {
    height: clamp(120px, 21vh, 250px);
    pointer-events: none;
    user-select: none;
    margin-top: -12px;
}
#hx-rainbow-svg {
    transform-origin: center bottom;
    transition: transform 0.14s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Real Desktop-Screen Website Live Preview Stage (1280x800 scaled smoothly) */
.hx-desktop-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f8fafc;
}
.hx-desktop-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 1280px;
    height: 800px;
    border: 0;
    transform-origin: top left;
    background: #ffffff;
    pointer-events: none;
}
.hx-desktop-stage.is-interactive .hx-desktop-iframe {
    pointer-events: auto;
}

/* Hide scrollbars cleanly on mobile swipe carousels */
.hx-no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.hx-no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* =====================================================================
 * Web2U-Inspired Light SaaS Workspace Shell (Warm Gold + Dark Ink #111315)
 * ===================================================================== */
body.w2-canvas {
    background-color: #f7f8fa !important;
    color: #111315;
}
body.w2-canvas main {
    background-color: transparent !important;
}
body.w2-canvas #hx-sonar-bg {
    opacity: 0.28;
}

.w2-card {
    background-color: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.w2-card-hover {
    background-color: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.w2-card-hover:hover {
    border-color: #fcd34d;
    box-shadow: 0 10px 24px -10px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
}
.w2-hero-card {
    background-color: #111315;
    border: 1px solid #111315;
    border-radius: 1rem;
    color: #ffffff;
    box-shadow: 0 6px 18px -6px rgba(17, 19, 21, 0.35);
}
.w2-accent-card {
    background-color: #fefce8;
    border: 1px solid #fde68a;
    border-radius: 1rem;
}
.w2-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background-color: #ca8a04;
    color: #ffffff;
    font-weight: 700;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px -2px rgba(202, 138, 4, 0.32);
    transition: background-color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}
.w2-btn-primary:hover {
    background-color: #a16207;
    box-shadow: 0 8px 18px -4px rgba(161, 98, 7, 0.4);
}
.w2-btn-primary:active {
    transform: scale(0.98);
}
.w2-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.w2-bottom-nav {
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
}

/* Smooth Web2U Bottom-Sheet / Centered Modal Animation */
.w2-sheet-backdrop {
    opacity: 0;
    transition: opacity 0.24s ease;
}
.w2-sheet-backdrop.is-open {
    opacity: 1;
}
.w2-sheet-panel {
    transform: translateY(100%);
    opacity: 0.4;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
}
.w2-sheet-panel.is-open {
    transform: translateY(0);
    opacity: 1;
}
@media (min-width: 640px) {
    .w2-sheet-panel {
        transform: translateY(36px) scale(0.985);
    }
    .w2-sheet-panel.is-open {
        transform: translateY(0) scale(1);
    }
}
