body {
    margin: 0;
    font-family: Inter, sans-serif;
    background: #fafafa;
    color: #111;
}

/* HEADER */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 12px 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,.05);
    position: sticky;
    top: 0;
    z-index: 999;
}

/* ===== PPV НАСТРОЙКА В ФОРМЕ ПОСТА ===== */

.ppv-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #0c0c0c;
    border: 1px solid #222;
}

.ppv-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.ppv-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #f36;
    cursor: pointer;
}

.ppv-toggle-text {
    display: flex;
    flex-direction: column;
}

.ppv-label-main {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
}

.ppv-label-sub {
    font-size: 12px;
    color: #9ca3af;
}



/* ===== PPV КАРТОЧКА В ФОРМЕ ПОСТА ===== */

.ppv-card {
    margin-top: 14px;
    padding: 14px 14px 10px;
    border-radius: 14px;
    background: radial-gradient(circle at top left, #111827, #020617);
    border: 1px solid #1f2937;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ppv-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ppv-title-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ppv-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(243, 54, 102, 0.12);
    color: #f36;
    font-weight: 600;
}

.ppv-title-main {
    font-size: 14px;
    color: #fff;
    font-weight: 600;
}

.ppv-title-sub {
    font-size: 12px;
    color: #9ca3af;
}

/* ===== ТУМБЛЕР PPV ===== */

.ppv-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    border: 1px solid #4b5563;
    background: #020617;
    cursor: pointer;
    outline: none;
    min-width: 120px;
    justify-content: flex-start;
    transition: all .25s ease;
}

.ppv-switch-knob {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #6b7280;
    box-shadow: 0 0 0 rgba(0,0,0,0.4);
    transition: all .25s ease;
}

.ppv-switch-label {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

/* состояние "включено" — вешаем на .ppv-card.ppv-on */

.ppv-card.ppv-on .ppv-switch {
    background: linear-gradient(135deg, #f97316, #ec4899);
    border-color: transparent;
    justify-content: flex-end;
}

.ppv-card.ppv-on .ppv-switch-knob {
    background: #0b1120;
    box-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.ppv-card.ppv-on .ppv-switch-label {
    color: #0b1120;
    font-weight: 600;
}

/* ===== БЛОК ЦЕНЫ ===== */

.ppv-price-row {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;

    /* анимация скрытия/показа */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-4px);
    transition: all .25s ease;
}

.ppv-card.ppv-on .ppv-price-row {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
}

.ppv-price-label {
    font-size: 12px;
    color: #9ca3af;
}

.ppv-price-input-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #020617;
    border-radius: 999px;
    border: 1px solid #4b5563;
    box-shadow: 0 0 0 rgba(243, 54, 102, 0);
    transition: all .25s ease;
    align-self: flex-start;
}

.ppv-price-input-wrap:hover {
    border-color: #f36;
}

.ppv-price-input-wrap.focused {
    border-color: #f36;
    box-shadow: 0 0 10px rgba(243, 54, 102, .4);
}

.ppv-currency {
    font-size: 14px;
    color: #f36;
    font-weight: 700;
}

.ppv-price-input {
    width: 80px;
    background: transparent;
    border: none;
    outline: none;
    text-align: right;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.ppv-price-input::placeholder {
    color: #6b7280;
    opacity: 0.7;
}

.ppv-price-input:disabled {
    color: #4b5563;
}

/* пресеты */

.ppv-price-presets {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.ppv-preset {
    border: none;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
    background: #111827;
    color: #e5e7eb;
    transition: all .2s ease;
}

.ppv-preset:hover {
    background: #1f2937;
}

.ppv-preset.active {
    background: #f36;
    color: #0b1120;
}

/* мобилки */

@media (max-width: 600px) {
    .ppv-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .ppv-switch {
        align-self: stretch;
        justify-content: space-between;
    }

    .ppv-price-input-wrap {
        width: 100%;
        justify-content: space-between;
    }
}




/* когда выключено — подсвечиваем серым */
.ppv-price-input.disabled {
    color: #6b7280;
}

/* мобилки — чтобы ряд не ломался */
@media (max-width: 600px) {
    .ppv-row {
        flex-direction: column;
        align-items: stretch;
    }

    .ppv-price-wrap {
        align-self: flex-end;
    }
}


.logo {
    font-size: 22px;
    font-weight: 700;
}

/* Search */
.search-bar input {
    padding: 8px 12px;
    width: 250px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

/* NAV */
.nav a {
    margin-left: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #333;
}

.btn-primary {
    background: #f36;
    padding: 8px 14px;
    border-radius: 6px;
    color: #fff !important;
    transition: .25s;
    text-decoration: none;

}

.post-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}

.post-gallery.single {
    grid-template-columns: 1fr;
}

/*.post-gallery.single img {
    object-fit: contain;
}*/

/*.post-gallery:not(.single) img {
    object-fit: cover;
} */


.post-gallery img {
    width: 100%;
    height: auto;              /* ключ */
    max-height: 520px;         /* ограничиваем рост */
    object-fit: contain;       /* вместо cover */
    background: #000;          /* чтобы были чёрные поля */
    border-radius: 8px;
}

@media (max-width: 768px) {
    .post-gallery img {
        max-height: 360px;
    }
}




.post-image {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}


post-img {
    width: 100%;          /* занимает всю ширину родителя, но не больше */
    max-width: 600px;     /* максимум 600px, как на десктопе */
    height: auto;         /* сохраняет пропорции */
    border-radius: 12px;  /* аккуратные скругления */
    display: block;
    margin: 10px auto;    /* центрирование */
    object-fit: cover;    /* чтобы не растягивалось по высоте */
}

video {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 10px auto;
}



/* CONTENT */
.content {
    max-width: 1200px;
    margin: auto;
    padding: 30px 20px;
}

.page-title {
    font-size: 26px;
    margin-bottom: 25px;
}

/* CREATOR GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 25px;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
    transition: .3s;
    text-align: center;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

.card .avatar {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    object-fit: cover;
}

/* MOBILE UI */
@media (max-width: 600px) {
    .nav { display: none; }
    .search-bar input { width: 140px; }

    .header {
        flex-direction: column;
        gap: 10px;
    }
}

/* ОБЩЕЕ ------------------------------------------------------------ */

.post-container {
    background: #111;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid #222;
    position: relative;
}

.delete-post-form {
    position: absolute;
    top: 10px;
    right: 10px;
}

.delete-post-btn {
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    font-size: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
}

.delete-post-btn:hover {
    background: rgba(255,0,0,0.8);
}


@media (min-width: 1024px) {
    .post-container {
        width: 50%;         /* половина ширины контейнера */
        margin: 15px auto;  /* центрируем */
        padding: 10px;      /* чуть меньше отступы */
    }
}

@media (min-width: 1024px) {
    .post-container .post-image {
        max-height: 300px; /* ограничиваем высоту изображений */
        object-fit: cover;
        border-radius: 8px;
    }
}

.post-time {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 12px;
    color: #8e8e8e;
    opacity: 0.8;
}

.post-container:hover {
    border-color: #f36;
    transition: 0.2s ease;
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.post-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
}

.post-user-info {
    margin-left: 1px;
    display: flex;
    flex-direction: column;
}

.post-name-row {
    display: flex;
    align-items: center;
}

.post-name {
    font-weight: 600;
    font-size: 16px;
    color: #fff;
    margin-right: 6px;
}

.verified-icon {
    width: 16px;
    height: 16px;
}

.post-username {
    color: #7f8ea3;
    font-size: 14px;
}

.post-time {
    font-size: 12px;
    color: #5f7088;
}

.post-menu img {
    width: 20px;
    height: 20px;
    margin-left: auto;
    cursor: pointer;
    opacity: 0.7;
}

.post-menu img:hover {
    opacity: 1;
}

/* ТЕКСТ ------------------------------------------------------------ */

.post-text {
    font-size: 16px;
    color: #dce3ed;
    margin-bottom: 12px;
    white-space: pre-line;
    line-height: 1.4;
}

/* МЕДИА ------------------------------------------------------------ */

.post-media {
    width: 100%;
    border-radius: 12px;
    margin-top: 10px;
    display: block;
    max-height: 80vh;
    object-fit: contain;
    background: #000;
}

.post-image {
    cursor: pointer;
    transition: transform .3s ease;
}

.post-image:hover {
    transform: scale(1.01);
}

/* ЛОК-БЛОК ------------------------------------------------------------ */

.post-locked {
    border: 2px dashed #222;
    border-radius: 12px;
    padding: 22px;
    text-align: center;
    background: rgba(255,255,255,0.03);
}

.lock-icon {
    width: 45px;
    opacity: 0.8;
    margin-bottom: 10px;
    color: #b0bed0;
}

.locked-preview {
    font-size: 15px;
    color: #b0bed0;
    margin-bottom: 12px;
}

.subscribe-btn {
    background: #f36;
    color: #fff;
    padding: 12px 18px;
    display: inline-block;
    border-radius: 30px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.subscribe-btn:hover {
    background: #f36;
}

/* ПРОФИЛЬ ------------------------------------------------------------ */

.profile-wrapper {
    color: #fff;
}




.creator-info .avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin-top: -55px;
    border: 4px solid #111;
    object-fit: cover;
}

/* ЗАКРЫТЫЙ КОНТЕНТ ПРИ НЕПОДПИСКЕ ----------------------------------- */

.locked {
    background: #111;
    border-radius: 14px;
    padding: 26px;
    text-align: center;
    border: 2px dashed #222;
}

.lock-icon {
    width: 42px;
    margin-bottom: 12px;
}

.locked-message {
    text-align: center;
    color: #a8b7cd;
    margin: 20px 0;
}

/* АДАПТИВ ------------------------------------------------------------ */

@media (max-width: 600px) {
    .post-container {
        padding: 12px;
        border-radius: 10px;
    }

    .post-avatar {
        width: 42px;
        height: 42px;
    }

    .post-name {
        font-size: 14px;
    }

    .post-text {
        font-size: 16px;
    }

    .creator-banner {
        height: 150px;
    }

    .creator-info .avatar {
        width: 90px;
        height: 90px;
        margin-top: -45px;
    }
}

/* Блок формы */
.new-post-box {
    background: #111;
    padding: 20px;
    border-radius: 14px;
    border: 1px solid #222;
    margin: 30px 0;
}

@media (min-width: 1024px) {
    .new-post-box {
        width: 70%;         /* половина ширины контейнера */
        margin: 15px auto;  /* центрируем */
        padding: 10px;      /* чуть меньше отступы */
    }
}

.new-post-box h3 {
    margin-top: 0;
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
}

/* Поле текста */
.post-input {
    width: 100%;
    min-height: 80px;
    background: #0c0c0c;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 12px;
    font-size: 15px;
    color: #fff;
    resize: vertical;
    outline: none;
}

.post-input:focus {
    border-color: #f36;
}

/* Зона загрузки */
.upload-area {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;

    background: #0d0d0d;
    border: 2px dashed #333;
    color: #8b9bb2;
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 14px;
    transition: 0.15s;
}

.upload-area:hover {
    border-color: #f36;
    color: #fff;
}

.edit-profile-btn {
    width: 100%;
    text-align: center;
    color: #fff;
}


.upload-area img {
    width: 36px;
    opacity: 0.8;
}

/* Кнопка “Опубликовать” */
.publish-btn {
    background: #f36;
    border: none;
    padding: 12px 18px;
    border-radius: 20px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-top: 14px;
    cursor: pointer;
    width: 160px;
    transition: 0.2s;
}

.publish-btn:hover {
    background: #f36;
}

/* Мобилки */
@media (max-width: 600px) {
    .new-post-box {
        padding: 16px;
    }

    .publish-btn {
        width: 100%;
        border-radius: 12px;
    }
}

/* Галерея предпросмотра */
.preview-gallery {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    margin-top: 12px;
}

.preview-gallery img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    height: 100px;
    cursor: pointer;
    transition: 0.2s;
}

.preview-gallery img:hover {
    opacity: 0.8;
}

/* Лайтбокс */
.lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.92);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
}

