:root {
    --bg: #050506;
    --surface: #050506;
    --surface-light: #111015;
    --card: #ffffff;
    --primary: #ff2f92;
    --primary-dark: #e01978;
    --white: #ffffff;
    --black: #000000;
    --gray: #a0a0a0;
    --badge-f: #ff68cd;
    --badge-m: #55aaff;
    --radius: 14px;
    --radius-card: 28px;
    --nav-height: 62px;
    --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.8);
    --shadow-glow: 0 0 22px rgba(255, 47, 146, 0.25);

    --inner-card-gradient: radial-gradient(circle at 0% 0%, #ff5fbd 0%, #ff2f92 30%, #1a0719 70%, transparent 100%);
    --inner-price-gradient: radial-gradient(circle at 0% 0%, #ff5fbd 0%, #ae0352 100%);
}


/* =========================
   BASE
   ========================= */

.hidden {
    display: none;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}
html,
body {
    height: 100%;
    margin: 0;
    scroll-behavior: smooth;
}

.header-text {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    padding-top: 20px;
    z-index: 10;
    pointer-events: none;
}

body.mobile-padding {
    padding-top: 60px;
}

body {
    margin: 0;
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: var(--nav-height);
}

.loading-screen {
    position: fixed;
    inset: 0;
    background: #050506;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.25s ease;
}

.loading-inner {
    padding: 24px;
    border-radius: 24px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.9);
}

.loading-logo {
    width: 48px;
    height: 48px;
    display: block;

    animation: spin 1.5s linear infinite;
}

/* состояние скрытия */
.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}



/* =========================
   NAVBAR — нижнее меню
   ========================= */

.scroll-to-bottom-btn {
    position: fixed;
    bottom: 90px;
    right: 15px;
    background: #ff4eb6;
    color: var(--card);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: 100;
    display: none;
    transition: opacity 0.3s;
    z-index: 51;
    padding: 8px 12px;
    box-shadow: 0 0 8px rgba(255, 78, 182, 0.8);

}

.home-topbar {
    max-width: 1180px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* левая часть — аккаунт */
.home-profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    border-radius: 16px;
    padding: 10px;


    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);

    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s;
}

.home-profile-header:hover {
    background: rgba(255, 78, 182, 0.05);
    box-shadow: 0 0 10px rgba(255, 78, 182, 0.22);
}

.profile-header-icon {
    width: 38px;
    height: 38px;
    padding: 8px;
    border-radius: 50%;

    background: var(--inner-price-gradient);
    box-shadow: 0 0 14px rgba(255, 78, 182, 0.25);
}

.profile-header-info {
    flex: 1;
}

.profile-header-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.profile-header-sub {
    margin-top: 2px;
    font-size: 0.75rem;
    color: #e8badc;
    opacity: 0.9;
}



.home-topbar-right {
    flex-shrink: 0;
}

.home-topbar .fav-badge {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 0 16px rgba(255, 47, 146, 0.45);
}

.home-topbar .fav-badge > span:last-child {
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar {
    height: var(--nav-height);
    background: rgba(5, 5, 6, 0.98);
    backdrop-filter: blur(22px);
    display: flex;
    align-items: center;
    padding: 0 22px;
    justify-content: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.85);
    border-top: 1px solid #1c1723;
    border-radius: 18px 18px 0 0;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background:
            radial-gradient(circle at 15% 0%, #ffe0ff 0%, #ff6fbe 30%, transparent 60%),
            radial-gradient(circle at 80% 100%, #ff9df0 0%, #a1e4ff 45%, transparent 80%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 18px rgba(255, 47, 146, 0.9);
}

.logo-icon {
    font-size: 20px;
    color: var(--primary-dark);
}

.brand {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.2px;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-menu .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    color: var(--gray);
    opacity: 0.9;
    cursor: pointer;
    transition: color 0.14s, opacity 0.14s, transform 0.14s;
    position: relative;
}

.nav-label {
    margin-top: 2px;
    line-height: 1.2;
}


.nav-menu .item.active,
.nav-menu .item:hover {
    color: var(--primary);
    opacity: 1;
    transform: translateY(-1px);
}

.nav-menu .nav-icon {
    width: 22px;
    height: 22px;
    display: block;
    margin-bottom: 2px;
    filter: brightness(0) invert(1) opacity(0.8);
    transition: filter 0.14s;
}

.nav-menu .item.active .nav-icon,
.nav-menu .item:hover .nav-icon {
    filter:
            drop-shadow(0 0 10px rgba(255, 47, 146, 0.9))
            brightness(0) saturate(100%) invert(52%) sepia(88%)
            saturate(4017%) hue-rotate(305deg) brightness(106%) contrast(104%);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fav-badge {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    padding: 4px 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.78rem;
}

.chat-notify-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 7px;
    height: 7px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    display: none;
}

/* =========================
   LAYOUT HOME
   ========================= */
#home-tab {
    max-width: 1180px;
    margin: 0 auto;
    padding: 26px 16px 80px;
}

.hero-banner {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.85);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
}

