/* --- GLOBAL STYLES & THEME --- */
:root {
    --color-background: #05020a;
    /* Deep blue-purple background */
    --color-surface: #0e091c;
    /* Rich surface color */
    --color-primary: #a855f7;
    /* Vibrant Luminous Purple */
    --color-secondary: #7c3aed;
    /* Royal Purple/Violet */
    --color-mid-purple: #4c1d95;
    /* Deep tone purple gradient */
    --color-text-primary: #F5F5FF;
    /* Crisp light text */
    --color-text-secondary: #B0AEC7;
    /* Muted violet gray */

    --font-sans: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

* {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

html {
    scroll-behavior: smooth;
    background-color: var(--color-background);
    overflow-y: auto !important;
    overflow-x: hidden !important;
    min-height: 100%;
    min-height: -webkit-fill-available;
}

/* Scroll lock class applied by JS when mobile menu or modals are open */
body.scroll-locked {
    overflow: hidden !important;
    touch-action: none !important;
    -webkit-overflow-scrolling: auto !important;
}

body.scroll-locked > *:not(.mobile-menu-overlay):not(#header):not(#modal-container) {
    pointer-events: none;
}

html.scroll-locked {
    overflow: hidden !important;
}

body {
    background-color: var(--color-background);
    color: var(--color-text-secondary);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    -webkit-tap-highlight-color: transparent;
}

/* Prevent dragging/pulling beyond start and footer (lock overscroll bounds) */
html,
body {
    overscroll-behavior: none !important;
}

#background-decorations {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    background-color: #05020a;
    background-image:
        radial-gradient(ellipse 65% 55% at 20% 45%, rgba(109, 40, 217, 0.22), transparent 70%),
        radial-gradient(ellipse 65% 65% at 85% 80%, rgba(138, 0, 255, 0.20), transparent 70%);
}

#background-decorations::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg,
            transparent,
            transparent 49px,
            rgba(176, 174, 199, 0.04) 49px,
            rgba(176, 174, 199, 0.04) 50px),
        repeating-linear-gradient(-45deg,
            transparent,
            transparent 49px,
            rgba(176, 174, 199, 0.04) 49px,
            rgba(176, 174, 199, 0.04) 50px);
}

/* --- BACKGROUND DECORATIONS (Floating icons removed as requested) --- */
.bg-deco-item {
    display: none !important;
}

/* --- LAYOUT & MAIN APP --- */
#header {
    position: fixed;
    top: max(1rem, calc(env(safe-area-inset-top) + 0.4rem));
    left: 0 !important;
    right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transform: translate3d(0, 0, 0) !important;
    -webkit-transform: translate3d(0, 0, 0) !important;
    width: calc(100% - 2rem);
    max-width: 1200px;
    z-index: 40;
    padding: 0.6rem 1rem;
    border-radius: 9999px;
    border: 1px solid var(--lg-border, rgba(255, 255, 255, 0.16));
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4), var(--lg-rim-light, inset 0 1px 2px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 2px 0 rgba(168, 85, 247, 0.35));
    /* Ultra-Fluid Header Reveal - Drop from Top on Page Load */
    /* Changed both to backwards so it 'lets go' after 1s, allowing scroll CSS to work */
    animation: header-drop-in 1s cubic-bezier(0.19, 1, 0.22, 1) backwards;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.6s ease;
    will-change: transform, opacity;
}

@keyframes header-drop-in {
    0% { transform: translateY(-100px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

#header.header-hidden {
    left: 0 !important;
    right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transform: translate3d(0, calc(-100% - 30px), 0) !important;
    -webkit-transform: translate3d(0, calc(-100% - 30px), 0) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease !important;
}

@media (max-width: 767px) {
    #header {
        top: max(0.75rem, calc(env(safe-area-inset-top) + 0.35rem));
        width: calc(100% - 1.5rem);
    }
}

@media (min-width: 768px) {
    #header {
        top: 1rem;
        width: calc(100% - 4rem);
        padding: 0.6rem 2rem;
    }
}

#header,
#footer {
    background-color: rgba(14, 12, 30, 0.78);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
}

@media (max-width: 767px) {
    #header, .mobile-menu {
        backdrop-filter: blur(6px); /* Reduced for performance */
        -webkit-backdrop-filter: blur(6px);
    }
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.header-right-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

@media (max-width: 480px) {
    .header-right-actions {
        gap: 8px;
    }
    .nav-lang-btn {
        padding: 4px 8px !important;
        font-size: 0.78rem !important;
        gap: 4px !important;
    }
}

/* --- HEADER LOGO WITH SHINE MASK EFFECT --- */
/* refined-shine-effect permanently disabled */

.header-logo-link,
.header-logo-link *,
.header-logo-wrapper,
.header-logo-wrapper *,
.header-logo-img,
.header-logo-shine,
.header-logo-shine::after,
.header-logo-text,
.header-logo-suffix {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -khtml-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    outline: none !important;
    border: none !important;
}

.header-logo-link:focus,
.header-logo-link:active,
.header-logo-link:focus-visible,
.header-logo-link:focus-within {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    -webkit-tap-highlight-color: transparent !important;
}

.header-logo-text,
.header-logo-suffix {
    pointer-events: none !important;
}

.header-logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    position: relative;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Container for the image to hold the shine effect */
.header-logo-wrapper {
    position: relative;
    display: block;
    height: 52px;
    width: auto;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* The actual logo image */
.header-logo-img {
    display: block;
    height: 100%;
    width: auto;
    object-fit: contain;
    -webkit-user-drag: none !important;
    user-drag: none !important;
    pointer-events: none !important;
    filter: none !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-logo-link:hover .header-logo-img {
    transform: scale(1.06) rotate(1deg);
    filter: none !important;
}

/* Header Text Styling: ARTBYTE */
.header-logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--color-text-primary);
    position: relative;
    line-height: 1;
    letter-spacing: -0.02em;
}

/* Header Text Suffix: COMPANY (Matching Hero Style exactly) */
.header-logo-suffix {
    position: absolute;
    bottom: 88%;
    /* Adjusted to 88% for the perfect gap */
    right: 0.1em;
    font-size: 0.22em;
    font-weight: 600;
    letter-spacing: normal;
    color: var(--color-text-primary);
    text-transform: uppercase;
    opacity: 0.9;
    white-space: nowrap;
    line-height: 1;
}

/* The shine effect overlay now targets the wrapper or text if needed */
.header-logo-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;

    -webkit-mask-image: url('/logo.png');
    mask-image: url('/logo.png');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    pointer-events: none;
}

.header-logo-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;

    background: linear-gradient(105deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(0, 212, 255, 0.45) 25%,
            rgba(255, 255, 255, 0.9) 50%,
            rgba(168, 85, 247, 0.45) 75%,
            rgba(255, 255, 255, 0) 100%);

    transform: translateX(0) skewX(-20deg);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

body:not(.preload) .header-logo-shine::after,
.header-logo-shine,
.header-logo-shine::after {
    display: none !important;
    animation: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}


.desktop-nav {
    display: none;
}

/* --- MOBILE MENU & SIDEBAR STYLES --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(var(--vh, 1vh) * 100);
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.4);
    /* Simple backdrop */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 900;
    display: flex;
    justify-content: flex-end;
    /* Slide-in from right */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-sidebar {
    width: 58dvw;
    /* Balanced width so links, markers & login button fit with comfortable touch target */
    min-width: 220px;
    max-width: 320px;
    height: 100%;
    background-color: rgba(13, 12, 29, 0.72);
    /* More transparent for better blur visibility */
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 1rem max(2rem, env(safe-area-inset-bottom)) 1rem;
    position: relative;
    border-top-left-radius: 2rem;
    border-bottom-left-radius: 2rem;
    transform: translateX(100%);
    /* More 'alive' elastic-like cubic-bezier for side menu */
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu-overlay.is-open .mobile-menu-sidebar {
    transform: translateX(0);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
    width: 100%;
    margin-top: calc(max(1rem, env(safe-area-inset-top)) + 52px);
    margin-bottom: auto;
    padding-bottom: 1.5rem;
}

.mobile-nav .nav-link {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    display: inline-block;
    margin: 0 auto;
    padding: 0.25rem 0.5rem;
}

.mobile-nav .nav-link:hover {
    color: var(--color-primary);
    transform: translateX(-4px);
}

.mobile-menu-close-button {
    position: absolute;
    top: max(1rem, calc(env(safe-area-inset-top) + 0.5rem));
    right: max(1rem, calc(env(safe-area-inset-right) + 0.5rem));
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: var(--color-text-primary);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    padding: 9px;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-menu-close-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg) scale(1.1);
}