.lightbox.show {
    display: flex;
}

/* Стрелки перелистывания */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 44px;
    color: white;
    cursor: pointer;
    padding: 20px;
    opacity: 0.6;
}

.lightbox-arrow:hover {
    opacity: 1;
}

.lightbox-arrow.left {
    left: 10px;
}

.lightbox-arrow.right {
    right: 10px;
}


.settings-page {
    display: flex;
    max-width: 1200px;
    margin: 40px auto;
    gap: 30px;
    background: #fafafa;
    padding: 20px;
    border-radius: 16px;
}

.settings-sidebar {
    width: 220px;
    background: #fff;
    border-radius: 14px;
    padding: 10px;
}

.settings-sidebar a {
    display: block;
    padding: 12px;
    border-radius: 10px;
    color: #111;
    text-decoration: none;
}

.settings-sidebar a.active {
    background: #ff6600;
    color: #fff;
}

.settings-content {
    flex: 1;
    background: #fff;
    border-radius: 14px;
    padding: 20px;
}

.ppv-stats-btn {
    background-color: #ff6600;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    margin-left: 10px;
    transition: 0.2s;
}

.ppv-stats-btn:hover {
    background-color: #e65c00;
}


.section-title {
    font-size: 22px;
    margin: 30px 0 15px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.card {
    background: #111;
    padding: 12px;
    border-radius: 14px;
    text-align: center;
}

.highlight {
    border: 2px solid #f36;
    box-shadow: 0 0 20px rgba(255,50,100,.2);
}

.avatar {
    width: 100%;
    border-radius: 12px;
}

.btn-primary {
    display: block;
    margin-top: 10px;
    background: #f36;
    padding: 8px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
}

.post-container {
    background: #111;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid #222;
    position: relative;
}

.post-header {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.post-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

.post-image {
    width: 100%;
    border-radius: 12px;
    margin-top: 10px;
}

.post-locked {
    padding: 40px;
    text-align: center;
    background: rgba(0,0,0,.6);
    border-radius: 12px;
    color: #fff;
    font-size: 18px;
}


.ppv-blur {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
    position: relative;
}

.ppv-blur::after {
    content: "🔒 PPV контент";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 18px;
}

/* ===== ВИДЕО НА СТРАНИЦЕ КРЕАТОРА ===== */

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin: 16px 0 30px;
}

.video-card {
    background: #111;
    border-radius: 14px;
    border: 1px solid #222;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.video-thumb-wrap {
    background: #000;
}

.video-player {
    width: 100%;
    height: auto;
    display: block;
    max-height: 360px;
    object-fit: contain;
}

.video-meta {
    padding: 10px 12px 12px;
}

.video-title {
    font-size: 14px;
    color: #e5e7eb;
    margin-bottom: 6px;
    font-weight: 500;
}

.video-pill {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #020617;
    color: #9ca3af;
    border: 1px solid #1f2937;
    margin-bottom: 4px;
}

.video-pill-ppv {
    background: rgba(243, 54, 102, 0.1);
    color: #f9a8d4;
    border-color: #f36;
}

.video-date {
    font-size: 11px;
    color: #64748b;
}

/* ===== ТАБЫ ПРОФИЛЯ (Посты / Медиа) ===== */

/* ===== ТАБЫ ПРОФИЛЯ (Посты / Медиа) ===== */

.tabs {
    display: flex;
    gap: 24px;
    margin-top: 16px;
    margin-bottom: 14px;
    border-bottom: 1px solid #222;
    padding-bottom: 6px;

}

.tab-btn {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 16px;
    font-weight: 500;
    padding: 6px 0;
    cursor: pointer;
    transition: 0.2s;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    color: #fff;
}

.tab-btn.active {
    color: #fff;
    border-bottom: 3px solid #f36;
}

/* панели вкладок */
.tab-panel { display: none; }
.tab-panel.active { display: block; }


/* ===== ВИДЕО-СЕТКА НА ВКЛАДКЕ "МЕДИА" ===== */

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.video-card {
    background: #111;
    border-radius: 12px;
    border: 1px solid #222;
    padding: 10px;
}

.video-thumb,
.video-player {
    width: 100%;
    border-radius: 10px;
    display: block;
    background: #000;
}

.video-meta {
    margin-top: 8px;
}

.video-title {
    font-size: 14px;
    color: #e5e7eb;
}

.video-ppv {
    margin-top: 2px;
    font-size: 12px;
    color: #fbbf24;
}

.floating-add-video {
    position: fixed;
    bottom: 30px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #f36;
    color: white;
    font-size: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0,0,0,.35);
    text-decoration: none;
    z-index: 2000;
}
.floating-add-video:hover {
    transform: scale(1.06);
}

/* ===== HOME LAYOUT ===== */

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr);
    gap: 24px;
    margin-bottom: 28px;
    align-items: stretch;
}

.home-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.home-subtitle {
    margin: 0 0 18px;
    color: #9ca3af;
    font-size: 14px;
    max-width: 420px;
}

.home-hero-stats {
    display: flex;
    gap: 16px;
}

.hero-stat {
    background: #111827;
    border-radius: 12px;
    padding: 10px 14px;
    border: 1px solid #1f2937;
}

.hero-stat-value {
    display: block;
    font-size: 18px;
    color: #fff;
    font-weight: 700;
}

.hero-stat-label {
    font-size: 12px;
    color: #9ca3af;
}

