:root {
    /* Shared Base Tokens */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --container-width: 1200px;
    --header-height: 80px;

    /* Default (Pattern 1) */
    --primary: #419404;
    --secondary: #540f4f;
    --accent: #c42021;
    --bg-light: #f3ffb9;
    --text-color: #1a1a1a;
    --text-muted: #4a4a4a;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
}

body.pattern-1 {
    --primary: #419404;
    --secondary: #540f4f;
    --accent: #c42021;
    --bg-light: #f3ffb9;
    --bg-alt: #e574bc;
}

body.pattern-2 {
    --primary: #419404;
    --secondary: #540f4f;
    --accent: #ff579f;
    --bg-light: #bbdfc5;
    --bg-alt: #14342b;
}

body.pattern-3 {
    --primary: #419404;
    --secondary: #540f4f;
    --accent: #6279b8;
    --bg-light: #f5fbef;
    --bg-alt: #8ea4d2;
}

body.pattern-4 {
    --primary: #419404;
    --secondary: #540f4f;
    --accent: #584d3d;
    --bg-light: #ebf38b;
    --bg-alt: #f4e87c;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

h1,
h2,
h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
#main-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

#main-header .container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 40px;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-name span {
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a i,
.nav-links a svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

.nav-links a:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Buttons */
.cta-btn {
    padding: 12px 28px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
    display: inline-block;
    transition: var(--transition);
}

.cta-btn.primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(65, 148, 4, 0.3);
}

.cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(65, 148, 4, 0.4);
}

.cta-btn.compact {
    padding: 8px 20px;
    font-size: 0.75rem;
}

.btn-secondary {
    padding: 12px 28px;
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    border-radius: var(--radius-lg);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--secondary);
    color: #fff;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.icon-btn:hover {
    color: var(--secondary);
    transform: rotate(45deg);
}

/* Hero Section */
.banner-section {
    padding-top: var(--header-height);
    height: 95vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.banner-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 40%, rgba(255, 255, 255, 0.1) 100%);
}

.hero-content {
    position: relative;
    max-width: 800px;
    z-index: 10;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.4s;
}

.slide.active .hero-content {
    transform: translateY(0);
    opacity: 1;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 100;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 10px;
}

.badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: clamp(0.7rem, 2vw, 0.8rem);
    font-weight: 800;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 10vw, 4.5rem);
    line-height: 0.95;
    margin-bottom: 20px;
    color: var(--secondary);
}

.promo-text {
    font-size: clamp(1.1rem, 4vw, 1.8rem);
    margin-bottom: 12px;
}

.promo-text strong {
    color: var(--accent);
}

.promo-subtext {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Service Sections */
.service-section {
    padding: clamp(40px, 6vw, 80px) 0;
}

/* XCase Mural - New Layout with Ticker */
.mural-wrapper {
    position: relative;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mural-ticker-container {
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.mural-ticker {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: ticket-scroll 60s linear infinite;
    cursor: grab;
    user-select: none;
    will-change: transform;
}

.mural-ticker:active {
    cursor: grabbing;
}

.mural-ticker.is-dragging {
    animation-play-state: paused !important;
}

.mural-ticker:hover {
    animation-play-state: paused;
}

@keyframes ticket-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 15px));
    }
}

.mural-ticker .mural-item {
    width: 350px;
    background: #fff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 24px;
    border-left: 6px solid var(--primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    animation: none;
    /* Override old animation */
    flex-shrink: 0;
}

.mural-ticker .mural-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--secondary);
}

/* Destaque para o card do próprio visitante */
.mural-ticker .mural-item.user-entry {
    border-left-color: var(--secondary);
    background: linear-gradient(to bottom right, #fff, #fffcf5);
    border-style: solid;
    position: relative;
    overflow: hidden;
    z-index: 2;
    animation: user-card-pulse 2s infinite ease-in-out;
}

@keyframes user-card-pulse {
    0% {
        box-shadow: 0 15px 35px rgba(84, 15, 79, 0.1);
        transform: scale(1.03);
    }

    50% {
        box-shadow: 0 20px 45px rgba(84, 15, 79, 0.25);
        transform: scale(1.05);
    }

    100% {
        box-shadow: 0 15px 35px rgba(84, 15, 79, 0.1);
        transform: scale(1.03);
    }
}

.mural-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.mural-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mural-item-name {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--secondary);
    text-transform: uppercase;
}

