/* ==========================================================================
   1. CONFIGURAÇÕES RETRO-GÓTICAS BASE & FONTES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght=700&family=Permanent+Marker&family=Share+Tech+Mono&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 1. CONFIGURAÇÕES AJUSTADAS PARA ROLAGEM E FLUIDEZ */
html, body {
    min-height: 100%;
    background-color: #000000;
}

/* 1. Ajuste no BODY para centralizar o container */
body {
    background-color: #000000;
    display: flex;
    justify-content: center;
    padding: 20px;
    min-height: 100vh;
}

/* 2. Container com tamanho fixo */
#canvas-retro {
    width: 1000px;
    min-height: 800px;
    display: grid;
    grid-template-columns: 120px 1fr 240px; 
    gap: 10px;
    background-color: #000;
}

#site-wrapper {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

::-webkit-scrollbar { 
    width: 4px; 
}
::-webkit-scrollbar-thumb { 
    background: #222; 
}
::-webkit-scrollbar-thumb:hover { 
    background: #ff0033; 
}

/* ==========================================================================
   2. COLUNA ESQUERDA: BANNER VERTICAL
   ========================================================================== */
.left-banner {
    border: 1px solid #222;
    background-color: #050505;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    overflow: hidden;
    text-decoration: none;
    transition: border-color 0.3s;
}
.left-banner:hover { border-color: #ff0033; }
.left-banner .char-img-placeholder {
    position: absolute;
    color: #222;
    font-size: 10px;
    letter-spacing: 1px;
}
.banner-text {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-30%, -50%) rotate(180deg);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: #ffffff;
    font-family: 'Nosifer';
    font-size: 62px;
    letter-spacing: 5px;
    text-shadow: 0 0 10px #b80a0a, 0 0 20px #580e0e;
    pointer-events: none;
    width: 100%;
}

/* ==========================================================================
   3. COLUNA CENTRAL: NAVBAR E MAIN WINDOW
   ========================================================================== */
.center-stage {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.navbar {
    display: flex;
    border: 1px solid #222;
    background-color: #050505;
    height: 45px;
}

.nav-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    letter-spacing: 2px;
    cursor: pointer;
    color: #666;
    border-right: 1px solid #222;
    text-transform: uppercase;
    transition: all 0.2s;
}
.nav-item:last-child { border-right: none; }
.nav-item:hover, .nav-item.active {
    color: #fff;
    background-color: #0a0a0a;
    box-shadow: inset 0 -2px 0 #ff0033;
}

#main-window {
    flex: 1;
    border: 1px solid #222;
    background-color: #050505;
    padding: 25px;
    position: relative;
    overflow-y: auto;
}

.page-content { display: none; flex-direction: column; }
.page-content.active { display: flex; }

.section-title {
    font-size: 13px;
    text-align: center;
    border-bottom: 1px dashed #222;
    padding-bottom: 8px;
    margin-bottom: 20px;
    color: #888;
    letter-spacing: 3px;
}

.home-intro {
    color: #aaa !important;
    font-size: 11px;
    line-height: 1.8;
    text-align: center;
    padding: 20px 10px;
    letter-spacing: 1px;
}

.placeholder-text {
    font-size: 11px; 
    color: #aaa; 
    text-align: center; 
    padding: 20px 0;
}

/* ==========================================================================
   4. SISTEMA DE COMISSÕES MULTI-STEP (ESTILO VGEN)
   ========================================================================== */
.vgen-layout {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 25px;
    align-items: flex-start;
}

.vgen-steps-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-right: 1px solid #111;
    padding-right: 10px;
}

.vgen-step-item {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #444;
    padding: 10px;
    cursor: default;
    transition: all 0.2s;
}

.vgen-step-item.active {
    color: #000000;
    background-color: #ffffff;
    font-weight: bold;
}

.vgen-steps-content {
    flex: 1;
}

