.index-head {
    display: flex;
    gap: 24px;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    justify-content: space-between;
    align-items: stretch;
    height: 560px;
}

.index-logo {
    scale: 2;
    image-rendering: pixelated;
    position: relative;
    z-index: 2;
    margin: 40px 80px;
    background: var(--body-bg);
    border-radius: 10px;
    padding: 6px;
    height:60px;
}

.index-left {
    position: relative;
    width: 100%;
    height: 100%;
}

.index-left-bg {
    position: absolute;
    inset: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 500px;
    background-image: url(/assets/img/index/index_1.png);
    background-size: cover;
    background-position: center;
    z-index: 1;
    opacity: 0.6;
    border-radius: 14px;
    margin-top: 57px;
    transition: opacity 0.8s ease;
}

.bubble-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 40px 0;
    position: absolute;
    z-index: 10;
    margin-top: 80px;
}

.bubble-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 24px 34px;
    border-radius: 22px;
    max-width: 520px;
    text-align: center;
    font-size: 18px;
    line-height: 1.6;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.index-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.index-button-navigation {
    height: 39px;
    width: 90px;
    margin-left: auto;
    margin-right: 0;
    background: url(/assets/img/logo/logo_habboworld_header.png);

    &:hover {
        opacity: 0.7;
        cursor: pointer;
    }
}

.index-box-login {
    height: 500px;
    width: 400px;
    background: #151a23;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    padding: 18px;
    gap: 20px;
}

.index-box-login-title {
    all: unset;
    font-size: 22px;
}

.index-box-login-button-register {
    height: 60px;
    border-radius: 14px;
    background: #0095F6;
    font-size: 24px;
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;

    &:hover {
        opacity: 0.7;
        cursor: pointer;
    }
}

.index-box-login-bar {
    width: 100%;
    height: 1px;
    background: #B4B4B4;
}

.index-box-login-text {
    font-size: 19px;
}

.indexPseudo {
    height: 52px;
    border-radius: 14px;
    border: 1px solid #CBCBCB;
    display: flex;
}

.indexPseudoIcon {
    background: center -12px no-repeat url(https://www.habbo.com/habbo-imaging/avatarimage?figure=hr-3260-1427.cc-3405-73-66.hd-180-1.ha-3129-100.fa-1206-1427.lg-285-73.sh-290-92&direction=2&head_direction=2&headonly=1);
    width: 50px;
    height: 40px;
    padding: 8px 15px;
}

.indexInput {
    border: 0;
    background: 0 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    padding: 8px;
    font-size: 19px;
    font-family: 'Ubuntu X', sans-serif !important;
    color: white;
    margin: auto;

    &:focus {
        outline: none;
    }
}

.indexPassword {
    height: 22px;
    color: #818181;
    font-size: 14px;
    text-decoration-line: underline;

    &:hover {
        cursor: pointer;
    }
}

.index-button-login {
    font-size: 24px;
    height: 60px;
    background: #00E07D;
    border-radius: 13px;
    color: #FFF;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    &:hover {
        opacity: 0.7;
        cursor: pointer;
    }
}

.indexPasswordIcon {
    width: 50px;
    height: 40px;
    padding: 8px 12px;
    background-size: contain;
    image-rendering: pixelated;
}

.index-button-news-box {
    margin-top: 20px;
    max-width: 1300px;
    width: 100%;
    background: #151a23;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    padding: 18px;
    gap: 15px;
}

.index-button-news-title {
    margin-left: 8px;
    font-size: 22px;
}

.index-button-news-box-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.index-news-bubble {
    position: relative;
    width: calc(32%);
    height: 135px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.index-news-bubble-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 17px;
    padding: 15px;
    text-align: center;
    z-index: 1;
}

@media (max-width: 768px) {
    .index-head {
        flex-direction: column;
        align-items: center;
    }
    .index-logo {
        margin-top: 0;
    }

    .index-box-login {
        width: 100%;
    }

    .index-news-bubble {
        width: 100%;
    }
}

.modal-global {
    position: fixed;
    inset: 0;
    background: #000a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5000;
}

.hidden { display: none; }