.mural-item-date {
    font-size: 0.75rem;
    opacity: 0.4;
    font-weight: 600;
}

.mural-item-emoji {
    font-size: 1.5rem;
    line-height: 1;
}

.mural-cta {
    margin-top: 40px;
}

/* Modal Enhancements for Dopamine Flow */
.mural-modal-content {
    max-width: 650px;
    background: #fff;
    overflow: hidden;
    /* For animations */
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-badge {
    background: var(--bg-light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 12px;
    display: inline-block;
}

.input-row-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.emoji-selector {
    display: flex;
    gap: 10px;
}

.emoji-selector label {
    cursor: pointer;
    flex: 1;
}

.emoji-selector input {
    position: absolute;
    opacity: 0;
}

.emoji-selector span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    background: #f8f9fa;
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.emoji-selector input:checked+span {
    background: var(--bg-light);
    border-color: var(--primary);
    transform: scale(1.1);
}

textarea#mural-message-new {
    width: 100%;
    height: 120px;
    padding: 15px;
    border-radius: var(--radius-sm);
    border: 2px solid #eee;
    font-family: inherit;
    resize: none;
}

.form-footer {
    font-size: 0.8rem;
    text-align: center;
    margin-top: 15px;
    opacity: 0.5;
}

/* Dopamine Stages Styles */
.spinner-v2 {
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid var(--primary);
    border-radius: 50%;
    margin: 0 auto 30px;
    animation: spin 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.loading-text {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.celebration-icon {
    font-size: 5rem;
    margin-bottom: 25px;
    animation: pop-bounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pop-bounce {
    0% {
        transform: scale(0);
    }

    70% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.milestone-card {
    background: linear-gradient(135deg, var(--bg-light) 0%, #fff 100%);
    padding: 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    border: 1px solid var(--primary);
}

.milestone-icon {
    font-size: 2.5rem;
    background: #fff;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.milestone-info {
    text-align: left;
}

.milestone-info strong {
    display: block;
    color: var(--secondary);
    font-size: 1.1rem;
}

.milestone-info span {
    font-size: 0.85rem;
    opacity: 0.6;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (max-width: 600px) {
    .input-row-v2 {
        grid-template-columns: 1fr;
    }

    .mural-ticker .mural-item {
        width: 300px;
    }
}

.subtitle {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
}

.grid-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.info-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.info-card.image-card {
    padding: 0;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    background-size: cover;
    background-position: center;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0;
}

.tag-list li {
    background: var(--bg-light);
    color: var(--secondary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tag-list.peliculas-nav li:hover,
.tag-list.peliculas-nav li.active {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(65, 148, 4, 0.3);
}

.info-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.text-link {
    font-weight: 700;
    color: var(--primary);
}

/* Maintenance Box */
.maintenance-box {
    background: #fff;
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.maintenance-text {
    padding: 60px;
}

.feature-list {
    margin: 32px 0;
}

.feature-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.feature-list li::before {
    content: '✓';
    color: var(--primary);
}

.maintenance-visual {
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.comparison-slider {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.comparison-after,
.comparison-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.comparison-before {
    z-index: 10;
    clip-path: inset(0 50% 0 0);
    transition: none;
    /* Avoid lag during slider movement */
}

.broken-screen-overlay {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7) contrast(1.2);
}

.glass-crack-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/glass-shattering.png');
    opacity: 0.8;
    pointer-events: none;
}

.label {
    position: absolute;
    bottom: 20px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 20;
}

.label.before {
    left: 20px;
}

.label.after {
    right: 20px;
}

/* Comparison Handle */
.comparison-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: #fff;
    z-index: 30;
    pointer-events: none;
    transform: translateX(-50%);
}

.handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.comparison-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 40;
}

@media (max-width: 992px) {
    .comparison-slider {
        min-height: 350px;
    }
}

#xhappy {
    position: relative;
    overflow: hidden;
}

.happy-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.happy-bg .balloon,
.happy-bg .confetti,
.happy-bg .floating-emoji {
    position: absolute;
    bottom: -50px;
}

.balloon {
    width: 40px;
    height: 50px;
    background: var(--bg-alt);
    border-radius: 50%;
    animation: rise var(--d) linear infinite;
    opacity: 0.6;
}

.balloon::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 2px;
    height: 15px;
    background: rgba(0, 0, 0, 0.1);
}

.confetti {
    width: 10px;
    height: 10px;
    animation: fall var(--d) linear infinite;
    top: -20px;
}

.floating-emoji {
    font-size: 1.5rem;
    animation: float-side var(--d) ease-in-out infinite;
    bottom: -50px;
}

@keyframes rise {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-120vh) rotate(20deg);
        opacity: 0;
    }
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(120vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes float-side {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        transform: translate(var(--x), -50vh) scale(1.2);
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translate(calc(var(--x) * 2), -110vh) scale(1);
        opacity: 0;
    }
}

.happy-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.happy-item {
    perspective: 1000px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    height: 350px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.happy-item:hover .flip-card-inner,
.happy-item.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: border-color 0.3s ease;
}

.happy-item:hover .flip-card-front,
.happy-item:hover .flip-card-back,
.happy-item.flipped .flip-card-front,
.happy-item.flipped .flip-card-back {
    border: 2px solid var(--primary);
}

.flip-card-front {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flip-card-back {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transform: rotateY(180deg);
}

.happy-icon {
    font-size: 3rem;
    margin-bottom: 24px;
    display: block;
}

/* Marquee */
.scrolling-section {
    padding: 60px 0;
    background: var(--secondary);
    color: #fff;
    overflow: hidden;
    width: 100%;
}

.marquee-container {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
}

.marquee {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 30s linear infinite;
    font-size: 3rem;
    font-weight: 900;
    font-family: 'Montserrat';
    opacity: 0.1;
}

@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100%, 0);
    }
}

.marquee-brands {
    margin-top: -30px;
    position: relative;
    z-index: 5;
}

.brand-list {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.brand-item {
    font-size: 1.5rem;
    font-weight: 800;
    opacity: 0.8;
}

/* Sorteios */
.sorteio-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.sorteio-card {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-md);
    margin-top: 24px;
    border-left: 8px solid var(--primary);
}

.instagram-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
}

.instagram-btn i,
.instagram-btn svg {
    width: 20px;
    height: 20px;
}

.instagram-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(220, 39, 67, 0.3);
}

.winners-list {
    margin-top: 24px;
}

.winner {
    padding: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.winner span {
    font-weight: 700;
    color: var(--secondary);
}

/* Locations */
.locations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.location-card {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.location-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: 0 -70px;
    background-color: var(--bg-light);
    /* Fallback color */
}

.location-info {
    padding: 30px;
}

.location-card h3 {
    margin-bottom: 16px;
    color: var(--secondary);
    font-size: 1.2rem;
}

.hours {
    margin: 16px 0;
    font-size: 0.9rem;
}

.location-contact {
    display: block;
    margin-top: 20px;
    font-weight: 800;
    color: var(--primary);
}

/* Footer Redesign */
/* Thank You Banner */
.thank-you-banner {
    background: linear-gradient(135deg, var(--primary), #1a3d02);
    padding: 30px 0;
    color: #fff;
    text-align: center;
    box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.2);
}

.thank-you-banner p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0;
}

#main-footer {
    background: #111;
    color: #fff;
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-brand .footer-logo {
    height: 45px;
    margin-bottom: 24px;
    mix-blend-mode: hard-light;
    filter: invert(1);
}

.footer-tagline {
    font-size: 0.95rem;
    opacity: 0.7;
    margin-bottom: 24px;
    line-height: 1.7;
}

.footer-social-v2 {
    display: flex;
    gap: 16px;
}

.footer-social-v2 a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social-v2 a i,
.footer-social-v2 a svg {
    width: 20px;
    height: 20px;
}

.footer-social-v2 a:hover {
    transform: translateY(-3px);
    color: #fff;
}

.footer-social-v2 a.insta:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.footer-social-v2 a.fb:hover {
    background: #1877F2;
}

.footer-social-v2 a.wa:hover {
    background: #25D366;
}

.footer-links h4,
.footer-legal h4 {
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-bottom: 24px;
    letter-spacing: 1px;
    color: var(--primary);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a,
.text-link-btn {
    font-size: 0.95rem;
    opacity: 0.6;
    transition: var(--transition);
}

.text-link-btn {
    background: none;
    border: none;
    color: #fff;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.footer-links ul li a:hover,
.text-link-btn:hover {
    opacity: 1;
    color: var(--primary);
    padding-left: 5px;
}

.footer-legal p {
    font-size: 0.85rem;
    opacity: 0.5;
    margin-bottom: 8px;
}

.footer-bottom-v2 {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-v2 p {
    font-size: 0.85rem;
    opacity: 0.5;
}

.credits {
    font-size: 0.7rem;
    opacity: 0.3;
}

.dev-link {
    font-weight: 400;
    color: inherit;
    text-decoration: none;
}

.dev-link:hover {
    text-decoration: underline;
    opacity: 1;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand,
    .footer-social-v2 {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-social-v2 {
        flex-direction: row;
    }

    .footer-bottom-v2 {
        justify-content: center;
        text-align: center;
    }
}

/* Lead Modal Styles (Meta CAPI Support) */
.gift-card-modal {
    text-align: center;
    border: 3px solid var(--primary);
    box-shadow: 0 0 50px rgba(65, 148, 4, 0.2);
}

.gift-header .gift-emoji {
    font-size: 4rem;
    display: block;
    margin-bottom: 20px;
}

.lead-form {
    margin-top: 30px;
    text-align: left;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--secondary);
}

.input-group input {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-sm);
    border: 2px solid #eee;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.input-group input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 10px rgba(65, 148, 4, 0.1);
}

.lead-status {
    padding: 40px 0;
    animation: fadeIn 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(65, 148, 4, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.coupon-code {
    background: #f8f9fa;
    border: 2px dashed var(--primary);
    padding: 15px;
    margin: 20px 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
}

.hidden {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

@media (max-width: 600px) {
    .modal {
        padding: 0;
    }

    .modal-content {
        padding: 60px 24px;
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        border: none;
    }

    .close-modal {
        top: 20px;
        right: 20px;
    }

    .gift-header .gift-emoji {
        font-size: 4rem;
        margin-bottom: 20px;
    }

    .gift-header h2 {
        font-size: 1.8rem;
    }

    .coupon-code {
        font-size: 1.5rem;
        padding: 20px;
    }

    .full-width {
        width: 100%;
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    border: none;
    background: none;
    cursor: pointer;
}


.fun-content {
    background: var(--bg-light);
    color: var(--secondary);
}

.fun-content h2 {
    margin-bottom: 24px;
}

.modal-body p {
    margin-bottom: 16px;
    font-size: 1.1rem;
}

/* Floating Notification Bar - Dynamic and Alive */
#notification-bar {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1500;
    border: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#notification-bar.hidden {
    right: -400px;
    opacity: 0;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-emoji {
    font-size: 1.4rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

#notification-bar p {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--secondary);
    white-space: nowrap;
}

.close-float {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.close-float:hover {
    background: var(--accent);
    color: #fff;
}

/* Responsive fixes */
@media (max-width: 600px) {
    #notification-bar {
        right: 5%;
        left: 5%;
        width: 90%;
        padding: 10px 16px;
        justify-content: space-between;
    }

    #notification-bar p {
        font-size: 0.8rem;
        white-space: normal;
    }
}

.mobile-only {
    display: none;
}

/* XCase Games Section Styles */
#games {
    position: relative;
    overflow: hidden;
    background: #0d0d0d;
    color: #fff;
    padding: 80px 0;
}

#games::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
        radial-gradient(var(--primary) 1.5px, transparent 1.5px),
        linear-gradient(rgba(65, 148, 4, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(65, 148, 4, 0.1) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: 1;
    opacity: 0.4;
    transform: perspective(1000px) rotateX(45deg);
    animation: circuit-move 40s linear infinite;
}

#games::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(65, 148, 4, 0.1) 0%, transparent 70%);
    z-index: 2;
    pointer-events: none;
}

@keyframes circuit-move {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 0 800px;
    }
}

#games .container {
    position: relative;
    z-index: 10;
}

.games-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.games-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 24px;
}

.games-content>p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    line-height: 1.6;
}

.games-floating-animation {
    display: flex;
    gap: 20px;
    height: 60px;
    align-items: center;
    margin-bottom: 40px;
    padding-left: 5px;
}

.floating-icon {
    font-size: 2.2rem;
    opacity: 0.1;
    animation: float-up-fade 6s infinite ease-in-out;
    animation-delay: var(--delay);
}

@keyframes float-up-fade {
    0% {
        transform: translateY(20px) scale(0.8);
        opacity: 0;
    }

    50% {
        transform: translateY(-20px) scale(1.3);
        opacity: 0.4;
    }

    100% {
        transform: translateY(-40px) scale(0.9);
        opacity: 0;
    }
}

.games-note {
    font-weight: 700;
    color: var(--primary);
    font-style: italic;
}

/* Game Visual (Phone Preview) */
.games-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.game-preview-container {
    width: 280px;
    height: 480px;
    background: #000;
    border-radius: 40px;
    padding: 12px;
    position: relative;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.2);
    border: 8px solid #333;
}

