/* Explain: Styles for UI components like buttons, cards, and navigation dropdowns. */
.site-header {
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface-color) 96%, transparent), color-mix(in srgb, var(--background-color) 84%, transparent));
    backdrop-filter: blur(18px);
    font-family: var(--font-logo);
}

.glass-panel {
    border: 1px solid var(--glass-border);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.68));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.gold-frame {
    position: relative;
}

.gold-frame::after {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--gradient-gold);
    content: "";
    opacity: 0.6;
    pointer-events: none;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.section-kicker::before {
    display: inline-block;
    width: 2.2rem;
    height: 2px;
    background: var(--gradient-gold);
    content: "";
}

.btn-gold {
    border: 0;
    background: var(--gradient-gold);
    color: #1A1206;
    font-weight: 800;
    box-shadow: var(--shadow-gold);
    transition: transform 250ms ease, box-shadow 250ms ease;
}

.btn-gold:hover {
    box-shadow: 0 20px 50px color-mix(in srgb, var(--gold) 34%, transparent);
    transform: translateY(-2px);
}

.btn-ghost-gold {
    border: 1px solid var(--gold-line);
    background: color-mix(in srgb, var(--gold) 6%, transparent);
    color: var(--text-color);
    font-weight: 700;
    transition: border-color 250ms ease, background 250ms ease;
}

.btn-ghost-gold:hover {
    border-color: var(--gold);
    background: color-mix(in srgb, var(--gold) 12%, transparent);
}

.feature-card {
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.feature-card:hover {
    border-color: var(--gold-line);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18);
    transform: translateY(-6px);
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    border: 1px solid var(--gold-line);
    background: var(--gold-soft);
    color: var(--gold);
}

.room-card,
.member-card {
    transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

.room-card:hover,
.member-card:hover {
    border-color: var(--gold-line);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.2);
    transform: translateY(-6px);
}

.room-card.is-top {
    border-color: var(--gold-line);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 22%, transparent), 0 30px 80px color-mix(in srgb, var(--gold) 14%, transparent);
}

.rank-badge {
    display: inline-grid;
    place-items: center;
    min-width: 2.4rem;
    height: 2.4rem;
    padding: 0 0.55rem;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
}

.rank-1 {
    background: var(--gradient-gold);
    color: #1A1206;
    box-shadow: var(--shadow-gold);
}

.rank-2 {
    background: linear-gradient(135deg, #EDEDED, #B4B4B4);
    color: #1A1A1F;
}

.rank-3 {
    background: linear-gradient(135deg, #E7B98A, #B87A3E);
    color: #1A1206;
}

.rank-other {
    border: 1px solid var(--border-color);
    background: color-mix(in srgb, var(--gold) 12%, transparent);
    color: var(--text-muted);
}

.tag-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    border: 1px solid var(--gold-line);
    background: color-mix(in srgb, var(--gold) 12%, transparent);
    padding: 0.2rem 0.7rem;
    color: var(--gold-strong);
    font-size: 0.7rem;
    font-weight: 700;
}

.gallery-item {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 1.2rem;
    padding: 0;
    cursor: pointer;
}

.gallery-item img {
    transition: transform 500ms ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    background: linear-gradient(to top, rgba(10, 10, 12, 0.92), rgba(10, 10, 12, 0.05) 62%);
    opacity: 0;
    text-align: start;
    transition: opacity 300ms ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-zoom {
    position: absolute;
    top: 0.8rem;
    inset-inline-end: 0.8rem;
    display: grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    background: rgba(10, 10, 12, 0.7);
    color: var(--gold);
}

.filter-btn {
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: color-mix(in srgb, var(--gold) 8%, transparent);
    padding: 0.5rem 1.1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 250ms ease;
}

.filter-btn:hover {
    border-color: var(--gold-line);
    background: color-mix(in srgb, var(--gold) 16%, transparent);
    color: var(--text-color);
}

.filter-btn.is-active {
    border-color: transparent;
    background: var(--gradient-gold);
    color: #1A1206;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
}

.faq-item {
    border: 1px solid var(--glass-border);
    border-radius: 1.2rem;
    background: color-mix(in srgb, var(--gold) 8%, transparent);
    padding: 1.05rem 1.3rem;
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-heading);
    font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-icon {
    color: var(--gold);
    transition: transform 300ms ease;
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    margin-top: 0.85rem;
    color: var(--text-muted);
    line-height: 2;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(5, 5, 7, 0.95);
    padding: 1rem;
    backdrop-filter: blur(8px);
}

.lightbox.is-open {
    display: flex;
}

.lightbox img {
    max-width: min(92vw, 66rem);
    max-height: 80vh;
    border-radius: 1rem;
    border: 1px solid var(--gold-line);
    object-fit: contain;
}

.lightbox-caption {
    position: absolute;
    inset-inline: 0;
    bottom: 1.2rem;
    padding: 0 1rem;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    inset-inline-end: 1rem;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    border: 1px solid var(--gold-line);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-color);
    transform: translateY(-50%);
}

.lightbox-nav:hover {
    background: color-mix(in srgb, var(--gold) 18%, transparent);
}

.lightbox-prev {
    inset-inline-start: 1rem;
}

.lightbox-next {
    inset-inline-end: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--text-color);
    font-size: 0.82rem;
    font-weight: 700;
}