/* =========================
   MAIN TITLE
   ========================= */
.dream-title-section {
    text-align: center;
    margin: 20px 0 18px;
}

.dream-title {
    margin: 0 0 8px;
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #ffffff;
}

.dream-accent {
    color: var(--primary);
}

.dream-subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: #f798ff;
    opacity: 0.9;
}

/* =========================
   SEARCH BAR
   ========================= */
.search-section {
    margin-bottom: 12px;
}

.search-section,
.filters {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.search-bar {
    background: #09090c;
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #25232c;
}

.search-icon {
    font-size: 1rem;
    opacity: 0.8;
}

.search-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--white);
    font-family: inherit;
    font-size: 0.95rem;
    width: 100%;
}

/* =========================
   FILTERS ROW
   ========================= */
.filters {
    margin-top: 8px;
    margin-bottom: 14px;
}

.filter-select-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.filter-select-btn {
    background: #0f0f13;
    border-radius: 12px;
    border: 1px solid #292434;
    padding: 9px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--white);
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.14s, background 0.14s, box-shadow 0.14s, transform 0.12s;
}

.filter-select-btn:hover {
    border-color: var(--primary);
    background: #13131a;
    box-shadow: 0 0 18px rgba(255, 47, 146, 0.35);
    transform: translateY(-1px);
}

.filter-select-label {
    opacity: 0.96;
}

.filter-select-arrow {
    opacity: 0.8;
}

/* =========================
   CATEGORY PILLS (tabs)
   ========================= */
.tabs,
.multimedia-tab,
.gender-filter {
    background: transparent;
    padding: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
}

.category-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 6px;
    margin-bottom: 4px;
}

.multimedia-tab,
.gender-filter {
    display: none !important;
}

.tab,
.multimedia-btn,
.gender-btn {
    background: #121117;
    color: #e3e3ea;
    border: none;
    font-size: 0.86rem;
    padding: 7px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.16s, color 0.16s, box-shadow 0.16s;
    white-space: nowrap;
    flex: 0 0 auto;
}

.tab.active,
.multimedia-btn.active,
.gender-btn.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 22px rgba(255, 47, 146, 0.75);
}

.tab:hover:not(.active),
.multimedia-btn:hover:not(.active),
.gender-btn:hover:not(.active) {
    background: #1e1a25;
}

/* =========================
   CARD GRID
   ========================= */
.card-grid {
    max-width: 1180px;
    margin: 20px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 22px;
}

.card-grid-section {
    position: relative;
}

.card-grid-loader {
    display: none;
    padding: 24px 0;
    text-align: center;
}

.card-grid-spinner {
    width: 32px;
    height: 32px;
    margin: 0 auto 8px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: #ff4fd8;
    animation: card-spin 0.8s linear infinite;
}

.card-grid-loader-text {
    font-size: 14px;
    opacity: 0.7;
}

@keyframes card-spin {
    to { transform: rotate(360deg); }
}

.character-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #070509;
    box-shadow: var(--shadow-soft), var(--shadow-glow);
    display: flex;
    flex-direction: column;
    padding: 0;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 2px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff68cd, #ff2f92);
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    z-index: 3;
    box-shadow: 0 0 18px rgba(255, 104, 205, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.card-image,
.card-image-placeholder {
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    display: block;
    background: #201722;
}

.card-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 16px 18px;
    background: linear-gradient(
            to top,
            rgba(3, 1, 5, 0.98) 0%,
            rgba(3, 1, 5, 0.75) 30%,
            rgba(3, 1, 5, 0.25) 60%,
            transparent 100%
    );
    z-index: 2;
}

.card-info {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 10px;
}

.card-name {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.card-icon.video {
    display: inline-flex;
    align-items: center;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.card-tag {
    background: rgba(14, 10, 18, 0.9);
    color: #f7f1ff;
    font-size: 0.78rem;
    padding: 5px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: 0.97;
    border: 1px solid rgba(255, 255, 255, 0.09);
}


.promo-banner,
.premium-banner {
    display: none !important;
}
