
.home-screen {
    flex-direction: column;
    min-height: 100dvh;
    padding:
        calc(14px + var(--safe-top))
        16px
        calc(96px + var(--safe-bottom));
    background:
        radial-gradient(
            circle at 88% 2%,
            rgba(143, 88, 255, 0.10),
            transparent 24%
        ),
        radial-gradient(
            circle at 8% 94%,
            rgba(243, 72, 137, 0.07),
            transparent 22%
        ),
        var(--bg);
}

.home-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.home-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.home-brand strong {
    display: block;
    font-size: 22px;
    letter-spacing: -0.9px;
    white-space: nowrap;
}

.home-brand strong span {
    color: var(--pink);
}

.home-header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.icon-button,
.avatar-button {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    cursor: pointer;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
}

.icon-button {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 19px;
}

.avatar-button {
    width: 44px;
    height: 44px;
    overflow: hidden;
    border-radius: 50%;
    padding: 0;
}

.avatar-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-weight: 800;
    color: white;
    background:
        linear-gradient(
            145deg,
            var(--pink),
            var(--purple)
        );
}

.home-hero-card {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    padding: 24px 22px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background:
        radial-gradient(
            circle at 78% 45%,
            rgba(243, 72, 137, 0.24),
            transparent 26%
        ),
        radial-gradient(
            circle at 92% 12%,
            rgba(143, 88, 255, 0.25),
            transparent 24%
        ),
        linear-gradient(
            135deg,
            #171120,
            #25132b 58%,
            #110d19
        );
    box-shadow: var(--shadow-soft);
}

.home-hero-card::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -55px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    border: 1px solid rgba(243, 72, 137, 0.26);
    box-shadow:
        0 0 0 22px rgba(243, 72, 137, 0.03),
        0 0 0 44px rgba(143, 88, 255, 0.025);
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 70%;
}

.hero-copy small {
    color: var(--gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.hero-copy h2 {
    margin: 8px 0 9px;
    font-size: clamp(28px, 8vw, 42px);
    line-height: 0.98;
    letter-spacing: -1.8px;
}

.hero-copy h2 span {
    color: var(--pink);
}

.hero-copy p {
    margin: 0;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.5;
}

.hero-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin-top: 18px;
    padding: 0 17px;
    border-radius: 14px;
    cursor: pointer;
    color: white;
    font-size: 13px;
    font-weight: 800;
    background:
        linear-gradient(
            100deg,
            #ff5a93,
            #d92571
        );
    box-shadow: var(--shadow-pink);
}

.home-shortcuts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
    margin: 16px 0 24px;
}

.home-shortcut {
    min-width: 0;
    min-height: 82px;
    padding: 12px 7px 10px;
    border: 1px solid var(--border);
    border-radius: 17px;
    cursor: pointer;
    color: var(--text);
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.05),
            rgba(255,255,255,0.025)
        );
}

.home-shortcut .shortcut-icon {
    display: block;
    margin-bottom: 7px;
    font-size: 22px;
}

