/* ==========================================================================
   WORLD-TV Club — мобильная PWA-версия
   Облегчённая главная:
   - компактнее
   - больше ощущение приложения
   - горизонтальные карточки
   - лёгкая поддержка и быстрый чат
========================================================================== */

:root {
    --bg-main: #070b16;
    --bg-main-2: #0b1020;
    --bg-card: rgba(18, 25, 48, 0.88);
    --bg-card-soft: rgba(20, 29, 55, 0.72);

    --text-main: #f7f8ff;
    --text-soft: #b9c1da;
    --text-muted: #7d88a8;

    --purple: #a748ff;
    --purple-2: #7e35ff;
    --blue: #20a8ff;
    --pink: #ff4fd8;
    --green: #31e49b;

    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.13);

    --radius-xl: 28px;
    --radius-lg: 23px;
    --radius-md: 18px;
    --radius-sm: 14px;

    --shadow-big: 0 26px 66px rgba(0, 0, 0, 0.40);
    --shadow-soft: 0 16px 36px rgba(0, 0, 0, 0.24);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background:
        radial-gradient(circle at 10% 8%, rgba(167, 72, 255, 0.17), transparent 26rem),
        radial-gradient(circle at 92% 13%, rgba(32, 168, 255, 0.15), transparent 24rem),
        radial-gradient(circle at 50% 86%, rgba(255, 79, 216, 0.10), transparent 24rem),
        linear-gradient(180deg, #050811 0%, #090e1d 48%, #070b16 100%);
    color: var(--text-main);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Inter,
        Arial,
        sans-serif;
}

body {
    overflow-x: hidden;
}

button,
a,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.club-app {
    width: 100%;
    max-width: 720px;
    min-height: 100vh;
    margin: 0 auto;
    padding:
        max(16px, env(safe-area-inset-top))
        13px
        calc(100px + env(safe-area-inset-bottom))
        13px;
}

/* ==========================================================================
   HEADER
========================================================================== */

.club-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.club-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.club-logo {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 23px;
    font-weight: 800;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.18), rgba(255,255,255,0.02)),
        linear-gradient(135deg, var(--purple), var(--blue));
    box-shadow:
        0 14px 28px rgba(120, 66, 255, 0.30),
        inset 0 1px 0 rgba(255,255,255,0.22);
}

.club-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.club-brand-text strong {
    font-size: 17px;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.club-brand-text span {
    margin-top: 3px;
    color: var(--text-soft);
    font-size: 11.5px;
    white-space: nowrap;
}

.club-header-bell {
    position: relative;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    color: var(--text-main);
    background: rgba(17, 24, 47, 0.86);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.club-header-bell span {
    font-size: 20px;
}

.club-header-bell em {
    position: absolute;
    top: -4px;
    right: -3px;
    width: 19px;
    height: 19px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 10.5px;
    font-style: normal;
    font-weight: 700;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    border: 2px solid #070b16;
}

/* ==========================================================================
   WELCOME
========================================================================== */

.club-welcome {
    margin-bottom: 15px;
}

.club-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 11px;
    border: 1px solid rgba(167, 72, 255, 0.26);
    border-radius: 999px;
    color: #dec7ff;
    background: rgba(167, 72, 255, 0.12);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.club-welcome h1 {
    margin: 11px 0 8px;
    max-width: 520px;
    font-size: clamp(28px, 7vw, 40px);
    line-height: 1.01;
    letter-spacing: -0.05em;
}

.club-welcome p {
    max-width: 560px;
    margin: 0;
    color: var(--text-soft);
    font-size: 14.5px;
    line-height: 1.48;
}

/* ==========================================================================
   COMPACT OFFER
========================================================================== */

.club-offer {
    position: relative;
    min-height: 270px;
    margin-top: 17px;
    margin-bottom: 14px;
    padding: 21px 20px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(177, 76, 255, 0.24), rgba(18, 25, 48, 0.68) 48%, rgba(30, 155, 255, 0.18)),
        rgba(17, 24, 47, 0.86);
    box-shadow: var(--shadow-big);
}

.club-offer-glow {
    position: absolute;
    top: -104px;
    right: -92px;
    width: 290px;
    height: 290px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(32, 168, 255, 0.34), transparent 62%);
}

