* {
    padding: 0;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #18262d;
}


/* =========================
   HEADER & NAVBAR
========================= */
header.site-header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
}

.header-container {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    padding: 14px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.logo a:hover {
    transform: scale(1.02);
    opacity: 0.95;
}

.logo img {
    height: 52px;
    max-height: 56px;
    width: auto;
    object-fit: contain;
    display: block;
}

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

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 10px;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.nav-link svg {
    opacity: 0.85;
}

/* =========================
   USER MENU & LOGIN DROPDOWN
========================= */
.user-menu-wrapper {
    position: relative;
    display: inline-block;
}

/* Botão de Entrar (Deslogado) */
.btn-login-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px solid #334155;
    color: #f8fafc;
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.btn-login-trigger:hover {
    background: linear-gradient(135deg, #334155, #1e293b);
    border-color: #10b981;
    color: #34d399;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2);
    transform: translateY(-1px);
}

/* Botão do Usuário Logado */
.btn-user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(135deg, #1e293b, #152232);
    border: 1px solid #334155;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-user-trigger:hover,
.btn-user-trigger.active {
    border-color: #38bdf8;
    background: #1e293b;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.2);
}

.user-avatar-badge {
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #10b981, #0284c7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.user-display-name {
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #f1f5f9;
}

.user-chevron {
    transition: transform 0.2s ease;
    opacity: 0.7;
}

.btn-user-trigger.active .user-chevron {
    transform: rotate(180deg);
}

/* Painel Dropdown Base */
.custom-dropdown-panel {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background: #0f172a;
    border: 1px solid #293548;
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 1050;
    animation: dropdownPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.custom-dropdown-panel.show {
    display: block;
}

@keyframes dropdownPop {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Dropdown de Login */
.login-dropdown-panel {
    width: 310px;
    padding: 20px;
}

.login-dropdown-header {
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
}

.login-dropdown-header h4 {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.login-dropdown-header p {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.4;
}

.login-form-group {
    margin-bottom: 10px;
}

.login-form-group label {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 5px;
}

.login-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-wrapper input {
    width: 100%;
    padding: 10px 12px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 9px;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.login-input-wrapper input:focus {
    border-color: #10b981;
    background: #17253b;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.login-input-wrapper input::placeholder {
    color: #64748b;
    font-size: 13px;
}

.login-status-hint {
    font-size: 11px;
    color: #64748b;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.login-status-hint.active {
    color: #38bdf8;
}

/* Extra fields no cadastro */
#extra-fields {
    display: none;
    margin-top: 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-top: 10px;
}

#extra-fields input {
    margin-bottom: 8px;
    width: 100%;
    padding: 9px 12px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    box-sizing: border-box;
    outline: none;
}

#extra-fields input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.btn-login-submit {
    width: 100%;
    padding: 11px;
    margin-top: 8px;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 9px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-login-submit:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.btn-login-submit.loading {
    background: #475569;
    cursor: not-allowed;
    opacity: 0.85;
    transform: none;
    box-shadow: none;
}

.login-error-msg {
    color: #f87171;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 7px;
    padding: 8px 10px;
    font-size: 12px;
    margin-top: 10px;
    display: none;
    line-height: 1.4;
}

/* Dropdown de Usuário Logado */
.user-dropdown-panel {
    min-width: 230px;
    padding: 8px;
}

.user-dropdown-header {
    padding: 8px 10px 10px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 6px;
}

.user-dropdown-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown-badge {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 5px;
    margin-top: 4px;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.user-dropdown-badge.admin {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.3);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.18s ease;
}

.user-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    transform: translateX(2px);
}

.user-dropdown-item.admin-item {
    color: #38bdf8;
}

.user-dropdown-item.admin-item:hover {
    background: rgba(56, 189, 248, 0.1);
    color: #7dd3fc;
}

.user-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 5px 0;
}

.user-dropdown-item.logout-item {
    color: #f87171;
}

.user-dropdown-item.logout-item:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
}

@media (max-width: 740px) {
    .header-container {
        padding: 12px 16px;
    }
    .logo img {
        height: 38px;
    }
    .user-display-name {
        max-width: 90px;
    }
    .login-dropdown-panel {
        width: 290px;
        right: -10px;
    }
    .user-dropdown-panel {
        right: -10px;
    }
}

/* Main */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    /*justify-content: center;*/
    margin-top: 46px;
    margin-bottom: 90px;
}

.main-container {
    width: 100%;
    max-width: 700px;
    /*margin: 0 auto;*/
}

.main-raffle {
    max-width: 700px;
    /*margin: 0 auto 32px auto;*/
    border: 1px solid #373737;
    border-radius: 12px;
    margin-bottom: 32px;
}

.main-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #0f172a;
    border-radius: 20px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.info {
    background-color: #152126;
    border-radius: 0 0 12px 12px;
}

.info:hover {
    background-color: #373737;
}

.info a {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    color: #f6f6f6;
    text-decoration: none;
    padding: 18px;
}

.main-description h4 {
    font-size: 16px;
    font-weight: 500;
}

.main-description p {
    font-size: 15px;
    margin-top: 4px;
    margin-bottom: 10px;
}


.available {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #038503;
    background-color: #cefae0;
    text-transform: uppercase;
    border-radius: 15px;
    /*user-select: none;*/;
    padding: 5px 16px;
    animation: available-animation 2.5s infinite;
    animation-timing-function: ease-in-out;
}

@keyframes available-animation {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.unavailable {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #850303;
    background-color: #facece;
    text-transform: uppercase;
    border-radius: 15px;
    /*user-select: none;*/;
    padding: 5px 16px;
    animation: unavailable-animation 2.5s infinite;
    animation-timing-function: ease-in-out;
}

@keyframes unavailable-animation {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}


.go-to img {
    height: 24px;
    filter: invert(100%) sepia(5%) saturate(596%) hue-rotate(213deg) brightness(113%) contrast(93%);
    /*user-select: none;*/;
}


.sc {
    border: 1px solid #373737;
    border-radius: 0;
    margin-bottom: -1px;
}

.sc:first-child {
    border-radius: 12px 12px 0 0;
}

.sc:last-child {
    border-radius: 0 0 12px 12px;
}

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

.raffle-image {
    width: 150px;
    height: 90px;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;

    background: #0f172a;

    border-radius: 12px;

    margin-right: 16px;
}

.raffle-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    display: block;
}


@media (max-width: 901px) {
    .main-description h4 {
        font-size: 14px;
    }

    .main-description p {
        font-size: 13px;
    }

    .available,
    .unavailable {
        font-size: 10px;
    }
}

@media (max-width: 550px) {
    .raffle-image img {
        margin: 0 0 16px 0;
    }

    .group-info {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Main */