.mobile-menu-close-button svg {
    width: 100%;
    height: 100%;
}

.mobile-menu-footer-text {
    margin-top: 2rem;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    opacity: 0.8;
}

.hamburger-button {
    background: none;
    border: none;
    color: var(--color-text-primary);
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: block;
    padding: 0;
}

.hamburger-button svg {
    width: 100%;
    height: 100%;
}

.hamburger-button.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.desktop-auth-box {
    display: none !important;
}

@media (min-width: 992px) {
    .desktop-auth-box {
        display: flex !important;
    }

    .desktop-nav {
        display: flex;
        align-items: center;
        gap: 1.1rem;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .desktop-nav .nav-link {
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .hamburger-button {
        display: none;
    }

    .mobile-menu-overlay {
        display: none;
    }
}

@media (min-width: 1240px) {
    .desktop-nav {
        gap: 1.45rem;
    }

    .desktop-nav .nav-link {
        font-size: 0.95rem;
    }
}

.nav-link {
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
    padding-bottom: 0.25rem;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.nav-link:focus,
.nav-link:active,
.nav-link:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.nav-link:hover {
    color: var(--color-text-primary);
    transform: none !important;
}

.nav-link.active {
    color: #ffffff !important;
    font-weight: 600;
    transform: none;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(95deg, #a855f7 0%, #7c3aed 35%, #4c1d95 70%, #0d031c 100%) !important;
    box-shadow: none !important;
    border-radius: 3px;
    animation: none !important;
}

@keyframes liquid-gradient {
    to {
        background-position: 300% center;
    }
}

main {
    position: relative;
    z-index: 1;
}

#home {
    min-height: calc(var(--vh, 1vh) * 100);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    #home {
        min-height: calc(var(--vh, 1vh) * 100);
        min-height: 100dvh;
        padding-top: max(7.5rem, calc(env(safe-area-inset-top) + 5.5rem));
        padding-bottom: 2.5rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

.page-section {
    padding: 2.5rem 1.25rem;
    /* Even more compact */
    max-width: 1100px;
    margin: 0 auto;
    scroll-margin-top: 80px;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .page-section {
        padding: 4rem 2rem;
    }
}

/* Reduce top padding for the first section after the hero */
#home+.page-section {
    padding-top: 2rem;
}

.page-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 1rem;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: #ffffff !important;
    animation: none !important;
    text-shadow: none !important;
}

#contact .page-title {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
    animation: none;
}

.page-subtitle {
    font-size: 1.125rem;
    margin-bottom: 3rem;
    max-width: 600px;
}

/* --- UTILITY CLASSES --- */
.cta-button {
    display: inline-block;
    background: linear-gradient(95deg, #6d28d9 0%, #4a1586 22%, #220845 50%, #0d031c 80%, #05010a 100%) !important;
    background-image: linear-gradient(95deg, #6d28d9 0%, #4a1586 22%, #220845 50%, #0d031c 80%, #05010a 100%) !important;
    border: none !important;
    outline: none !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
    color: #ffffff !important;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
    cursor: pointer;
    will-change: transform, box-shadow;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: rgba(216, 180, 254, 0.6) !important;
    box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.85), 0 0 24px 0px rgba(168, 85, 247, 0.45) !important;
}

.cta-button:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.7) !important;
    transition: transform 0.1s ease;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- HOME PAGE --- */

/* Hero Kicker Brand Pillars (Clean typography, no pill, exact muted translucent gray of description) */
.hero-kicker {
    display: inline-block;
    font-size: clamp(0.78rem, 1.8vw, 0.92rem);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(225, 225, 245, 0.72) !important;
    margin-top: -0.35rem;
    margin-bottom: 1.15rem;
    text-align: center;
    opacity: 1 !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    line-height: 1.4;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    pointer-events: none;
    transition: none !important;
}

.hero-kicker:hover,
.hero-kicker:active,
.hero-kicker:focus {
    color: rgba(225, 225, 245, 0.72) !important;
    background: none !important;
    opacity: 1 !important;
}

@media (max-width: 768px) {
    .hero-kicker {
        font-size: 0.72rem;
        letter-spacing: 0.12em;
        margin-top: -0.2rem;
        margin-bottom: 1rem;
    }
}

.hero-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}



.hero-container h1 {
    font-size: clamp(54px, 12vw, 80px);
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: 1.4rem;
    line-height: 1.1;
    font-family: 'Poppins', sans-serif;
    position: relative;
    display: inline-block;
}

.main-title-suffix {
    position: absolute;
    bottom: 82%;
    right: 0.1em;
    font-size: 0.22em;
    font-weight: 600;
    letter-spacing: normal;
    color: var(--color-text-primary);
    text-transform: uppercase;
    opacity: 0.9;
    white-space: nowrap;
}

.hero-container .subtitle {
    font-size: clamp(17px, 3.8vw, 24px);
    margin-bottom: 1.85rem;
    color: var(--color-text-primary);
    font-weight: 400;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    column-gap: 0.65rem;
    row-gap: 0.35rem;
    min-height: 2em;
    text-align: center;
    letter-spacing: 0.02em;
}

#static-subtitle-text {
    display: inline-block;
    transition: opacity 0.28s ease, transform 0.28s ease;
    will-change: opacity, transform;
}

#static-subtitle-text.fade-transition {
    opacity: 0;
    transform: translateY(-4px);
}

.hero-container .subtitle .highlight {
    background: linear-gradient(95deg, #c084fc 0%, #a855f7 35%, #7c3aed 70%, #4c1d95 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    font-style: italic;
    font-weight: 700;
    animation: none !important;
    display: inline-block;
}

.hero-container .typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1.1em;
    vertical-align: middle;
    background-color: #a855f7;
    animation: blink 1s infinite;
    margin-left: 2px;
}

/* --- HERO DESCRIPTION (CLEAN, AIRY & EXPANSIVE TYPOGRAPHY) --- */
.hero-description {
    font-size: 0.96rem;
    line-height: 1.85;
    max-width: 740px;
    margin: 0 auto 2.85rem;
    color: rgba(225, 225, 245, 0.72);
    font-weight: 300;
    text-align: center;
    letter-spacing: 0.025em;
    word-spacing: 0.22em;
    text-wrap: balance;
    transition: color 0.3s ease;
}

.hero-desc-highlight {
    color: #FFFFFF;
    font-weight: 500;
    letter-spacing: normal;
    word-spacing: inherit;
}

@media (max-width: 768px) {
    .hero-container h1 {
        font-size: clamp(34px, 9.5vw, 48px);
        margin-bottom: 1.15rem;
        line-height: 1.12;
    }

    .main-title-suffix {
        bottom: 80%;
        right: 0;
        font-size: 0.23em;
        letter-spacing: 0.05em;
        font-weight: 700;
    }

    .hero-container .subtitle {
        font-size: clamp(15px, 4.2vw, 18px);
        margin-bottom: 1.5rem;
        line-height: 1.45;
        column-gap: 0.5rem;
        min-height: 2em;
    }

    .hero-description {
        font-size: 0.9375rem;
        line-height: 1.78;
        max-width: 94%;
        margin: 0 auto 2.35rem;
        word-spacing: 0.18em;
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* --- GRID & CARD BASE STYLES --- */
.grid-container {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.card {
    background-color: #070312;
    background-image:
        radial-gradient(circle at top left, rgba(109, 40, 217, 0.28), transparent 50%),
        radial-gradient(circle at bottom right, rgba(138, 0, 255, 0.22), transparent 50%),
        linear-gradient(160deg, rgba(20, 8, 40, 0.6) 0%, rgba(8, 3, 16, 0.9) 60%, #05020a 100%);
    background-repeat: no-repeat;
    background-position: top -60px left -60px, bottom -60px right -60px, 100% 100%;
    background-size: 400px 400px, 400px 400px, 100% 100%;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transform: translateZ(0);
    backface-visibility: hidden;
    padding: 1.25rem;
    border-radius: 16px;
    border: 2px solid transparent;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
    will-change: transform, box-shadow;
}

.card-content {
    background-color: transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* --- AFFILIATE CARD BORDER GLOW --- */
.affiliate-card {
    overflow: hidden !important; 
    z-index: 1; 
    background: transparent !important; 
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.25) !important;
    border: none !important;
    padding: calc(3rem + 2px) !important; /* 3rem was original padding from JS + 2px border offset */
}

@media (max-width: 768px) {
    .affiliate-card {
        padding: calc(1.25rem + 2px) !important; 
        gap: 0.75rem !important;
    }
    .affiliate-card .page-title {
        font-size: 1.5rem;
    }
}

.affiliate-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent 70%, var(--color-primary) 85%, var(--color-secondary) 100%);
    animation: affiliate-spin 3s linear infinite;
    z-index: -2;
    pointer-events: none;
}

.affiliate-card::after {
    content: '';
    position: absolute;
    inset: 3px;
    background-color: var(--color-surface);
    background-image:
        radial-gradient(circle at top left, rgba(109, 40, 217, 0.25), transparent 50%),
        radial-gradient(circle at bottom right, rgba(138, 0, 255, 0.22), transparent 50%);
    border-radius: 13px;
    z-index: -1;
    pointer-events: none;
}

@keyframes affiliate-spin {
    100% { transform: rotate(360deg); }
}

.card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.35rem;
}

.card p {
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
}

/* --- PACKAGES SECTION --- */
#packages .page-title,
#projects .page-title,
#benefits .page-title {
    width: fit-content;
}