.club-offer::before {
    content: "";
    position: absolute;
    left: -80px;
    bottom: -112px;
    width: 330px;
    height: 245px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 79, 216, 0.21), transparent 70%);
}

.club-offer-content {
    position: relative;
    z-index: 2;
    max-width: 470px;
}

.club-tag {
    display: inline-flex;
    align-items: center;
    height: 29px;
    padding: 0 13px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(159, 71, 255, 0.28);
}

.club-offer h2 {
    margin: 15px 0 9px;
    max-width: 390px;
    font-size: clamp(25px, 6.5vw, 36px);
    line-height: 1.01;
    letter-spacing: -0.045em;
}

.club-offer p {
    max-width: 370px;
    margin: 0;
    color: #d3daee;
    font-size: 14px;
    line-height: 1.5;
}

.club-offer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.club-btn {
    min-height: 46px;
    padding: 0 17px;
    border-radius: 16px;
    border: 0;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

.club-btn-primary {
    background: linear-gradient(135deg, var(--purple), var(--blue));
    box-shadow: 0 17px 34px rgba(107, 81, 255, 0.34);
}

.club-btn-ghost {
    border: 1px solid rgba(255,255,255,0.13);
    background: rgba(255,255,255,0.08);
}

.club-offer-symbol {
    position: absolute;
    z-index: 1;
    right: 18px;
    bottom: 12px;
    color: rgba(255, 255, 255, 0.12);
    font-size: 128px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.08em;
}

/* ==========================================================================
   SUPPORT STRIP
========================================================================== */

.club-support-strip {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-bottom: 23px;
    padding: 14px;
    border: 1px solid var(--line-strong);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(167, 72, 255, 0.11), rgba(17, 24, 47, 0.88));
    box-shadow: var(--shadow-soft);
}

.club-support-icon {
    width: 48px;
    height: 48px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    font-size: 22px;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.16), rgba(255,255,255,0.02)),
        linear-gradient(135deg, var(--purple), var(--pink));
    box-shadow: 0 14px 28px rgba(159, 71, 255, 0.25);
}

.club-support-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.club-support-text strong {
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.club-support-text span {
    margin-top: 3px;
    color: var(--text-soft);
    font-size: 12.5px;
    line-height: 1.35;
}

.club-support-button {
    grid-column: 1 / -1;
    min-height: 48px;
    border: 0;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 18px 35px rgba(107, 81, 255, 0.33);
}

/* ==========================================================================
   COMMON SECTIONS
========================================================================== */

.club-section {
    margin-bottom: 24px;
}

.club-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.club-section-head h2 {
    margin: 0;
    font-size: 20px;
    letter-spacing: -0.03em;
}

.club-section-head button {
    border: 0;
    background: transparent;
    color: #cdafff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

/* ==========================================================================
   HORIZONTAL IMPORTANT CARDS
========================================================================== */

.club-info-scroller {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    margin-left: -13px;
    margin-right: -13px;
    padding-left: 13px;
    padding-right: 13px;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.club-info-scroller::-webkit-scrollbar {
    display: none;
}

.club-mini-card {
    flex: 0 0 255px;
    min-height: 156px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--bg-card-soft);
    box-shadow: var(--shadow-soft);
    scroll-snap-align: start;
}

.club-mini-card-purple {
    background:
        linear-gradient(145deg, rgba(167, 72, 255, 0.19), rgba(20, 29, 55, 0.86));
}

.club-mini-card-blue {
    background:
        linear-gradient(145deg, rgba(32, 168, 255, 0.16), rgba(20, 29, 55, 0.86));
}

.club-mini-card-pink {
    background:
        linear-gradient(145deg, rgba(255, 79, 216, 0.16), rgba(20, 29, 55, 0.86));
}

.club-mini-icon {
    width: 40px;
    height: 40px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    color: #fff;
    font-size: 19px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.08);
}

.club-mini-card h3 {
    margin: 0 0 7px;
    font-size: 16px;
    line-height: 1.25;
    letter-spacing: -0.022em;
}

.club-mini-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.48;
}

/* ==========================================================================
   NEWS
========================================================================== */