/* правая карточка "для креаторов" */

.home-hero-card {
    background: radial-gradient(circle at top left, #f97316, #ec4899);
    border-radius: 18px;
    padding: 18px 18px 16px;
    color: #0b1120;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 18px 35px rgba(0,0,0,0.45);
}

.hero-card-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.9;
    margin-bottom: 6px;
}

.hero-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.hero-card-text {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 12px;
}

.hero-card-btn {
    align-self: flex-start;
    background: #0b1120;
    color: #fff;
    padding: 8px 14px;
    font-size: 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.hero-card-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(15,23,42,0.7);
    opacity: 0.95;
}

/* основной layout: слева топ, справа лента */

.home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
    gap: 24px;
}

.home-column {
    min-width: 0;
}

.home-section-header {
    margin-bottom: 10px;
}

.section-title {
    font-size: 20px;
    margin: 0 0 4px;
    color: #fff;
}

.section-caption {
    font-size: 12px;
    color: #6b7280;
}

.empty-text {
    font-size: 13px;
    color: #6b7280;
}

/* ===== TRENDING CREATORS ===== */

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trending-card {
    text-decoration: none;
    color: inherit;
}

.trending-thumb-wrap {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #020617;
    border: 1px solid #1f2937;
    min-height: 140px;
    display: flex;
}

.trending-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform .25s ease, filter .25s ease;
}

.trending-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.9), rgba(15,23,42,0.1));
    pointer-events: none;
}

