/* =========================================
   PINHUBS - Landing Page
   Design: Minimalist, Premium, Mobile-first
   References: Airbnb, Stripe, Notion
========================================= */

:root {
    /* Colors - Pinhubs Institucional */
    --white: #FFFFFF;
    --bg-light: #F2E5D3;
    /* Bege Areia/Papel (Fundo Principal) */
    --bg-dark: #1A1A1A;
    /* Alto contraste dark */
    --bg-dark-section: #2a2a2a;
    --bg-dark-card: #202020;

    --text-primary-light: #000000;
    --text-primary-dark: #F2E5D3;
    --text-muted-dark: #A8A39C;
    /* Cinza Quente/Taupe */
    --text-muted-light: #A8A39C;

    --gray-50: #F1E4D3;
    /* Variação Bege suave */
    --gray-100: #E5E7EB;
    --gray-400: #595551;
    /* Cinza Quente Escuro para textos secundários */
    --gray-light-border: rgba(168, 163, 156, 0.3);
    --gray-border: rgba(168, 163, 156, 0.5);
    --gray-800: #1a1a1a;
    --black: #000000;

    /* Brand Colors */
    --accent: #CB3D04;
    /* Laranja Terracota (Pin Accent) */
    --accent-hover: #b03302;
    --accent-light: rgba(203, 61, 4, 0.1);
    --success: #1B7A4E;
    --accent-asterisk: #CB3D04;

    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    /* Dumondi substitute */
    --font-body: 'Thasadith', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
    --shadow-accent: 0 8px 24px rgba(206, 60, 2, 0.25);

    /* Rhythm / Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    --space-8: 4rem;
    --space-12: 6rem;

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
}

/* =========================================
   RESET & BASE
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.125rem;
    /* Base font size slightly larger for Thasadith */
    color: var(--black);
    background-color: var(--bg-light);
    /* Changed to use the warm sand base */
    line-height: 1.6;
    overflow-x: hidden;
}

img,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* =========================================
   TYPOGRAPHY
========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.05em;
    color: var(--black);
}

.hero-headline {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 300;
    letter-spacing: -0.05em;
    margin-bottom: var(--space-4);
}

.hero-subheadline {
    font-size: clamp(1.125rem, 2vw, 1.35rem);
    color: var(--gray-400);
    max-width: 800px;
    margin-bottom: var(--space-4);
    line-height: 1.5;
}

.hero-highlight {
    font-size: clamp(1.125rem, 2vw, 1.35rem);
    font-weight: 500;
    color: var(--black);
    margin-bottom: var(--space-6);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    margin-bottom: var(--space-4);
    letter-spacing: -0.05em;
}

.section-text {
    font-size: 1.125rem;
    color: var(--gray-400);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: -0.05em;
    margin-bottom: var(--space-2);
}

.card-text {
    font-size: 1rem;
    color: var(--gray-400);
}

/* Helpers */
.text-center {
    text-align: center;
}

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

.text-muted {
    color: var(--gray-400);
}

.bg-dark .text-muted,
.bg-dark .footer-text {
    color: var(--text-muted-dark);
}

.text-dark {
    color: var(--black);
}

.fw-400 {
    font-weight: 400;
}

.fw-500 {
    font-weight: 500;
}

.fw-600 {
    font-weight: 600;
}

.block {
    display: block;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-1 {
    margin-bottom: var(--space-1);
}

.mb-2 {
    margin-bottom: var(--space-2);
}

.mb-3 {
    margin-bottom: var(--space-3);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-5 {
    margin-bottom: var(--space-5);
}

.mt-2 {
    margin-top: var(--space-2);
}

.mt-3 {
    margin-top: var(--space-3);
}

.mt-4 {
    margin-top: var(--space-4);
}

.mt-5 {
    margin-top: var(--space-5);
}

.pt-4 {
    padding-top: var(--space-4);
}

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

.bg-gray {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--bg-dark);
    color: var(--white);
}

.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark .footer-title {
    color: var(--white);
}

/* =========================================
   LAYOUT
========================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.section {
    padding: var(--space-8) 0;
}

@media (min-width: 768px) {
    .section {
        padding: var(--space-12) 0;
    }
}

.grid {
    display: grid;
    gap: var(--space-4);
}

.grid-2 {
    grid-template-columns: 1fr;
}

.grid-3 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-5);
    }
}

/* =========================================
   COMPONENTS
========================================= */

/* Top Badge */
.top-badge {
    background-color: var(--black);
    color: var(--white);
    text-align: center;
    padding: 10px var(--space-4);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.01em;
}

/* Navbar Large (Logo) */
.navbar-large {
    padding: var(--space-5) 0 0;
    width: 100%;
    background-color: transparent;
    text-align: center;
}

.logo-card {
    background-color: var(--white);
    padding: var(--space-4) var(--space-6);
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--gray-light-border);
    display: inline-block;
    margin: 0 auto;
    position: relative;
}

