:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --text-muted: #888888;
    --border-color: #333333;
    --hover-bg: #ffffff;
    --hover-text: #000000;
    --accent-color: rgb(50, 230, 226);
    --hero-bg: #1a1a1a;
}

body {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 500px;
    width: calc(100% / 1.1); /* Compensação matemática para a escala de 1.1x não quebrar as margens laterais */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(1.1);
    transform-origin: top center;
    margin-bottom: 50px; /* Previne que o conteúdo escalado fique cortado no fundo */
}

/* ── Hero Banner ── */
.hero-banner {
    width: 100%;
    height: 120px;
    background-color: #061119;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 16px 16px; /* Diminui os quadrados */
    border-radius: 12px 12px 0 0;
    position: relative;
    animation: gridMove 15s linear infinite; /* Animação suave e linear */
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 32px 32px; } /* Deslocamento na diagonal (múltiplo perfeito de 16px para não haver saltos) */
}

/* ── Header ── */
header {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
}

.avatar {
    margin-top: -35px; /* Overlaps the hero banner */
    margin-bottom: 12px;
}

.profile-picture {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: block;
    background-color: var(--bg-color);
    /* The border acts as a cut-out over the banner */
    border: 6px solid var(--bg-color);
}

header h1 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

header .subtitle {
    margin: 0;
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ── Social Row ── */
.social-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.social-row a {
    color: var(--text-muted);
    transition: color 0.2s ease, transform 0.2s ease;
    display: flex;
}

.social-row a:hover {
    color: var(--text-color);
    /* transform: scale(1.05); (Removed to match layers.to flat feel, or can be kept) */
}

.social-row svg {
    width: 20px;
    height: 20px;
}

/* ── Main Buttons ── */
.buttons-row {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-bottom: 32px;
}

.link-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px; /* Slightly rounder like layers.to */
    box-sizing: border-box;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.btn-primary {
    background-color: var(--text-color);
    color: var(--bg-color);
    border: 1px solid var(--text-color);
}

.btn-primary:hover {
    opacity: 0.9;
}

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

.btn-secondary:hover {
    background-color: #111;
    border-color: #444;
}

.button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* ── Tabs Nav ── */
.tabs-nav {
    display: flex;
    width: 100%;
    gap: 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
    justify-content: center;
}

.tab-button {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0 0 12px 0;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
    font-family: inherit;
}

.tab-button:hover {
    color: var(--text-color);
}

.tab-button.active {
    color: var(--text-color);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
}

/* ── Tab Contents ── */
.tab-contents {
    width: 100%;
}

.tab-pane {
    display: none;
    width: 100%;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

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

.tab-placeholder {
    font-size: 13px;
    color: var(--text-muted);
    padding: 40px 20px;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    line-height: 1.5;
}

/* ── Feed Section ── */
behold-widget {
    --bhld-gap: 8px !important; /* Reduz o espaçamento entre as imagens do feed */
}

/* ── Store Grid ── */
.store-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px; /* Match behold gap */
    width: 100%;
}

.store-item {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background-color: var(--border-color);
}

.store-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Ponto de foco principal */
    transform: scale(1.15); /* Aumenta a imagem 15% para esconder as bordas brancas embutidas no GIF */
    transition: transform 0.3s ease;
}

.store-item:hover img {
    transform: scale(1.22); /* Continua a ter um pequeno zoom ao passar o rato */
}

/* ── Toast ── */
.toast {
    visibility: hidden;
    min-width: 150px;
    background-color: var(--hover-bg);
    color: var(--hover-text);
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    border-radius: 4px;
    padding: 12px;
    position: fixed;
    z-index: 2000;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

.toast.show {
    visibility: visible;
    opacity: 1;
}

/* ── Modal & Form ── */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #061119;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    padding: 32px 24px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    text-align: left;
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: var(--text-color);
}

.carousel-slide {
    display: none;
    animation: fadeIn 0.3s ease;
}

.carousel-slide.active {
    display: block;
}

.form-header {
    margin-bottom: 24px;
}

.form-header h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
}

.form-header p {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 12px;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
}

.radio-group, .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label, .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    cursor: pointer;
    line-height: 1.4;
}