.trending-meta-top,
.trending-meta-bottom {
    position: absolute;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trending-meta-top {
    top: 8px;
}

.trending-meta-bottom {
    bottom: 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.trending-pill {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    background: rgba(15,23,42,0.8);
    color: #e5e7eb;
    border: 1px solid rgba(148,163,184,0.5);
}

.trending-pill.price {
    background: rgba(8,47,73,0.9);
    border-color: rgba(56,189,248,0.6);
    color: #e0f2fe;
}

.trending-pill.free {
    background: rgba(22,163,74,0.15);
    border-color: rgba(52,211,153,0.7);
    color: #bbf7d0;
}

.trending-name {
    font-size: 14px;
    font-weight: 600;
    color: #f9fafb;
}

.trending-username {
    font-size: 12px;
    color: #9ca3af;
}

.trending-card:hover .trending-avatar {
    transform: scale(1.05);
    filter: brightness(1.02);
}

/* готовим первый элемент чуть крупнее на десктопе */

.trending-card-main .trending-thumb-wrap {
    min-height: 170px;
}

/* ===== FEED (ЛЕНТА) ===== */

.home-post-card {
    margin-bottom: 14px;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-user-info {
    flex: 1;
}

.post-open-profile {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid #1f2937;
    padding: 4px 10px;
    transition: all .15s ease;
}

.post-open-profile:hover {
    border-color: #f36;
    color: #fff;
}

/* маленькие плашки над постом */

.post-top-row {
    margin-top: 6px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.feed-pill {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid #1f2937;
    color: #9ca3af;
    background: #020617;
}

.feed-pill-ppv {
    border-color: rgba(243,54,102,0.6);
    color: #fecaca;
    background: rgba(248,113,113,0.12);
}

.feed-pill-sub {
    border-color: rgba(52,211,153,0.6);
    color: #bbf7d0;
    background: rgba(22,163,74,0.15);
}

/* лёгко другая подложка для "залоченного" на главной */

.home-locked {
    background: rgba(15,23,42,0.85);
}

/* адаптив */

@media (max-width: 900px) {
    .home-hero {
        grid-template-columns: 1fr;
    }

    .home-layout {
        grid-template-columns: 1fr;
    }

    .home-hero-card {
        order: -1;
    }
}

.plans-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plans-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.plan-option {
    display: flex;
    align-items: stretch;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #0b1120;
    border: 1px solid #1f2937;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.plan-option input[type="radio"] {
    margin-top: 4px;
    accent-color: #f36;
    cursor: pointer;
}

.plan-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.plan-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plan-title {
    font-size: 14px;
    font-weight: 600;
    color: #e5e7eb;
}

.plan-price {
    font-size: 14px;
    font-weight: 600;
    color: #f97316;
}

.plan-meta {
    font-size: 12px;
    color: #9ca3af;
}

.plan-option:hover {
    border-color: #f36;
    box-shadow: 0 0 10px rgba(243, 54, 102, 0.3);
}

.plans-submit-btn {
    width: 100%;
    text-align: center;
    margin-top: 4px;
}

.current-sub {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.current-sub-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.current-sub-label {
    font-size: 12px;
    color: #9ca3af;
}

.current-sub-plan {
    font-size: 14px;
    color: #e5e7eb;
}


.sub-offer-card {
    background: #141414;
    border: 1px solid #292929;
    border-radius: 18px;
    padding: 22px;
    max-width: 420px;
    margin: 28px auto;
    text-align: center;
    box-shadow: 0 0 28px rgba(243, 54, 102, 0.12);
}

.sub-head {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 6px;
    font-weight: 500;
    color: #d1d5db;
    font-size: 14px;
    margin-bottom: 12px;
}

.sub-head .price {
    font-size: 32px;
    font-weight: 800;
    color: #ff2f6a;
    line-height: 1;
}

.sub-head .cur {
    font-size: 20px;
    opacity: .85;
    margin-left: 2px;
}

.period {
    font-size: 14px;
    color: #9ca3af;
    margin-left: 4px;
}

.sub-features {
    font-size: 14px;
    color: #cbd5e1;
    margin: 0 auto 22px;
    line-height: 1.45;
    display: grid;
    gap: 4px;
}

.sub-cta {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(90deg, #ff2f6a, #ff5fa3);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: 0.15s;
}

.sub-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 47, 106, 0.4);
}

.of-subscribe-section {
    width: 100%;
    background: #0c0c0e;
    border-top: 1px solid #1f1f22;
    border-bottom: 1px solid #1f1f22;
    padding: 22px 16px;
    margin: 30px 0;
}

.of-sub-header {
    color: #9ca3af;
    font-size: 13px;
    letter-spacing: 0.8px;
    font-weight: 600;
    margin-bottom: 12px;
}

.of-sub-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    background: #f36;
    border-radius: 30px;
}

a {
    text-decoration: none;
    color: #fff;
}

.of-main-btn {
    flex: 2;
    background: #f36;
    text-decoration: none;
    border: none;
    border-radius: 26px;
    font-weight: 700;
    font-size: 16px;
    color: white;
    padding: 14px 0;
    cursor: pointer;
    text-align: center;
    line-height: 1.2;
}

.of-main-btn .price {
    font-size: 14px;
    opacity: 0.85;
    font-weight: 400;
    text-decoration: none;
}

.of-secondary-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #2f2f32;
    background: #111;
    color: white;
    border-radius: 26px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.of-secondary-btn:hover {
    background: #1b1b1e;
    border-color: #3b3b3e;
}


.single-sub-btn-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0;
}

.subscribe-main-btn {
    width: 90%;
    padding: 18px;
    background: #f36;
    color: #fff;
    border-radius: 40px;
    font-size: 18px;
    font-weight: 700;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.2s;
}

.subscribe-main-btn:hover {
    background: #0ab2ff;
    transform: translateY(-2px);
}

/* ===== УРОВНИ ДОСТУПА КОНТЕНТА ===== */

.access-row {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.access-label {
    font-size: 12px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.access-levels {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.access-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.access-pill input {
    display: none;
}

.access-pill span {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #1f2937;
    background: #020617;
    color: #e5e7eb;
    transition: 0.15s;
    white-space: nowrap;
}

.access-pill:hover span {
    border-color: #f36;
}

.access-pill input:checked + span {
    background: #f36;
    border-color: #f36;
    color: #0b1120;
    box-shadow: 0 0 12px rgba(243, 54, 102, 0.5);
}


.creator-settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.8fr);
    gap: 20px;
}

.creator-preview-card {
    background: #0b1120;
    border-radius: 16px;
    border: 1px solid #1f2937;
    overflow: hidden;
}

.creator-preview-banner img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.creator-preview-body {
    display: flex;
    gap: 12px;
    padding: 12px 14px 16px;
    align-items: flex-start;
}

.creator-preview-avatar-wrap {
    margin-top: -32px;
}

.creator-preview-avatar {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    border: 3px solid #0b1120;
    object-fit: cover;
}

.creator-preview-text {
    flex: 1;
}

.creator-preview-name {
    font-size: 16px;
    font-weight: 600;
    color: #f9fafb;
}

.creator-preview-username {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 6px;
}

.creator-preview-bio {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.4;
}

/* правая карточка формы */

.creator-form-card {
    background: #020617;
    border-radius: 16px;
    border: 1px solid #1f2937;
    padding: 16px 16px 18px;
}

.creator-form-card .form-row {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.creator-form-card label {
    font-size: 13px;
    color: #9ca3af;
}

.creator-form-card input[type="text"],
.creator-form-card textarea,
.creator-form-card input[type="file"] {
    background: #020617;
    border-radius: 10px;
    border: 1px solid #1f2937;
    padding: 8px 10px;
    color: #e5e7eb;
    font-size: 14px;
}

.creator-form-card textarea {
    min-height: 80px;
    resize: vertical;
}

.creator-form-card input[type="text"]:focus,
.creator-form-card textarea:focus {
    outline: none;
    border-color: #f36;
}

.field-error {
    font-size: 12px;
    color: #fecaca;
}

.field-hint {
    font-size: 11px;
    color: #6b7280;
}

/* мобилки */

@media (max-width: 800px) {
    .creator-settings-grid {
        grid-template-columns: 1fr;
    }
}


/* ===== USER HUB (обычный профиль пользователя) ===== */

.user-hub {
    max-width: 900px;
    margin: 30px auto 40px;
    color: #fff;
}

.user-hub-main {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
    gap: 20px;
}

.user-settings {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.user-settings-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.user-settings-form,
.user-security-card {
    background: #020617;
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
    border: 1px solid #1f2937;
}

.user-settings-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.user-settings-row label {
    font-size: 13px;
    color: #9ca3af;
}

.user-settings-form input[type="email"],
.settings-input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #1f2937;
    background: #020617;
    padding: 10px 12px;
    color: #e5e7eb;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.user-settings-text {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 10px;
}


@media (max-width: 800px) {
    .user-hub-main {
        grid-template-columns: 1fr;
    }
}

.user-card {
    background: #111827;
    border-radius: 18px;
    border: 1px solid #1f2937;
    padding: 18px 18px 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.user-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.user-avatar-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle at top left, #f97316, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 22px;
    color: #0b1120;
}

.user-card-title-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-greeting {
    font-size: 18px;
    font-weight: 700;
}

.user-tag {
    font-size: 13px;
    color: #9ca3af;
}

.user-info-grid {
    margin-top: 6px;
    border-top: 1px solid #1f2937;
    padding-top: 10px;
    display: grid;
    gap: 8px;
}

.user-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.user-info-row .label {
    color: #6b7280;
}

.user-info-row .value {
    color: #e5e7eb;
}

.status-creator {
    color: #bbf7d0;
}

.status-user {
    color: #93c5fd;
}

/* блок при наличии креаторского профиля */

.creator-quick-links {
    background: #020617;
    border-radius: 18px;
    border: 1px solid #1f2937;
    padding: 18px 18px 16px;
}

.creator-quick-links h3 {
    margin: 0 0 6px;
    font-size: 17px;
}

.creator-quick-links p {
    margin: 0 0 14px;
    font-size: 13px;
    color: #9ca3af;
}

.creator-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.creator-quick-actions .btn {
    text-decoration: none;
}

.creator-quick-actions .main-btn {
    background: #f36;
    border-radius: 999px;
    padding: 9px 14px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.creator-quick-actions .secondary-btn {
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 13px;
    border: 1px solid #4b5563;
    color: #e5e7eb;
    background: transparent;
}

/* блок приглашения стать креатором */

.creator-invite-card {
    background: radial-gradient(circle at top left, #f97316, #ec4899);
    border-radius: 18px;
    padding: 18px 18px 16px;
    color: #0b1120;
    box-shadow: 0 16px 40px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.creator-invite-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.9;
    margin-bottom: 6px;
}

.creator-invite-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
}

.creator-invite-text {
    margin: 0 0 14px;
    font-size: 13px;
    opacity: 0.9;
}

.big-creator-btn {
    align-self: flex-start;
    background: #0b1120;
    color: #fff;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.big-creator-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(15,23,42,0.8);
    opacity: 0.96;
}

/* футер профиля */

.user-hub-footer {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
}

.logout-link {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: none;
}

.logout-link:hover {
    color: #f36;
}

.post-input {
        box-sizing: border-box;
}

.ppv-price-input-wrap {
    box-sizing: border-box;
}

/* ===== HEADER / NAVBAR ===== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(7, 10, 17, 0.96);
    border-bottom: 1px solid #111827;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* логотип */

.header-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-mark {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #f36, #0ea5e9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11.5px;
    font-weight: 800;
    color: #0b1120;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #f9fafb;
}

/* поиск */

.header-search {
    flex: 1;
    max-width: 420px;
}

.header-search input {
    width: 100%;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #1f2937;
    background: #020617;
    color: #e5e7eb;
    font-size: 14px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    box-sizing: border-box;
}

.header-search input::placeholder {
    color: #6b7280;
}

.header-search input:focus {
    border-color: #f36;
    box-shadow: 0 0 0 1px rgba(243, 54, 102, 0.6);
    background: #02081f;
}

/* десктопная навигация */

.header-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    text-decoration: none;
    color: #e5e7eb;
    border: 1px solid transparent;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
    white-space: nowrap;
}

.nav-link:hover {
    background: #020617;
    border-color: #1f2937;
}

.nav-cta {
    background: #f36;
    border-color: transparent;
    color: #fff;
    font-weight: 600;
}

.nav-cta:hover {
    background: #fb5b8d;
}

.nav-link-btn {
    background: transparent;
    border: 1px solid #1f2937;
    cursor: pointer;
    font: inherit;
    color: #e5e7eb;
    padding-inline: 14px;
}

.nav-logout-form {
    margin: 0;
}

/* бургер */

.header-burger {
    display: none;
    width: 36px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.header-burger span {
    height: 2px;
    width: 100%;
    background: #e5e7eb;
    border-radius: 999px;
    transition: transform .2s ease, opacity .2s ease;
}

/* мобильное меню */

.header-mobile-menu {
    display: none;
    border-top: 1px solid #111827;
    background: #020617;
}

.header-mobile-menu.open {
    display: block;
}

.header-search-mobile {
    padding: 8px 16px 4px;
}

.header-search-mobile input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #1f2937;
    background: #020617;
    color: #e5e7eb;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.header-search-mobile input::placeholder {
    color: #6b7280;
}

.header-search-mobile input:focus {
    border-color: #f36;
    box-shadow: 0 0 0 1px rgba(243, 54, 102, 0.6);
}

.header-mobile-nav {
    padding: 8px 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-link {
    width: 100%;
    text-align: left;
    padding: 9px 10px;
    border-radius: 10px;
    background: #020617;
    border: 1px solid #111827;
    color: #e5e7eb;
    font-size: 14px;
    text-decoration: none;
    display: block;
    box-sizing: border-box;
}

.mobile-link:hover {
    border-color: #f36;
}

.mobile-link-accent {
    background: #f36;
    border-color: transparent;
    color: #fff;
    font-weight: 600;
}

.mobile-logout-form {
    margin: 0;
}

.mobile-link-btn {
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    padding: 0;
    font: inherit;
    color: inherit;
}

/* адаптивки */

@media (max-width: 900px) {
    .header-search {
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .header-search {
        display: none;
    }

    .header-nav {
        display: none;
    }

    .header-burger {
        display: inline-flex;
        margin-left: auto;
    }

    .header-inner {
        padding-inline: 14px;
    }
}





.creator-header-username,
.creator-header-stats-label {
    color: #9ca3af;
}

.creator-header-display {
    color: #f9fafb;
}



.creator-header-main {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* левая часть */

.creator-header-left {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    min-width: 0;
}



.creator-header-meta-item .meta-number {
    font-weight: 600;
    color: #f9fafb;  /* а не почти чёрный на тёмной карточке */
}


.creator-header-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.creator-header-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.creator-header-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.creator-header-name {
    font-size: 20px;
    font-weight: 700;
}

.creator-header-badge {
    font-size: 15px;
    color: #3b82f6;
}

.creator-header-username {
    font-size: 13px;
    color: #6b7280;
}

.creator-header-meta {
    display: flex;
    gap: 16px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.creator-header-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #6b7280;
}

.creator-header-meta-item .meta-number {
    font-weight: 600;
    color: #111827;
}

/* правая часть */

.creator-header-right {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    min-width: 0;
}

.creator-header-subinfo {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 13px;
}

.creator-header-subinfo .sub-status {
    color: #16a34a;
    font-weight: 600;
}

.creator-header-subinfo .sub-plan {
    color: #6b7280;
}

.creator-header-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition:
        background .15s ease,
        color .15s ease,
        border-color .15s ease,
        transform .15s ease,
        box-shadow .15s ease;
}

.creator-header-button.primary {
    background: #f36;
    color: #ffffff;
}

.creator-header-button.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(243, 54, 102, 0.4);
}

.creator-header-button.ghost {
    background: #ffffff;
    color: #111827;
    border-color: #e5e7eb;
}

.creator-header-button.ghost:hover {
    background: #f3f4f6;
}

/* био */

.creator-header-bio {
    margin-top: 10px;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
}



@media (max-width: 640px) {

    .creator-header-main {
        align-items: flex-start;
    }

    .creator-header-left {
        align-items: flex-end;
    }

    .creator-header-right {
        width: 100%;
        justify-content: flex-start;
        margin-top: 8px;
    }

    .creator-header-subinfo {
        align-items: flex-start;
    }

    .floating-add-video {
        bottom: 103px;
    }

}

/* ===== CREATOR PROFILE HEADER (баннер + аватар + био) ===== */

/* общий контейнер страницы профиля */


/* баннер и карточка — один и тот же "контейнер" по ширине */
/* ===== CREATOR PROFILE HEADER (почти OF) ===== */

/* общий контейнер */
.creator-page {
    max-width: 900px;
    margin: 20px auto 32px;
}

/* баннер — верхняя часть плитки */
.creator-cover-wrap {
    width: 100%;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    background: #050816;
    box-shadow: 0 18px 36px rgba(0,0,0,0.65); /* один шэдоу для всего блока */
}

.creator-cover-img {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
}

/* карточка профиля — нижняя часть той же плитки */
.creator-header-shell {
    margin: 0;                        /* убираем отрицательный margin */
    border-radius: 0 0 24px 24px;     /* только низ скруглён */
    background: #0e0e11;
    color: #f9fafb;
    padding: 22px 18px 16px;
    border: 1px solid #1f2937;
    border-top: none;                 /* шов с баннером убираем */
    box-shadow: 0 18px 36px rgba(0,0,0,0.65); /* тот же шэдоу, что и у баннера */
    position: relative;
    z-index: 1;
}

/* строка с аватаркой и именем */
.creator-header-main {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* левая часть */
.creator-header-left {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    min-width: 0;
}

/* аватар нависает сильнее, как на OF */
.creator-header-avatar-wrap {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    overflow: hidden;
    background: #111827;
    border: 4px solid #080b12;
    flex-shrink: 0;
    margin-top: -40px;  /* эффект "прилипания" к баннеру */
}

.creator-header-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* чуть мягче текст */
.creator-header-name {
    font-size: 19px;
    font-weight: 700;
}

.creator-header-username {
    font-size: 13px;
    color: #9ca3af;
}

.creator-header-meta-item {
    font-size: 13px;
    color: #9ca3af;
}

.creator-header-meta-item .meta-number {
    color: #f9fafb;
}

/* правая часть (кнопка) */
.creator-header-right {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

/* ===== адаптив ===== */

@media (max-width: 900px) {
    .creator-cover-img {
        height: 200px;
    }

    .creator-page {
        margin: 16px auto 24px;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .creator-cover-wrap,
    .creator-header-shell {
        border-radius: 20px;
    }

    .creator-header-shell {
        border-radius: 0 0 20px 20px;
        padding: 18px 14px 14px;
    }
}

@media (max-width: 640px) {
    .creator-cover-img {
        height: 170px;
    }

    .creator-header-main {
        margin-top: -6px;         /* лёгкий подъём общей группы */
    }

    .creator-header-avatar-wrap {
        width: 82px;
        height: 82px;
        margin-top: -46px;        /* было ~ -30px, поднимаем выше */
        border-width: 3px;
    }

     .creator-header-shell {
        padding-top: 34px;        /* компенсируем, чтобы текст не прилипал */
    }

    .creator-header-right {
        width: 100%;
        justify-content: flex-start;
        margin-top: 4px;
    }

    .creator-header-button {
        padding: 9px 16px;
        font-size: 14px;
    }
}

/* Убираем скругление снизу у баннера на мобилке */
@media (max-width: 640px) {
    .creator-cover-wrap {
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }

    .creator-cover-img {
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }

    /* Карточка профиля ближе к баннеру, но без наложения скруглений */
    .creator-header-shell {
        margin-top: -10px !important; /* чутка выше */
        border-top-left-radius: 0 !important;
        border-top-right-radius: 0 !important;
    }
}

@media (max-width: 640px) {
    .creator-header-avatar-wrap {
        margin-top: -60px !important;
    }
}

/* Базово — как было */
.post-gallery img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    background: #000;
}

/* Если картинка одна — показываем без чёрных полос */
.post-gallery.single {
    max-height: 80vh;           /* максимум по высоте экрана */
    overflow: hidden;
    border-radius: 12px;
}

.post-gallery.single img {
    height: 100%;
    max-height: none;           /* снимаем ограничение в 520px */
    object-fit: cover;          /* режем лишнее, но без полос */
    background: #000;           /* остаётся только “под обрезом” */
    display: block;
}

.avatar-view {
    cursor: zoom-in;
}

/* Лайтбокс */
.avatar-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn .2s ease forwards;
}

.avatar-lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 14px;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0,0,0,.6);
    animation: scaleIn .2s ease forwards;
    cursor: zoom-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(.8); }
    to { transform: scale(1); }
}

.bio-container {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.55;
    color: #d8d8d8;
    max-width: 800px;
}

.bio-line {
    margin-bottom: 8px;
}


.bio-dmca {
    margin-top: 14px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.05);
    border-left: 3px solid #f36;
    border-radius: 8px;
    font-size: 14px;
}
.bio-link {
    color: #f36;
    font-weight: 600;
    border-bottom: 1px solid rgba(243, 54, 102, 0.4);
    text-decoration: none;
    transition: 0.2s;
    word-break: break-all; /* чтобы длинные ссылки не ломали layout */
}

.bio-link:hover {
    opacity: 0.85;
    border-color: #f36;
}

.bio-line, .bio-dmca, .bio-link {
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

/* ===== CHAT LIST PAGE ===== */

/* ===== Like button (tiktok/insta vibe) ===== */
.like-btn{
  margin-top: 8px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.18);
  background: rgba(2,6,23,.55);
  color:#cbd5e1;
  cursor:pointer;
  font-size:13px;
  line-height:1;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
  user-select:none;
}

.like-btn:hover{
  background: rgba(2,6,23,.75);
  border-color: rgba(249,115,22,.35);
}

.like-btn:active{
  transform: scale(.98);
}

.like-ico{
  width:18px;
  height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.like-svg{
  width:18px;
  height:18px;
  fill: transparent;
  stroke: rgba(203,213,225,.9);
  stroke-width: 1.8px;
  transition: fill .18s ease, stroke .18s ease, transform .18s ease, filter .18s ease;
}

/* active state */
.like-btn.is-liked{
  border-color: rgba(236,72,153,.45);
  background: linear-gradient(135deg, rgba(249,115,22,.10), rgba(236,72,153,.10));
}

.like-btn.is-liked .like-svg{
  fill: #ec4899;
  stroke: #ec4899;
  filter: drop-shadow(0 6px 16px rgba(236,72,153,.22));
}

.like-count{
  font-weight:700;
  color:#e5e7eb;
  min-width: 16px;
}

/* tiny pop animation */
.like-btn.pop .like-svg{
  transform: scale(1.25);
}
.like-btn.pop{
  animation: likePop .18s ease;
}
@keyframes likePop{
  0%{ transform: scale(1); }
  60%{ transform: scale(1.04); }
  100%{ transform: scale(1); }
}

/* mobile tap target */
@media (max-width: 520px){
  .like-btn{
    padding:10px 12px;
    font-size:14px;
  }
  .like-svg{ width:20px; height:20px; }
}

.post-actions{
  margin-top: 10px;
  padding-top: 10px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
}

/* ===== OnlyHub Footer ===== */
.site-footer{
  margin-top: 26px;
  padding: 18px 12px 22px;
  background:
    radial-gradient(900px 380px at 18% 0%, rgba(249,115,22,.14), transparent 55%),
    radial-gradient(900px 380px at 82% 0%, rgba(236,72,153,.12), transparent 55%),
    #050b16;
  border-top: 1px solid rgba(148,163,184,.14);
}

.footer-shell{
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px;
  border-radius: 18px;
  background: rgba(11,18,32,.55);
  border: 1px solid rgba(31,41,55,.9);
  box-shadow: 0 12px 36px rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
}

.footer-top{
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 18px;
  padding: 6px 6px 14px;
}

.footer-brand{min-width:0;}

.footer-logo{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-logo-mark{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  letter-spacing: .02em;
  color: #fff;
  background: linear-gradient(135deg, rgba(249,115,22,.9), rgba(236,72,153,.85));
  box-shadow: 0 10px 24px rgba(236,72,153,.18);
}

.footer-logo-text{
  color:#fff;
  font-weight: 800;
  font-size: 16px;
}

.footer-tagline{
  margin-top: 10px;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.4;
  max-width: 460px;
}

.footer-badges{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.footer-badge{
  font-size: 12px;
  color:#cbd5e1;
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(2,6,23,.35);
  padding: 6px 10px;
  border-radius: 999px;
}

.footer-badge.accent{
  border-color: rgba(249,115,22,.35);
  background: linear-gradient(135deg, rgba(249,115,22,.18), rgba(236,72,153,.12));
  color: #fff;
}

.footer-cols{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  align-content: start;
}

.footer-col-title{
  color:#e5e7eb;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 8px;
}

.footer-link{
  display:block;
  text-decoration:none;
  color:#cbd5e1;
  font-size: 13px;
  padding: 7px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
}

.footer-link:hover{
  background:#081022;
  border-color: rgba(148,163,184,.12);
  color:#fff;
}

.footer-bottom{
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 6px 0;
  border-top: 1px solid rgba(148,163,184,.12);
}

.footer-copy{
  color:#94a3b8;
  font-size: 13px;
}

.footer-mini{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-mini-link{
  color:#cbd5e1;
  text-decoration:none;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.14);
  background: rgba(2,6,23,.22);
}

.footer-mini-link:hover{
  border-color: rgba(249,115,22,.28);
  color:#fff;
}

.footer-dot{color:#475569;}

/* Mobile */
@media (max-width: 860px){
  .footer-top{grid-template-columns: 1fr; }
  .footer-cols{grid-template-columns: repeat(2, minmax(0,1fr));}
}
@media (max-width: 520px){
  .footer-shell{padding: 14px;}
  .footer-cols{grid-template-columns: 1fr;}
  .footer-bottom{flex-direction: column; align-items:flex-start;}
}

/* ====== Telegram-like gallery (NO CROP) ====== */
.post-gallery{
  display: grid;
  gap: 6px;
}

/* раскладки по количеству */
.post-gallery.count-1{ grid-template-columns: 1fr; }
.post-gallery.count-2{ grid-template-columns: repeat(2, 1fr); }
.post-gallery.count-3{ grid-template-columns: repeat(2, 1fr); }
.post-gallery.count-4{ grid-template-columns: repeat(3, 1fr); }

/* “мозаика” как в телеге */
.post-gallery.count-3 .media-tile:first-child{
  grid-column: 1 / -1;
}
.post-gallery.count-4 .media-tile:first-child{
  grid-column: 1 / -1;
}

/* базовая высота тайла */
.media-tile{
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #000;
  height: 230px;            /* главное: одинаковая высота, как у телеги */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* для одиночной фотки — больше высота и по центру */
.post-gallery.single .media-tile{
  height: min(72vh, 520px);
}

/* размытый фон из той же картинки (заполняет “поля”, но НЕ режет саму фотку) */
.media-tile::before{
  content: "";
  position: absolute;
  inset: -20px;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  filter: blur(18px) brightness(0.75);
  transform: scale(1.15);
}

/* сама картинка — без кропа */
.media-tile img{
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;      /* <-- без кропа */
}

/* мобилка */
@media (max-width: 768px){
  .media-tile{ height: 170px; }
  .post-gallery.single .media-tile{ height: min(66vh, 420px); }
}

/* =========================================================
   INSTAGRAM-LIKE CAROUSEL (NO CROP) — paste at END of CSS
   ========================================================= */

/* убиваем старые правила кропа в галерее */
.post-image { object-fit: contain !important; }

/* контейнер карусели */
.ig-carousel{
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(148,163,184,.14);
}

/* трек со свайпом */
.ig-track{
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ig-track::-webkit-scrollbar{ display:none; }

/* один слайд = один экран */
.ig-slide{
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;

  /* “как в инсте”: фиксируем область показа, но не режем фото */
  aspect-ratio: 1 / 1;          /* квадратная лента */
  max-height: 70vh;             /* чтоб не было гигантских простыней */
  background: #000;
}

/* на мобилке можно чуть выше, чтобы портретки смотрелись норм */
@media (max-width: 560px){
  .ig-slide{
    aspect-ratio: 4 / 5;        /* ближе к инсте */
    max-height: 72vh;
  }
}

/* блюр-фон из самой картинки */
.ig-slide::before{
  content:"";
  position:absolute;
  inset:-24px;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  filter: blur(18px) brightness(.70);
  transform: scale(1.15);
  z-index: 0;
}

/* сама картинка — НИКОГДА НЕ РЕЖЕМ */
.ig-img{
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain !important;  /* вот это ключ */
  user-select: none;
  -webkit-user-drag: none;
}

/* стрелки как в инсте */
.ig-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(2,6,23,.55);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 5;
  opacity: .9;
  transition: transform .15s ease, opacity .15s ease, background .15s ease;
}
.ig-nav:hover{
  opacity: 1;
  background: rgba(2,6,23,.75);
  transform: translateY(-50%) scale(1.04);
}
.ig-prev{ left: 10px; }
.ig-next{ right: 10px; }

@media (max-width: 640px){
  .ig-nav{ display:none; } /* на мобиле обычно свайпом */
}

/* счетчик 1/3 */
.ig-counter{
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(2,6,23,.60);
  border: 1px solid rgba(148,163,184,.18);
  color: #e5e7eb;
  font-size: 12px;
  font-weight: 600;
}

/* точки */
.ig-dots{
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 6;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(2,6,23,.35);
  border: 1px solid rgba(148,163,184,.14);
}
.ig-dot{
  width: 6px;
  height: 6px;
  border-radius: 999px;
  border: none;
  background: rgba(203,213,225,.45);
  cursor: pointer;
}
.ig-dot.active{
  background: #fff;
}

/* чтобы твои старые post-gallery/grid не влияли, если где-то остались */
.ig-carousel img{
  width: 100%;
  height: 100%;
  object-fit: contain !important;
}

/* =========================================================
   INSTAGRAM-LIKE CAROUSEL (NO CROP) — FIXED
   ========================================================= */

/* контейнер карусели */
.ig-carousel{
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(148,163,184,.14);

  /* один стиль на все устройства как в IG */
  --ig-ratio: 4 / 5;          /* ключ: одинаково и на ПК, и на мобиле */
  --ig-maxh: 72vh;
}

/* трек со свайпом */
.ig-track{
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ig-track::-webkit-scrollbar{ display:none; }

/* один слайд = один экран */
.ig-slide{
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;

  aspect-ratio: var(--ig-ratio);
  max-height: var(--ig-maxh);
  background: #000;
}

/* блюр-фон из картинки */
.ig-slide::before{
  content:"";
  position:absolute;
  inset:-24px;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  filter: blur(18px) brightness(.70);
  transform: scale(1.15);
  z-index: 0;
}

/* сама картинка — НЕ режем */
.ig-slide img{
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  cursor: zoom-in;
}

/* стрелки */
.ig-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(2,6,23,.55);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 5;
  opacity: .9;
  transition: transform .15s ease, opacity .15s ease, background .15s ease;
}
.ig-nav:hover{
  opacity: 1;
  background: rgba(2,6,23,.75);
  transform: translateY(-50%) scale(1.04);
}
.ig-prev{ left: 10px; }
.ig-next{ right: 10px; }

@media (max-width: 640px){
  .ig-nav{ display:none; } /* мобила — свайпом */
}

/* счетчик 1/3 */
.ig-counter{
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(2,6,23,.60);
  border: 1px solid rgba(148,163,184,.18);
  color: #e5e7eb;
  font-size: 12px;
  font-weight: 600;
}

/* точки */
.ig-dots{
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 6;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(2,6,23,.35);
  border: 1px solid rgba(148,163,184,.14);
}
.ig-dot{
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(203,213,225,.45);
  cursor: pointer;
}
.ig-dot.active{ background: #fff; }


/* ===== FIX: no vertical wobble ===== */

/* запрещаем вертикальный скролл внутри карусели */
.ig-carousel,
.ig-track,
.ig-slide {
  overscroll-behavior: contain;
  touch-action: pan-x;          /* ← КЛЮЧ: только горизонтальный свайп */
}

/* трек — только X */
.ig-track {
  overflow-x: auto;
  overflow-y: hidden;           /* ← убираем Y полностью */
}

/* слайд — фиксированная зона, без прыжков */
.ig-slide {
  align-items: center;
  justify-content: center;
}

/* картинка — прибита, не двигается */
.ig-slide img {
  pointer-events: auto;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: pan-x;
}


/* iOS anti-bounce */
@supports (-webkit-touch-callout: none) {
  .ig-track {
    -webkit-overflow-scrolling: auto; /* выключаем резиновый скролл */
  }
}

/* свайп по картинке = свайп карусели */
.ig-slide img {
  pointer-events: none;      /* ключ */
}

/* ===== FIX: разрешаем вертикальный скролл ленты по карусели ===== */
.ig-carousel,
.ig-track,
.ig-slide,
.ig-slide img{
  touch-action: auto !important;     /* возвращаем нормальное поведение */
  pointer-events: auto !important;   /* возвращаем события на img */
}

/* ===== FIX: разрешаем ленте скроллиться вниз по карусели ===== */
.ig-carousel,
.ig-track,
.ig-slide {
  overscroll-behavior: auto !important;          /* КЛЮЧ */
  overscroll-behavior-y: auto !important;        /* на всякий */
}

/* не мешаем кликам/лайтбоксу */
.ig-slide img {
  pointer-events: auto !important;
}

/* ==============================
   NEW POST — sexy redesign (no HTML changes)
   ============================== */

.new-post-box{
  max-width: 900px;
  margin: 18px auto 26px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(148,163,184,.14);
  background:
    radial-gradient(900px 380px at 20% 0%, rgba(249,115,22,.16), transparent 55%),
    radial-gradient(900px 380px at 80% 0%, rgba(236,72,153,.14), transparent 55%),
    rgba(2,6,23,.55);
  box-shadow: 0 22px 60px rgba(0,0,0,.45);
  backdrop-filter: blur(12px);
}

.new-post-box h3{
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: #f9fafb;
  letter-spacing: .2px;
  display:flex;
  align-items:center;
  gap:10px;
}

.new-post-box h3::before{
  content:"✦";
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(135deg, rgba(249,115,22,.85), rgba(236,72,153,.8));
  color:#0b1120;
  font-weight: 900;
  box-shadow: 0 12px 22px rgba(236,72,153,.18);
}

/* textarea */
.new-post-form .post-input{
  width:100%;
  min-height: 92px;
  border-radius: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(2,6,23,.55);
  color:#e5e7eb;
  font-size: 15px;
  line-height: 1.45;
  outline: none;
  resize: vertical;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease, transform .12s ease;
}

.new-post-form .post-input::placeholder{ color:#94a3b8; }

.new-post-form .post-input:focus{
  border-color: rgba(243,54,102,.65);
  box-shadow: 0 0 0 3px rgba(243,54,102,.18);
  background: rgba(2,6,23,.72);
}

/* upload area */
.upload-area{
  margin-top: 12px;
  border-radius: 18px;
  padding: 18px 14px;
  border: 1px dashed rgba(148,163,184,.25);
  background: rgba(2,6,23,.35);
  box-shadow: inset 0 0 0 1px rgba(2,6,23,.2);
  transition: transform .12s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
  user-select: none;
}

.upload-area img{ width: 34px; opacity: .9; }

.upload-area span{
  font-size: 13px;
  color:#cbd5e1;
}

.upload-area:hover{
  border-color: rgba(243,54,102,.55);
  background: rgba(2,6,23,.55);
  box-shadow: 0 0 0 3px rgba(243,54,102,.12);
  transform: translateY(-1px);
}

/* drag over state (JS добавит класс) */
.upload-area.is-dragover{
  border-color: rgba(56,189,248,.75);
  box-shadow: 0 0 0 3px rgba(56,189,248,.18);
  background: rgba(2,6,23,.75);
}

/* preview gallery */
.preview-gallery{
  margin-top: 12px;
  display:grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
}

.preview-gallery .preview-tile{
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(148,163,184,.14);
  aspect-ratio: 1 / 1;
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}

.preview-gallery .preview-tile::before{
  content:"";
  position:absolute;
  inset:-16px;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  filter: blur(14px) brightness(.75);
  transform: scale(1.2);
}

.preview-gallery .preview-tile img{
  position: relative;
  z-index: 1;
  width:100%;
  height:100%;
  object-fit: contain;
  display:block;
}

/* remove button */
.preview-gallery .remove{
  position:absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.20);
  background: rgba(2,6,23,.55);
  color: #fff;
  display:grid;
  place-items:center;
  cursor:pointer;
  opacity: .95;
  transition: transform .12s ease, background .15s ease, opacity .15s ease;
}

.preview-gallery .remove:hover{
  background: rgba(239,68,68,.35);
  transform: scale(1.04);
}

/* little counter badge */
.newpost-meta-row{
  margin-top: 10px;
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}

.newpost-pill{
  font-size: 12px;
  color:#cbd5e1;
  background: rgba(2,6,23,.45);
  border: 1px solid rgba(148,163,184,.14);
  padding: 6px 10px;
  border-radius: 999px;
}

/* ppv card already nice, just boost it */
.ppv-card{
  border-radius: 18px !important;
  border: 1px solid rgba(148,163,184,.16) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}

/* access pills */
.access-pill span{
  border-radius: 999px !important;
  border: 1px solid rgba(148,163,184,.16) !important;
  background: rgba(2,6,23,.45) !important;
}
.access-pill input:checked + span{
  background: linear-gradient(135deg, rgba(249,115,22,.95), rgba(236,72,153,.9)) !important;
  color:#0b1120 !important;
  border-color: transparent !important;
  box-shadow: 0 0 0 3px rgba(236,72,153,.16) !important;
}

/* publish button */
.publish-btn{
  width: 100% !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: .2px;
  background: linear-gradient(90deg, #ff2f6a, #ff5fa3) !important;
  box-shadow: 0 16px 40px rgba(255,47,106,.22);
  transition: transform .12s ease, box-shadow .15s ease, filter .15s ease;
}
.publish-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 46px rgba(255,47,106,.30);
  filter: brightness(1.03);
}
.publish-btn:active{ transform: translateY(0px) scale(.99); }

/* mobile spacing */
@media (max-width: 600px){
  .new-post-box{ padding: 14px; border-radius: 18px; }
  .new-post-form .post-input{ min-height: 84px; }
}

.publish-btn:disabled{
  opacity: .45;
  cursor: not-allowed;
  filter: grayscale(1);
  box-shadow: none !important;
}

@keyframes shake {
  0%{ transform: translateX(0); }
  20%{ transform: translateX(-4px); }
  40%{ transform: translateX(4px); }
  60%{ transform: translateX(-3px); }
  80%{ transform: translateX(3px); }
  100%{ transform: translateX(0); }
}

.publish-btn.shake{
  animation: shake .3s ease;
}

/* ===== Creator profile: дата поста ===== */
.post-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-time {
  margin-left: auto;
  font-size: 12px;
  color: #6b7280; /* спокойный серый */
  opacity: 0.8;
  white-space: nowrap;
}

/* =========================
   MOBILE POLISH PACK (END)
   ========================= */

/* iPhone safe-areas + чуть воздуха */
:root{
  --safe-top: env(safe-area-inset-top);
  --safe-bot: env(safe-area-inset-bottom);
}

body{
  padding-bottom: calc(var(--safe-bot) + 14px);
}

/* на мобиле больше отступы у контента */
@media (max-width: 560px){
  .content{
    padding: 18px 14px;
  }

  /* карточка поста чуть “мягче” */
  .post-container{
    padding: 14px;
    border-radius: 16px;
  }
}

/* --------- ВАЖНО: фикс твоей даты ---------
   Сейчас .post-time у тебя ABSOLUTE (вниз вправо).
   Возвращаем дату внутрь хедера, как нормальный UI.
*/
.post-header .post-time{
  position: static !important;
  margin-top: 2px;
  font-size: 12px;
  color: rgba(148,163,184,.85);
  opacity: 1;
}

/* чтобы старое absolute точно не влияло */
.post-time{
  position: static !important;
}

/* чуть аккуратнее расстояния в хедере поста */
.post-user-info{
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* на мобиле — меньше визуального “тяжеляка” */
@media (max-width: 560px){
  .post-name{
    font-size: 15px;
    line-height: 1.2;
  }
  .post-username{
    font-size: 13px;
  }
  .post-text{
    font-size: 16px;
    line-height: 1.45;
  }
}

/* delete from here esli che */
/* ===========================
   BIGGER + LIVE (MOBILE UI)
   paste at END of CSS
   =========================== */

:root{
  --ui-radius: 18px;
  --ui-pad: 16px;
  --ui-gap: 12px;

  --text-main: #e5e7eb;
  --text-dim: rgba(148,163,184,.90);

  --card-bg: rgba(10, 12, 18, .78);
  --card-bd: rgba(148,163,184,.14);
  --card-sh: 0 18px 46px rgba(0,0,0,.45);

  --tap: 44px; /* удобный тап-таргет */
}

@media (max-width: 560px){

  /* общие отступы страницы */
  .content{
    padding: 16px 14px;
  }

  /* заголовки и секции */
  .section-title{
    font-size: 20px;
    letter-spacing: .2px;
    margin-bottom: 4px;
  }
  .section-caption{
    font-size: 13px;
    color: rgba(148,163,184,.85);
  }

  /* карточка поста = более “app-like” */
  .post-container{
    background: var(--card-bg);
    border: 1px solid var(--card-bd);
    box-shadow: var(--card-sh);
    border-radius: var(--ui-radius);
    padding: var(--ui-pad);
    margin-bottom: 14px;
  }

  /* хедер поста: больше воздуха */
  .post-header{
    gap: 12px;
    margin-bottom: 10px;
  }
  .post-avatar{
    width: 46px;
    height: 46px;
  }

  .post-name{
    font-size: 16px;
    font-weight: 700;
    line-height: 1.15;
  }
  .post-username{
    font-size: 13px;
    color: rgba(148,163,184,.88);
  }

  /* дата красиво в хедере, не “снизу справа” */
  .post-header .post-time,
  .post-time{
    position: static !important;
    font-size: 12px;
    color: rgba(148,163,184,.65);
    margin-top: 2px;
  }

  /* текст поста: чуть крупнее и живее */
  .post-text{
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 10px;
    color: var(--text-main);
  }

  /* карусель: чуть более “инстаграмная” зона */
  .ig-carousel{
    border-radius: 18px;
    border-color: rgba(148,163,184,.16);
    box-shadow: 0 14px 40px rgba(0,0,0,.35);
  }
  .ig-carousel{
    --ig-ratio: 4 / 5;      /* уже есть у тебя, но фиксируем */
    --ig-maxh: 76vh;        /* чуть больше “вау” */
  }

  /* пилюли (PPV / Ты подписан) меньше “кирпич” */
  .feed-pill{
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
  }

  /* кнопка Профиль → сделать кликабельнее */
  .post-open-profile{
    min-height: var(--tap);
    padding: 7px 12px;
    border-radius: 999px;
  }

  /* лайк-кнопка: чуть крупнее и “премиум” */
  .like-btn{
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 999px;
    backdrop-filter: blur(10px);
  }
}

/* ===========================
   “LIVE FEEL” micro-animations
   =========================== */

/* мягкий hover на десктопе, а на мобиле не мешает */
.post-container{
  transition: transform .12s ease, border-color .18s ease, box-shadow .18s ease;
}
@media (hover:hover){
  .post-container:hover{
    transform: translateY(-1px);
    border-color: rgba(243,54,102,.35);
    box-shadow: 0 22px 60px rgba(0,0,0,.55);
  }
}

/* лёгкий “pop” при тапе на мобиле */
@media (hover:none){
  .post-container:active{
    transform: scale(.995);
  }
}

/* плавное появление постов (прям добавляет “жизни”) */
@keyframes cardIn{
  from{ opacity:0; transform: translateY(8px); }
  to{ opacity:1; transform: translateY(0); }
}
.post-container{
  animation: cardIn .22s ease both;
}

/* фильтры/табы: добавить “живости” */
.tab-btn, .feed-pill, .post-open-profile, .creator-header-button, .subscribe-btn{
  transition: transform .12s ease, opacity .12s ease, background .15s ease, border-color .15s ease;
}
@media (hover:none){
  .tab-btn:active,
  .post-open-profile:active,
  .creator-header-button:active,
  .subscribe-btn:active{
    transform: scale(.98);
  }
}

/* delete two*/
/* FIX: огромный пузырь "Профиль →" */
.post-header{
  align-items: flex-start; /* не растягиваем элементы по центру высоты */
}

.post-user-info{
  flex: 1;
  min-width: 0;
}

.post-open-profile{
  margin-left: auto;
  flex: 0 0 auto;
  align-self: flex-start;      /* <-- ключ: не тянется на всю высоту */
  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* нормальный размер, без “чехла” */
  height: 32px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;

  white-space: nowrap;
  line-height: 1;
  font-size: 12px;

  border: 1px solid rgba(148,163,184,.18);
  background: rgba(2,6,23,.35);
}

@media (max-width: 560px){
  .post-open-profile{
    height: 34px;
    min-height: 34px;
    padding: 0 14px;
  }
}

/* дата в хедере — маленькая, мягкая */
.post-time{
  font-size: 12px;
  color: rgba(148,163,184,.65);
}

/* если у тебя где-то дата всё ещё absolute внизу */
.post-container .post-time{
  position: static !important;
  margin-top: 2px;
  margin-left: 1px;
}

/*delete tri*/
@media (max-width: 560px){
  .post-container{
    padding: 16px 16px 14px;
    margin-bottom: 18px;
    border-radius: 18px;
  }
}

.post-avatar{
  width: 44px;
  height: 44px;
}

.post-name{
  font-size: 15px;
  font-weight: 600;
}

.post-username{
  font-size: 13px;
  opacity: .7;
}
.post-text{
  font-size: 15px;
  line-height: 1.45;
  margin: 10px 0 12px;
  color: #e5e7eb;
}

.ig-carousel{
  margin-top: 10px;
  border-radius: 16px;
  overflow: hidden;
  background: #0b0f1a;
}
.ig-img{
  display: block;
  width: 100%;
  height: auto;
}

.ig-img{
  display: block;
  width: 100%;
  height: auto;
}
.like-btn{
  transition: transform .15s ease, background .15s ease;
}

.like-btn:active{
  transform: scale(.94);
}
.post-header{
  margin-bottom: 8px;
}

.post-actions{
  margin-top: 10px;
}

.creator-header-badge {
    color: #fff;
    margin-top: 5px;
}

.chat-tip-btn{
    color: #fff;
}

:root{
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html, body {
  font-family: var(--font-main);
}

button,
input,
textarea,
select {
  font-family: var(--font-main);
}

body            { font-weight: 400; }
strong, b       { font-weight: 600; }

.section-title  { font-weight: 700; }
.post-name      { font-weight: 600; }
.post-text      { font-weight: 400; }

.feed-pill,
.btn,
.nav-item       { font-weight: 600; }

.small, .meta   { font-weight: 500; }


/* ================================================================
   ДОБАВИТЬ В КОНЕЦ файла style.css
   ================================================================ */

/* ── Бейджик видимости поста (Public / Subs only) ── */
.post-visibility-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 999px;
    margin-left: auto;
    flex-shrink: 0;
    font-weight: 600;
    letter-spacing: .02em;
}
.post-visibility-badge.public {
    background: rgba(16,185,129,.12);
    color: #6ee7b7;
    border: 1px solid rgba(52,211,153,.25);
}
.post-visibility-badge.private {
    background: rgba(148,163,184,.07);
    color: #94a3b8;
    border: 1px solid rgba(148,163,184,.18);
}

/* ── Счётчик просмотров и лайков (read-only pill) ── */
.post-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #94a3b8;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,.13);
    background: rgba(2,6,23,.30);
    user-select: none;
}
.post-stat-pill ion-icon {
    font-size: 14px;
    flex-shrink: 0;
}

/* ── Load More кнопка ── */
.load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 28px;
    border-radius: 999px;
    border: 1px solid rgba(243,54,102,.40);
    background: rgba(243,54,102,.07);
    color: #f9a8d4;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .14s ease, box-shadow .18s ease;
    font-family: inherit;
}
.load-more-btn:hover {
    background: rgba(243,54,102,.14);
    border-color: rgba(243,54,102,.75);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(243,54,102,.18);
}
.load-more-btn:active {
    transform: scale(.98);
}
.load-more-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ── Post form improvements ── */

.post-char-counter {
    text-align: right;
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    transition: color .15s ease;
}

.upload-hint {
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
}

.post-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 4px;
    padding: 9px 14px;
    border-radius: 12px;
    background: rgba(52, 211, 153, .08);
    border: 1px solid rgba(52, 211, 153, .22);
    font-size: 13px;
    color: #6ee7b7;
    font-weight: 500;
}

/* убираем overflow: hidden чтобы textarea росла */
.post-input {
    overflow: hidden !important;
    min-height: 80px;
    transition: height .1s ease, border-color .15s ease, box-shadow .15s ease !important;
    resize: none !important;
}

/* preview tile с блюром фона */
.preview-gallery {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    margin-top: 12px;
}

.preview-tile {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(148,163,184,.14);
    aspect-ratio: 1 / 1;
    box-shadow: 0 10px 24px rgba(0,0,0,.35);
}

.preview-tile::before {
    content: "";
    position: absolute;
    inset: -16px;
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    filter: blur(14px) brightness(.75);
    transform: scale(1.2);
}

.preview-tile img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.preview-tile .remove {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,.20);
    background: rgba(2,6,23,.65);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 12px;
    transition: background .15s ease, transform .12s ease;
}

.preview-tile .remove:hover {
    background: rgba(239,68,68,.5);
    transform: scale(1.08);
}