/* --- EDGE-TO-EDGE CAROUSELS (Planos & Serviços & Benefícios) --- */
.packages-grid,
#packages .packages-grid,
#services .packages-grid {
    display: flex !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 1.5rem !important;
    padding-top: 3rem !important;
    padding-bottom: 3.5rem !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
    scroll-padding-left: 2rem !important;
}

@media (max-width: 767px) {
    .packages-grid,
    #packages .packages-grid,
    #services .packages-grid {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
        scroll-padding-left: 1.25rem !important;
        scroll-snap-type: x mandatory !important;
    }
}

@media (min-width: 768px) {
    .packages-grid,
    #packages .packages-grid,
    #services .packages-grid {
        padding-left: max(2rem, calc((100vw - 1100px) / 2 + 2rem)) !important;
        padding-right: max(2rem, calc((100vw - 1100px) / 2 + 2rem)) !important;
        scroll-padding-left: max(2rem, calc((100vw - 1100px) / 2 + 2rem)) !important;
        scroll-snap-type: none !important;
    }
}

.packages-grid::-webkit-scrollbar,
#packages .packages-grid::-webkit-scrollbar,
#services .packages-grid::-webkit-scrollbar {
    display: none !important;
}

.package-card,
#packages .package-card,
#services .package-card {
    flex: 0 0 85vw !important;
    max-width: 440px !important;
    min-width: 0 !important;
    scroll-snap-align: center !important;
    display: flex !important;
    flex-direction: column !important;
}



@media (min-width: 768px) {
    .package-card,
    #packages .package-card,
    #services .package-card {
        flex: 0 0 380px !important;
        max-width: 380px !important;
        scroll-snap-align: start !important;
    }
}

/* Carousel Indicators */
.carousel-indicators,
#packages .carousel-indicators,
#services .carousel-indicators {
    display: flex !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    margin-top: 1rem !important;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.indicator-dot.active {
    background-color: #ffffff !important;
    transform: scale(1.2);
}

#services {
    overflow: visible !important;
}

#packages {
    overflow: visible !important;
}

#benefits {
    overflow: visible !important;
}

.package-tag {
    display: none;
}

.package-card:not(.highlight) {
    border-color: transparent !important;
}

.package-card:not(.highlight):hover,
.package-card:not(.highlight).is-toggled {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.5) !important;
}

/* --- PLANO PRO CARD REFINED STYLING --- */
.package-card.highlight {
    border-color: transparent !important;
    overflow: visible;
}

.package-card.highlight:hover,
.package-card.highlight.is-toggled {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.5) !important;
}

/* Vertical timeline connecting the steps - DISABLED as per user request (barra) */
.poster-steps-container::before {
    display: none;
}

/* O pseudo-elemento que criava borda em degradê colorido - desativado para igualar aos cards individuais */
.package-card.highlight::before {
    display: none !important;
}

.premium-crown-wrapper {
    position: absolute;
    top: -42px;
    right: -20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
    cursor: default;
}

@media (max-width: 991px) {
    .premium-crown-wrapper {
        top: -42px;
    }
}


.premium-crown-icon {
    font-size: 32px;
    filter: drop-shadow(0 3px 8px rgba(255, 215, 0, 0.5));
    animation: levitate 2.5s infinite ease-in-out;
}

@keyframes levitate {

    0%,
    100% {
        transform: translateY(0) rotate(15deg);
    }

    50% {
        transform: translateY(-8px) rotate(15deg);
    }
}

.premium-crown-text {
    display: none;
    /* Removed as requested */
}

.package-header {
    text-align: center;
    margin-bottom: 1rem;
}

.package-header h3 {
    margin-bottom: 0.3rem;
    font-size: 1.5rem;
}

.package-header p {
    flex-grow: 0;
    font-size: 0.9rem;
}

.package-features {
    list-style: none;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.feature-item strong {
    color: var(--color-text-primary);
}

.feature-icon {
    width: 20px;
    height: 20px;
    color: #c084fc;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    stroke: url(#purpleGradient) !important;
}

.feature-icon svg path,
.feature-icon svg circle,
.feature-icon svg polyline,
.feature-icon svg line {
    stroke: url(#purpleGradient) !important;
}

.package-cta {
    margin-top: auto;
    /* Push button to the bottom */
    width: 100%;
    text-align: center;
}

.details-link-button {
    margin-top: auto;
    /* Push "Saiba Mais" up from the CTA */
    margin-bottom: 1.5rem;
    /* Space between it and the CTA */
    font-size: 0.9rem;
    align-self: center;
}

/* --- BENEFITS SECTION (TRANSFORM-BASED CAROUSEL) --- */
.benefits-marquee-container {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    overflow: hidden !important;
    position: relative;
    padding-top: 2.75rem;
    padding-bottom: 3.5rem;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: -1.25rem;
    margin-bottom: -1.25rem;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.benefits-marquee-container:active {
    cursor: grabbing;
}

.benefits-marquee-content {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
    align-items: stretch !important;
    gap: 1.5rem !important;
    will-change: transform;
    padding: 0.5rem 0;
}

.card.benefit-card,
.benefit-card,
.benefit-card *,
.benefit-3d-icon-wrapper,
.benefit-3d-img,
.benefit-text-content,
.benefit-card-title,
.benefit-card-desc {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -khtml-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    outline: none !important;
}

.card.benefit-card,
.benefit-card {
    flex: 0 0 auto;
    width: 440px;
    max-width: calc(100vw - 2.5rem);
    min-height: 115px;
    height: auto;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1.35rem !important;
    padding: 1.2rem 1.75rem !important;
    border-radius: 28px !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    background: linear-gradient(95deg, #2a1154 0%, #1e0b3c 25%, #130626 50%, #0a0314 80%, #06020c 100%) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(0, 0, 0, 0.2) !important;
    position: relative;
    overflow: hidden;
    text-align: left !important;
    outline: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease !important;
}

/* Subtle gloss shine overlay on the top-left of the card */
.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 10% 25%, rgba(233, 213, 255, 0.18), transparent 45%),
                linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
    border-radius: inherit;
}

.benefit-card:hover,
.benefit-card.is-toggled {
    transform: translateY(-6px) scale(1.02) !important;
    border-color: rgba(216, 180, 254, 0.6) !important;
    box-shadow: 0 20px 42px -10px rgba(0, 0, 0, 0.85), 0 0 28px 0px rgba(168, 85, 247, 0.45) !important;
}

.benefit-card:active,
.benefit-card:focus,
.benefit-card:focus-visible {
    outline: none !important;
}

/* 3D Icon Container (Seamless floating 3D graphic) */
.benefit-3d-icon-wrapper {
    flex: 0 0 74px;
    width: 74px;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: transparent !important;
    border-radius: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    overflow: visible;
}

.benefit-3d-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: none !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none !important;
    -webkit-user-drag: none !important;
    user-drag: none !important;
    -webkit-touch-callout: none !important;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.benefit-card:hover .benefit-3d-img,
.benefit-card.is-toggled .benefit-3d-img {
    transform: scale(1.12) rotate(3deg);
}

/* Text Container */
.benefit-text-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    min-width: 0;
}

.benefit-card-title {
    font-family: 'Poppins', var(--font-family, sans-serif);
    font-size: 1.18rem;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0 0 0.35rem 0 !important;
    line-height: 1.22;
    letter-spacing: -0.015em;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.benefit-card-desc {
    font-family: 'Inter', var(--font-family, sans-serif);
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.76) !important;
    line-height: 1.38;
    margin: 0 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .card.benefit-card,
    .benefit-card {
        width: 325px;
        min-height: 105px;
        padding: 1rem 1.35rem !important;
        border-radius: 24px !important;
        gap: 1.1rem !important;
    }
    .benefit-3d-icon-wrapper {
        flex: 0 0 62px;
        width: 62px;
        height: 62px;
    }
    .benefit-card-title {
        font-size: 1.05rem;
        margin-bottom: 0.25rem !important;
    }
    .benefit-card-desc {
        font-size: 0.84rem;
        line-height: 1.32;
    }
}

/* ── 3D WATERMARKS FOR PACKAGES AND SERVICES ────────────────────────── */
.package-card,
#services .card {
    position: relative;
}

