* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scrollbar-color: #0AAD96 rgba(214, 255, 246, 0.32);
}

body {
    margin: 0;
    font-family: Verdana, Arial;
    background: #dcdcdc url('../../img/bg.png') repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: linear-gradient(to top, rgb(6, 143, 128) 20%, rgb(10, 173, 150) 50%, rgb(47, 216, 183) 80%);
    color: white;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('../../img/index/fundo-HQKEHtfH.png') no-repeat;
    background-position: right top;
    background-size: contain;
    opacity: 1;
    z-index: 1;
    pointer-events: none;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1100px, calc(100% - 40px));
    max-width: 1100px;
    margin: 0 auto;
    min-height: 76px;
    padding: 8px 0;
    position: relative;
    z-index: 2;
}

.logo {
    height: 100px;
    display: block;
    flex: 0 0 auto;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25));
}

.top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
    margin-top: 0;
}

.online {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #060606;
    font-weight: bold;
    gap: 8px;
    min-width: 228px;
    height: 34px;
    padding: 0 13px;
    border: 1px solid rgb(255 255 255 / 55%);
    border-radius: 8px;
    background: rgb(255 255 255 / 42%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
    text-shadow: 0 1px 0 rgba(255, 255, 255, .25);
}

.online img {
    width: 20px;
    height: auto;
}

.top-socials {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: #000000;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    border: 1px solid rgb(255 255 255 / 55%);
    border-radius: 8px;
    background: rgb(255 255 255 / 42%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
    text-shadow: 0 1px 0 rgba(255, 255, 255, .25);
}

.top-social-link:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.top-social-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1100px, calc(100% - 40px));
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(18px, 3vh, 38px) 0 clamp(36px, 6vh, 72px);
    gap: 20px;
    z-index: 2;
}

.left {
    position: relative;
    order: 1;
    flex: 0 0 787px;
    width: 787px;
    max-width: 787px;
    padding: 24px 0;
    overflow: visible;
}

.left h1 {
    font-size: 32px;
    margin: 0 0 10px;
    text-shadow: 0 2px 0 rgba(113, 52, 95, .35);
}

.left p {
    max-width: 500px;
    margin: 14px 0 20px;
    font-size: 14px;
    line-height: 1.65;
    opacity: 0.95;
}

.grid-container {
    position: relative;
    display: inline-block
}

.grid-layout {
    display: grid;
    grid-template-columns: 188px 188px 188px 181px;
    grid-template-rows: 188px 14px 188px;
    gap: 14px;
    grid-template-areas: "p1 p2 p2 p3" ". . . p3" "p5 p5 p6 p3"
}

.photo-frame {
    border: 3px solid #D8D8D8;
    border-radius: 4px;
    box-shadow: 0 10px 3px -5px rgba(0, 0, 0, 0.3);
    background-size: cover;
    background-position: center;
    background-color: #222;
    transition: transform 0.3s
}

.photo-frame:hover {
    transform: scale(1.1);
}

.p1 {
    grid-area: p1;
    background-image: url('/web-gallery/img/index/1.png')
}

.p2 {
    grid-area: p2;
    background-image: url('/web-gallery/img/index/2.png')
}

.p3 {
    grid-area: p3;
    grid-row: 1/4;
    background-image: url('/web-gallery/img/index/3.png')
}

.p5 {
    grid-area: p5;
    background-image: url('/web-gallery/img/index/4.png')
}

.p6 {
    grid-area: p6;
    background-image: url('/web-gallery/img/index/5.png')
}

.btn-reg-pos {
    position: absolute;
    top: 50%;
    left: 38%;
    transform: translate(-50%, -50%);
    z-index: 20;
    text-decoration: none
}

.btn-habbo {
    cursor: pointer;
    color: #fff;
    text-align: center;
    font-weight: bold;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .4);
    border-width: 9px;
    border-style: solid;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.1s;
    background: transparent;
    text-decoration: none;
    transition: transform 0.3s
}

.btn-habbo:hover {
    transform: scale(1.1);
}

.btn-reg-txt {
    padding: 35px 25px;
    font-size: 18pt;
    flex-direction: column;
    line-height: 1;
}