.game-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.game-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    text-align: center;
    color: #fff;
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

.game-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 20px;
}

.roulette-spin {
    margin-bottom: 20px;
    animation: rotate 4s infinite linear;
    display: flex;
    align-items: center;
    justify-content: center;
}

.roulette-spin i,
.roulette-spin svg {
    width: 80px;
    height: 80px;
    stroke-width: 1.5;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.game-message {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.game-prize {
    font-size: 2.5rem;
    font-weight: 900;
    color: #f4e87c;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@media (min-width: 993px) {
    .games-grid {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: 60px;
        align-items: center;
    }

    .games-content {
        display: block;
    }

    .games-visual {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 40%;
    }

    .games-grid .container {
        position: relative;
    }
}

@media (max-width: 992px) {
    .games-grid {
        display: block;
        text-align: center;
    }

    .games-visual {
        margin: 40px 0;
    }

    .game-preview-container {
        width: 240px;
        height: 500px;
    }
}

@media (max-width: 600px) {
    .games-content h2 {
        font-size: 1.8rem;
    }

    .games-content>p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .games-floating-animation {
        justify-content: center;
        gap: 12px;
        margin-bottom: 30px;
        padding-left: 0;
    }

    .floating-icon {
        font-size: 1.5rem;
    }
}

#finder {
    position: relative;
    overflow: hidden;
}

.finder-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-q {
    position: absolute;
    font-size: 2rem;
    font-weight: 800;
    opacity: 0;
    animation: zoom-in-out var(--d) ease-in infinite;
}

@keyframes zoom-in-out {
    0% {
        transform: scale(0.1) rotate(-20deg);
        opacity: 0;
    }

    20% {
        opacity: 0.3;
    }

    80% {
        opacity: 0.3;
    }

    100% {
        transform: scale(4) rotate(20deg);
        opacity: 0;
    }
}

/* XCase Finder Styles - Integrated and Alive */
.finder-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.finder-header {
    text-align: center;
    margin-bottom: 40px;
}

.finder-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.finder-step.active {
    display: block;
}

.finder-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    perspective: 1000px;
    /* Base para efeito 3D */
}