.package-card-bg-clip {
    position: absolute;
    inset: 0;
    overflow: hidden !important;
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
}

.package-card-watermark {
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 175px;
    height: 175px;
    opacity: 0.16;
    pointer-events: none;
    z-index: 1;
    transform: rotate(-10deg) scale(1);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, filter 0.4s ease;
    filter: drop-shadow(0 0 20px rgba(138, 0, 255, 0.45));
    user-select: none;
    -webkit-user-select: none;
}

.package-watermark-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.package-card:hover .package-card-watermark,
#services .card:hover .package-card-watermark {
    opacity: 0.28;
    transform: rotate(0deg) scale(1.08) translateY(-6px);
    filter: drop-shadow(0 0 26px rgba(168, 85, 247, 0.65));
}

@media (max-width: 768px) {
    .package-card-watermark {
        width: 140px;
        height: 140px;
        right: -12px;
        bottom: -12px;
        opacity: 0.18;
    }
}

/* --- MODAL PACKAGE DETAILS & SVG ICONS --- */
.modal-pkg-header-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: #ffffff !important;
}

.details-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem 0;
}

.details-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.modal-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.modal-item-icon svg {
    width: 20px;
    height: 20px;
    stroke: url(#purpleGradient) !important;
    color: #c084fc !important;
}

.modal-item-icon svg[stroke="#00CFDE"],
.modal-item-icon svg path[stroke="#00CFDE"],
.modal-item-icon svg circle[stroke="#00CFDE"] {
    stroke: url(#purpleGradient) !important;
}

.detail-item-excluded {
    opacity: 0.65;
}

.detail-item-speed {
    font-weight: 600;
    color: var(--color-secondary);
}

.coming-soon-tag {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background-color: rgba(138, 66, 226, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--color-text-primary);
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.benefit-card.is-coming-soon {
    opacity: 0.65;
}

.benefit-card.is-coming-soon:hover,
.benefit-card.is-coming-soon.is-touched {
    transform: none;
    box-shadow: none;
    border-color: rgba(138, 66, 226, 0.2);
}

/* --- PROJECTS SECTION --- */
#projects .grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    /* Reduced from 280px to 160px for smaller cards */
    gap: 1rem;
    /* Smaller gap */
}

.project-square-card {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    border: 2px solid rgba(199, 56, 217, 0.3);
    background-color: #111;
    /* Fallback background */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.project-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.9);
    pointer-events: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
}

.project-square-card:hover .project-bg-image {
    transform: scale(1.1);
    filter: brightness(1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.75rem;
    /* Reduced padding */
    background: rgba(22, 21, 42, 0.9);
    /* Increased opacity to 0.9 */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);

    /* ROUNDED TOP CORNERS FOR BLUR EFFECT */
    border-radius: 16px 16px 0 0;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    max-height: 55%;
    overflow: hidden;
    z-index: 2;
}

/* Gradient fade to make the transition from image to blur smoother visually */
.project-overlay::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to top, rgba(22, 21, 42, 0.9), transparent);
    pointer-events: none;
}

.project-overlay h3 {
    color: var(--color-text-primary);
    font-size: 1rem;
    /* Smaller title */
    font-weight: 600;
    margin-bottom: 0.15rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.project-subtitle {
    color: var(--color-primary);
    font-size: 0.75rem;
    /* Smaller subtitle */
    font-weight: 500;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-description {
    color: var(--color-text-secondary);
    font-size: 0.75rem;
    /* Smaller description */
    line-height: 1.3;
    /* Clamp text to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Apply hover effects only on devices that support it to prevent sticky states on touch */
@media (hover: hover) and (pointer: fine) {
    .package-card:not(.highlight):hover {
        transform: translateY(-10px);
        box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.6);
    }

    .package-card.highlight:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(147, 51, 234, 0.25);
    }

    .benefit-card:not(.is-coming-soon):hover {
        transform: translateY(-8px);
        border-color: var(--color-mid-purple);
        box-shadow: 0 10px 25px -8px rgba(138, 66, 226, 0.4);
    }

    .project-square-card:hover {
        border-color: var(--color-primary);
        box-shadow: 0 10px 30px -5px rgba(168, 85, 247, 0.35);
    }
}

.card-logo-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.card-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background-color: var(--color-surface);
}

.card-title-group h3 {
    margin-bottom: 0.25rem;
}

.card-title-group .project-subtitle {
    margin-bottom: 0;
}

/* --- HOW IT WORKS SECTION (NOW MODAL CONTENT) --- */
.poster-title {
    font-size: clamp(28px, 5vw, 36px);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 2.5rem;
    text-align: center;
}

.poster-card {
    padding: 1.5rem 1.25rem;
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background-color: rgba(19, 16, 46, 0.85);
    background-image:
        radial-gradient(circle at 10% 10%, rgba(109, 40, 217, 0.35), transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(138, 0, 255, 0.35), transparent 50%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    background-repeat: no-repeat;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(138, 0, 255, 0.35);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

@media (min-width: 768px) {
    .poster-card {
        padding: 2.5rem;
    }
}

.poster-steps-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Vertical timeline connecting the steps */
.poster-steps-container::before {
    content: '';
    position: absolute;
    left: 21px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    opacity: 0.45;
}

.poster-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.poster-step-indicator {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(138, 0, 255, 0.25) 100%);
    color: #c084fc;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(168, 85, 247, 0.5);
    z-index: 1;
}

.poster-step-indicator svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
}

.poster-step-content {
    flex: 1;
    min-width: 0;
}

.poster-step-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.35rem;
    line-height: 1.35;
}

.poster-step-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
    margin: 0;
}

/* --- CONTACT SECTION --- */
.contact-container {
    padding: 2rem 1rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    background: transparent;
    border: none;
    box-shadow: none;
}

.contact-container .page-title {
    margin: 0 auto 1rem;
}