.btn-green {
    border-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADvSURBVEhLY2RABWZQmlJwCkozwCxAMXjn5+KTUCZJwJ231xzKhIFTKBaQazA6QLIIbAHc9cgWdJ5+y7D/8TcoDz9wlOViKDcVhvJQfQK3ANlwj/VPoCzSwI5AGSgLYQkTmIcEOs+8g7JIB9j0Yliw/9FXBob//8nCYL1oAMMCBkZgqFGC0QCmBVQGmBZg8TpJGA2MBhEmRgOjQYSJ0QCGBY5y3Ni9TgQG60UDGBaUmwhBWaQDbHrhFiAXsaBS0VGGE3sQYMEgtdhKUhAA+g17fUAJwGkBDFCxysReJ1MRnKJ5PoD5AAao5RNos4WBAQBQLsgyM3Jw7gAAAA5lWElmTU0AKgAAAAgAAAAAAAAA0lOTAAAAAElFTkSuQmCC) 9 9 9 9 fill;
}

.btn-red {
    border-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADiSURBVEhLY2RABWZQmlJwCkozwCxAMfhzcftJKJMkwNtbaQ5lwsApFAvINRgdIFkEtgDuemQLLp+4y/Di4VsoDz+QkBdm0LVQhvJQfQK3ANnw3atOQ1mkAdcwUygLYQkTmIcELp+4B2WRDrDpxbDgxcM3DAz//5OFwXrRAIYFkFCjBKMCLBZQF2CxAOhdijAqGA0iLBgVjAYRFowKMCyQkBcBkti8ThhD9KICDAt0LZSgLNIBNr0gq+lTXIMADSocVAtggFyLkA2GAZAFIIBhCZXAKZrnA5gPYIBaPoE2WxgYAKkgiSeAMFjTAAAADmVYSWZNTQAqAAAACAAAAAAAAADSU5MAAAAASUVORK5CYII=) 9 9 9 9 fill;
}

.login-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.right #loginForm .login-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.right #loginForm .login-actions .btn-habbo {
    flex: 1;
}

.right #loginForm .btn-green {
    justify-self: stretch;
    min-height: 34px;
    padding: 8px 20px;
    font-size: 12px;
}

.right #loginForm .forgot-link {
    justify-self: start;
    padding-left: 0;
    color: rgba(255, 255, 255, .9);
    text-transform: uppercase;
}

.forgot-link {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 4px 8px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    background: transparent;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.18s ease, background 0.18s ease;
}

.forgot-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.recover-form[hidden] {
    display: none;
}

.recover-form {
    width: 100%;
}

.recover-actions {
    margin-top: 10px;
    align-items: center;
}

.recover-actions .btn-green {
    min-width: 112px;
}

.recover-actions .forgot-link {
    justify-content: center;
    min-width: 122px;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.15;
    white-space: normal;
}

.other-recover-link {
    display: block;
    width: max-content;
    margin: 16px auto 0;
    padding: 4px 8px;
    color: rgba(255, 255, 255, 0.84);
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    background: transparent;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
}

.other-recover-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.right {
    order: 2;
    width: 460px;
    align-self: center;
    margin-top: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.right h2 {
    margin: 0 0 12px;
    padding: 0;
    border-radius: 0;
    color: #fff;
    font-size: 16px;
    text-align: left;
    text-shadow: 0 1px 0 #71345f;
}

.right #loginForm {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.right #recoverForm {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.right #recoverForm[hidden] {
    display: none;
}

.right #loginForm[hidden],
.right #recoverForm[hidden] {
    display: none;
}

#loginForm,
#recoverForm {
    width: 100%;
}

.input-icon {
    position: relative;
    margin-bottom: 0;
}