.finder-opt {
    background: #fff;
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 30px 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);

    /* Animação de Giro Infinito */
    animation: floating-spin 8s infinite linear;
}

.finder-opt:hover {
    animation-play-state: paused;
    /* Para de girar ao focar */
    border-color: var(--primary);
    transform: scale(1.1) translateZ(50px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

@keyframes floating-spin {
    0% {
        transform: rotateY(0deg) translateY(0);
    }

    25% {
        transform: rotateY(10deg) translateY(-10px);
    }

    50% {
        transform: rotateY(0deg) translateY(0);
    }

    75% {
        transform: rotateY(-10deg) translateY(-10px);
    }

    100% {
        transform: rotateY(0deg) translateY(0);
    }
}

/* Diferentes delays para os cards não girarem iguais */
.finder-opt:nth-child(2) {
    animation-delay: 1s;
}

.finder-opt:nth-child(3) {
    animation-delay: 2s;
}

.finder-opt:nth-child(4) {
    animation-delay: 3s;
}

.opt-emoji {
    font-size: 3rem;
    margin-bottom: 15px;
}

.opt-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.opt-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.btn-back {
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 10px;
    transition: var(--transition);
}

.btn-back:hover {
    color: var(--accent);
}

/* Finder Results */
.finder-result {
    display: none;
    text-align: center;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.finder-result.active {
    display: block;
}

.result-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 3px solid var(--primary);
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.result-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 600px) {
    .finder-container {
        padding: 0 20px;
    }

    .finder-options {
        flex-direction: column;
        align-items: center;
    }

    .finder-opt {
        width: 100%;
        max-width: 300px;
        animation: floating-mobile 5s infinite ease-in-out;
    }

    @keyframes floating-mobile {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-10px);
        }
    }

    .result-actions {
        flex-direction: column;
    }
}