.contact-buttons-wrapper {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

/* --- ADJUSTED DESKTOP BEHAVIOR FOR BUTTONS --- */
@media (min-width: 768px) {
    .contact-buttons-wrapper {
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    .social-cta-button {
        width: auto;
        /* Let button shrink/grow to content */
        max-width: none;
        /* Remove the 350px limit from mobile */
        justify-content: center;
        /* Center text/icon */
        padding: 0.8rem 2.5rem;
        /* Nicer padding for desktop */
    }

    .social-cta-text-wrapper {
        align-items: center;
        text-align: center;
    }

    .social-cta-button[href*="mailto:"] .social-cta-sub-text,
    .social-btn-email .social-cta-sub-text,
    .social-cta-button[data-artbyte-href*="mailto:"] .social-cta-sub-text {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
}

.social-cta-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Default (mobile): align left for readability */
    gap: 1rem;
    padding: 0.9rem 1.25rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;

    /* Mobile: Fixed width constraint to fit Email but stay vertically stacked */
    width: 100%;
    max-width: 380px;
    /* Increased to fit email in one line */

    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.social-cta-sub-text {
    font-size: 0.85rem;
    opacity: 0.8;
    white-space: nowrap;
}

.social-cta-button svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.social-btn-whatsapp,
.social-cta-button[href*="wa.me"],
.social-cta-button[data-artbyte-href*="wa.me"] {
    background-color: #25D366 !important;
    color: white !important;
}

.social-btn-whatsapp:hover,
.social-cta-button[href*="wa.me"]:hover,
.social-cta-button[data-artbyte-href*="wa.me"]:hover {
    background-color: #20ba5a !important;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4) !important;
}

.social-btn-instagram,
.social-cta-button[href*="instagram.com"],
.social-cta-button[data-artbyte-href*="instagram.com"] {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
    color: white !important;
}

.social-btn-instagram:hover,
.social-cta-button[href*="instagram.com"]:hover,
.social-cta-button[data-artbyte-href*="instagram.com"]:hover {
    box-shadow: 0 8px 25px rgba(214, 36, 159, 0.4) !important;
}

.social-btn-email,
.social-cta-button[href*="mailto:"],
.social-cta-button[data-artbyte-href*="mailto:"] {
    background-color: #4B5563 !important;
    color: white !important;
}

.social-btn-email:hover,
.social-cta-button[href*="mailto:"]:hover,
.social-cta-button[data-artbyte-href*="mailto:"]:hover {
    background-color: #6B7280 !important;
    box-shadow: 0 8px 25px rgba(107, 114, 128, 0.4) !important;
}


.social-cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.social-cta-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    line-height: 1.3;
    min-width: 0;
}

.social-cta-main-text {
    font-weight: 600;
}

.social-cta-sub-text {
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.9;
    margin-top: -2px;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* --- FOOTER --- */
#footer {
    text-align: center;
    padding: 1.5rem 2rem;
    margin: 2.5rem auto 0 auto;
    width: 100%;
    max-width: 1200px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.footer-content-wrapper {
    display: flex;
    flex-direction: column;
    /* Stack items vertically */
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    /* Space between copyright and links */
}

.footer-text {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
    line-height: 1.5;
    /* Added for better wrapping on small screens */
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-link {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-family: inherit;
    padding: 0;
    cursor: pointer;
    transition: color 0.3s ease;
    text-decoration: none;
    outline: none;
}

.footer-link:hover {
    color: var(--color-text-primary);
    text-decoration: underline;
}

.footer-link-separator {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* Terms & Privacy Modal Tabs & Content */
.terms-tab-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 6px;
    border-radius: 9999px;
    border: 1px solid rgba(168, 85, 247, 0.25);
}

.terms-tab-btn {
    flex: 1;
    padding: 0.65rem 1.25rem;
    background: transparent;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 9999px;
    color: var(--color-text-secondary);
    font-size: 0.92rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    -webkit-tap-highlight-color: transparent !important;
    user-select: none;
}

.terms-tab-btn:hover {
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.terms-tab-btn:focus,
.terms-tab-btn:focus-visible,
.terms-tab-btn:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.terms-tab-btn.active {
    background: linear-gradient(95deg, #6d28d9 0%, #4a1586 22%, #220845 50%, #0d031c 80%, #05010a 100%) !important;
    border: 1px solid rgba(168, 85, 247, 0.45) !important;
    box-shadow: 0 8px 25px -4px rgba(0, 0, 0, 0.7), 0 0 16px -2px rgba(147, 51, 234, 0.4) !important;
    color: #ffffff !important;
    font-weight: 600;
    border-radius: 9999px !important;
}

.terms-tab-btn.active:focus,
.terms-tab-btn.active:focus-visible {
    outline: none !important;
    box-shadow: 0 8px 25px -4px rgba(0, 0, 0, 0.7), 0 0 16px -2px rgba(147, 51, 234, 0.4) !important;
}

.terms-tab-panel h2,
.terms-tab-panel h3,
.terms-tab-panel h4,
.terms-tab-panel h5 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
}

.terms-card-box {
    background: linear-gradient(135deg, rgba(30, 12, 55, 0.5) 0%, rgba(12, 4, 24, 0.7) 100%) !important;
    border: 1px solid rgba(168, 85, 247, 0.3) !important;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin: 1rem 0 1.5rem 0;
}

.terms-card-box p {
    margin-bottom: 0 !important;
    font-size: 0.92rem;
    line-height: 1.55;
}

.terms-compliance-box {
    background: rgba(168, 85, 247, 0.08) !important;
    border-left: 3.5px solid #a855f7 !important;
    border-top: 1px solid rgba(168, 85, 247, 0.25) !important;
    border-right: 1px solid rgba(168, 85, 247, 0.25) !important;
    border-bottom: 1px solid rgba(168, 85, 247, 0.25) !important;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin: 1.2rem 0;
}

.terms-compliance-box p {
    color: #d1f7fa !important;
    font-size: 0.9rem;
    margin-bottom: 0.5rem !important;
    line-height: 1.5;
}

.terms-compliance-box p:last-child {
    margin-bottom: 0 !important;
}

.terms-scope-table-wrap {
    overflow-x: auto;
    margin: 1rem 0 1.2rem 0;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.terms-scope-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
}

.terms-scope-table th {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 0.65rem 0.85rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terms-scope-table td {
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-secondary);
}

.terms-scope-badge {
    display: inline-block;
    font-family: monospace;
    background: rgba(138, 43, 226, 0.15);
    color: #b388ff;
    border: 1px solid rgba(138, 43, 226, 0.35);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.82rem;
}

/* Coffee Steam Animation */
.coffee-cup-wrapper {
    position: relative;
    display: inline-block;
    padding: 0 0.2em;
}

.steam-wisp {
    position: absolute;
    bottom: 100%;
    left: 50%;
    width: 3px;
    height: 15px;
    background-color: var(--color-text-secondary);
    border-radius: 50%;
    opacity: 0;
    filter: blur(2px);
    transform-origin: bottom center;
    animation: steam 4s infinite linear;
}

.steam-wisp:nth-of-type(1) {
    animation-delay: 0s;
}

.steam-wisp:nth-of-type(2) {
    animation-delay: 1s;
    left: 40%;
    animation-duration: 3.5s;
}

.steam-wisp:nth-of-type(3) {
    animation-delay: 2.2s;
    left: 60%;
    animation-duration: 4.5s;
}

@keyframes steam {
    0% {
        transform: translateY(0) scale(0.5) translateX(0);
        opacity: 0;
    }

    15% {
        opacity: 0.4;
    }

    75% {
        opacity: 0.4;
        transform: translateY(-25px) scale(1.2) translateX(-5px);
    }

    100% {
        opacity: 0;
        transform: translateY(-40px) scale(1.5) translateX(5px);
    }
}


/* --- MODAL STYLES --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    height: calc(var(--vh, 1vh) * 100);
    height: 100dvh;
    background-color: rgba(6, 4, 15, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    padding: 1rem;
}

.modal-overlay.visible {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    background: linear-gradient(145deg, rgba(22, 10, 42, 0.96) 0%, rgba(12, 5, 25, 0.98) 50%, rgba(5, 2, 12, 0.99) 100%) !important;
    padding: 2rem;
    border-radius: 24px;
    width: 100%;
    max-width: 520px;
    position: relative;
    border: 1px solid rgba(168, 85, 247, 0.3) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(147, 51, 234, 0.25) !important;
    max-height: calc(100% - 2rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: scale(0.95);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.modal-overlay.visible .modal-content {
    transform: scale(1);
}

@media (min-width: 576px) {
    .modal-content {
        padding: 2.25rem;
    }
}

/* Mobile Bottom-Sheet (FAQ, Termos, Sobre e Modais em Telas Mobile) */
@media (max-width: 768px) {
    .modal-overlay {
        align-items: flex-end !important;
        justify-content: center !important;
        padding: 0 !important;
    }

    .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 28px 28px 0 0 !important;
        border-bottom: none !important;
        border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
        border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.22) !important;
        max-height: 88dvh !important;
        padding: 2.2rem 1.25rem max(1.5rem, env(safe-area-inset-bottom)) 1.25rem !important;
        margin: 0 !important;
        transform: translateY(100%) !important;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease !important;
        box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.85), 0 0 35px rgba(138, 0, 255, 0.3) !important;
    }

    .modal-overlay.visible .modal-content {
        transform: translateY(0) !important;
    }

    /* Modern Bottom-Sheet Pull Handle */
    .modal-content::before {
        content: '';
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 44px;
        height: 5px;
        border-radius: 4px;
        background: rgba(255, 255, 255, 0.3);
        z-index: 15;
    }

    .modal-close-button {
        top: 14px !important;
        right: 14px !important;
        width: 36px !important;
        height: 36px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

#how-it-works-modal .modal-content {
    width: 92%;
    max-width: 720px;
    background: linear-gradient(145deg, rgba(22, 10, 42, 0.98) 0%, rgba(12, 5, 25, 0.99) 50%, rgba(5, 2, 12, 1) 100%) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(168, 85, 247, 0.35) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(168, 85, 247, 0.15) !important;
    border-radius: 24px;
    padding: 2.5rem 2rem 3.5rem 2rem !important;
    overflow-y: auto;
}

#how-it-works-modal .poster-card {
    animation: none;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

@media (max-width: 768px) {
    #how-it-works-modal .modal-content {
        width: 100% !important;
        padding: 2.2rem 1.15rem max(1.5rem, env(safe-area-inset-bottom)) 1.15rem !important;
        border-radius: 28px 28px 0 0 !important;
    }
    .poster-title {
        font-size: 1.35rem !important;
        font-weight: 700 !important;
        margin-bottom: 1.25rem !important;
    }
    .poster-step {
        gap: 1rem !important;
    }
    .poster-step:last-child {
        margin-bottom: 1rem !important;
        padding-bottom: 0.5rem !important;
    }
    .poster-step-indicator {
        width: 40px !important;
        height: 40px !important;
        border: 2px solid rgba(168, 85, 247, 0.5) !important;
        background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(138, 0, 255, 0.25) 100%) !important;
        color: #c084fc !important;
    }
    .poster-step-indicator svg {
        width: 22px !important;
        height: 22px !important;
    }
    .poster-steps-container::before {
        left: 19px !important;
        top: 18px !important;
        bottom: 30px !important;
        opacity: 0.5 !important;
    }
    .poster-step-content h3 {
        font-size: 1rem !important;
        font-weight: 600 !important;
        line-height: 1.35 !important;
        margin-bottom: 0.3rem !important;
    }
    .poster-step-content p {
        font-size: 0.86rem !important;
        line-height: 1.5 !important;
        color: rgba(245, 245, 255, 0.8) !important;
    }
}

/* Smooth interaction overrides for all cards and buttons */
.card, .package-card, .plan-card, .poster-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, background-color 0.4s ease !important;
    will-change: transform, box-shadow;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
}