.logo-card::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10%;
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: 3px;
    opacity: 0.8;
}

.brand-logo-large {
    display: block;
    height: 140px;
    width: auto;
    margin: 0 auto;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
    opacity: 0.8;
}

@keyframes pulse {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: scale(1.05);
    box-shadow: 0 10px 28px rgba(206, 60, 2, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--black);
    border: 1px solid var(--gray-border);
}

.btn-secondary:hover {
    background-color: var(--gray-50);
    border-color: var(--black);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1rem;
    border-radius: 9999px;
}

.btn-block {
    width: 100%;
}

/* Badges & Highlights */
.badge-accent {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--accent-light);
    color: var(--accent);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.highlight-box {
    display: inline-block;
    padding: var(--space-3) var(--space-5);
    background-color: var(--gray-50);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--black);
}

/* Concept Flow (Cause & Consequence) */
.concept-flow {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
    margin: var(--space-6) auto;
    max-width: 900px;
}

@media (min-width: 768px) {
    .concept-flow {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: var(--space-5);
    }
}

.concept-step {
    flex: 1;
    width: 100%;
}

.concept-card {
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cause-card {
    background-color: var(--white);
    border: 1px solid var(--gray-light-border);
    box-shadow: var(--shadow-sm);
}

.consequence-card {
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(206, 60, 2, 0.2);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.consequence-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.consequence-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
}

.concept-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background-color: var(--gray-50);
    color: var(--gray-800);
}

.concept-icon.accent {
    background-color: var(--accent-light);
    color: var(--accent);
}

.concept-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transform: rotate(90deg);
    padding: var(--space-2);
}

@media (min-width: 768px) {
    .concept-connector {
        transform: rotate(0);
        padding: 0;
    }
}

/* Cards */
.card {
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-light-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-minimal {
    border: none;
    box-shadow: none;
    background: transparent;
    padding: var(--space-4);
    text-align: center;
}

.card-minimal .card-icon {
    width: 48px;
    height: 48px;
    background-color: var(--gray-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-3) auto;
    color: var(--black);
}

.featured-card {
    position: relative;
    box-shadow: var(--shadow-md);
}

.featured-card.gradient-border {
    border: 1px solid var(--accent);
    background: linear-gradient(#fff, #fff) padding-box,
        linear-gradient(to bottom, rgba(255, 107, 44, 0.3), rgba(255, 107, 44, 0.05)) border-box;
    border-color: transparent;
}


/* =========================================
   SECTIONS
========================================= */

/* Hero */
.hero {
    padding: 12vh 0 8vh;
    overflow: hidden;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--white);
    border-radius: 50% 50% 0 0 / 100px 100px 0 0;
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

@media (min-width: 640px) {
    .hero-ctas {
        flex-direction: row;
    }
}

/* Honeycomb / Colmeia Grid */
.honeycomb-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: var(--space-8);
    position: relative;
    z-index: 2;
}

.hex {
    width: clamp(150px, 30vw, 260px);
    aspect-ratio: 1 / 1.1547;
    /* Standard hexagon ratio */
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
}

.hex:hover {
    transform: scale(1.03) translateY(-5px);
}

.hex img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hex-accent {
    background-color: var(--accent);
}

/* Stats */
.stats-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    max-width: 600px;
    margin: var(--space-5) auto;
}

@media (min-width: 640px) {
    .stats-container {
        flex-direction: row;
        justify-content: center;
        gap: var(--space-6);
    }
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: 1.125rem;
    color: var(--gray-400);
    font-weight: 500;
}

.stat-divider {
    display: none;
    width: 1px;
    height: 60px;
    background-color: var(--gray-border);
}

@media (min-width: 640px) {
    .stat-divider {
        display: block;
    }
}

/* Radar (Map Placeholder) */
.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-5) 0;
}

.radar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--accent-light);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar::before,
.radar::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--accent);
    opacity: 0;
}

.radar::before {
    width: 40px;
    height: 40px;
    animation: radar-wave 3s infinite linear;
}

.radar::after {
    width: 40px;
    height: 40px;
    animation: radar-wave 3s infinite linear;
    animation-delay: 1.5s;
}

@keyframes radar-wave {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(3.5);
        opacity: 0;
    }
}

/* Benefits */
.benefits {
    position: relative;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3);
    font-size: 1.125rem;
    font-weight: 500;
}

.check-icon-wrapper {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background-color: var(--accent);
    /* Pin Point */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
    box-shadow: 0 0 0 4px var(--accent-light);
}

.check-icon {
    display: none;
    /* Removed check mark, focusing on the Pin itself */
}