.club-news-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.club-news-item {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 11px;
    position: relative;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(17, 24, 47, 0.80);
    box-shadow: var(--shadow-soft);
}

.club-news-marker {
    width: 11px;
    height: 11px;
    margin-top: 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink), var(--blue));
    box-shadow: 0 0 18px rgba(167, 72, 255, 0.55);
}

.club-news-copy h3 {
    margin: 0 64px 4px 0;
    font-size: 15.5px;
    line-height: 1.27;
    letter-spacing: -0.02em;
}

.club-news-copy p {
    margin: 0;
    color: var(--text-soft);
    font-size: 12.8px;
    line-height: 1.45;
}

.club-news-item time {
    position: absolute;
    top: 16px;
    right: 15px;
    color: var(--text-muted);
    font-size: 11.5px;
}

/* ==========================================================================
   BOTTOM NAV
========================================================================== */

.club-bottom-nav {
    position: fixed;
    z-index: 40;
    left: 50%;
    bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(100% - 14px);
    max-width: 688px;
    min-height: 74px;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    padding: 9px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 28px;
    background: rgba(9, 14, 29, 0.95);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.48);
}

.club-nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    border-radius: 18px;
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.18s ease;
}

.club-nav-item span {
    font-size: 20px;
    line-height: 1;
}

.club-nav-item small {
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
}

.club-nav-item.is-active {
    color: #fff;
    background: linear-gradient(135deg, rgba(167,72,255,0.24), rgba(32,168,255,0.18));
}

.club-nav-chat {
    color: #fff;
}

.club-nav-chat span {
    width: 46px;
    height: 46px;
    margin-top: -26px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    box-shadow: 0 18px 32px rgba(107, 81, 255, 0.42);
}

.club-nav-chat small {
    margin-top: -2px;
}

/* ==========================================================================
   CHAT MODAL
========================================================================== */

.club-chat-modal {
    position: fixed;
    z-index: 90;
    inset: 0;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.club-chat-modal.is-open {
    display: flex;
}

.club-chat-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.club-chat-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 720px;
    min-height: min(72vh, 680px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 32px 32px 0 0;
    background:
        radial-gradient(circle at 80% 0%, rgba(167,72,255,0.18), transparent 18rem),
        #0a1020;
    box-shadow: 0 -30px 70px rgba(0,0,0,0.55);
    overflow: hidden;
}

.club-chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 18px 16px;
    border-bottom: 1px solid var(--line);
}

.club-chat-head div {
    display: flex;
    flex-direction: column;
}

.club-chat-head strong {
    font-size: 18px;
}

.club-chat-head span {
    margin-top: 3px;
    color: var(--green);
    font-size: 13px;
}

.club-chat-head button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 15px;
    color: #fff;
    background: rgba(255,255,255,0.06);
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}

.club-chat-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 380px;
    padding: 18px;
}

.club-message {
    max-width: 88%;
    padding: 14px 15px;
    border-radius: 18px;
    color: #eaf0ff;
    font-size: 14px;
    line-height: 1.5;
}

.club-message-support {
    align-self: flex-start;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.07);
}

.club-chat-footer {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px 50px;
    gap: 8px;
    padding: 15px 16px max(15px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
}

.club-chat-footer input {
    width: 100%;
    min-height: 50px;
    padding: 0 15px;
    border: 1px solid var(--line-strong);
    border-radius: 17px;
    color: var(--text-soft);
    background: rgba(255,255,255,0.06);
}

.club-chat-attach,
.club-chat-mic,
.club-chat-send {
    min-height: 50px;
    border: 1px solid var(--line-strong);
    border-radius: 17px;
    color: #fff;
    background: rgba(255,255,255,0.06);
}

.club-chat-send {
    border: 0;
    background: linear-gradient(135deg, var(--purple), var(--blue));
}

/* ==========================================================================
   TABLET / WIDER
========================================================================== */

@media (min-width: 640px) {
    .club-app {
        padding-left: 22px;
        padding-right: 22px;
    }

    .club-support-strip {
        grid-template-columns: 48px minmax(0, 1fr) 130px;
    }

    .club-support-button {
        grid-column: auto;
    }

    .club-info-scroller {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
}