.card:not(.benefit-card):hover,
.card:not(.benefit-card).is-toggled,
.package-card:hover,
.package-card.is-toggled,
.plan-card:hover,
.plan-card.is-toggled {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.6), 0 0 22px rgba(138, 0, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.cta-button, .nav-button, .plan-card-button, button.cta-button, .package-cta {
    background: linear-gradient(95deg, #6d28d9 0%, #4a1586 22%, #220845 50%, #0d031c 80%, #05010a 100%) !important;
    background-image: linear-gradient(95deg, #6d28d9 0%, #4a1586 22%, #220845 50%, #0d031c 80%, #05010a 100%) !important;
    border: none !important;
    outline: none !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
    color: #ffffff !important;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease !important;
    will-change: transform, box-shadow;
}

.cta-button:hover, .nav-button:hover, .plan-card-button:hover {
    transform: translateY(-3px) scale(1.04) !important;
    border-color: rgba(216, 180, 254, 0.6) !important;
    box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.85), 0 0 24px 0px rgba(168, 85, 247, 0.45) !important;
}

.cta-button:active, .nav-button:active, .plan-card-button:active {
    transform: translateY(0) scale(0.96) !important;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.7) !important;
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1) !important;
}


.modal-close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.modal-close-button:hover {
    color: var(--color-text-primary);
    transform: rotate(90deg);
}

.text-modal-content h2 {
    font-size: clamp(1.5rem, 5vw, 1.75rem);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.text-modal-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.text-modal-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.about-me-content {
    text-align: center;
}

.profile-picture-wrapper {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.profile-picture {
    width: 140px;
    height: 140px;
    border-radius: 28px;
    object-fit: cover;
    border: none !important;
    box-shadow: none !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-picture:hover {
    transform: scale(1.05) rotate(1deg);
    border: none !important;
    box-shadow: none !important;
}

.about-me-title {
    color: var(--color-text-primary);
    font-size: clamp(2.25rem, 6vw, 2.5rem);
    margin-bottom: 1rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    position: relative;
    display: inline-block;
}

.about-me-title .main-title-suffix {
    bottom: 72%;
}

/* --- SCROLL ANIMATIONS --- */
.animate-on-scroll {
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    will-change: transform, opacity;
}

.animate--fade-in-up {
    transform: translateY(30px);
}

.animate--fade-in-up-zoom {
    transform: translateY(30px) scale(0.95);
}

.animate--zoom-in {
    transform: scale(0.95);
}

.animate--fade-in-right {
    transform: translateX(50px);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Stagger delay helpers if needed manually */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

/* --- SITE PROTECTION & MOBILE UX --- */
/* Prevent text selection and long press globally */
* {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
    /* iOS Safari context menu prevention */
}

/* Restore selection for form inputs */
input,
textarea,
[contenteditable="true"] {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    -webkit-touch-callout: default !important;
}

/* Prevent image dragging and interaction */
img,
video,
canvas,
svg,
iframe {
    -webkit-user-drag: none !important;
    user-drag: none !important;
    pointer-events: none !important;
    /* Let clicks pass through images to parent links/buttons */
    -webkit-touch-callout: none !important;
}

/* Specific interactive elements that need pointer-events */
a,
button,
.cta-button,
.nav-link,
.benefit-card,
.package-card,
.hamburger-button,
.mobile-menu-close-button,
.modal-close-button,
.footer-link {
    cursor: pointer !important;
    /* Ensure they are clickable */
}

/* Specific fix for background decorations and masks */
.header-logo-shine,
#background-decorations {
    pointer-events: none !important;
}

/* ================================================== */
/* AGENT PANEL STYLES - ArtByte Design System         */
/* ================================================== */

.agent-fullscreen-section {
    padding: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    min-height: calc(var(--vh, 1vh) * 100);
    scroll-margin-top: 0;
}

.agent-wrapper {
    min-height: calc(var(--vh, 1vh) * 100);
    padding-top: 80px;
    font-family: 'Inter', 'Poppins', sans-serif;
}

/* --- Loading --- */
.agent-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    gap: 1.5rem;
    color: var(--color-text-secondary);
}

.agent-loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(0, 207, 222, 0.15);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: agent-spin 0.8s linear infinite;
}

.agent-loading-spinner-sm {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(0, 207, 222, 0.15);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: agent-spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

@keyframes agent-spin {
    to { transform: rotate(360deg); }
}

/* --- Center Message (Login / No Access) --- */
.agent-center-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60vh;
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem;
    gap: 1rem;
}

.agent-icon-large {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.agent-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: #ffffff !important;
}

.agent-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

.agent-logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.agent-logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.35);
}

.agent-logo-icon svg {
    pointer-events: auto !important;
}

.agent-logo-text {
    font-weight: 700;
    font-size: 1.5rem;
    color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: #ffffff !important;
    letter-spacing: -0.5px;
}

/* --- Buttons --- */
.agent-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    text-decoration: none;
    font-family: 'Inter', 'Poppins', sans-serif;
    -webkit-user-select: auto !important;
    user-select: auto !important;
}

.agent-btn svg {
    pointer-events: auto !important;
}

.agent-btn-primary {
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    color: white;
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.3);
    background-size: 200% auto;
}

.agent-btn-primary:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(199, 56, 217, 0.35);
}

.agent-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.agent-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.agent-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.agent-btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.agent-btn-danger:hover {
    background: #ef4444;
    color: white;
}

.agent-btn-google {
    background: white;
    color: #333;
    padding: 14px 32px;
    font-size: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.agent-btn-google:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.agent-btn-google svg {
    flex-shrink: 0;
}

.agent-btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 14px 28px;
    font-size: 1rem;
}

.agent-btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.agent-btn-whatsapp svg {
    pointer-events: auto !important;
}

.agent-btn-back {
    background: transparent;
    color: var(--color-text-secondary);
    padding: 10px 20px;
    font-size: 0.85rem;
}

.agent-btn-back:hover {
    color: var(--color-text-primary);
}

.agent-btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1rem;
}

.agent-btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
}

.agent-btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

/* --- Agent Panel --- */
.agent-panel {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

.agent-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.agent-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.agent-logo-icon-sm {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.agent-logo-icon-sm svg {
    pointer-events: auto !important;
}

.agent-header-title {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-text-primary);
    letter-spacing: -0.3px;
}

.agent-status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.agent-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
    transition: all 0.3s ease;
}

.agent-status-dot.online {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: agent-pulse-green 2s infinite;
}

@keyframes agent-pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.agent-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.agent-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.agent-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    pointer-events: auto !important;
    border: 1px solid rgba(168, 85, 247, 0.35);
}

.agent-user-name {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- Tabs --- */
.agent-tabs {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 1.5rem;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.agent-tabs::-webkit-scrollbar {
    display: none;
}

.agent-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 10px;
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: 'Inter', 'Poppins', sans-serif;
}

.agent-tab svg {
    pointer-events: auto !important;
    flex-shrink: 0;
}

.agent-tab:hover {
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.agent-tab.active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(138, 0, 255, 0.15));
    color: var(--color-primary);
    font-weight: 600;
    border: 1px solid rgba(168, 85, 247, 0.35);
}

.agent-tab-content {
    display: none;
}

.agent-tab-content.active {
    display: block;
    animation: agent-fade-in 0.3s ease-out;
}