.field-icon {
    position: absolute;
    left: 1px;
    top: 1px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 35px;
    border-right: 0;
    border-radius: 5px 0 0 5px;
    color: #913f82;
    background: linear-gradient(180deg, #fff8fd, #eadcf0);
    cursor: default;
    pointer-events: auto;
}

.field-icon svg {
    width: 17px;
    height: 17px;
    fill: rgb(0 0 0);
}

.input-icon input {
    width: 100%;
    height: 37px;
    padding: 0 12px 0 47px;
    border-radius: 6px;
    border: 1px solid #f1b7e9;
    outline: none;
    font-size: 13px;
    background: #fff8fd;
    box-shadow: inset 0 2px 3px rgba(113, 52, 95, .08);
    cursor: text;
}

.input-icon input:focus {
    border-color: #c76bca;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(199, 107, 202, .18), inset 0 2px 3px rgba(113, 52, 95, .06);
}

.error-msg {
    background: #ff4d4d;
    padding: 8px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 12px;
}

.success-msg {
    background: #4fc96a;
    color: #fff;
    padding: 8px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

.captcha-container {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 70px;
    margin: 4px 0 10px;
}

.cf-turnstile {
    width: 300px;
    max-width: 100%;
    min-height: 65px;
    flex: 0 0 auto;
    overflow: visible;
}

.cf-turnstile iframe {
    display: block !important;
    width: 300px !important;
    max-width: 100% !important;
    height: 65px !important;
    border: 0;
}

.right h2,
.right #loginForm,
.right #recoverForm,
.right .error-msg,
.right .success-msg {
    width: min(420px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.right #loginForm .captcha-container,
.right #recoverForm .captcha-container {
    padding: 0;
}

.avatar-preview-container {
    position: relative;
    overflow: visible;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 244, 251, .32);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #f1b7e9, #c76bca 52%, #a54d94);
    border: 2px solid rgba(255, 244, 251, .55);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ffd5f6, #d981dc 52%, #b856b7);
}

.login-avatar-preview {
    position: absolute;
    right: -6px;
    top: -39px;
    width: 65px;
    pointer-events: none;
    display: none;
    transition: 0.2s;
    z-index: 3;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
    clip-path: inset(0 0 36px 0);
}

.login-avatar-preview.show {
    display: block;
}

.content {
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 160px);
    min-height: calc(100svh - 160px);
    max-width: 1100px;
    margin: 10px auto 18px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    transform: none;
    overflow: visible;
    align-items: start;
}

/* coluna da esquerda empilha tudo */
.left-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: visible;
}