.radio-label input, .checkbox-label input {
    margin-top: 2px;
    accent-color: var(--accent-color);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    gap: 12px;
}

.btn-nav {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    font-family: inherit;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-prev {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-next, .btn-submit {
    background: var(--text-color);
    color: var(--bg-color);
    border: none;
}

.btn-nav:hover {
    opacity: 0.8;
}

.btn-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Validation UI */
.error-blink {
    animation: blinkRed 0.6s ease;
}
@keyframes blinkRed {
    0% { border-color: var(--accent-color); background-color: rgba(11, 252, 114, 0.1); }
    50% { border-color: #ff4444; background-color: rgba(255, 68, 68, 0.1); }
    100% { border-color: var(--border-color); background-color: transparent; }
}

.toast-validation {
    visibility: hidden;
    min-width: 150px;
    background-color: #ff4444;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    border-radius: 4px;
    padding: 8px 16px;
    position: absolute;
    z-index: 2000;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}
.toast-validation.show {
    visibility: visible;
    opacity: 1;
}

/* Project Type Grid */
.project-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.type-card {
    display: block;
    cursor: pointer;
}
.type-card input {
    display: none;
}
.card-content {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.02);
}
.type-card input:checked + .card-content {
    border-color: var(--accent-color);
    background: rgba(11, 252, 114, 0.05);
}
.card-content h4 {
    margin: 12px 0 0 0;
    font-size: 15px;
}

/* CSS Animations for Cards */
.anim-site {
    width: 60px;
    height: 40px;
    border: 3px solid var(--text-color);
    border-radius: 6px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}
.anim-site::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 12px;
    background: var(--text-color);
}
.anim-site::before {
    content: '';
    position: absolute;
    top: 16px; left: 10%; width: 80%; height: 40px;
    background: var(--accent-color);
    border-radius: 4px;
    animation: scrollSite 2s infinite ease-in-out alternate;
}
@keyframes scrollSite {
    0% { transform: translateY(0); }
    100% { transform: translateY(-30px); }
}

.anim-app {
    width: 30px;
    height: 50px;
    border: 3px solid var(--text-color);
    border-radius: 8px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.anim-app::after {
    content: '';
    position: absolute;
    top: 2px; width: 10px; height: 3px;
    background: var(--text-color);
    border-radius: 3px;
}
.anim-app::before {
    content: '';
    width: 20px; height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: popApp 2s infinite ease-in-out;
}
@keyframes popApp {
    0%, 100% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1); opacity: 1; }
}

.type-card-small {
    display: block;
    text-align: center;
    cursor: pointer;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 8px;
    transition: all 0.2s;
    font-size: 14px;
}
.type-card-small input {
    display: none;
}
.type-card-small input:checked + span {
    color: var(--accent-color);
    font-weight: 600;
}
.type-card-small:hover {
    border-color: var(--text-color);
}

.transparency-notice {
    background: rgba(255,255,255,0.05);
    border-left: 4px solid var(--accent-color);
    padding: 16px;
    font-size: 13px;
    border-radius: 4px;
    margin-bottom: 24px;
    line-height: 1.5;
}