@keyframes agent-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Cards --- */
.agent-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .agent-grid {
        grid-template-columns: 1.5fr 1fr;
    }
}

.agent-card {
    background: rgba(22, 21, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    background-image:
        radial-gradient(circle at top left, rgba(168, 85, 247, 0.12), transparent 50%),
        radial-gradient(circle at bottom right, rgba(199, 56, 217, 0.08), transparent 50%);
}

.agent-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.agent-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.agent-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.agent-card-text {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.agent-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

/* --- QR Area --- */
.agent-qr-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
}

.agent-qr-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    text-align: center;
}

.agent-qr-connected {
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.05);
}

.agent-qr-image {
    max-width: 240px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: agent-fade-in 0.5s ease-out;
    pointer-events: auto !important;
}

/* --- Info Box --- */
.agent-info-box {
    padding: 14px;
    background: rgba(168, 85, 247, 0.08);
    border-radius: 12px;
    border-left: 3px solid var(--color-primary);
}

.agent-info-label {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--color-primary);
    display: block;
    margin-bottom: 4px;
}

.agent-info-box p {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin: 2px 0;
    line-height: 1.4;
}

/* --- Forms --- */
.agent-form-group {
    margin-bottom: 1.25rem;
}

.agent-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.agent-form-group small {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    margin-top: 6px;
    opacity: 0.7;
}

.agent-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .agent-form-row {
        grid-template-columns: 1fr;
    }
}

.agent-input,
.agent-textarea {
    width: 100%;
    background: rgba(15, 12, 29, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--color-text-primary);
    font-size: 0.9rem;
    font-family: 'Inter', 'Poppins', sans-serif;
    transition: all 0.2s ease;
    -webkit-user-select: text !important;
    user-select: text !important;
}

.agent-textarea {
    min-height: 120px;
    resize: vertical;
}

.agent-input:focus,
.agent-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
    background: rgba(15, 12, 29, 0.8);
}

.agent-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--color-text-primary);
}

.agent-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--color-primary);
}

/* --- Flow Cards --- */
.agent-flow-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    animation: agent-fade-in 0.3s ease-out;
}

.agent-flow-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.agent-flow-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-primary);
}

/* --- Logs --- */
.agent-logs-area {
    height: 400px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 16px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #10b981;
    -webkit-user-select: text !important;
    user-select: text !important;
}

.agent-log-entry {
    margin-bottom: 4px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.agent-log-time {
    color: var(--color-text-secondary);
    opacity: 0.6;
}

.agent-log-user {
    color: var(--color-primary);
}

.agent-log-bot {
    color: var(--color-secondary);
}

/* --- Toast --- */
.agent-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 14px 24px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    color: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    font-weight: 600;
    font-size: 0.9rem;
}

.agent-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .agent-panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .agent-header-right {
        width: 100%;
        justify-content: flex-end;
    }

    .agent-user-name {
        display: none;
    }

    .agent-tabs {
        justify-content: flex-start;
    }

    .agent-tab {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .agent-card {
        padding: 1rem;
    }

    .agent-card-actions {
        flex-direction: column;
    }

    .agent-card-actions .agent-btn {
        width: 100%;
    }
}

/* Ensure Agent panel form elements are interactable */
.agent-panel input,
.agent-panel textarea,
.agent-panel select,
.agent-panel button,
.agent-panel a,
.agent-center-message input,
.agent-center-message button,
.agent-center-message a {
    -webkit-user-select: text !important;
    user-select: text !important;
    pointer-events: auto !important;
    cursor: pointer;
}
.text-modal-content { color: var(--color-text-primary); font-size: 1rem; line-height: 1.6; } .text-modal-content h2 { color: #ffffff !important; margin-bottom: 1rem; } .text-modal-content h3 { margin-top: 1.5rem; color: #ffffff !important; font-size: 1.1rem; } .text-modal-content p { color: var(--color-text-secondary); margin-bottom: 0.8rem; }

/* Payment Success Popup */
.payment-success-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 8, 20, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.payment-success-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.payment-success-modal {
    background: linear-gradient(145deg, rgba(22, 21, 42, 0.95), rgba(15, 12, 29, 0.98));
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.2);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    width: 90%;
    max-width: 420px;
    text-align: center;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.payment-success-overlay.show .payment-success-modal {
    transform: translateY(0) scale(1);
}

.payment-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #10b981;
    animation: successPulse 2s infinite;
}

.payment-icon-wrapper svg {
    width: 40px;
    height: 40px;
    color: #10b981;
}

@keyframes successPulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.payment-success-modal h2 {
    color: #10b981;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.payment-success-modal p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.payment-success-modal .agent-btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    background: linear-gradient(90deg, #10b981, #059669);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.payment-success-modal .agent-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.payment-timer-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1.5rem;
}

.payment-timer-progress {
    height: 100%;
    background: #10b981;
    width: 100%;
    transition: width 5s linear;
}

/* --- BIO PAGE (HIDDEN SECTION) --- */
body.bio-page-active {
    overflow-y: auto !important;
}

.bio-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 3rem 1.5rem;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.bio-logo-container {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.bio-logo-img {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.4));
    margin-bottom: 0.5rem;
}

.bio-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-text-primary);
    margin: 0;
    font-family: var(--font-sans);
    letter-spacing: -0.02em;
}

.bio-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    text-align: center;
    margin-top: 0.25rem;
    margin-bottom: 2.5rem;
    max-width: 300px;
    line-height: 1.4;
}

.bio-buttons-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Glass buttons for Bio links */
.bio-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.1rem 1.5rem;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-text-primary) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    position: relative;
    overflow: hidden;
}

.bio-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -60%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1) 50%, transparent);
    transform: translateX(0) skewX(-18deg);
    animation: lg-shimmer 6s ease-in-out infinite;
    pointer-events: none;
}

.bio-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 207, 222, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

/* Modals inside Bio */
.bio-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    text-align: center;
}

.bio-modal-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1.25rem;
    background: linear-gradient(110deg, var(--color-primary), var(--color-mid-purple), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bio-modal-qr {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.25rem;
    object-fit: cover;
}

.bio-modal-text-label {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bio-modal-value-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 320px;
    justify-content: space-between;
}

.bio-modal-value {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--color-text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    user-select: all;
    text-align: left;
    flex-grow: 1;
}

.bio-copy-btn {
    background: var(--color-primary);
    border: none;
    color: var(--color-background);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bio-copy-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.bio-copy-btn.copied {
    background: #4bb543;
    color: white;
}

/* Custom additions for bio buttons, titles, and modal overlays */
.bio-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    pointer-events: none;
}

.bio-page-active .bio-modal-title {
    color: #ffffff !important;
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: none !important;
}

/* Make overlay transparent/non-dark on bio page when modal is open */
.bio-page-active .modal-overlay {
    background-color: rgba(0, 0, 0, 0.25) !important;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
}

/* ============================================================
   ARTBYTE AUTHENTICATION & SISTEMA STYLES
   ============================================================ */

/* --- Nav Auth Trigger & Logged Pill --- */
.nav-auth-container {
    display: inline-flex;
    align-items: center;
}

.nav-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(168, 85, 247, 0.1) !important;
    border: 1px solid rgba(168, 85, 247, 0.3) !important;
    color: #c084fc !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all 0.25s ease !important;
}

.nav-login-btn:hover {
    background: rgba(168, 85, 247, 0.2) !important;
    border-color: #a855f7 !important;
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.35);
}

.nav-login-btn svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.2;
}

.nav-login-btn.is-hidden,
.auth-logged-pill.is-hidden,
.mobile-auth-container.is-authenticated .nav-login-btn,
.nav-auth-container.is-authenticated .nav-login-btn,
.mobile-auth-container:not(.is-authenticated) .auth-logged-pill,
.nav-auth-container:not(.is-authenticated) .auth-logged-pill {
    display: none !important;
}

/* --- Logged State Pill --- */
.auth-logged-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding: 3px 10px 3px 4px;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.25s ease;
}

.auth-logged-pill:hover {
    border-color: rgba(255, 255, 255, 0.35) !important;
    background: rgba(255, 255, 255, 0.1);
}

.auth-user-link {
    display: flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    color: #ffffff;
}

.auth-user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
}

.auth-user-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    max-width: 90px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auth-logout-icon-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.auth-logout-icon-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

.auth-logout-icon-btn svg {
    width: 15px;
    height: 15px;
}

/* --- Nav Language Selector (Dropdown Menu) --- */
.nav-lang-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.nav-lang-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    height: 30px !important;
    padding: 0 10px !important;
    border-radius: 9999px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
    font-family: var(--font-sans, sans-serif) !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    line-height: 1 !important;
    text-align: center !important;
    cursor: pointer !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    user-select: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    box-sizing: border-box !important;
}