.box {
    background: linear-gradient(180deg, #ffffff, #f3f3f3);
    border-radius: 12px;
    padding: 0px 10px 10px 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.box h3 {
    margin-bottom: 15px;
    font-size: 15px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.box-user-register {
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.box-user-register h3 {
    margin: 0 0 10px;
    font-size: 15px;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.box-news h3 {
    margin: 0 0 10px;
    font-size: 15px;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.box-news {
    display: flex;
    flex-direction: column;
    position: relative;
}

.section-title {
    display: block;
    position: relative;
    min-height: 56px;
    width: min(420px, 100%);
    max-width: 100%;
    margin: 16px 0 14px;
    padding: 10px 16px 9px 78px;
    border: 1px solid rgba(0, 0, 0, .32);
    border-radius: 8px;
    color: #202328;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 3px 9px rgba(0, 0, 0, .08);
    overflow: visible;
}

.section-icon {
    position: absolute;
    left: 14px;
    top: -13px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    background: #e7e7e7;
    border: 4px solid #fff;
    border-radius: 4px;
}

.section-icon img {
    max-width: 43px;
    max-height: 43px;
    object-fit: contain;
    display: block;
}

.section-icon-user img {
    max-width: 44px;
    max-height: 44px;
}

.section-copy {
    min-width: 0;
    width: auto;
    max-width: none;
    position: relative;
    z-index: 1;
}

.section-copy strong {
    display: block;
    color: #121212;
    font-size: 19px;
    line-height: 1.05;
    font-weight: 800;
}

.section-copy small {
    display: block;
    margin-top: 4px;
    color: #3f4248;
    font-size: 12px;
    line-height: 1.25;
}

.news {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.news-item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.news-card {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 8px;
}

.news-card img {
    width: 100%;
    height: 147px;
    object-fit: cover;
    transition: 0.4s;
}

.news-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 8px;
    color: white;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.4) 40%,
            transparent 100%);
    transition: 0.3s;
}

.news-overlay h4 {
    margin: 0;
    font-size: 12px;
    line-height: 1.15;
}

.news-overlay p {
    margin: 4px 0 0;
    font-size: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.news-card:hover img {
    transform: scale(1.08);
}

.news-card:hover .news-overlay {
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.6) 50%,
            transparent 100%);
}

.news-card:hover .news-overlay p {
    opacity: 1;
    transform: translateY(0);
}

.news-author {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 7px;
    width: 182px;
    min-height: 34px;
    max-width: calc(100% - 16px);
    padding: 5px 9px 5px 5px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(4px);
}

.author-avatar {
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    object-fit: cover;
    background: #ececf0;
    border: 1px solid #b9b9c2;
    border-radius: 6px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 1px 2px rgba(0, 0, 0, 0.12);
}

.author-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}

.author-name {
    font-size: 11px;
    font-weight: 800;
    color: #161616;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.author-date {
    font-size: 9px;
    color: #5d5d5d;
    margin-top: 2px;
}

.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 0;
    transform: none;
}

.news-page-btn,
.news-page-current {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    border: 0;
    text-decoration: none;
    font-weight: 700;
    font-family: inherit;
    transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.news-page-btn {
    background: linear-gradient(180deg, #ffffff, #e8e8e8);
    color: #555;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 3px 8px rgba(0, 0, 0, 0.1);
}

.news-page-btn:hover {
    background: linear-gradient(180deg, #ffffff, #dcdcdc);
    color: #111;
    transform: translateY(-1px);
}

.news-page-btn svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.news-page-btn.disabled {
    opacity: 0.45;
    cursor: default;
}

.news-pagination.is-loading {
    opacity: 0.65;
    pointer-events: none;
}

.news-page-current {
    background: linear-gradient(180deg, #ffffff, #ededed);
    color: #161616;
    border: 1px solid rgba(0, 0, 0, 0.14);
    font-size: 15px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 3px 8px rgba(0, 0, 0, 0.1);
}

.users-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 68px;
    padding: 6px 8px;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 3px 9px rgba(0, 0, 0, .08);
    border: 1px solid rgba(0, 0, 0, .32);
    border-radius: 8px;
    overflow: visible;
    position: relative;
}

.users-empty,
.no-news {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 18px 16px;
    color: #71345f;
    text-align: center;
    border: 1px dashed rgba(189, 89, 191, 0.38);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 240, 251, 0.82));
    box-shadow: inset 0 1px 0 #fff, 0 5px 12px rgba(113, 52, 95, 0.06);
}

.no-news {
    max-width: 410px;
    min-height: 132px;
    margin: 32px auto 0;
    padding: 20px 18px;
}

.users-empty {
    min-height: 58px;
    padding: 12px 10px;
}

.empty-state-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    border-radius: 7px;
    background: linear-gradient(180deg, #e682e6, #a54d94);
    border: 1px solid #913f82;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 2px 0 rgba(113, 52, 95, 0.18);
    text-shadow: 0 1px 0 #71345f;
}

.users-empty .empty-state-icon {
    width: 24px;
    height: 24px;
    font-size: 14px;
}

.users-empty strong,
.no-news strong {
    color: #71345f;
    font-size: 13px;
    line-height: 1.2;
}

.users-empty small,
.no-news p {
    margin: 0;
    color: #744866;
    font-size: 11px;
    line-height: 1.35;
}

.user-item {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 62px;
    height: 60px;
    padding: 0;
    background: #dcdcdc;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 9px;
    cursor: default;
    overflow: visible;
    transition: filter 0.18s ease;
}

.user-avatar-frame {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.user-item:hover {
    filter: drop-shadow(0 5px 6px rgba(0, 0, 0, 0.16));
    z-index: 5;
}

.user-avatar {
    position: relative;
    left: 50%;
    top: -14px;
    image-rendering: auto;
    transform: translateX(-50%);
    filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.22));
}

.user-info {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    top: auto;
    width: 220px;
    min-width: 220px;
    padding: 8px 10px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(199, 107, 202, 0.24);
    box-shadow: 0 9px 20px rgba(0, 0, 0, 0.18);
    line-height: 1.2;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 6px);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.user-item:hover .user-info {
    opacity: 1;
    transform: translate(-50%, 0);
}

.user-info::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.98);
    border-right: 1px solid rgba(199, 107, 202, 0.24);
    border-bottom: 1px solid rgba(199, 107, 202, 0.24);
    transform: translate(-50%, -5px) rotate(45deg);
}