.home-shortcut span:last-child {
    display: block;
    overflow: hidden;
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-section {
    margin-top: 4px;
    margin-bottom: 24px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.section-heading h3 {
    margin: 0;
    font-size: 20px;
    letter-spacing: -0.6px;
}

.section-link {
    border: 0;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 12px;
    background: transparent;
}

.featured-rooms {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 74%);
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.featured-rooms::-webkit-scrollbar {
    display: none;
}

.room-card {
    overflow: hidden;
    scroll-snap-align: start;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.room-cover {
    position: relative;
    height: 118px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 78% 28%,
            rgba(243, 72, 137, 0.36),
            transparent 26%
        ),
        radial-gradient(
            circle at 24% 68%,
            rgba(143, 88, 255, 0.38),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #24102e,
            #0e1530
        );
}

.room-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room-member-count {
    position: absolute;
    top: 9px;
    right: 9px;
    padding: 6px 9px;
    border-radius: 999px;
    color: white;
    font-size: 10px;
    font-weight: 700;
    background: rgba(7, 6, 12, 0.72);
    backdrop-filter: blur(10px);
}

.room-card-body {
    padding: 13px;
}

.room-card-body h4,
.recommended-room h4 {
    margin: 0;
    overflow: hidden;
    color: white;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.room-meta {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 11px;
}

.room-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}

.room-tag {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 0 10px;
    border-radius: 999px;
    color: #ffb7d0;
    font-size: 10px;
    font-weight: 700;
    background: rgba(243, 72, 137, 0.13);
}

.enter-room-button {
    min-height: 34px;
    padding: 0 15px;
    border-radius: 999px;
    cursor: pointer;
    color: white;
    font-size: 11px;
    font-weight: 800;
    background:
        linear-gradient(
            100deg,
            #f34889,
            #d92571
        );
}

.recommended-list {
    display: grid;
    gap: 10px;
}

.recommended-room {
    display: grid;
    grid-template-columns: 88px 1fr auto;
    align-items: center;
    gap: 12px;
    min-height: 84px;
    padding: 9px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255,255,255,0.025);
}

.recommended-cover {
    width: 88px;
    height: 66px;
    overflow: hidden;
    border-radius: 13px;
    background:
        radial-gradient(
            circle at 70% 30%,
            rgba(243,72,137,0.32),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            #26142e,
            #10182c
        );
}

.recommended-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommended-copy {
    min-width: 0;
}

.recommended-copy p {
    margin: 5px 0 0;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recommended-enter {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    cursor: pointer;
    color: white;
    font-size: 18px;
    background: rgba(243, 72, 137, 0.13);
}

.home-empty {
    padding: 24px 18px;
    border: 1px dashed var(--border-strong);
    border-radius: 18px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.home-loading {
    display: grid;
    place-items: center;
    min-height: 150px;
    color: var(--text-muted);
    font-size: 12px;
}

.bottom-nav {
    position: fixed;
    z-index: 50;
    left: 12px;
    right: 12px;
    bottom: calc(10px + var(--safe-bottom));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: 68px;
    padding: 7px 5px;
    border: 1px solid var(--border-strong);
    border-radius: 24px;
    background: rgba(9, 7, 15, 0.92);
    box-shadow: 0 18px 50px rgba(0,0,0,0.42);
    backdrop-filter: blur(22px);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 15px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 700;
    background: transparent;
}

.nav-item .nav-icon {
    font-size: 19px;
}

.nav-item-active {
    color: var(--pink-soft);
}

.nav-create {
    position: relative;
}

.nav-create .nav-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-top: -29px;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    background:
        linear-gradient(
            145deg,
            #ff5b94,
            #d92571
        );
    box-shadow: var(--shadow-pink);
}

.nav-create span:last-child {
    margin-top: 4px;
}

.home-toast {
    position: fixed;
    z-index: 100;
    left: 50%;
    bottom: calc(92px + var(--safe-bottom));
    max-width: calc(100% - 32px);
    padding: 11px 15px;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: white;
    font-size: 12px;
    background: rgba(25, 19, 34, 0.96);
    box-shadow: var(--shadow-soft);
    transform: translate(-50%, 18px);
    opacity: 0;
    pointer-events: none;
    transition:
        opacity var(--transition),
        transform var(--transition);
}

.home-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (min-width: 700px) {
    .home-screen {
        max-width: 980px;
        margin: 0 auto;
        padding-left: 24px;
        padding-right: 24px;
    }

    .featured-rooms {
        grid-auto-columns: minmax(240px, 31%);
    }

    .bottom-nav {
        left: 50%;
        width: min(620px, calc(100% - 24px));
        transform: translateX(-50%);
    }
}

/* ===== VoiceApp — home dentro do frame mobile em telas largas ===== */
@media (min-width:431px){
    .home-toast{
        max-width:398px;
    }
}
