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

:root {
    /* Colors */
    --primary-green: #c4ff0e;
    --dark-bg: #1a1a1a;
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --glass-bg: rgba(30, 30, 30, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    font-family: var(--font-main);
    background-color: #2a2323eb;
    background-image: url('img/fundo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
}

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo-uoon {
    height: 60px;
    width: auto;
}

.logo-plus {
    height: 40px;
    width: auto;
    opacity: 0.8;
}

.logo-fotoconect {
    height: 50px;
    width: auto;
}

/* Content Box */
.content-box {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 60px 80px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}

/* Title */
.title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-white);
    letter-spacing: -0.5px;
}

/* Subtitle */
.subtitle {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.subtitle strong {
    color: var(--text-white);
    font-weight: 600;
}

/* Info Message */
.info-message {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(196, 255, 14, 0.1);
    border: 1px solid rgba(196, 255, 14, 0.3);
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 28px;
}

.emoji {
    font-size: 20px;
}

.info-text {
    font-size: 15px;
    color: var(--primary-green);
    font-weight: 500;
}

.info-text strong {
    font-weight: 700;
}

/* Instruction */
.instruction {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-white);
    margin-bottom: 28px;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px 20px;
    color: var(--text-white);
    font-size: 15px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Error Message */
.error-message {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    color: #ff3b30;
    font-size: 14px;
    text-align: center;
}

/* Custom Select */
.custom-select {
    position: relative;
    max-width: 500px;
    margin: 0 auto 20px;
    user-select: none;
}

.select-trigger {
    width: 100%;
    padding: 16px 50px 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: var(--text-white);
    font-size: 15px;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.select-trigger-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.select-trigger-image {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
}

.select-trigger-text {
    color: var(--text-white);
}

.select-trigger:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}

.custom-select.is-open .select-trigger {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(196, 255, 14, 0.1);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.select-arrow {
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.custom-select:hover .select-arrow {
    color: var(--text-white);
}

.custom-select.is-open .select-arrow {
    transform: rotate(180deg);
    color: var(--primary-green);
}

/* Dropdown */
.select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: none;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
}

/* Dropdown para cima */
.custom-select.dropdown-up .select-dropdown {
    top: auto;
    bottom: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: none;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
    flex-direction: column-reverse;
}

.custom-select.dropdown-up.is-open .select-trigger {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.custom-select.dropdown-up .select-arrow {
    transform: rotate(180deg);
}

.custom-select.dropdown-up.is-open .select-arrow {
    transform: rotate(0deg);
}

/* Campo de pesquisa */
.select-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.custom-select.dropdown-up .select-search {
    border-bottom: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.search-icon {
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.select-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-white);
    font-size: 14px;
    font-family: var(--font-main);
    padding: 4px 0;
}

.select-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Lista de opções */
.select-options-list {
    max-height: 250px;
    overflow-y: auto;
}

.select-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.select-option:last-child {
    border-bottom: none;
}

.select-option:hover {
    background: rgba(196, 255, 14, 0.1);
}

.select-option.is-selected {
    background: rgba(196, 255, 14, 0.15);
}

.select-option-image {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
}

.select-option-text {
    color: var(--text-white);
    font-size: 15px;
    font-weight: 500;
}

.select-option:hover .select-option-text {
    color: var(--primary-green);
}

/* Sem resultados */
.select-no-results {
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Scrollbar customizado para o dropdown */
.select-options-list::-webkit-scrollbar {
    width: 8px;
}

.select-options-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.select-options-list::-webkit-scrollbar-thumb {
    background: rgba(196, 255, 14, 0.3);
    border-radius: 4px;
}

.select-options-list::-webkit-scrollbar-thumb:hover {
    background: rgba(196, 255, 14, 0.5);
}

/* CTA Button */
.cta-button {
    width: 100%;
    max-width: 500px;
    padding: 18px 32px;
    background: var(--primary-green);
    color: #000000;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(196, 255, 14, 0.3);
}

.cta-button:hover {
    background: #d4ff3e;
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(196, 255, 14, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button.disabled,
.cta-button:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    opacity: 0.5;
}

.cta-button.disabled:hover,
.cta-button:disabled:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-box {
        padding: 40px 30px;
        border-radius: 20px;
    }

    .title {
        font-size: 32px;
    }

    .subtitle {
        font-size: 14px;
    }

    .logo-uoon {
        height: 45px;
    }

    .logo-plus {
        height: 30px;
    }

    .logo-fotoconect {
        height: 38px;
    }

    .logos {
        gap: 15px;
    }

    .instruction {
        font-size: 14px;
    }

    .instruction br {
        display: none;
    }

    .select-trigger {
        padding: 14px 45px 14px 16px;
        font-size: 14px;
    }

    .select-trigger-image {
        width: 28px;
        height: 28px;
    }

    .select-search {
        padding: 10px 14px;
    }

    .select-search-input {
        font-size: 13px;
    }

    .select-options-list {
        max-height: 200px;
    }

    .select-option {
        padding: 10px 16px;
    }

    .select-option-image {
        width: 40px;
        height: 40px;
    }

    .select-option-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }

    .content-box {
        padding: 30px 20px;
    }

    .title {
        font-size: 26px;
    }

    .subtitle {
        font-size: 13px;
    }

    .info-message {
        padding: 10px 16px;
        flex-direction: column;
        text-align: center;
    }

    .info-text {
        font-size: 13px;
    }

    .cta-button {
        font-size: 14px;
        padding: 16px 28px;
    }
}