.modal-box {
    width: 600px;
    background: var(--box-color);
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
    overflow: auto;
    max-height: 680px;
    border: 2px solid var(--border-color);
}

.modal-header {
    background: var(--body-bg);
    color: #fff;
    padding: 16px 20px;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close-btn {
    background: #c62828;
    border: none;
    border-radius: 6px;
    color: #fff;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 18px;
}

.modal-close-btn:hover {
    background: #e53935;
}

.modal-content {
    padding: 20px;
    color: #fff;
}

.modal-description {
    font-size: 14px;
    margin-bottom: 8px;
    opacity: 0.85;
}

.modal-row {
    margin-bottom: 20px;
}

.modal-input {
    width: 100%;
    background: #e9edf3;
    border-radius: 8px;
    border: none;
    padding: 11px 14px;
    font-size: 18px;
    color: #222;
    height: 50px;
}

.modal-duo {
    display: flex;
    gap: 12px;
}

.modal-btn {
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    font-weight: 600;

    &:hover {
        opacity: 0.7;
        cursor: pointer;
        scale: 0.9;
    }
}

.modal-btn-green {
    background: linear-gradient(90deg, #00b262, #00cf69);
}

.modal-btn-blue {
    background: #0094ff;
}

.modal-btn-purple {
    background: #9B59B6;
}


.modal-gender {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 16px;
}

.gender-option {
    width: 50%;
    height: 50px;
    border-radius: 12px;
    background: #0f1c2d;
    border: 2px solid #1c2a3c;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.25s ease;
}

.gender-option img {
    width: 40px;
    height: 40px;
    pointer-events: none;
}

.gender-option.male:hover {
    border-color: #0094ff;
    box-shadow: 0 0 10px rgba(0,148,255,0.5);
}

.gender-option.female:hover {
    border-color: #ff6ad5;
    box-shadow: 0 0 10px rgba(255,106,213,0.5);
}

.gender-option.male.selected {
    border-color: #0094ff;
    box-shadow: 0 0 12px rgba(0,148,255,0.6);
    animation: genderPulse 0.35s ease-out;
}

.gender-option.female.selected {
    border-color: #ff6ad5;
    box-shadow: 0 0 12px rgba(255,106,213,0.6);
    animation: genderPulse 0.35s ease-out;
}

@keyframes genderPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 12px rgba(0,0,0,0);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.captcha-box {
    background: #132534;
    padding: 18px 0;
    border-radius: 10px;
    text-align: center;
    color: #bbb;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.separator-index {
    width: 85%;
    height: 1px;
    background: #ffffff;
    margin: 12px auto;
    border-radius: 500px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    color: #ddd;
}

.checkbox-container a {
    color: #4dabff;
    text-decoration: underline;
}

.checkbox-container a:hover {
    text-decoration: none;
    opacity: 0.8;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #4dabff;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    transition: 0.2s ease;
}

.checkbox-container input:checked + .checkmark {
    background: #4dabff;
}

.checkbox-container input:checked + .checkmark::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.locked {
    pointer-events: none;
    opacity: 0.45;
}

.register-alert-warning {
    display: flex;
    gap: 12px;
    padding: 18px 16px;
    border-radius: 14px;
    background: rgba(255, 167, 38, 0.1);
    border: 2px solid #ffa726;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    width: 100%;
    margin-bottom: 18px;
}

.register-alert-content {
    flex: 1;
    font-size: 14px;
    color: #3a3a3a;
    line-height: 1.45;
}

.register-alert-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
}

.register-alert-text p {
    margin: 4px 0;
    color: var(--text-color);
}

.register-alert-text strong {
    color: var(--text-color);
    font-weight: 700;
}

.register-alert-footer {
    margin-top: 10px;
    padding: 8px 10px;
    background: rgba(255, 167, 38, 0.1);
    border-radius: 8px;
    font-size: 13px;
    font-style: italic;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .index-head {
        gap: 0;
        height: auto;
    }

    .index-left-bg {
        display: none;
    }

    .bubble-glass {
        display: none;
    }

    .index-button-news-box {
        display: none;
    }

    .index-left {
        display: flex;
        justify-content: center;
    }

    .modal-box {
        width: 98%;
    }
}