.user-name {
    font-weight: bold;
    font-size: 12px;
    color: #161616;
    overflow: visible;
    white-space: normal;
    word-break: break-word;
}

.user-date {
    margin-top: 3px;
    font-size: 10px;
    color: #666;
    white-space: normal;
}

.index-hall-rows {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.index-hall-row {
    min-height: 52px;
    display: grid;
    grid-template-columns: 82px 1fr;
    align-items: center;
    gap: 8px;
    padding: 5px 7px;
    border-radius: 7px;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 3px 9px rgba(0, 0, 0, .08);
    border: 1px solid rgba(0, 0, 0, .32);
}

.index-hall-label {
    color: #171717;
    font-size: 12px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.index-hall-users {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    min-width: 0;
    overflow: visible;
}

.index-hall-empty {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 7px 8px;
    color: #744866;
    text-align: center;
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 240, 251, 0.72));
    border: 1px dashed rgba(189, 89, 191, 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.index-hall-empty strong {
    color: #71345f;
    font-size: 11px;
    line-height: 1.15;
}

.index-hall-empty small {
    color: #876477;
    font-size: 10px;
    line-height: 1.2;
}

.index-hall-avatar {
    width: 50px;
    height: 42px;
    display: block;
    position: relative;
    overflow: visible;
    margin-left: -3px;
    transition: transform 0.18s ease, filter 0.18s ease;
    z-index: 1;
}

.index-hall-avatar:first-child {
    margin-left: 0;
}

.index-hall-avatar:hover {
    transform: translateY(-3px);
    filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.18));
    z-index: 10;
}

.index-hall-avatar-frame {
    width: 50px;
    height: 42px;
    display: block;
    overflow: hidden;
    position: relative;
}

.index-hall-tip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 9px);
    width: 220px;
    min-width: 220px;
    padding: 7px 9px 8px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(199, 107, 202, 0.24);
    box-shadow: 0 9px 20px rgba(0, 0, 0, 0.18);
    line-height: 1.45;
    text-align: left;
    opacity: 0;
    pointer-events: none;
    overflow: visible;
    transform: translate(-50%, 6px);
    transition: opacity 0.16s ease, transform 0.16s ease;
    z-index: 20;
}

.index-hall-tip strong {
    display: block;
    color: #161616;
    font-size: 12px;
    font-weight: 800;
    overflow: visible;
    white-space: normal;
    word-break: break-word;
}

.index-hall-tip small {
    display: block;
    margin-top: 2px;
    color: #666;
    font-size: 10px;
    font-weight: 400;
    overflow: visible;
    white-space: normal;
}

.index-hall-avatar::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 4px);
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.98);
    border-right: 1px solid rgba(199, 107, 202, 0.24);
    border-bottom: 1px solid rgba(199, 107, 202, 0.24);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 6px) rotate(45deg);
    transition: opacity 0.16s ease, transform 0.16s ease;
    z-index: 19;
}

.index-hall-avatar:hover .index-hall-tip {
    opacity: 1;
    transform: translate(-50%, 0);
}

.index-hall-avatar:hover::after {
    opacity: 1;
    transform: translate(-50%, 0) rotate(45deg);
}

.index-hall-avatar img {
    position: absolute;
    left: 50%;
    bottom: -30px;
    width: auto;
    height: 90px;
    display: block;
    transform: translateX(-50%);
}

/* FOOTER */
footer {
    text-align: center;
    padding: 25px;
    color: #777;
    font-size: 12px;
    background: #c7c7c7;
    flex-shrink: 0;
    margin-top: auto;
}

.petal {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: #f4c7ef;
    border-radius: 50%;
    animation: fall 5s infinite ease-in;
    opacity: 0;
}

@keyframes fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.petal:nth-child(1) {
    left: 10%;
    animation-duration: 6s;
    animation-delay: 0s;
}

.petal:nth-child(2) {
    left: 30%;
    animation-duration: 5s;
    animation-delay: 1s;
}

.petal:nth-child(3) {
    left: 50%;
    animation-duration: 7s;
    animation-delay: 2s;
}

