/* ============================================================
   少女汇 — WordPress 主题主样式
   小红书风格布局 · 左侧边栏 · 顶部搜索 · 瀑布流卡片
   ============================================================ */

/* ===== CSS 变量 ===== */
:root {
    --pink: #ff9eb5;
    --purple: #c8a3e8;
    --primary: #e57fa0;
    --primary-2: #c89dd9;
    --primary-light: #fce4ec;
    --primary-soft: #f8d7e3;
    --primary-dark: #b85a82;
    --gradient: linear-gradient(135deg, #c8a3e8 0%, #ff9eb5 100%);
    --gradient-soft: linear-gradient(135deg, #f3e6f7 0%, #ffe4ec 100%);
    --gradient-text: linear-gradient(135deg, #d4a3e8 0%, #ff9eb5 50%, #ffc1d1 100%);
    --shadow-pink: 0 4px 14px rgba(229, 127, 160, 0.18);
    --shadow-soft: 0 4px 16px rgba(180, 140, 200, 0.10);
    --bg-body: #fdf5fa;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, #fdf5fa 0%, #f5edf9 50%, #fdf5fa 100%);
    color: #5a4a5e;
    overflow-x: hidden;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

img {
    display: block;
    max-width: 100%;
}

input {
    font-family: inherit;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

/* ===== WORDPRESS RESET ===== */
.admin-bar .sidebar {
    top: 32px;
}
.admin-bar .topbar {
    top: 32px;
}
.admin-bar .mobile-header {
    top: 32px;
}
@media (max-width: 782px) {
    .admin-bar .sidebar { top: 46px; }
    .admin-bar .topbar { top: 46px; }
    .admin-bar .mobile-header { top: 46px; }
}

.wp-caption,
.wp-caption-text,
.sticky,
.gallery-caption,
.bypostauthor,
.alignright,
.alignleft,
.aligncenter {
    /* 继承主题样式 */
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ===== LOADER ===== */
.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transition: opacity 0.7s cubic-bezier(.4, 0, .2, 1), visibility 0.7s;
}

.loader.done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    overflow: hidden;
}

.loader-wrap svg {
    opacity: 0;
    transform: translateY(18px);
    animation: loaderUp 0.6s cubic-bezier(.16, 1, .3, 1) forwards;
}

.loader-wrap svg:nth-child(2) {
    animation-delay: 0.12s;
}

@keyframes loaderUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loader-bar {
    width: 100px;
    height: 2px;
    background: #f0f0f0;
    border-radius: 1px;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 0;
    background: var(--gradient);
    border-radius: 1px;
    animation: lBar 0.8s 0.3s cubic-bezier(.4, 0, .2, 1) forwards;
}

@keyframes lBar {
    to {
        width: 100%;
    }
}

/* ===== LAYOUT ===== */
.app {
    display: flex;
    min-height: 100vh;
}

/* ===== LEFT SIDEBAR ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 104px;
    z-index: 900;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 0 20px;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 0 20px 20px 0;
}

.sidebar-logo {
    margin-bottom: 18px;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 2px;
    transition: transform 0.2s;
}

.sidebar-logo:hover {
    transform: scale(1.05);
}

.sidebar-logo .custom-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-logo .custom-logo {
    width: 96px;
    height: auto;
    border-radius: 12px;
}

.sidebar-logo a img,
.sidebar-logo img {
    display: block;
    max-width: 72px;
    height: auto;
    border-radius: 12px;
}

/* Logo shared classes (from original index.html) */
.logo-sidebar {
    display: block;
    width: 96px;
    height: auto;
    border-radius: 12px;
    transition: transform 0.25s;
}

.logo-sidebar:hover {
    transform: scale(1.05);
}

.logo-mobile {
    display: block;
    width: 84px;
    height: auto;
    border-radius: 10px;
    flex-shrink: 0;
}

.logo-login {
    display: block;
    width: 120px;
    max-width: 80%;
    height: auto;
    margin: 0 auto;
    border-radius: 16px;
    filter: drop-shadow(0 4px 12px rgba(180, 140, 200, 0.20));
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.sidebar-btn {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 20px;
    color: #999;
    transition: all 0.2s;
    position: relative;
}

.sidebar-btn span {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.sidebar-btn:hover {
    background: #f5f5f5;
    color: #888;
}

.sidebar-btn.active {
    color: var(--primary);
    background: rgba(229, 127, 160, 0.08);
}

.sidebar-btn .badge {
    position: absolute;
    top: 8px;
    right: 10px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    background: var(--gradient);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: var(--shadow-pink);
}

.sidebar-divider {
    width: 32px;
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    margin: 8px 0;
}

.sidebar-spacer {
    flex: 1;
}

.sidebar-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: var(--shadow-pink);
}

.sidebar-avatar:hover {
    transform: scale(1.08);
}

/* ===== MAIN AREA ===== */
.main {
    flex: 1;
    margin-left: 104px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== TOP BAR ===== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 800;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-search {
    flex: 1;
    max-width: 480px;
    position: relative;
}

.topbar-search input {
    width: 100%;
    height: 40px;
    background: #f5f5f5;
    border: 1.5px solid transparent;
    border-radius: 22px;
    padding: 0 44px 0 20px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: all 0.25s;
}

.topbar-search input::placeholder {
    color: #bbb;
}

.topbar-search input:focus {
    background: #fff;
    border-color: rgba(229, 127, 160, 0.35);
    box-shadow: 0 0 0 4px rgba(229, 127, 160, 0.08);
}

.topbar-search .s-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    pointer-events: none;
    transition: color 0.2s;
    flex-shrink: 0;
}

.topbar-search input:focus~.s-icon {
    color: var(--primary);
}

.topbar-tabs {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    flex-shrink: 0;
}

.topbar-tabs::-webkit-scrollbar {
    display: none;
}

.top-tab {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #999;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    user-select: none;
}

.top-tab:hover {
    color: #666;
    background: rgba(0, 0, 0, 0.03);
}

.top-tab.active {
    color: var(--primary);
    background: rgba(229, 127, 160, 0.10);
    font-weight: 600;
}

.topbar-actions {
    display: flex;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
}

.topbar-btn {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: #999;
    transition: all 0.2s;
    position: relative;
}

.topbar-btn:hover {
    background: #f5f5f5;
    color: #666;
}

.topbar-btn .badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 14px;
    height: 14px;
    border-radius: 7px;
    background: var(--gradient);
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

/* ===== FEED ===== */
.feed {
    flex: 1;
    padding: 16px 20px 40px;
}

.waterfall {
    columns: 5;
    column-gap: 14px;
}

/* ===== CARD ===== */
.card {
    break-inside: avoid;
    margin-bottom: 14px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(.16, 1, .3, 1), box-shadow 0.3s;
    will-change: transform;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.card-cover {
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

.card-cover img {
    width: 100%;
    display: block;
    transition: transform 0.5s cubic-bezier(.16, 1, .3, 1);
}

.card:hover .card-cover img {
    transform: scale(1.04);
}

.card-cover .skel {
    width: 100%;
    aspect-ratio: var(--r, 3/4);
    background: linear-gradient(135deg, #f0f0f0, #e8e8e8, #f0f0f0);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Card hover overlay */
.card-hover {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    transition: all 0.3s;
}

.card:hover .card-hover {
    background: rgba(0, 0, 0, 0.22);
    opacity: 1;
}

.card-hover-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.card-hover-stat .ico {
    font-size: 16px;
}

/* Category badge */
.card-vid {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    backdrop-filter: blur(6px);
}

/* Card body */
.card-body {
    padding: 12px 14px 14px;
}

.card-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-author {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.card-av {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
}

.card-av img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.card-name {
    font-size: 12px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-like {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: #ccc;
    transition: all 0.2s;
    flex-shrink: 0;
    padding: 3px 4px;
    border-radius: 6px;
}

.card-like:hover {
    color: var(--primary);
    background: rgba(229, 127, 160, 0.06);
}

.card-like.liked {
    color: var(--primary);
}

.card-like .h {
    font-size: 14px;
    transition: transform 0.3s cubic-bezier(.17, .67, .21, 1.68);
}

.card-like:hover .h {
    transform: scale(1.2);
}

.card-like.liked .h {
    animation: heartPop 0.4s cubic-bezier(.17, .67, .21, 1.68);
}

@keyframes heartPop {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.35);
    }

    100% {
        transform: scale(1);
    }
}

/* ===== LOAD MORE ===== */
.load-more-wrap {
    text-align: center;
    padding: 20px 0;
}

.load-more-btn {
    padding: 10px 32px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    font-size: 14px;
    color: #999;
    cursor: pointer;
    transition: all 0.3s;
}

.load-more-btn:hover {
    color: var(--primary);
    border-color: rgba(229, 127, 160, 0.3);
    box-shadow: var(--shadow-soft);
}

.load-more-btn.loading {
    pointer-events: none;
    color: transparent;
    position: relative;
}

.load-more-btn.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 18px;
    height: 18px;
    border: 2px solid var(--primary-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* ===== NOTE PANEL ===== */
.note-panel {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.note-panel.open {
    opacity: 1;
    visibility: visible;
}

.note-box {
    width: 92vw;
    max-width: 1000px;
    height: 84vh;
    background: #fff;
    border-radius: 16px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    overflow: hidden;
    position: relative;
    transform: scale(0.96) translateY(12px);
    transition: transform 0.35s cubic-bezier(.16, 1, .3, 1);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15);
}

.note-panel.open .note-box {
    transform: scale(1) translateY(0);
}

.note-x {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    color: #bbb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
    cursor: pointer;
    margin-left: 6px;
}

.note-x:hover {
    background: #f5f5f5;
    color: #666;
}

.note-img {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.note-r {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Author */
.note-head {
    padding: 18px 20px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.note-head-av {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.note-head-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.note-head-time {
    font-size: 11px;
    color: #bbb;
    margin-top: 1px;
}

.note-follow {
    margin-left: auto;
    padding: 6px 18px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
    flex-shrink: 0;
}

.note-follow.fl {
    background: var(--gradient);
    color: #fff;
}

.note-follow.fl:hover {
    background: linear-gradient(135deg, #c89dd9, #e57fa0);
}

.note-follow.fl2 {
    background: #f5f5f5;
    color: #999;
}

/* Note edit button */
.note-edit-btn {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary);
    background: rgba(229, 127, 160, 0.08);
    transition: all 0.2s;
    cursor: pointer;
    flex-shrink: 0;
}

.note-edit-btn:hover {
    background: rgba(229, 127, 160, 0.16);
}

/* Body */
.note-body {
    padding: 18px 20px;
    flex: 1;
    overflow-y: auto;
}

.note-body h2 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.55;
    margin-bottom: 12px;
}

.note-body .desc {
    font-size: 14px;
    line-height: 1.85;
    color: #666;
}

.note-body .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.note-body .tags span {
    padding: 4px 12px;
    background: var(--primary-light);
    border-radius: 4px;
    font-size: 12px;
    color: var(--primary-dark);
}

/* Actions */
.note-acts {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.note-act {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #bbb;
    transition: color 0.2s;
    padding: 5px 0;
    cursor: pointer;
}

.note-act:hover {
    color: #333;
}

.note-act.on {
    color: var(--primary);
}

.note-act .ico {
    font-size: 18px;
}

/* Comments */
.note-cmts {
    border-top: 1px solid #f0f0f0;
    padding: 14px 20px;
    flex-shrink: 0;
    max-height: 160px;
    overflow-y: auto;
}

.note-cmts h4 {
    font-size: 12px;
    color: #ccc;
    margin-bottom: 10px;
    font-weight: 500;
}

.cmt {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.cmt-av {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f5f5f5;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #bbb;
}

.cmt-name {
    font-size: 12px;
    font-weight: 600;
    color: #555;
}

.cmt-text {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    margin-top: 1px;
}

.note-input {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
    flex-shrink: 0;
}

.note-input input {
    flex: 1;
    height: 36px;
    background: #f8f8f8;
    border: 1.5px solid transparent;
    border-radius: 18px;
    padding: 0 16px;
    font-size: 13px;
    color: #333;
    outline: none;
    transition: all 0.2s;
}

.note-input input::placeholder {
    color: #ccc;
}

.note-input input:focus {
    background: #fff;
    border-color: rgba(229, 127, 160, 0.30);
}

.note-input button {
    padding: 0 16px;
    height: 36px;
    background: var(--gradient);
    color: #fff;
    border-radius: 18px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.note-input button:hover {
    transform: scale(1.04);
    box-shadow: var(--shadow-pink);
}

/* ===== LOGIN / REGISTER MODAL ===== */
.login-mask {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.login-mask.open {
    opacity: 1;
    visibility: visible;
}

.login-box {
    width: 400px;
    max-width: 92vw;
    background: #fff;
    border-radius: 24px;
    padding: 40px 32px 32px;
    text-align: center;
    position: relative;
    transform: scale(0.94) translateY(16px);
    transition: transform 0.35s cubic-bezier(.16, 1, .3, 1);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
}

.login-mask.open .login-box {
    transform: scale(1) translateY(0);
}

.login-x {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #ccc;
    transition: all 0.2s;
}

.login-x:hover {
    background: #f5f5f5;
    color: #666;
}

.login-box .lg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 6px;
}

.login-box .lg img {
    display: block;
    height: 48px;
    width: auto;
    border-radius: 10px;
}

.login-box .ls {
    font-size: 13px;
    color: #bbb;
    margin-bottom: 24px;
    text-align: center;
}

/* Login / Register Tabs */
.login-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 3px;
    overflow: hidden;
}

.login-tab {
    flex: 1;
    padding: 8px 0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #999;
    transition: all 0.25s;
    cursor: pointer;
}

.login-tab.active {
    background: #fff;
    color: var(--primary);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.login-form {
    display: none;
}

.login-form.active {
    display: block;
}

.login-inp {
    width: 100%;
    height: 44px;
    background: #f8f8f8;
    border: 1.5px solid transparent;
    border-radius: 14px;
    padding: 0 14px;
    font-size: 14px;
    color: #333;
    outline: none;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.login-inp::placeholder {
    color: #ccc;
}

.login-inp:focus {
    background: #fff;
    border-color: rgba(229, 127, 160, 0.35);
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
    color: #bbb;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: #bbb;
}

.login-remember input[type="checkbox"] {
    accent-color: var(--primary);
}

.login-forgot {
    color: #bbb;
    transition: color 0.2s;
}

.login-forgot:hover {
    color: var(--primary);
}

.login-sub {
    width: 100%;
    height: 44px;
    background: var(--gradient);
    color: #fff;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    margin-top: 2px;
    transition: all 0.2s;
    box-shadow: var(--shadow-pink);
    cursor: pointer;
}

.login-sub:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(229, 127, 160, 0.30);
}

.login-sub:disabled {
    opacity: 0.6;
    pointer-events: none;
}

.login-error {
    margin-top: 12px;
    padding: 8px 12px;
    background: #fff0f0;
    border-radius: 8px;
    color: #e57373;
    font-size: 12px;
    text-align: center;
}

.login-success {
    margin-top: 12px;
    padding: 8px 12px;
    background: #f0fff4;
    border-radius: 8px;
    color: #66bb6a;
    font-size: 12px;
    text-align: center;
}

.login-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    font-size: 11px;
    color: #ccc;
}

.login-or::before,
.login-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #eee;
}

.login-soc {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.login-soc button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f8f8f8;
    border: 1px solid #eee;
    font-size: 18px;
    transition: all 0.2s;
}

.login-soc button:hover {
    background: #fff;
    border-color: var(--primary);
}

/* Login loading */
.login-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    color: #bbb;
    font-size: 13px;
}

.login-spinner {
    width: 28px;
    height: 28px;
    border: 2.5px solid var(--primary-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

/* ===== FAB ===== */
.fab {
    position: fixed;
    right: 24px;
    bottom: 28px;
    z-index: 100;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--gradient);
    color: #fff;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(229, 127, 160, 0.35);
    transition: all 0.3s cubic-bezier(.16, 1, .3, 1);
    cursor: pointer;
}

.fab:hover {
    transform: scale(1.08) rotate(90deg);
    box-shadow: 0 10px 28px rgba(229, 127, 160, 0.45);
}

/* ===== BACK TO TOP ===== */
.btt {
    position: fixed;
    right: 24px;
    bottom: 92px;
    z-index: 100;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #999;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.btt.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btt:hover {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
}

/* ===== FOOTER ===== */
.site-footer {
    padding: 32px 24px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
}

.foot-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 24px;
}

.foot-brand .f-l {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.foot-brand p {
    font-size: 12px;
    color: #999;
    line-height: 1.8;
    max-width: 280px;
}

.foot-col h4 {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #bbb;
    margin-bottom: 12px;
}

.foot-col a {
    display: block;
    font-size: 12px;
    color: #999;
    padding: 3px 0;
    transition: color 0.2s;
}

.foot-col a:hover {
    color: var(--primary);
}

.foot-bot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.foot-bot p {
    font-size: 11px;
    color: #ccc;
}

.foot-soc {
    display: flex;
    gap: 8px;
}

.foot-soc a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #999;
    transition: all 0.2s;
}

.foot-soc a:hover {
    background: var(--gradient);
    color: #fff;
}

/* ===== MOBILE HEADER ===== */
.mobile-header {
    display: none;
    position: sticky;
    top: 0;
    z-index: 800;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(200, 163, 232, 0.18);
    padding: 10px 14px;
    align-items: center;
    gap: 10px;
}

.mh-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.mh-logo-link {
    display: flex;
    align-items: center;
}

.mh-logo-link img,
.mh-logo img {
    display: block;
    height: 30px;
    width: auto;
    border-radius: 8px;
}

.mh-search {
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, #f8e8f5, #fce4ec);
    border-radius: 18px;
    height: 34px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 6px;
}

.mh-search input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 12.5px;
    color: #5a4a5e;
}

.mh-search input::placeholder {
    color: #b39eb8;
}

.mh-search .mh-ico {
    color: var(--primary);
    flex-shrink: 0;
    transition: color 0.2s;
}

.mh-search input:focus~.mh-ico {
    color: var(--primary-dark);
}

.mh-acts {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.mh-btn {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.2s;
    position: relative;
}

.mh-btn:active {
    background: rgba(229, 127, 160, 0.10);
    transform: scale(0.92);
}

.mh-btn .badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 14px;
    height: 14px;
    border-radius: 7px;
    background: var(--gradient);
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    box-shadow: var(--shadow-pink);
}

/* ===== MOBILE CATEGORY TABS ===== */
.mobile-tabs {
    display: none;
    position: static;
    z-index: 799;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(200, 163, 232, 0.12);
    padding: 8px 10px;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-tabs::-webkit-scrollbar {
    display: none;
}

.mtab {
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 500;
    color: #9a8a9e;
    border-radius: 14px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
}

.mtab.active {
    background: var(--gradient);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(229, 127, 160, 0.25);
}

/* ===== MOBILE BOTTOM NAV ===== */
.mobile-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(200, 163, 232, 0.18);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(180, 140, 200, 0.10);
}

.mnav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 0;
    color: #a89cae;
    transition: all 0.2s;
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
}

.mnav-btn .ico {
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mnav-btn .lbl {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.mnav-btn.on {
    color: var(--primary);
}

.mnav-btn:active {
    transform: scale(0.92);
}

.mnav-pub {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(229, 127, 160, 0.40);
    margin: 0 4px;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(.17, .67, .21, 1.68);
    cursor: pointer;
}

.mnav-pub:active {
    transform: scale(0.92) rotate(45deg);
}

.mnav-btn .badge {
    position: absolute;
    top: 0;
    right: 50%;
    transform: translate(14px, -2px);
    min-width: 14px;
    height: 14px;
    border-radius: 7px;
    background: var(--gradient);
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    box-shadow: var(--shadow-pink);
}

.mnav-btn {
    position: relative;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .waterfall {
        columns: 4;
    }
}

@media (max-width: 960px) {
    .waterfall {
        columns: 3;
    }

    .topbar-tabs {
        display: none;
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .main {
        margin-left: 0;
    }

    .topbar {
        padding: 10px 14px;
    }

    .topbar-search input {
        height: 36px;
        font-size: 13px;
    }

    .topbar-actions {
        display: none;
    }

    .waterfall {
        columns: 2;
        column-gap: 10px;
    }

    .card {
        margin-bottom: 10px;
        border-radius: 14px;
    }

    .card-body {
        padding: 10px 10px 11px;
    }

    .card-title {
        font-size: 13px;
    }

    .feed {
        padding: 12px 10px 96px;
    }

    .note-box {
        grid-template-columns: 1fr;
        grid-template-rows: 40% 1fr;
        width: 96vw;
        height: 92vh;
        border-radius: 20px;
    }

    .login-box {
        width: 92vw;
        padding: 32px 22px 26px;
        border-radius: 20px;
    }

    .fab {
        right: 16px;
        bottom: 88px;
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }

    .btt {
        right: 16px;
        bottom: 148px;
    }

    .card-hover {
        display: none;
    }

    .foot-bot {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .foot-top {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* show mobile header & nav */
    .mobile-header {
        display: flex;
    }

    .topbar {
        display: none;
    }

    .mobile-tabs {
        display: flex;
    }

    .mobile-nav {
        display: flex;
    }

    .site-footer {
        padding-bottom: 80px;
    }
}

@media (max-width: 480px) {
    .waterfall {
        columns: 2;
        column-gap: 8px;
    }

    .card {
        margin-bottom: 8px;
        border-radius: 12px;
    }

    .card-title {
        font-size: 12.5px;
    }

    .card-body {
        padding: 8px 8px 10px;
    }

    .card-av {
        width: 18px;
        height: 18px;
    }

    .card-name {
        font-size: 11px;
    }

    .card-like {
        font-size: 11px;
    }

    .mobile-header {
        padding: 8px 10px;
    }

    .mh-search {
        height: 32px;
    }
}

/* ===== FORGOT PASSWORD MODAL ===== */
.forgot-step {
    padding: 4px 0;
}

.forgot-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
    text-align: center;
}

.forgot-desc {
    font-size: 13px;
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 18px;
    text-align: center;
}

.forgot-resend:not(:disabled):hover {
    background: #fff !important;
    border-color: rgba(229,127,160,0.3) !important;
    color: var(--primary) !important;
}

/* ===== PUBLISH MODAL ===== */
.publish-box {
    width: 520px;
    max-width: 93vw;
    max-height: 88vh;
    background: #fff;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    transform: scale(0.94) translateY(16px);
    transition: transform 0.35s cubic-bezier(.16, 1, .3, 1);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.login-mask.open .publish-box {
    transform: scale(1) translateY(0);
}

.pb-head {
    padding: 24px 28px 16px;
    text-align: center;
    flex-shrink: 0;
}

.pb-head h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.pb-head p {
    font-size: 13px;
    color: #bbb;
}

#publishForm {
    padding: 0 28px 24px;
}

.pb-upload {
    margin-bottom: 14px;
}

.pb-upload-inner {
    width: 100%;
    aspect-ratio: 3/4;
    max-height: 280px;
    background: #fafafa;
    border: 2px dashed #e8e8e8;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s;
    color: #ccc;
}

.pb-upload-inner:hover {
    border-color: rgba(229, 127, 160, 0.35);
    background: rgba(229, 127, 160, 0.04);
    color: var(--primary);
}

.pb-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    max-height: 280px;
    border-radius: 16px;
    overflow: hidden;
    background: #f5f5f5;
}

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

.pb-remove-img {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 0.2s;
}

.pb-remove-img:hover {
    background: rgba(0, 0, 0, 0.7);
}

.pb-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.pb-cat {
    padding: 6px 14px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 500;
    color: #999;
    background: #f5f5f5;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.pb-cat:hover {
    background: rgba(229, 127, 160, 0.08);
    color: var(--primary);
}

.pb-cat.on {
    background: var(--gradient);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(229, 127, 160, 0.2);
}

.pb-cat input {
    display: none;
}

/* ===== ANIMATIONS ===== */
.card {
    opacity: 0;
    transform: translateY(20px);
}

.card.show {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s cubic-bezier(.16, 1, .3, 1), transform 0.5s cubic-bezier(.16, 1, .3, 1);
}

.card:nth-child(1) { transition-delay: 0s; }
.card:nth-child(2) { transition-delay: 0.03s; }
.card:nth-child(3) { transition-delay: 0.06s; }
.card:nth-child(4) { transition-delay: 0.09s; }
.card:nth-child(5) { transition-delay: 0.12s; }
.card:nth-child(6) { transition-delay: 0.15s; }
.card:nth-child(7) { transition-delay: 0.18s; }
.card:nth-child(8) { transition-delay: 0.21s; }
.card:nth-child(9) { transition-delay: 0.24s; }
.card:nth-child(10) { transition-delay: 0.27s; }
.card:nth-child(11) { transition-delay: 0.30s; }
.card:nth-child(12) { transition-delay: 0.33s; }