.form-status {
    font-size: 0.86rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.form-status.is-error {
    color: #C0492F;
}

.form-status.is-success {
    color: #4F7A2E;
}

.social-btn {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: color-mix(in srgb, var(--gold) 8%, transparent);
    color: var(--text-muted);
    transition: all 250ms ease;
}

.social-btn:hover {
    border-color: var(--gold-line);
    background: color-mix(in srgb, var(--gold) 16%, transparent);
    color: var(--gold);
}

.carousel-mobile {
    display: flex;
    gap: 1.1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.6rem;
}

.carousel-mobile > * {
    flex: 0 0 82%;
    scroll-snap-align: start;
}

.device-frame {
    position: relative;
    width: min(100%, 21rem);
    margin-inline: auto;
    border-radius: 2.6rem;
    border: 1px solid var(--gold-line);
    background: linear-gradient(160deg, #17171d, #0c0c10);
    padding: 0.9rem;
    box-shadow: var(--shadow-soft), 0 0 70px color-mix(in srgb, var(--gold) 18%, transparent);
}

.device-frame::before {
    position: absolute;
    top: 1rem;
    left: 50%;
    width: 5rem;
    height: 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    content: "";
    transform: translateX(-50%);
}

.mock-chat {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 2rem;
    background: #0f0f13;
}

.mock-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-bottom: 1px solid var(--border-color);
    padding: 1.7rem 0.95rem 0.85rem;
}

.mock-avatar {
    display: grid;
    place-items: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 999px;
    background: var(--gradient-gold);
    color: #1A1206;
}

.mock-title {
    color: #F4F1E8;
    font-size: 0.82rem;
    font-weight: 800;
}

.mock-sub {
    font-size: 0.62rem;
    color: #A8A6AE;
}

.mock-live {
    margin-inline-start: auto;
    border-radius: 999px;
    background: var(--gradient-gold);
    padding: 0.15rem 0.55rem;
    color: #1A1206;
    font-size: 0.6rem;
    font-weight: 800;
}

.mock-body {
    display: grid;
    gap: 0.5rem;
    padding: 0.95rem;
}

.mock-msg {
    max-width: 86%;
    color: #F4F1E8;
    border: 1px solid var(--border-color);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.45rem 0.7rem;
    font-size: 0.72rem;
    line-height: 1.8;
}

.mock-msg.is-own {
    margin-inline-start: auto;
    border-color: var(--gold-line);
    background: color-mix(in srgb, var(--gold) 16%, transparent);
}

.mock-name {
    display: block;
    color: var(--gold);
    font-size: 0.58rem;
    font-weight: 700;
}

.mock-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border-top: 1px solid var(--border-color);
    padding: 0.75rem 0.95rem;
    color: var(--text-muted);
    font-size: 0.66rem;
}

.mock-foot i {
    color: var(--gold);
}

@media (min-width: 640px) {
    .carousel-mobile {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: visible;
    }

    .carousel-mobile > * {
        flex: none;
    }
}