.vgen-step-pane {
    display: none;
    flex-direction: column;
}
.vgen-step-pane.active {
    display: flex;
}

.vgen-section-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ffffff;
    margin-bottom: 20px;
    display: block;
}

.vgen-field-group {
    position: relative;
    margin-bottom: 18px;
}

.vgen-row-align {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.vgen-contact-row {
    display: flex; 
    gap: 15px; 
    margin-bottom: 5px;
}

.vgen-input-container {
    position: relative;
    flex: 1;
    margin-bottom: 15px;
}

.vgen-input-container label {
    position: absolute;
    top: -7px;
    left: 10px;
    background-color: #050505;
    padding: 0 5px;
    font-size: 9px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.vgen-select-wrapper {
    flex: 1;
    position: relative;
}
.vgen-select-wrapper label {
    position: absolute;
    top: -7px;
    left: 10px;
    background-color: #050505;
    padding: 0 5px;
    font-size: 9px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.vgen-select-wrapper select, .vgen-input-field, .vgen-textarea-field {
    width: 100%;
    background-color: #020202 !important; 
    border: 1px solid #333;
    color: #ffffff !important;
    padding: 14px 12px;
    font-family: inherit;
    font-size: 11px;
    outline: none;
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
}

.vgen-select-wrapper select option {
    background-color: #0a0a0a !important;
    color: #ffffff !important;
    padding: 10px;
}

.vgen-select-wrapper::after {
    content: '▼';
    font-size: 8px;
    color: #555;
    position: absolute;
    right: 12px;
    top: 18px;
    pointer-events: none;
}

.vgen-select-wrapper select:focus, .vgen-input-field:focus, .vgen-textarea-field:focus {
    border-color: #ffffff;
}

.vgen-textarea-container {
    position: relative;
    margin-bottom: 20px;
}
.vgen-textarea-container label {
    position: absolute;
    top: -7px;
    left: 10px;
    background-color: #050505;
    padding: 0 5px;
    font-size: 9px;
    color: #666;
    text-transform: uppercase;
    z-index: 2;
}
.vgen-textarea-field {
    resize: none;
    min-height: 90px;
}

.vgen-subtext {
    font-size: 9px;
    color: #444;
    margin-top: 4px;
    display: block;
    letter-spacing: 0.5px;
}

.vgen-input-desc {
    font-size: 10px;
    color: #555;
    margin-top: 5px;
    line-height: 1.4;
}

.vgen-price-tag {
    font-size: 12px;
    color: #888;
    font-weight: bold;
    white-space: nowrap;
}

.vgen-divider {
    border: none;
    border-bottom: 1px solid #141414;
    margin: 20px 0;
}

#vgen-size-area, #vgen-addons-area { display: none; }

.vgen-addons-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vgen-addon-card {
    width: 100%;
    max-width: 320px;
    background-color: #090909;
    border: 1px solid #1c1c1c;
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    cursor: pointer;
    transition: border-color 0.2s;
}
.vgen-addon-card:hover { border-color: #333; }
.vgen-addon-card.selected { border-color: #ff0033; }
.vgen-addon-info h4 { font-size: 11px; text-transform: uppercase; color: #ffffff; margin-bottom: 4px; }
.vgen-addon-info p { font-size: 10px; color: #555; margin-bottom: 8px; }
.vgen-addon-badge { display: inline-block; background-color: #ffffff; color: #000000; font-size: 9px; font-weight: bold; padding: 4px 8px; border-radius: 20px; }

.vgen-checkbox-dummy {
    width: 14px;
    height: 14px;
    border: 1px solid #444;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.vgen-addon-card.selected .vgen-checkbox-dummy { background-color: #ff0033; border-color: #ff0033; }
.vgen-addon-card.selected .vgen-checkbox-dummy::after { content: '✓'; font-size: 9px; color: #ffffff; }

.vgen-placeholder-text-small {
    font-size: 11px; 
    color: #555; 
    padding: 5px 0;
}

.vgen-total-section { margin-top: 25px; }
.vgen-total-section h3 { font-size: 12px; color: #666; font-weight: normal; margin-bottom: 5px; }
.vgen-total-price { font-size: 24px; color: #ffffff; font-weight: bold; }

.vgen-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.vgen-btn {
    background: none;
    border: 1px solid #222;
    color: #444;
    padding: 8px 24px;
    font-family: inherit;
    font-size: 10px;
    text-transform: uppercase;
    cursor: not-allowed;
    border-radius: 20px;
    font-weight: bold;
    transition: all 0.2s;
}

.vgen-btn.active-btn {
    border-color: #ffffff;
    color: #ffffff;
    cursor: pointer;
}
.vgen-btn.active-btn:hover {
    background-color: #ffffff;
    color: #000000;
}

/* ==========================================================================
   5. OUTROS SUBSISTEMAS (GALERIA E AFINS)
   ========================================================================== */
.gallery-container { display: grid; grid-template-columns: 1fr 65px; gap: 10px; height: 100%; }
.gallery-stage { border: 1px solid #222; background-color: #020202; display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; padding: 10px; min-height: 380px; }
.gallery-stage img { max-width: 100%; max-height: 320px; object-fit: contain; }
.gallery-filters-sub { position: absolute; bottom: 12px; left: 20px; display: flex; gap: 15px; font-size: 11px; }
.gallery-filters-sub span { cursor: pointer; color: #444; }
.gallery-filters-sub span.active, .gallery-filters-sub span:hover { color: #ffffff; }
.gallery-thumbs-vertical { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; max-height: 380px; }
.v-thumb { width: 100%; height: 55px; background-color: #0a0a0a; border: 1px solid #222; cursor: pointer; opacity: 0.3; flex-shrink: 0; background-size: cover; background-position: center; background-repeat: no-repeat; }
.v-thumb.active, .v-thumb:hover { opacity: 1; border-color: #ffffff; }

.contact-channels {
    margin-top: 15px; 
    display: flex; 
    flex-direction: column; 
    gap: 8px;
}
.channel-box {
    border: 1px dashed #222; 
    padding: 10px; 
    font-size: 11px; 
    color: #aaa;
}

.channel-box a {
    color: inherit;
    text-decoration: none;
}

.sidebar-widgets { display: flex; flex-direction: column; gap: 10px; }
.widget-box { border: 1px solid #222; background-color: #050505; padding: 12px; }
.widget-title { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; border-bottom: 1px solid #222; padding-bottom: 4px; margin-bottom: 10px; color: #555; }
.profile-widget { display: flex; gap: 10px; align-items: center; }
.profile-avatar { width: 40px; height: 40px; background-color: #111; border: 1px solid #222; background-image: url('imagens/pfp.jpg'); background-size: cover; background-position: center; }
.profile-info { font-size: 11px; }
.profile-info span { display: block; color: #444; font-size: 9px; }
.social-grid-2x2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.social-link { font-size: 11px; color: #888; text-decoration: none; text-transform: uppercase; letter-spacing: 1px; }
.social-link:hover { color: #ff0033; }
.shop-widget-link { display: block; font-size: 11px; color: #ff0033; text-decoration: none; text-transform: uppercase; letter-spacing: 1px; }
.queue-box { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.queue-items-container { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.queue-slot { border: 1px dashed #222; background-color: #020202; padding: 10px; font-size: 11px; }
.queue-slot .slot-title { color: #aaa; margin-bottom: 3px; display: flex; justify-content: space-between; }
.queue-slot .slot-status { font-size: 9px; color: #ff0033; text-transform: uppercase; }

.wip-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

.wip-text {
    font-family: 'Permanent Marker', cursive;
    font-size: 3rem;
    color: #ff0033;
    text-shadow: 0 0 10px #ff0033, 0 0 20px #ff0033;
    animation: blink-neon 1.5s infinite alternate;
}

@keyframes blink-neon {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}