/* Marker Cluster Styles */
.custom-cluster-icon {
    background: transparent;
    border: none;
    transition: transform 0.2s ease;
}
.custom-cluster-icon:hover {
    transform: scale(1.1) translateY(-3px);
}
.cluster-badge-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: #4B5563; /* Dark gray */
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: 12px;
    padding: 2px 6px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Forms */
.form-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-5);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--gray-light-border);
}

@media (min-width: 768px) {
    .form-wrapper {
        padding: var(--space-8);
    }
}

.form-grid {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: 1fr;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

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

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

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

.form-navigation {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-5);
}

.form-navigation.end {
    justify-content: flex-end;
}

.form-navigation.between {
    justify-content: space-between;
}

@media (min-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .form-group.full-width {
        grid-column: 1 / -1;
    }
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-800);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    color: var(--black);
    background-color: var(--white);
    transition: all 0.2s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.select-wrapper {
    position: relative;
}

/* ==========================================================================
   9. MAP STYLES
   ========================================================================== */
.custom-pin {
    filter: drop-shadow(0 4px 6px rgba(255, 107, 44, 0.3));
    transition: transform 0.2s ease;
}

.custom-pin:hover {
    transform: scale(1.1);
}

.leaflet-popup-content-wrapper {
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-md) !important;
    padding: 0 !important;
}

.leaflet-popup-content {
    margin: 12px 16px !important;
}

.leaflet-popup-tip {
    box-shadow: none !important;
}

.select-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--gray-800);
    pointer-events: none;
}

.separator-top {
    border-top: 1px solid var(--gray-border);
}

.microcopy-help {
    display: block;
    font-size: 0.85rem;
    margin-top: 6px;
}

/* Custom Checkbox */
.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 640px) {
    .checkbox-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    user-select: none;
}

.checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: 4px;
    margin-right: 12px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.checkbox-label:hover input~.custom-checkbox {
    border-color: var(--accent);
}

.checkbox-label input:checked~.custom-checkbox {
    background-color: var(--accent);
    border-color: var(--accent);
}

.custom-checkbox:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input:checked~.custom-checkbox:after {
    display: block;
}

/* Footer */
.footer {
    padding: var(--space-8) 0 var(--space-4) 0;
}

.footer-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: var(--space-3);
}

.footer-text {
    font-size: 1.125rem;
    color: var(--gray-border);
}

.footer-badge {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-4);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
}
/* =========================================
   EASTER EGGS GLOBALS
========================================= */
.ee-flip-container {
    perspective: 1000px;
    position: relative;
    z-index: 50;
}

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

.ee-flip-inner.flipped {
    transform: rotateY(180deg);
}

.ee-flip-front, .ee-flip-back {
    position: relative;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.ee-flip-front {
    /* Safari 3D Leakage Fix: delay opacity restore until flipped past 90deg */
    transition: opacity 0.1s ease-in-out 0.2s, visibility 0s 0.2s;
    opacity: 1;
    visibility: visible;
}

.ee-flip-inner.flipped .ee-flip-front {
    /* Safari 3D Leakage Fix: hide front map at 90deg to prevent bleed-through on iOS */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s ease-in-out 0.15s, visibility 0s 0.25s;
}

.ee-flip-back {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotateY(180deg);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--gray-light-border);
    background-color: var(--black);
}

/* Regra Global: Aparição (3s) -> Treme (1s antes de sumir) -> Some (5s) => Ciclo de 8s */
@keyframes eeCycle {
    0%, 25% { opacity: 1; transform: scale(1) rotate(0deg); pointer-events: auto; }
    /* Tremer (shake) por 1s (25% a 37.5%) */
    26%, 30%, 34% { opacity: 1; transform: scale(1.1) rotate(8deg); pointer-events: auto; }
    28%, 32%, 36% { opacity: 1; transform: scale(1.1) rotate(-8deg); pointer-events: auto;}
    37.5% { opacity: 1; transform: scale(1.1) rotate(0deg); pointer-events: auto;}
    /* Some */
    38%, 99% { opacity: 0; transform: scale(0.5) rotate(0deg); pointer-events: none; }
    100% { opacity: 1; transform: scale(1) rotate(0deg); pointer-events: auto; }
}

.ee-icon {
    position: absolute;
    cursor: pointer;
    z-index: 100;
    animation: eeCycle 8s infinite;
    transition: opacity 0.3s ease;
    /* Tamanho mobile first */
    width: 55px;
    height: auto;
}

/* EE 1 Specifics */
#ee1-icon {
    top: -15px;
    right: -15px;
}

/* EE 2 Specifics */
#ee2-icon {
    top: -15px;
    left: -15px;
}

@media (min-width: 768px) {
    .ee-icon {
        width: 70px;
    }
    #ee1-icon {
        top: -20px;
        right: -20px;
    }
    #ee2-icon {
        top: -20px;
        left: -20px;
    }
}