.petal:nth-child(4) {
    left: 70%;
    animation-duration: 4s;
    animation-delay: 0.5s;
}

.petal:nth-child(5) {
    left: 90%;
    animation-duration: 6s;
    animation-delay: 1.5s;
}

@media (max-width: 900px) {
    .hero {
        height: auto;
        min-height: 0;
    }

    .hero::before {
        bottom: -70px;
        background-position: right top;
        background-size: auto 360px;
        opacity: 1;
    }

    .top-bar {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        min-height: 0;
        padding: 14px 20px 10px;
        text-align: center;
    }

    .top-actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
    }

    .logo {
        height: 100px;
    }

    .online {
        order: 2;
        justify-content: center;
        font-size: 13px;
        min-width: min(228px, 100%);
        max-width: 100%;
    }

    .top-socials {
        order: 1;
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-content {
        flex-direction: column;
        flex: 0 1 auto;
        align-items: center;
        text-align: center;
        min-height: 0;
        width: min(100% - 32px, 520px);
        padding: 16px 0 34px;
        gap: 20px;
    }

    .left {
        flex: 0 1 auto;
        width: 100%;
        margin-top: 0;
        max-width: 100%;
        padding: 6px 0 0;
    }

    .left h1 {
        font-size: 22px;
    }

    .left p {
        max-width: 100%;
        font-size: 13px;
        line-height: 1.45;
        margin: 10px 0 16px;
    }

    .welcome-frank {
        display: none;
    }

    .right {
        flex: 0 1 auto;
        min-width: 0;
        width: 100%;
        max-width: 420px;
        align-self: center;
    }

    .right #loginForm {
        grid-template-columns: 1fr;
    }

    .right #loginForm .login-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .right #loginForm .forgot-link {
        justify-self: center;
        padding-left: 8px;
    }

    .btn-green {
        width: 100%;
        max-width: 280px;
    }

    .content {
        grid-template-columns: 1fr;
        min-height: 0;
        width: min(100% - 32px, 520px);
        margin: 18px auto;
        gap: 15px;
        transform: none;
    }

    .box {
        padding: 10px;
    }

    .news {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .section-title {
        width: 100%;
        margin-top: 14px;
    }

    .news-item {
        width: 100%;
        min-width: 0;
    }

    .news-card img {
        height: 170px;
    }

    .news-author {
        left: 8px;
        top: 8px;
        width: min(190px, calc(100% - 16px));
    }

    .news-overlay {
        padding: 10px;
    }

    .news-overlay h4 {
        font-size: 13px;
    }

    .news-overlay p {
        font-size: 11px;
        opacity: 1;
        transform: none;
    }

    .login-avatar-preview {
        width: 65px;
        right: -3px;
        top: -37px;
    }

    footer {
        font-size: 11px;
        padding: 20px;
    }
}

@media (max-width: 500px) {
    .top-bar {
        width: min(100% - 24px, 420px);
        padding-top: 12px;
    }

    .top-actions {
        flex-direction: column;
    }

    .hero-content,
    .content {
        width: min(100% - 24px, 420px);
    }

    .left h1 {
        font-size: 26px;
    }

    .left p {
        font-size: 12px;
    }

    .right h2,
    .right #loginForm,
    .right #recoverForm,
    .right .error-msg,
    .right .success-msg {
        width: 100%;
    }

    .input-icon input {
        padding: 12px 12px 12px 47px;
    }

    .btn-green {
        padding: 14px;
        font-size: 14px;
    }

    .section-title {
        min-height: 58px;
        padding-right: 10px;
    }

    .section-copy strong {
        font-size: 17px;
    }

    .section-copy small {
        font-size: 11px;
    }

    .user-info,
    .index-hall-tip {
        display: none;
    }
}

@media (max-width:768px) {

    .grid-container {
        width: 100%;
    }

    .grid-layout {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-template-areas:
            "p1"
            "p2"
            "p3"
            "p5"
            "p6";
        gap: 15px;
    }

    .photo-frame {
        width: 100%;
        height: 200px;
    }

    .btn-reg-pos {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 100%;
        display: flex;
        justify-content: center;
        margin: 20px 0;
    }

    .btn-reg-txt {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

}