#checkout-summary {
    background: rgba(11, 252, 114, 0.05);
    border: 1px solid var(--accent-color);
    padding: 20px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,0.2);
    border-top-color: var(--bg-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

.loading-active {
    background: var(--accent-color) !important;
    color: #000 !important;
    pointer-events: none;
}

/* Hide standard asterisk to apply custom logic */
.form-group label {
    font-weight: 500;
}

/* Checkout Modern Box */
.checkout-modern-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-top: 16px;
}
.checkout-total {
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.checkout-total span {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.checkout-total h2 {
    font-size: 36px;
    color: var(--accent-color);
    margin: 8px 0 0 0;
}
.checkout-perks {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 15px;
    line-height: 2;
    color: var(--text-color);
}
.checkout-perks li {
    display: flex;
    align-items: center;
    gap: 8px;
}


.card-content {
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Validation Toast */
.toast-validation {
    z-index: 9999 !important;
}

/* Large Clickable Options for Mobile */
.radio-group, .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.radio-label, .checkbox-label {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(255,255,255,0.02);
    font-size: 15px;
    font-weight: 500;
}
.radio-label:hover, .checkbox-label:hover {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.05);
}
.radio-label input, .checkbox-label input {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    accent-color: var(--accent-color);
}
.radio-label:has(input:checked), .checkbox-label:has(input:checked) {
    border-color: var(--accent-color);
    background: rgba(11, 252, 114, 0.05);
}

/* Collapsible Transparency Notice */
.transparency-details {
    background: rgba(255,255,255,0.05);
    border-left: 4px solid var(--accent-color);
    border-radius: 4px;
    margin-bottom: 24px;
}
.transparency-details summary {
    padding: 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.transparency-details summary::-webkit-details-marker {
    display: none;
}
.transparency-details summary::after {
    content: '+';
    font-size: 18px;
    color: var(--accent-color);
}
.transparency-details[open] summary::after {
    content: '-';
}
.transparency-details p {
    padding: 0 16px 16px 16px;
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
}

/* Animated Success Emoji */
@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}
.animated-success {
    display: inline-block;
    width: 64px;
    height: 64px;
    background-color: var(--accent-color);
    border-radius: 16px;
    position: relative;
    animation: successPulse 2s infinite ease-in-out;
}
.animated-success::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%) rotate(45deg);
    width: 16px;
    height: 28px;
    border: solid #061119;
    border-width: 0 4px 4px 0;
}

.btn-submit {
    justify-content: center !important;
}

/* Animated Error X */
@keyframes errorPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}
.animated-error {
    display: inline-block;
    width: 64px;
    height: 64px;
    background-color: #ff4444;
    border-radius: 16px;
    position: relative;
    animation: errorPulse 2s infinite ease-in-out;
}
.animated-error::before, .animated-error::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 4px;
    background-color: #061119;
    border-radius: 2px;
}
.animated-error::before {
    transform: translate(-50%, -50%) rotate(45deg);
}
.animated-error::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Payment Popup Simulation */
.mock-payment-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.mock-payment-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.mock-payment-box {
    background: #061119;
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    text-align: center;
}
.mock-payment-box h3 { margin-top: 0; margin-bottom: 24px; color: white; }
.mock-payment-box p { color: var(--text-muted); margin-bottom: 24px; }
.mock-btn-pay { background: #635bff; color: white; border: none; padding: 12px; width: 100%; border-radius: 8px; font-weight: bold; cursor: pointer; margin-bottom: 12px; }
.mock-btn-cancel { background: transparent; color: #ff4444; border: 1px solid #ff4444; padding: 12px; width: 100%; border-radius: 8px; font-weight: bold; cursor: pointer; }
.toast-validation {
    top: auto !important;
    bottom: 24px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 10001 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    border-radius: 8px;
    font-size: 14px;
    padding: 12px 24px;
}

/* ── Project Preview Modal ── */
.preview-modal-content {
    padding: 0;
    max-width: 800px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-color);
}

.preview-modal-content .close-modal {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    font-size: 20px;
}

.preview-gallery {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.preview-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.preview-spinner {
    border-top-color: var(--accent-color);
}

.store-item.project-trigger {
    cursor: pointer;
}

.store-item.project-trigger video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.store-item.project-trigger:hover video {
    transform: scale(1.1);
}

/* Fix: Força scroll vertical e organização em coluna no Preview */
.preview-gallery { display: flex !important; flex-direction: column !important; overflow-y: auto !important; overflow-x: hidden !important; gap: 24px !important; align-items: center !important; }
.preview-modal-content { width: 90vw !important; max-width: 800px !important; }
.preview-image { width: 100% !important; height: auto !important; object-fit: contain !important; border-radius: 8px; }


/* Ícones dos botões Próximo / Voltar */
.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}
.nav-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}
.btn-next:hover .nav-icon {
    transform: translateX(4px);
}
.btn-prev:hover .nav-icon {
    transform: translateX(-4px);
}
.mock-btn-cancel:hover .nav-icon {
    transform: translateX(-4px);
}

.btn-next { background: #38BDF8 !important; color: #fff !important; border: none !important; }
.btn-next:hover { background: #0EA5E9 !important; opacity: 1 !important; }