@media (min-width: 1024px) {
    .carousel-mobile {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .carousel-mobile.carousel-four {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .section-kicker::before {
        width: 1.6rem;
    }
}

.floating-dock {
    position: fixed;
    bottom: 1.1rem;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.floating-dock-start {
    inset-inline-start: 1rem;
}

.floating-dock-end {
    inset-inline-end: 1rem;
    align-items: flex-end;
}

.float-btn {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--gold-line);
    border-radius: 999px;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.72)), var(--surface-color);
    color: var(--gold);
    font-size: 1.05rem;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: transform 250ms ease, background 250ms ease, color 250ms ease, border-color 250ms ease, opacity 300ms ease, visibility 300ms ease;
}

.float-btn:hover {
    border-color: var(--gold);
    background: color-mix(in srgb, var(--gold) 16%, transparent);
    color: var(--gold-strong);
    transform: translateY(-3px);
}

.float-btn-wa {
    color: #1FA855;
    border-color: rgba(37, 211, 102, 0.42);
}

.float-btn-wa:hover {
    border-color: #25D366;
    background: rgba(37, 211, 102, 0.18);
    color: #1FA855;
}

.float-btn-top {
    opacity: 0;
    visibility: hidden;
    transform: translateY(1rem);
    transition: opacity 300ms ease, visibility 300ms ease, transform 300ms ease;
}

.float-btn-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

[data-theme-icon="light"] {
    display: none;
}

:root[data-theme="light"] [data-theme-icon="light"] {
    display: block;
}

:root[data-theme="light"] [data-theme-icon="dark"] {
    display: none;
}

@media (max-width: 480px) {
    .float-btn {
        width: 2.6rem;
        height: 2.6rem;
        font-size: 0.95rem;
    }
}

.nav-drop {
    position: relative;
}

.nav-drop-trigger {
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
}

.nav-drop-panel {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    z-index: 70;
    width: 18rem;
    padding-top: 0.7rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(0.5rem);
    transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
}

.nav-drop:hover .nav-drop-panel,
.nav-drop.is-open .nav-drop-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-chev {
    transition: transform 250ms ease;
}

.nav-drop:hover .nav-chev,
.nav-drop.is-open .nav-chev {
    transform: rotate(180deg);
}

:root[data-theme="dark"] .site-header {
    background: linear-gradient(180deg, rgba(10, 10, 12, 0.94), rgba(10, 10, 12, 0.68));
}

:root[data-theme="dark"] .glass-panel {
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
}

:root[data-theme="dark"] .hero-dark {
    background:
        radial-gradient(circle at 78% 12%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 30rem),
        linear-gradient(180deg, var(--surface-color) 0%, var(--background-color) 100%);
}

:root[data-theme="dark"] .feature-card:hover {
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}

:root[data-theme="dark"] .room-card:hover,
:root[data-theme="dark"] .member-card:hover {
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}

:root[data-theme="dark"] .filter-btn:not(.is-active) {
    background: rgba(255, 255, 255, 0.04);
}

:root[data-theme="dark"] .filter-btn:not(.is-active):hover {
    background: rgba(255, 255, 255, 0.09);
}

:root[data-theme="dark"] .filter-btn.is-active {
    border-color: transparent;
    background: var(--gradient-gold);
    color: #1A1206;
}

:root[data-theme="dark"] .faq-item {
    background: rgba(255, 255, 255, 0.03);
}

:root[data-theme="dark"] .social-btn {
    background: rgba(255, 255, 255, 0.04);
}

:root[data-theme="dark"] .social-btn:hover {
    background: color-mix(in srgb, var(--gold) 14%, transparent);
}

:root[data-theme="dark"] .rank-other {
    background: rgba(255, 255, 255, 0.07);
}

:root[data-theme="dark"] .float-btn {
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)), var(--surface-2);
}

:root[data-theme="dark"] .float-btn-wa {
    color: #25D366;
}

:root[data-theme="dark"] .float-btn-wa:hover {
    color: #25D366;
}

:root[data-theme="dark"] .form-status.is-error {
    color: #E88A78;
}

:root[data-theme="dark"] .form-status.is-success {
    color: #A9D18E;
}