.nav-lang-btn:hover,
.nav-lang-container.is-open .nav-lang-btn {
    background: rgba(168, 85, 247, 0.18) !important;
    border-color: rgba(168, 85, 247, 0.5) !important;
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.35) !important;
}

.nav-lang-btn .nav-lang-chevron {
    transition: transform 0.2s ease;
    opacity: 0.75;
}

.nav-lang-container.is-open .nav-lang-chevron {
    transform: rotate(180deg);
}

.nav-lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    background: linear-gradient(145deg, rgba(22, 10, 42, 0.98) 0%, rgba(12, 5, 25, 0.99) 50%, rgba(5, 2, 12, 1) 100%) !important;
    border: 1px solid rgba(168, 85, 247, 0.35) !important;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7), 0 0 20px rgba(168, 85, 247, 0.2) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 1000;
    animation: navLangFadeDown 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.nav-lang-container.is-open .nav-lang-dropdown {
    display: flex !important;
    pointer-events: auto !important;
}

@keyframes navLangFadeDown {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.nav-lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: #f3f4f6;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
    white-space: nowrap;
}

.nav-lang-option:hover {
    background: rgba(168, 85, 247, 0.22);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.lang-flag-svg {
    display: inline-block !important;
    width: 16px !important;
    height: 11px !important;
    border-radius: 2px !important;
    flex-shrink: 0 !important;
    vertical-align: middle !important;
}

.nav-lang-text {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    text-align: center !important;
    font-weight: 700 !important;
}

@media (max-width: 480px) {
    .nav-lang-btn {
        height: 28px !important;
        padding: 0 8px !important;
        font-size: 0.74rem !important;
        gap: 5px !important;
    }
    .nav-lang-dropdown {
        min-width: 130px;
    }
    .header-right-actions {
        gap: 8px !important;
    }
}

/* --- Mobile Menu Auth Placement --- */
.mobile-auth-container {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
}

.mobile-auth-container .auth-logged-pill {
    width: 100%;
    justify-content: space-between;
    padding: 8px 14px 8px 8px;
}

.mobile-auth-container .auth-user-avatar {
    width: 32px;
    height: 32px;
}

.mobile-auth-container .auth-user-name {
    max-width: none;
    font-size: 0.95rem;
}

.mobile-auth-container .nav-login-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 16px !important;
}

/* --- Desktop Login Modal --- */
.login-modal-box {
    text-align: center;
    padding: 2rem 1.5rem 1.5rem;
    max-width: 420px;
    margin: 0 auto;
}

.login-modal-logo-area {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.login-modal-logo-area .header-logo-wrapper {
    height: 40px;
    width: auto;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.login-modal-logo-area .header-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    border: none !important;
    box-shadow: none !important;
    filter: none !important;
}

.login-modal-icon-wrap {
    display: none !important;
}

#artbyte-login-modal .modal-content {
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85) !important;
}

.login-modal-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.login-modal-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: 1.75rem;
}

.login-google-btn {
    width: 100%;
    background: #ffffff;
    color: #1f2937;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.login-google-btn:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}

/* --- Mobile Bottom Sheet Modal --- */
@media (max-width: 768px) {
    .login-bottom-sheet-overlay {
        align-items: flex-end !important;
        padding: 0 !important;
    }

    .login-bottom-sheet-overlay .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 26px 26px 0 0 !important;
        border-bottom: none !important;
        margin: 0 !important;
        animation: slideUpSheet 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    }

    @keyframes slideUpSheet {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

}
a, a[data-artbyte-href], button {
    cursor: pointer;
}

/* ── ARTBYTE PAY NAVBAR LOGO INTEGRATION ── */
.nav-link-pay {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 3px 10px !important;
    border-radius: 9999px !important;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.nav-pay-img {
    height: 22px !important;
    width: auto !important;
    max-width: 115px !important;
    object-fit: contain !important;
    vertical-align: middle !important;
    pointer-events: none !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease !important;
}

.nav-link-pay:hover .nav-pay-img {
    transform: scale(1.08) !important;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.6)) !important;
}

.nav-link-pay-mobile {
    display: flex !important;
    align-items: center !important;
    padding: 12px 18px !important;
}

.nav-pay-img-mobile {
    height: 25px !important;
    width: auto !important;
    max-width: 125px !important;
    object-fit: contain !important;
    vertical-align: middle !important;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4)) !important;
}



/* ── DEFENSIVE AUTH PILL & MOBILE PERFORMANCE OPTIMIZATION ── */
.auth-logged-pill {
    justify-content: space-between;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
}

.auth-user-link {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.auth-user-avatar {
    flex-shrink: 0;
}

.auth-logout-icon-btn {
    flex-shrink: 0;
}

.mobile-auth-container .auth-user-name {
    max-width: 135px !important;
    font-size: 0.92rem;
}

.page-section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 700px;
}

/* Carrosséis edge-to-edge: content-visibility aplica paint containment e recorta
   o conteúdo 100vw na largura da seção (1100px). Desativado só nessas seções. */
#benefits.page-section,
#packages.page-section,
#services.page-section {
    content-visibility: visible !important;
    contain: none !important;
    contain-intrinsic-size: none !important;
}

@media (min-width: 768px) {
    /* Desktop: sem dots nos Planos e Serviços */
    #packages .carousel-indicators,
    #services .carousel-indicators {
        display: none !important;
    }

    /* Centraliza quando todos os cards cabem; rola normalmente quando não cabem */
    #services .packages-grid > .package-card:first-child {
        margin-left: 0 !important;
    }
    #services .packages-grid > .package-card:last-child {
        margin-right: 0 !important;
    }
}

/* ── PLANOS DESKTOP SYMMETRIC BALANCED 3-COLUMN LAYOUT (>= 1024px) ── */
@media (min-width: 1024px) {
    #packages .packages-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 1.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
    }
    #packages .package-card {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    #packages .packages-grid > .package-card:first-child,
    #packages .packages-grid > .package-card:last-child {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* ── CONTACT BUTTONS MOBILE & DESKTOP ALIGNMENT FIX ── */
.contact-container {
    padding: 2rem 1rem !important;
    text-align: center !important;
    max-width: 600px !important;
    margin: 0 auto !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.contact-container .page-title,
#contact .page-title {
    margin: 0 auto 1rem !important;
    text-align: center !important;
}

.contact-container .page-subtitle,
#contact .page-subtitle {
    margin: 0 auto 3rem !important;
    text-align: center !important;
}

.contact-buttons-wrapper {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}

.social-cta-button {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 28px 1fr !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 350px !important;
    padding: 0.85rem 1.6rem !important;
    gap: 1.1rem !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.social-cta-button > svg {
    position: static !important;
    width: 26px !important;
    height: 26px !important;
    margin: 0 !important;
    justify-self: center !important;
    flex-shrink: 0 !important;
    transform: none !important;
    pointer-events: none !important;
}

.social-cta-text-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    text-align: left !important;
    padding: 0 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    min-width: 0 !important;
    line-height: 1.25 !important;
}

.social-cta-main-text {
    font-size: 1rem !important;
    font-weight: 700 !important;
}

.social-cta-sub-text {
    font-size: 0.82rem !important;
    font-weight: 400 !important;
    opacity: 0.9 !important;
}

.social-cta-button[href*="mailto:"] .social-cta-sub-text,
.social-btn-email .social-cta-sub-text,
.social-cta-button[data-artbyte-href*="mailto:"] .social-cta-sub-text {
    font-size: 0.74rem !important;
}

@media (min-width: 768px) {
    .contact-container {
        max-width: 740px !important;
        padding: 2rem 0.5rem !important;
    }

    .contact-buttons-wrapper {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 320px)) !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 1.15rem 1.25rem !important;
        max-width: 660px !important;
        margin: 0 auto !important;
    }

    .contact-buttons-wrapper > .social-cta-button {
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 !important;
    }

    .contact-buttons-wrapper > .social-btn-email,
    .contact-buttons-wrapper > .social-cta-button:nth-child(3) {
        grid-column: 1 / -1 !important;
        justify-self: center !important;
        width: 320px !important;
        max-width: 100% !important;
    }
}

/* Suppress all header shine/shimmer animations before DOM ready */
.header-glass-shimmer,
.header-glass-shimmer::after {
    display: none !important;
    animation: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* ==========================================================================
   TEMA DE NATAL ARTBYTE: FLINT CRISTAIS DE NEVE
   ========================================================================== */
.christmas-snow-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9995;
}