/* Scroll Animations */
.service-section,
.info-card,
.location-card,
.happy-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.social-proof-container {
    padding: 40px 0 0;
    text-align: center;
}

.customer-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-top: 60px;
}

.avatar-group {
    display: flex;
    align-items: center;
}

.avatar-group img,
.avatar-more {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 4px solid #fff;
    margin-left: -15px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.avatar-group img:first-child {
    margin-left: 0;
}

.avatar-group img:hover {
    transform: translateY(-5px);
    z-index: 10;
}

.avatar-more {
    background: var(--secondary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    position: relative;
    z-index: 5;
}

.proof-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.stars {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #ffc107;
}

.star-fill {
    fill: #ffc107;
    width: 24px;
    height: 24px;
}

.rating-number {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--secondary);
    margin-left: 12px;
}

.proof-text {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.proof-text strong {
    color: var(--primary);
}

.testimonials-viewport {
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonials-slider {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
    min-width: 100%;
    padding: 24px;
    text-align: center;
}

.testimonial-card p {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--secondary);
    margin-bottom: 12px;
}

.testimonial-card .author {
    font-weight: 700;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Responsive fixes */
@media (max-width: 992px) {
    :root {
        --header-height: 70px;
    }

    .mobile-only {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 40px;
        gap: 24px;
        transform: translateY(-150%);
        transition: var(--transition);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-content h1 {
        /* Fluid typography via clamp() handles this */
    }

    .grid-content,
    .maintenance-box,
    .sorteio-container,
    .locations-grid {
        grid-template-columns: 1fr;
    }

    .maintenance-text {
        padding: 40px 24px;
        text-align: center;
    }

    .feature-list {
        display: inline-block;
        text-align: left;
    }

    .service-section {
        padding: 60px 0;
    }
}

@media (max-width: 600px) {
    .banner-section {
        height: 100vh;
        /* Volta a ocupar a tela cheia */
        min-height: 600px;
        display: flex;
        flex-direction: column;
    }

    .slide {
        height: 100%;
        padding: 100px 0 120px;
        /* Espaço para o cabeçalho e para os dots */
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        margin-bottom: 20px;
        /* Espaço entre botões e dots */
    }

    .slider-controls {
        position: absolute;
        bottom: 20px;
        /* Posiciona os dots mais abaixo, garantindo melhor visual no mobile */
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-actions .cta-btn,
    .hero-actions .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   Easter Egg: Mainframe Mode
   ========================================================================== */

body.mainframe-mode {
    filter: invert(1) hue-rotate(180deg) brightness(0.9) contrast(1.1);
    background-color: #000 !important;
    transition: filter 1s ease;
}

body.mainframe-mode #main-header,
body.mainframe-mode #main-footer,
body.mainframe-mode section {
    border: 1px solid #0f0;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
}

body.mainframe-mode img,
body.mainframe-mode .banner-slider .slide {
    filter: sepia(1) saturate(5) hue-rotate(90deg) brightness(0.8);
}

/* Scanner Animation */
.scanner-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(transparent, #0f0, transparent);
    z-index: 100000;
    pointer-events: none;
    animation: scan-vertical 4s linear infinite;
    display: none;
    opacity: 0.7;
}

body.mainframe-mode .scanner-line {
    display: block;
}

@keyframes scan-vertical {
    0% {
        top: -5%;
    }

    100% {
        top: 105%;
    }
}

/* Diagnostic Window */
.diagnostic-overlay {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 300px;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid #0f0;
    color: #0f0;
    padding: 20px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    z-index: 100001;
    display: none;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.4);
    border-radius: 4px;
    pointer-events: none;
    text-shadow: 0 0 5px #0f0;
}

body.mainframe-mode .diagnostic-overlay {
    display: block;
    animation: slide-in-up 0.5s ease-out;
}

.diagnostic-overlay h4 {
    margin: 0 0 15px 0;
    border-bottom: 1px solid #0f0;
    padding-bottom: 8px;
    font-size: 14px;
    letter-spacing: 2px;
}

.diagnostic-overlay .log-entry {
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation: typing-line 3s steps(30, end) forwards;
}

.diagnostic-overlay .log-entry:nth-child(2) {
    animation-delay: 0.5s;
}

.diagnostic-overlay .log-entry:nth-child(3) {
    animation-delay: 1s;
}

.diagnostic-overlay .log-entry:nth-child(4) {
    animation-delay: 1.5s;
}

.diagnostic-overlay .log-entry:nth-child(5) {
    animation-delay: 2s;
}

.diagnostic-overlay .log-entry:nth-child(6) {
    animation-delay: 2.5s;
}

@keyframes typing-line {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes slide-in-up {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Accordion Gallery Showcase (Compact) */
.accordion-section {
    padding: 60px 0;
    background: var(--bg-main);
}

.accordion-gallery {
    display: flex;
    width: 100%;
    height: 400px;
    gap: 15px;
    margin-top: 30px;
}

.accordion-item {
    position: relative;
    flex: 1;
    border-radius: 30px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    filter: var(--filter, none);
}

.accordion-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 60%);
    z-index: 1;
}

.accordion-item.active,
.accordion-item:hover {
    flex: 3;
    filter: none;
}

.accordion-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 2;
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.2s;
    pointer-events: none;
}

.accordion-item.active .accordion-content,
.accordion-item:hover .accordion-content {
    opacity: 1;
    transform: translateY(0);
}

.accordion-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: 5px;
}

.section-header.minimal {
    margin-bottom: 20px;
    text-align: left;
}

@media (max-width: 768px) {
    .accordion-gallery {
        flex-direction: column;
        height: auto;
    }

    .accordion-item {
        width: 100%;
        height: 150px;
        flex: none;
    }

    .accordion-item.active,
    .accordion-item:hover {
        height: 300px;
        flex: none;
    }
}

/* Location Card Buttons */
.location-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-start;
}

.btn-map {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #4285F4;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.2);
    width: fit-content;
}

.btn-map:hover {
    background: #3367D6;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.4);
}

.btn-map i,
.btn-map svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}