/* ========================================
   DESIGN SYSTEM 2025 — Modern Dating App
   ========================================
   Color palette inspired by Tinder/Bumble/Badoo
   Typography: Inter for clean modern look
   ======================================== */
:root {
    /* Color Palette */
    --primary: #FF6B6B;
    --primary-dark: #E85555;
    --primary-light: rgba(255, 107, 107, 0.08);
    --secondary: #FF8E53;
    --accent: #667eea;
    --bg-primary: #FAFAFA;
    --bg-card: #FFFFFF;
    --text-primary: #1A1A2E;
    --text-secondary: #666;
    --text-muted: #999;
    --border: #F0F0F0;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-primary: 0 4px 15px rgba(255, 107, 107, 0.4);
    --shadow-primary-hover: 0 8px 25px rgba(255, 107, 107, 0.5);

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50px;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #FF6B6B, #FF8E53);
    --gradient-vip: linear-gradient(135deg, #FFD700, #FFA500);
    --gradient-accent: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    /* Type Scale */
    --fs-xs: 12px;
    --fs-sm: 13px;
    --fs-base: 14px;
    --fs-md: 15px;
    --fs-lg: 16px;
    --fs-xl: 18px;
    --fs-2xl: 24px;
    --fs-3xl: 28px;

    /* Font */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.25s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========================================
   GLOBAL BASE
   ======================================== */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary) !important;
    font-family: var(--font-main) !important;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ========================================
   HEADER — Clean, minimal
   ======================================== */
header {
    background: var(--gradient-primary);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.2s ease;
    margin-bottom: 15px;
}

header.header-scrolled {
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    height: 56px;
    gap: 20px;
}

/* Logo — text */
.header-logo {
    flex-shrink: 0;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
    font-family: var(--font-main);
}

.header-logo:hover {
    color: #fff;
    text-decoration: none;
    opacity: 0.85;
}

/* Gender pill switch */
.gender-switch {
    display: flex;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 3px;
}

.gender-switch a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 16px;
    border-radius: 18px;
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.gender-icon {
    font-size: 14px;
    line-height: 1;
}

.gender-switch a:hover {
    color: #fff;
    text-decoration: none;
}

.gender-switch a.active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Right side group */
.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* Location selector */
.location-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-main);
    font-size: 14px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.location-selector:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.location-selector svg {
    flex-shrink: 0;
    color: currentColor;
}

/* Header login link */
.header-login {
    color: #fff;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.header-login:hover {
    background: rgba(255, 255, 255, 0.15);
    text-decoration: none;
    color: #fff;
}

/* User avatar link */
.header-avatar {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.85);
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.header-avatar:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

/* Mobile burger */
.mobile-burger-btn {
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
}

.mobile-burger-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Top menu (burger dropdown) */
.top-menu {
    display: none;
    position: fixed;
    top: 56px;
    right: 0;
    width: 280px;
    background: #fff;
    border-radius: 0 0 0 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 20px 24px;
    z-index: 1000;
}

.top-menu.active {
    display: block;
}

.top-menu ul {
    list-style: none;
    margin-bottom: 0;
    padding: 0;
    flex-direction: column;
}

.top-menu .menu li {
    margin-bottom: 0;
}

.top-menu .menu li a,
.top-menu .menu li span {
    display: block;
    padding: 12px 0;
    color: #333;
    text-decoration: none;
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
    cursor: pointer;
    border-bottom: 1px solid #F0F0F0;
}

.top-menu .menu li:last-child a,
.top-menu .menu li:last-child span {
    border-bottom: none;
}

.top-menu .menu li a:hover,
.top-menu .menu li span:hover {
    color: var(--primary);
}

.gray-text {
    color: #C9D2F6;
    font-family: var(--font-main);
    font-size: var(--fs-base);
    font-weight: 500;
}

.white-text {
    color: #ffffff;
    font-family: var(--font-main);
    font-size: var(--fs-base);
    font-weight: 500;
}

.white-text:hover {
    color: #fff;
}

/* Section Headings */
.big-black-text {
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: var(--fs-2xl);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Footer links */
.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 24px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.footer-links a,
.footer-links span {
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-size: var(--fs-sm);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links span:hover {
    color: var(--primary);
}

/* Filter Button — outline style */
.filter-btn {
    border-radius: var(--radius-md);
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 24px;
    height: auto;
    width: auto;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-left: 40px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-btn:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

.filter-btn:hover svg path {
    fill: #fff;
}

.filter-btn-text {
    font-family: var(--font-main);
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--primary);
    transition: color 0.25s ease;
}

.filter-btn:hover .filter-btn-text {
    color: #fff;
}

.filter-btn svg {
    transition: transform 0.3s ease;
}

.filter-btn svg path {
    fill: var(--primary);
    transition: fill 0.25s ease;
}

.filter-btn.active svg {
    transform: rotate(180deg);
}

.bold-white-text {
    color: #FFF;
    font-family: var(--font-main);
    font-size: var(--fs-xl);
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.black-text {
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: var(--fs-base);
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.filter-btn-wrap {
    align-items: center;
}

.listing-h1 {
    margin-bottom: 20px;
}

/* ========================================
   USER CARD — Dual Mode (Photo / No-Photo)
   ======================================== */

/* a) Base container */
.user-card {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    font-family: var(--font-main);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-md);
    margin-bottom: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.user-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(255, 107, 107, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* b) Photo area */
.photo-area {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background-color: #f0f0f0;
}

.photo-area img,
.photo-area picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-card:hover .photo-area img,
.user-card:hover .photo-area picture img {
    transform: scale(1.05);
}

.user-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

/* c) Gradient overlay on photo — ONLY for has-photo */
.user-card.has-photo .photo-area::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.user-card:not(.has-photo) .photo-area::after {
    display: none;
}

/* VIP Badge with shimmer */
.vip-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--gradient-vip);
    color: #fff;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: var(--fs-xs);
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    text-transform: uppercase;
    overflow: hidden;
}

.vip-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    animation: vipShimmer 3s ease-in-out infinite;
}

@keyframes vipShimmer {
    0% { transform: translateX(-100%) rotate(25deg); }
    100% { transform: translateX(100%) rotate(25deg); }
}

/* d) Card Overlay — dual behavior */
.user-card.has-photo .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 60px 16px 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
}

.user-card:not(.has-photo) .card-overlay {
    position: relative;
    background: #fff;
    padding: 14px 16px 16px;
}

/* e) User Info block */
.user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 10px;
}

/* has-photo: white text on dark overlay */
.user-card.has-photo .user-info .user-name {
    color: #fff;
    font-family: var(--font-main);
    font-size: var(--fs-lg);
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-card.has-photo .user-info .user-city {
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-main);
    font-size: var(--fs-sm);
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* no-photo: dark text on white bg */
.user-card:not(.has-photo) .user-info .user-name {
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: var(--fs-lg);
    font-weight: 600;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-card:not(.has-photo) .user-info .user-city {
    color: var(--text-muted);
    font-family: var(--font-main);
    font-size: var(--fs-sm);
    font-weight: 400;
}

/* i) Online dot */
.online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    min-width: 8px;
    background: #4CD964;
    border-radius: 50%;
    animation: pulse-online 2s infinite;
}

@keyframes pulse-online {
    0% { box-shadow: 0 0 0 0 rgba(76, 217, 100, 0.5); }
    70% { box-shadow: 0 0 0 6px rgba(76, 217, 100, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 217, 100, 0); }
}

/* f) Card Actions */
.card-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 0;
}

/* has-photo desktop: hidden by default, show on hover — glass buttons */
.user-card.has-photo .card-actions {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.user-card.has-photo:hover .card-actions {
    opacity: 1;
}

/* no-photo: always visible, separator */
.user-card:not(.has-photo) .card-actions {
    border-top: 1px solid #f0f0f0;
    padding: 12px 0;
}

/* Action button base */
.card-action-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.card-action-btn:hover {
    transform: scale(1.15) translateY(-2px);
}

/* no-photo: solid style buttons */
.user-card:not(.has-photo) .card-action-btn {
    border-color: #e8e8e8;
    background: #f8f8f8;
    color: var(--text-secondary);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.user-card:not(.has-photo) .card-action-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* Profile button */
.card-action-profile {
    border-color: rgba(255, 255, 255, 0.6);
    color: rgba(255, 255, 255, 0.8);
}

.user-card.has-photo .card-action-profile:hover {
    background: #fff;
    border-color: #fff;
    color: var(--text-primary);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
}

/* Like — Heart */
.card-action-like {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-color: var(--primary);
    background: rgba(255, 107, 107, 0.15);
}

.user-card:not(.has-photo) .card-action-like {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.card-action-like:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.5);
}

/* Message button */
.card-action-msg {
    border-color: rgba(255, 255, 255, 0.6);
    color: rgba(255, 255, 255, 0.8);
}

.user-card.has-photo .card-action-msg:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.4);
}

.user-card:not(.has-photo) .card-action-msg:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.4);
}

/* g) No-photo placeholder styling */
.no-photo {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0;
    position: relative;
}

/* Hide default content inside .no-photo */
.no-photo img,
.no-photo .no-photo-text {
    display: none !important;
}

/* SVG silhouette */
.no-photo::before {
    content: '';
    display: block;
    width: 80px;
    height: 80px;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 5 gradient variants via nth-child on wrapper .col-12 */
.col-12:nth-child(5n+1) .user-card:not(.has-photo) .photo-area {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.col-12:nth-child(5n+2) .user-card:not(.has-photo) .photo-area {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.col-12:nth-child(5n+3) .user-card:not(.has-photo) .photo-area {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.col-12:nth-child(5n+4) .user-card:not(.has-photo) .photo-area {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.col-12:nth-child(5n+5) .user-card:not(.has-photo) .photo-area {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* j) User card body — globally hidden */
.user-card-body {
    display: none;
}

/* k) Message button in card-body — hidden */
.message-btn {
    display: none;
}

/* ========================================
   USER CARD — Mobile
   ======================================== */
@media (max-width: 767px) {
    .user-card {
        border-radius: var(--radius-md);
    }

    /* Square photos on mobile */
    .photo-area {
        aspect-ratio: 1 / 1;
    }

    /* has-photo mobile: overlay becomes normal flow, white bg */
    .user-card.has-photo .card-overlay {
        position: relative;
        background: #fff;
        padding: 10px 12px 12px;
    }

    /* has-photo mobile: dark text */
    .user-card.has-photo .user-info .user-name {
        color: var(--text-primary);
        text-shadow: none;
        font-size: var(--fs-base);
    }

    .user-card.has-photo .user-info .user-city {
        color: var(--text-muted);
        text-shadow: none;
        font-size: var(--fs-xs);
    }

    /* No gradient on photo in mobile */
    .user-card.has-photo .photo-area::after {
        display: none;
    }

    /* no-photo mobile: tighter padding */
    .user-card:not(.has-photo) .card-overlay {
        padding: 10px 12px 12px;
    }

    .user-info {
        margin-bottom: 6px;
    }

    /* All buttons always visible on mobile */
    .user-card.has-photo .card-actions {
        opacity: 1;
    }

    .card-actions {
        gap: 10px;
        padding: 8px 0;
    }

    .card-action-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .card-action-btn svg {
        width: 14px;
        height: 14px;
    }

    .card-action-like {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }

    .card-action-like svg {
        width: 18px;
        height: 18px;
    }

    /* Mobile buttons: solid style for both modes */
    .user-card.has-photo .card-action-btn {
        border-color: #e8e8e8;
        background: #f8f8f8;
        color: var(--text-secondary);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .user-card.has-photo .card-action-btn:hover {
        background: var(--primary-light);
        border-color: var(--primary);
        color: var(--primary);
    }

    .user-card.has-photo .card-action-like {
        border-color: var(--primary);
        background: var(--primary-light);
        color: var(--primary);
    }

    .user-card.has-photo .card-actions {
        border-top: 1px solid #f0f0f0;
    }
}

body {
    margin: 0;
    overflow-x: hidden;
}

/* ========================================
   PREMIUM SIDEBAR — Tinder Style
   ======================================== */

#sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100%;
    background: #ffffff;
    color: var(--text-primary);
    padding: 0;
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#sidebar::before {
    display: none;
}

#sidebar.active {
    left: 0;
}

/* Sidebar Header */
.sidebar-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 2px solid transparent;
    background: #fff;
    border-image: linear-gradient(90deg, #FF6B6B, #FF8E53) 1;
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-main);
    font-size: var(--fs-xl);
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #F0F2F4;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.sidebar-close:hover {
    background: var(--gradient-primary);
    color: #fff;
    transform: rotate(90deg);
}

/* Scrollable Area */
.sidebar-scroll {
    position: relative;
    z-index: 1;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 12px 80px;
}

.sidebar-scroll::-webkit-scrollbar {
    width: 3px;
}

.sidebar-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FF6B6B, #FF8E53);
    border-radius: 3px;
}

/* Sidebar Cards */
.sidebar-card {
    margin-bottom: 2px;
    border-radius: 14px;
    overflow: hidden;
    border: none;
    background: transparent;
    transition: background 0.2s ease;
}

.sidebar-card:hover {
    background: #FAFAFA;
}

.sidebar-card-header {
    display: flex;
    align-items: center;
    padding: 11px 14px;
    cursor: pointer;
    border-radius: 14px;
    transition: all 0.2s ease;
    gap: 12px;
    user-select: none;
    -webkit-user-select: none;
    border: none;
    background: transparent;
}

.sidebar-card-header:hover {
    background: #F5F5F8;
}

.sidebar-card-header[aria-expanded="true"] {
    background: #FFF0F0;
}

.sidebar-card-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.2);
}

.sidebar-card-header:hover .sidebar-card-icon {
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.35);
    transform: scale(1.05);
}

.sidebar-card-title {
    flex: 1;
    font-family: var(--font-main);
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.2s ease;
    line-height: 1.2;
}

.sidebar-card-header:hover .sidebar-card-title {
    color: #111;
}

.sidebar-card-count {
    font-family: var(--font-main);
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--primary);
    background: rgba(255, 107, 107, 0.08);
    padding: 3px 8px;
    border-radius: 10px;
    min-width: 22px;
    text-align: center;
    transition: all 0.2s ease;
}

.sidebar-card-header:hover .sidebar-card-count {
    background: rgba(255, 107, 107, 0.14);
    color: var(--primary-dark);
}

.sidebar-chevron {
    color: #C5C9D1;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
    flex-shrink: 0;
}

.sidebar-card-header[aria-expanded="true"] .sidebar-chevron {
    transform: rotate(180deg);
    color: var(--primary);
}

/* Card Body — Filter Links */
.sidebar-card-body {
    list-style: none;
    padding: 8px 0 8px 62px;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: transparent;
}

.sidebar-card-body li {
    position: relative;
}

.sidebar-card-body li::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #E8E8EC;
    transform: translateY(-50%);
    transition: all 0.2s ease;
}

.sidebar-card-body li:hover::before {
    background: var(--gradient-primary);
    box-shadow: 0 0 6px rgba(255, 107, 107, 0.3);
}

.sidebar-card-body a {
    display: block;
    padding: 7px 0;
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-size: var(--fs-base);
    font-weight: 400;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1.3;
}

.sidebar-card-body a:hover {
    color: var(--primary);
    text-decoration: none;
    padding-left: 4px;
}

/* Sidebar Footer Glow */
.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    pointer-events: none;
    z-index: 2;
}

.sidebar-footer-glow {
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #ffffff 0%, transparent 100%);
}

/* Overlay */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: none;
    z-index: 99;
    transition: background 0.35s ease;
}

#overlay.active {
    display: block;
    background: rgba(0, 0, 0, 0.4);
}

/* Override default Bootstrap card inside sidebar */
#sidebar .card,
#sidebar .card-header,
#sidebar .card-body {
    background: transparent;
    border: none;
    padding: 0;
}

.btn:focus, .btn.focus {
    box-shadow: none !important;
}

/* Sidebar entry animation for cards */
#sidebar.active .sidebar-card {
    animation: sidebarCardIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

#sidebar.active .sidebar-card:nth-child(1)  { animation-delay: 0.04s; }
#sidebar.active .sidebar-card:nth-child(2)  { animation-delay: 0.07s; }
#sidebar.active .sidebar-card:nth-child(3)  { animation-delay: 0.10s; }
#sidebar.active .sidebar-card:nth-child(4)  { animation-delay: 0.13s; }
#sidebar.active .sidebar-card:nth-child(5)  { animation-delay: 0.16s; }
#sidebar.active .sidebar-card:nth-child(6)  { animation-delay: 0.19s; }
#sidebar.active .sidebar-card:nth-child(7)  { animation-delay: 0.22s; }
#sidebar.active .sidebar-card:nth-child(8)  { animation-delay: 0.25s; }
#sidebar.active .sidebar-card:nth-child(9)  { animation-delay: 0.28s; }
#sidebar.active .sidebar-card:nth-child(10) { animation-delay: 0.31s; }
#sidebar.active .sidebar-card:nth-child(11) { animation-delay: 0.34s; }

@keyframes sidebarCardIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Collapse transition */
#sidebar .collapse {
    transition: none;
}

#sidebar .collapsing {
    transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mobile refinements */
@media (max-width: 576px) {
    #sidebar {
        width: 290px;
        left: -290px;
    }
}

.modal-header {
    border-bottom: none;
}

.red-btn {
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    box-shadow: var(--shadow-primary);
    color: #FFF;
    font-family: var(--font-main);
    font-size: var(--fs-md);
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 28px;
    height: 44px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
}

.red-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-hover);
    color: #fff;
    text-decoration: none;
}

.big-links .red-btn {
    margin-left: auto;
}

/* No-photo Placeholder — Modern Gradient with SVG Silhouette */
.no-photo-text {
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-main);
    font-size: var(--fs-sm);
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-decoration: none;
}

.no-photo {
    flex-direction: column;
    justify-content: center;
    align-content: center;
    align-items: center;
    height: 280px;
    background: var(--gradient-accent);
}

.no-photo img {
    margin-bottom: 12px;
    max-width: 60px;
    opacity: 0.8;
    filter: brightness(10);
}

.city-list {
    list-style: none;
    padding: 0;
    column-count: 2;
    column-gap: 12px;
    padding-top: 4px;
}

.city-list li {
    break-inside: avoid;
    margin-bottom: 2px;
}

.city-list a {
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: var(--fs-base);
    font-weight: 500;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.city-list a::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.city-list a:hover {
    background: var(--primary-light);
    color: var(--primary) !important;
    text-decoration: none;
    transform: translateX(4px);
}

.city-list a:hover::before {
    background: var(--primary);
    box-shadow: 0 0 6px rgba(255, 107, 107, 0.4);
}

/* ========================================
   REGISTRATION SHADE — Right Drawer
   ======================================== */
.registration-shade {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
}

.shade-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.shade-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    background: #fff;
    padding: 40px 36px;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: shadeSlideIn 0.3s ease-out;
}

@keyframes shadeSlideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.shade-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #F5F5F5;
    border: none;
    color: #666;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    z-index: 2;
    padding: 0;
}

.shade-close:hover {
    background: #EBEBEB;
    color: #333;
}

.auth-form {
    width: 100%;
    font-family: var(--font-main);
}

.auth-form h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1A1A2E;
    margin: 0 0 4px;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    font-size: 14px;
    color: #999;
    margin: 0 0 24px;
}

.auth-form .form-group {
    margin-bottom: 16px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 13px 16px;
    font-size: 15px;
    font-family: var(--font-main);
    border: 1.5px solid #E8E8EC;
    border-radius: 12px;
    background: #F8F9FA;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.08);
}

.auth-form select {
    width: 100%;
    font-size: 15px;
    font-family: var(--font-main);
    border: 1.5px solid #E8E8EC;
    border-radius: 12px;
    background: #F8F9FA;
    -webkit-appearance: none;
    transition: border-color 0.2s;
    outline: none;
    box-sizing: border-box;
}

.auth-form select:focus {
    border-color: var(--primary);
}

.remember-me-wrap {
    margin: 4px 0 16px;
    font-size: 14px;
    color: #666;
}

.remember-me-wrap label {
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}

.remember-me-wrap input[type="checkbox"] {
    width: auto;
    margin: 0 6px 0 0;
    accent-color: var(--primary);
    vertical-align: middle;
}

.auth-submit-btn {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-main);
    color: #fff;
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3);
    letter-spacing: 0.02em;
}

.auth-submit-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.auth-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.auth-links {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #999;
    font-family: var(--font-main);
}

.auth-link {
    color: var(--primary);
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-link:hover {
    color: var(--primary-dark, #e55a5a);
}

.auth-divider {
    display: block;
    margin-top: 8px;
}

/* Signup AJAX validation */
.signup-alert {
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.07);
    border: 1px solid rgba(231, 76, 60, 0.15);
    border-radius: var(--radius-sm, 8px);
    margin-bottom: 14px;
}

#form-signup .has-error .form-control {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.08);
}

#form-signup .has-error .help-block,
#signup-captcha-error {
    font-size: 12px;
    color: #e74c3c;
    margin-top: 4px;
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.forgot-link {
    display: inline-block;
    margin-bottom: 4px;
}

#form-signup {
    display: none;
}

.auth-form .g-recaptcha {
    margin: 16px 0;
}

.social-login {
    margin-top: 30px;
}

.social-login p {
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 10px;
}

.social-icons a {
    margin: 0 10px;
    display: inline-block;
}

.social-icons img {
    width: 32px;
    height: 32px;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.auth-clients {
    display: block;
    margin: 0 0 1em;
    list-style: none;
    overflow: auto;
}

.auth-clients li {
    float: left;
    display: block;
    margin: 0 1em 0 0;
    text-align: center;
}

.auth-clients li {
    float: none !important;
}

.auth-icon {
    display: block;
    width: 32px;
    height: 32px;
    background: url('../files/img/authchoice.png') no-repeat;
    background-position-x: 0%;
    background-position-y: 0%;
    border-radius: 3px;
    margin: 0 auto;
}

.auth-icon {
    border-radius: 50% !important;
}

.auth-icon.vkontakte {
    background-position: 0 -136px;
}
#loginform-rememberme{
    width: auto;
    margin: 0;
    margin-right: 10px;
}
.loginform-rememberme-label{
    margin: 0;
    margin-bottom: -3px;
}
.field-loginform-rememberme{
    display:  flex;
}
.g-recaptcha{
    margin-bottom: 15px;
}
.field-signupform-pol{
    margin-bottom: 20px;
}
.auth-form a{
    color: var(--primary);
    font-family: var(--font-main);
    font-size: var(--fs-base);
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: none;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}
.sidebar {
    background: rgba(242, 242, 242, 0.20);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    font-family: var(--font-main);
}

.profile {
    text-align: center;
    margin-bottom: 20px;
}

/* ========================================
   USER SIDEBAR MENU — Premium Design
   ======================================== */

/* Container */
.usm {
    font-family: var(--font-main);
}

/* Header with avatar */
.usm__header {
    background: var(--gradient-primary);
    padding: 28px 20px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.usm__header::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -30%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.usm__header::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

/* Avatar */
.usm__avatar-wrap {
    position: relative;
    z-index: 1;
    margin-bottom: 12px;
}

.usm__avatar-wrap .field-addpostform-image,
.usm__avatar-wrap .field-photo-file {
    display: none;
}

.usm__avatar-label {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    overflow: visible;
}

.usm__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.4);
    transition: border-color var(--transition-fast);
}

.usm__avatar-label:hover .usm__avatar {
    border-color: rgba(255, 255, 255, 0.8);
}

.usm__avatar-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.usm__avatar-edit {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-fast);
}

.usm__avatar-label:hover .usm__avatar-edit {
    transform: scale(1.1);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

/* User info */
.usm__user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.usm__username {
    color: #fff;
    font-size: var(--fs-lg);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.usm__vip-badge {
    background: var(--gradient-vip);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.4);
    animation: vipShimmer 3s ease-in-out infinite;
}

/* Navigation */
.usm__nav {
    padding: 12px 12px 8px;
}

.usm__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    text-decoration: none;
    font-size: var(--fs-base);
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
    cursor: pointer;
}

.usm__item:hover {
    background: var(--primary-light);
    color: var(--primary);
    text-decoration: none;
    transform: translateX(4px);
}

/* Icon containers */
.usm__item-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.2);
    transition: all var(--transition-fast);
}

.usm__item:hover .usm__item-icon {
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.35);
    transform: scale(1.05);
}

/* Muted icon variant */
.usm__item-icon--muted {
    background: #F0F2F4;
    color: var(--text-muted);
    box-shadow: none;
}

.usm__item:hover .usm__item-icon--muted {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.2);
}

/* VIP item */
.usm__item--vip {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.06), rgba(255, 165, 0, 0.06));
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.usm__item--vip:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(255, 165, 0, 0.12));
    border-color: rgba(255, 215, 0, 0.35);
}

.usm__item-icon--vip {
    background: var(--gradient-vip);
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
}

.usm__item--vip:hover .usm__item-icon--vip {
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.45);
}

.usm__vip-expires {
    display: block;
    font-size: var(--fs-xs);
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 1px;
}

/* Item text */
.usm__item-text {
    flex: 1;
    line-height: 1.3;
}

/* Badge (balance) */
.usm__item-badge {
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--primary);
    background: rgba(255, 107, 107, 0.08);
    padding: 3px 10px;
    border-radius: 10px;
}

/* Counter (notifications) */
.usm__item-counter {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: var(--gradient-primary);
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(255, 107, 107, 0.3);
}

/* Divider */
.usm__divider {
    height: 1px;
    background: var(--border);
    margin: 6px 12px;
}

/* Logout */
.usm__item--logout {
    padding: 0;
}

.usm__logout-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: none;
    background: none;
    width: 100%;
    font-family: var(--font-main);
    font-size: var(--fs-base);
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.usm__logout-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
    transform: translateX(4px);
}

.usm__logout-btn:hover .usm__item-icon--muted {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.2);
}

/* Staggered animation */
#user-sidebar-menu.active .usm__item {
    animation: usmItemIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

#user-sidebar-menu.active .usm__item:nth-child(1)  { animation-delay: 0.03s; }
#user-sidebar-menu.active .usm__item:nth-child(2)  { animation-delay: 0.06s; }
#user-sidebar-menu.active .usm__item:nth-child(3)  { animation-delay: 0.09s; }
#user-sidebar-menu.active .usm__item:nth-child(4)  { animation-delay: 0.12s; }
#user-sidebar-menu.active .usm__item:nth-child(5)  { animation-delay: 0.15s; }
#user-sidebar-menu.active .usm__item:nth-child(6)  { animation-delay: 0.18s; }
#user-sidebar-menu.active .usm__item:nth-child(7)  { animation-delay: 0.21s; }
#user-sidebar-menu.active .usm__item:nth-child(8)  { animation-delay: 0.24s; }
#user-sidebar-menu.active .usm__item:nth-child(9)  { animation-delay: 0.27s; }
#user-sidebar-menu.active .usm__item:nth-child(10) { animation-delay: 0.30s; }
#user-sidebar-menu.active .usm__item:nth-child(11) { animation-delay: 0.33s; }

@keyframes usmItemIn {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* #user-sidebar-menu override */
#user-sidebar-menu {
    border-radius: 0;
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.1);
}

.field-addpostform-image{
    display: none;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #eee;
}

.menu .item {
    display: flex;
    padding: 9px 5px;
    text-decoration: none;
    color: #222;
    border-radius: 10px;
    transition: background 0.2s;
    font-family: var(--font-main);
}

.menu .item:hover {
    background: #f2f4f8;
}
.item svg{
    margin-right: 10px;
    max-width: 20px;
}

.icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    background-size: contain;
    background-repeat: no-repeat;
}
.item img{
    max-width: 20px;
    max-height: 20px;
    margin-right: 10px;
}
.item button{
    padding: 0;
}
.my-data-row p{
    margin-bottom: 10px;
}
.profile_info_row{
    margin-bottom: 10px;
}
.user-prop-wrap:last-child{
    margin-bottom: 0;
}
.city-wrap .city svg{
    position: relative;
    top: -2px;
}
.author{
    color: var(--primary);
}
.cta-box__text svg{
    position: relative;
    top: -3px;
    margin-left: 7px;
}
.send-message-photo svg{
    top: 2px;
}

/* ========================================
   PROFILE DETAIL PAGE — Redesign
   ======================================== */

/* Container */
.anket-single-page {
    max-width: 900px;
    margin: 0 auto;
    font-family: var(--font-main);
    padding: 0 12px;
}

/* ---- Profile Top: Photo + Info ---- */
.profile-top {
    display: flex;
    gap: 32px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    padding: 24px;
    margin-bottom: 16px;
}

/* Photo column */
.profile-photo {
    position: relative;
    flex: 0 0 400px;
}

.anket-single-page .post-photo {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

/* --- Native Gallery Slider --- */
.gallery-slider {
    position: relative;
    overflow: hidden;
}

.gallery-track {
    position: relative;
}

.gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.gallery-slide.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.gallery-slide picture {
    display: block;
    line-height: 0;
}

.gallery-slide img {
    width: 100%;
    display: block;
}

/* Slider nav — glass circles */
.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    outline: none;
}

.gallery-slider:hover .gallery-prev,
.gallery-slider:hover .gallery-next {
    opacity: 1;
}

.gallery-prev {
    left: 12px;
}

.gallery-next {
    right: 12px;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: rgba(255, 255, 255, 0.35);
}

.gallery-prev span,
.gallery-next span {
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}

.gallery-prev span {
    transform: rotate(-135deg);
    margin-left: 3px;
}

.gallery-next span {
    transform: rotate(45deg);
    margin-right: 3px;
}

/* --- Photo Lightbox --- */
.photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.photo-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
}

.lb-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-content img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    user-select: none;
    -webkit-user-drag: none;
    transition: opacity 0.3s ease;
}

.lb-close {
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 2;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.lb-close:hover {
    opacity: 1;
}

.lb-prev,
.lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s ease;
}

.lb-prev:hover,
.lb-next:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lb-prev {
    left: 20px;
}

.lb-next {
    right: 20px;
}

.lb-prev span,
.lb-next span {
    display: block;
    width: 12px;
    height: 12px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}

.lb-prev span {
    transform: rotate(-135deg);
    margin-left: 3px;
}

.lb-next span {
    transform: rotate(45deg);
    margin-right: 3px;
}

.lb-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: #fff;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 14px;
    border-radius: 20px;
}

/* Carousel counter */
.carousel-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-family: var(--font-main);
    font-size: var(--fs-xs);
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    pointer-events: none;
}

/* VIP badge */
.anket-single-page .vip-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
}

/* Online badge */
.online-badge {
    position: absolute;
    bottom: 16px;
    left: 12px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    font-family: var(--font-main);
    font-size: var(--fs-xs);
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4CD964;
    display: inline-block;
    animation: onlinePulse 2s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(76, 217, 100, 0.6);
}

@keyframes onlinePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* ---- Info column ---- */
.profile-main-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

/* Header: name + age + city */
.profile-header .name {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
}

.profile-header h1.name {
    font-family: var(--font-main);
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.profile-header .old {
    font-family: var(--font-main);
    font-size: 28px;
    font-weight: 800;
    color: var(--text-muted);
}

.profile-header .city-wrap {
    margin-top: 4px;
}

.profile-header .city {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
}

/* Goals tags */
.profile-goals {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.profile-goals .label {
    color: var(--text-muted);
    font-size: var(--fs-sm);
    font-weight: 500;
    margin-right: 4px;
}

.anket-single-page .celi-znakomsva-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.anket-single-page .celi-znakomsva-block a {
    background: rgba(255, 107, 107, 0.08);
    color: var(--primary);
    border: none;
    border-radius: 20px;
    padding: 6px 16px;
    font-family: var(--font-main);
    font-size: var(--fs-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-block;
    margin: 3px 4px 3px 0;
}

.anket-single-page .celi-znakomsva-block a:hover {
    background: var(--gradient-primary);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    transform: translateY(-1px);
}

/* ---- Action buttons row ---- */
.profile-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.anket-single-page .message.write-message {
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 12px;
    font-family: var(--font-main);
    font-size: var(--fs-md);
    font-weight: 700;
    padding: 10px 28px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.25);
    text-align: center;
    border: none;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.anket-single-page .message.write-message:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    filter: brightness(1.05);
}

.anket-single-page .message.write-message:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

/* Present button — circle 44px */
.anket-single-page #get-present-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: rgba(255, 107, 107, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.anket-single-page #get-present-btn:hover {
    background: rgba(255, 107, 107, 0.15);
    transform: scale(1.08);
}

.anket-single-page #get-present-btn svg {
    width: 22px;
    height: 22px;
}

/* Gift VIP — compact badge */
.anket-single-page .gift-vip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 165, 0, 0.08));
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 13px;
}

.anket-single-page .gift-vip:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.15));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.15);
}

.anket-single-page .gift-vip img {
    width: 18px;
    height: 18px;
}

.anket-single-page .gift-vip .vip-icon-svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.anket-single-page .gift-vip .vip-text a {
    color: #D4A017;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
}

.anket-single-page .gift-vip .vip-text a:hover {
    color: #B8860B;
}

/* Add friend button */
.anket-single-page .add-friend-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(52, 152, 219, 0.08);
    border: 1px solid rgba(52, 152, 219, 0.18);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 13px;
    color: #2980b9;
}
.anket-single-page .add-friend-btn:hover {
    background: rgba(52, 152, 219, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}
.anket-single-page .add-friend-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: #2980b9;
}
.anket-single-page .add-friend-btn .profile_gift_text {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}
.anket-single-page .add-friend-btn--active {
    background: rgba(39, 174, 96, 0.08);
    border-color: rgba(39, 174, 96, 0.2);
    color: #27ae60;
    cursor: default;
}
.anket-single-page .add-friend-btn--active:hover {
    transform: none;
    box-shadow: none;
    background: rgba(39, 174, 96, 0.08);
}
.anket-single-page .add-friend-btn--active svg {
    stroke: #27ae60;
}
.anket-single-page .add-friend-btn--pending {
    background: rgba(155, 89, 182, 0.06);
    border-color: rgba(155, 89, 182, 0.18);
    color: #8e44ad;
    cursor: default;
}
.anket-single-page .add-friend-btn--pending:hover {
    transform: none;
    box-shadow: none;
    background: rgba(155, 89, 182, 0.06);
}
.anket-single-page .add-friend-btn--pending svg {
    stroke: #8e44ad;
}
.anket-single-page .add-friend-btn--received {
    background: rgba(230, 126, 34, 0.08);
    border-color: rgba(230, 126, 34, 0.2);
    color: #d35400;
}
.anket-single-page .add-friend-btn--received svg {
    stroke: #d35400;
}

/* Heart button — compact */
.anket-single-page .heart-btn,
.anket-single-page .profile-actions > .get-heart {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(255, 107, 107, 0.06);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 13px;
    position: relative;
}

.anket-single-page .heart-btn:hover,
.anket-single-page .profile-actions > .get-heart:hover {
    background: rgba(255, 107, 107, 0.12);
    transform: translateY(-1px);
}

.anket-single-page .heart-btn .post_image,
.anket-single-page .profile-actions > .get-heart .post_image {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    position: relative;
}

.anket-single-page .heart-btn .post_image .img,
.anket-single-page .profile-actions > .get-heart .post_image .img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.anket-single-page .heart-btn .post_image .img[src*="nophoto"],
.anket-single-page .profile-actions > .get-heart .post_image .img[src*="nophoto"] {
    opacity: 0;
}

.anket-single-page .heart-btn .post_image:has(.img[src*="nophoto"])::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23bbb'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.anket-single-page .heart-btn .synpathy-img,
.anket-single-page .profile-actions > .get-heart .synpathy-img {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.anket-single-page .heart-btn .get-heart-text,
.anket-single-page .profile-actions > .get-heart .get-heart-text {
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

/* ---- About section ---- */
.about-section {
    background: #F8F9FA;
    border-radius: 12px;
    padding: 16px 20px;
}

.about-section h3 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin: 0 0 8px 0;
}

.about-section .about {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
    margin: 0;
    font-family: var(--font-main);
}

/* ---- Profile Details — characteristics grid ---- */
.profile-details {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    padding: 24px;
    margin-bottom: 24px;
}

.profile-details > h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    font-family: var(--font-main);
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.detail-item {
    display: flex;
    align-items: baseline;
    padding: 10px 12px;
    border-radius: 6px;
}

.detail-item:nth-child(odd) {
    background: #FAFAFA;
}

.detail-label {
    color: #999;
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 500;
    min-width: 160px;
    flex-shrink: 0;
}

.detail-value {
    color: #1A1A2E;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
}

.detail-value a {
    color: #1A1A2E;
    text-decoration: none;
    transition: color 0.2s ease;
}

.detail-value a:hover {
    color: var(--primary);
    text-decoration: none;
}

/* ---- Profile Presents ---- */
.profile-presents {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    padding: 24px;
    margin-bottom: 24px;
}

.profile-presents .small-heading {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    margin-bottom: 16px;
}

.profile-presents .small-heading a {
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
}

.profile-presents .user-presents-list img {
    width: 100%;
    border-radius: 8px;
}

/* ---- Profile Wall ---- */
.profile-wall {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    padding: 24px;
    margin-bottom: 24px;
    overflow: hidden;
}

.profile-wall .wall-form-wrap {
    margin-bottom: 20px;
}

.profile-wall .wall-form-wrap #wall-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-wall .wall-form-wrap .field-addtowallform-user_id {
    display: none;
}

.profile-wall .wall-form-wrap .field-addtowallform-text {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

.profile-wall .wall-form-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.profile-wall .wall-form-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.profile-wall .wall-form-avatar .img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-wall .wall-form-field {
    flex: 1;
    min-width: 0;
}

.profile-wall .wall-form-field .form-group {
    margin-bottom: 0;
}

.anket-single-page #addtowallform-text {
    border: 1px solid #E8E8EC;
    border-radius: 25px;
    padding: 10px 18px;
    font-family: var(--font-main);
    font-size: 14px;
    resize: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    color: var(--text-primary);
    background: #F8F9FA;
    width: 100%;
    height: 44px;
    line-height: 22px;
}

.anket-single-page #addtowallform-text:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
    outline: none;
    background: #fff;
}

.anket-single-page .wall-send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.anket-single-page .wall-send-btn svg {
    fill: #ff6b6b;
    width: 22px;
    height: 22px;
}

.anket-single-page .wall-send-btn svg path {
    fill: #ff6b6b;
    fill-opacity: 1;
    transition: fill 0.2s ease;
}

.anket-single-page .wall-send-btn:hover svg path {
    fill: #e55555;
}

.profile-wall .wall-form-wrap .form-group:last-of-type {
    margin-bottom: 0;
    flex-shrink: 0;
}

/* --- Wall Items --- */

.profile-wall .wall-tem.page-block {
    box-shadow: none;
    border-radius: 0;
    padding: 20px 0 !important;
    margin-top: 0;
}

.profile-wall .wall-tem.page-block:last-of-type {
    border-bottom: none;
}

.profile-wall .wall-tem .post_header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.profile-wall .wall-tem .post_header .post_image {
    flex-shrink: 0;
}

.profile-wall .wall-tem .post_header .post_image .img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-wall .wall-tem .post_header_info {
    margin-left: 0;
}

.profile-wall .wall-tem .post_header_info .author {
    font-weight: 600;
    font-size: 15px;
    color: var(--color-primary, #ff6b6b);
    text-decoration: none;
}

.profile-wall .wall-tem .post_header_info .post_date {
    font-size: 13px;
    color: #999;
    margin-top: 2px;
}

.profile-wall .wall-tem .post-text {
    font-size: 15px;
    line-height: 1.5;
    color: #333;
    padding: 0 0 12px;
    margin-top: 0;
}

.profile-wall .wall-tem .wall-img-wrap {
    margin: 0;
    max-width: 400px;
}

.profile-wall .wall-tem .wall-img-wrap img {
    width: 100%;
    display: block;
    margin: 0;
    border-radius: 12px;
}

.profile-wall .wall-tem .open-comment-btn {
    display: none;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    background: #f5f5f5;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.profile-wall .wall-tem .open-comment-btn:hover {
    background: #eee;
    color: #333;
}

.profile-wall .wall-tem .open-comment-btn svg {
    width: 18px;
    height: 18px;
}

/* --- Comment Form (inline, matches wall form) --- */
.profile-wall .comment-wall-form {
    margin-top: 12px;
    padding-top: 12px;
    position: relative;
}

.profile-wall .comment-wall-form form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-wall .comment-wall-form form > *:not(.field-addcommentform-text):not(.send-comment-btn) {
    display: none !important;
}

.profile-wall .comment-wall-form .form-otvet {
    flex: 1;
    min-width: 0;
    margin: 0 !important;
}

.profile-wall .comment-wall-form .form-otvet .form-group {
    margin-bottom: 0;
}

.profile-wall .comment-wall-form textarea {
    border: 1px solid #E8E8EC;
    border-radius: 25px;
    padding: 8px 16px;
    font-family: var(--font-main);
    font-size: 14px;
    resize: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    color: var(--text-primary);
    background: #F8F9FA;
    width: 100%;
    height: 40px;
    line-height: 22px;
}

.profile-wall .comment-wall-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
    outline: none;
    background: #fff;
}

.profile-wall .comment-wall-form .send-comment-btn {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    flex-shrink: 0;
}

.profile-wall .comment-wall-form .send-comment-btn svg {
    width: 20px;
    height: 20px;
}

.profile-wall .comment-wall-form .send-comment-btn svg path {
    fill: #ff6b6b;
    fill-opacity: 1;
    transition: fill 0.2s ease;
}

.profile-wall .comment-wall-form .send-comment-btn:hover svg path {
    fill: #e55555;
}

/* ========================================
   PROFILE DETAIL PAGE — Responsive
   ======================================== */

/* Tablet */
@media (max-width: 991px) {
    .profile-photo {
        flex: 0 0 320px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .anket-single-page {
        padding: 0 8px;
    }

    .profile-top {
        flex-direction: column;
        padding: 0;
        gap: 0;
        overflow: hidden;
    }

    .profile-photo {
        flex: none;
        width: 100%;
    }

    .anket-single-page .post-photo {
        border-radius: 0;
    }

    .profile-main-info {
        padding: 16px;
    }

    .profile-header h1.name {
        font-size: 22px;
    }

    .profile-header .old {
        font-size: 22px;
    }

    .profile-actions {
        flex-wrap: wrap;
    }

    .anket-single-page .message.write-message {
        width: 100%;
        display: block;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .detail-label {
        min-width: 140px;
    }

    .gallery-prev,
    .gallery-next {
        width: 34px;
        height: 34px;
        opacity: 1;
    }

    .gallery-prev {
        left: 8px;
    }

    .gallery-next {
        right: 8px;
    }

    .lb-prev,
    .lb-next {
        width: 40px;
        height: 40px;
    }

    .lb-prev {
        left: 10px;
    }

    .lb-next {
        right: 10px;
    }

    .online-badge {
        bottom: 12px;
        left: 8px;
    }

    .carousel-counter {
        top: 8px;
        right: 8px;
    }

    .profile-details,
    .profile-presents,
    .profile-wall {
        padding: 16px;
        border-radius: 12px;
    }

}

/* ========================================
   CSS GRID CARD LAYOUT
   ======================================== */
.first-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-left: 0;
    margin-right: 0;
}

.first-content > .col-12.col-lg-4.col-xl-3 {
    max-width: 100%;
    flex: none;
    padding-left: 0;
    padding-right: 0;
}

.first-content > .col-12:not(.col-lg-4) {
    grid-column: 1 / -1;
}

.first-content > .ad-post {
    max-width: 100%;
    flex: none;
    padding-left: 0;
    padding-right: 0;
}

@media (max-width: 767px) {
    .first-content {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

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

.user-card.card-visible {
    animation: cardFadeIn 0.5s ease forwards;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered entry for first visible batch */
.user-card.card-visible:nth-child(1) { animation-delay: 0s; }
.user-card.card-visible:nth-child(2) { animation-delay: 0.05s; }
.user-card.card-visible:nth-child(3) { animation-delay: 0.1s; }
.user-card.card-visible:nth-child(4) { animation-delay: 0.15s; }
.user-card.card-visible:nth-child(5) { animation-delay: 0.2s; }
.user-card.card-visible:nth-child(6) { animation-delay: 0.25s; }
.user-card.card-visible:nth-child(7) { animation-delay: 0.3s; }
.user-card.card-visible:nth-child(8) { animation-delay: 0.35s; }

/* ========================================
   LAYOUT & SPACING OVERRIDES
   ======================================== */
.listing-h1 {
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.filter-btn-wrap {
    align-items: center;
    margin-bottom: 20px;
}

.content-wrap {
    margin-top: 0;
}

/* Container */
header > .container,
main > .container {
    max-width: 1200px;
    padding: 0 24px;
}

/* Footer fast links */
.footer-fast-links {
    padding: 20px 0 12px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.footer-fast-links__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.footer-fast-links a {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-fast-links a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* ========================================
   PAGINATION — Modern Pill Style
   ======================================== */
.pagination {
    gap: 6px;
    flex-wrap: wrap;
}

.pagination .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: var(--fs-base);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    line-height: 1;
}

.pagination .page-item .page-link:hover {
    background: var(--primary-light);
    color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.pagination .page-item .page-link:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
    outline: none;
}

.pagination .page-item.active .page-link {
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 600;
    box-shadow: var(--shadow-primary);
}

.pagination .page-item.active .page-link:hover {
    box-shadow: var(--shadow-primary-hover);
    transform: translateY(-2px);
}

.pagination .page-item.disabled .page-link {
    background: var(--bg-primary);
    color: var(--text-muted);
    box-shadow: none;
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Prev/Next arrows */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    font-size: var(--fs-lg);
    padding: 0 12px;
}

@media (max-width: 767px) {
    .pagination {
        gap: 4px;
    }

    .pagination .page-item .page-link {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: var(--fs-sm);
    }
}

/* ========================================
   FOOTER — Modern Minimal
   ======================================== */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    margin-top: 10px;
}

.site-footer .gray-text {
    color: var(--text-muted);
    font-family: var(--font-main);
    font-size: var(--fs-sm);
}

/* ========================================
   BOTTOM NAV — Modern
   ======================================== */
.bottom-nav {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.92) !important;
}

/* Legacy nav-item compat */
.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    font-family: var(--font-main);
    cursor: pointer;
    transition: color var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav .nav-item:hover {
    color: var(--primary);
}

.bottom-nav .nav-item svg {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.bottom-nav .nav-item:hover svg {
    color: var(--primary);
}


.login-bottom-wrap {
    color: var(--primary) !important;
    font-family: var(--font-main);
    font-weight: 600;
    text-decoration: none;
}

/* ========================================
   POPULAR MARKS / TAGS — Modern Pill Style
   ======================================== */
.popular-mark {
    background: transparent !important;
    border: 2px solid var(--primary);
    color: var(--primary) !important;
    padding: 6px 16px !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: none !important;
    transition: all 0.25s ease;
}

.popular-mark:hover {
    background: var(--gradient-primary) !important;
    border-color: transparent;
}

.popular-mark a {
    color: var(--primary) !important;
    font-weight: 500;
}

.popular-mark:hover a {
    color: #fff !important;
}

/* ========================================
   CHAT PAGE — Premium Design
   ======================================== */

/* ========================================
   CHAT PAGE — Split Panel Layout
   ======================================== */
.chat-page {
    display: flex;
    min-height: calc(100vh - 100px);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.chat-page__sidebar {
    width: 380px;
    flex-shrink: 0;
    border-right: 1px solid var(--border);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.chat-page__main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
}

/* Placeholder (no dialog selected) */
.chat-page__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 12px;
    padding: 40px;
    text-align: center;
}
.chat-page__placeholder svg {
    color: var(--text-muted);
}
.chat-page__placeholder-title {
    font-size: var(--fs-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}
.chat-page__placeholder-text {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin: 0;
}

/* Dialog wrap inside main panel */
.chat-page__dialog-wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Active dialog item highlight */
.dialog_item.is-active {
    background: var(--primary-light);
}
.dialog_item.is-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
}

/* Mobile back button in chat header */
.chat-header__back-split {
    display: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .chat-page {
        flex-direction: column;
        min-height: calc(100vh - 80px);
        border-radius: 0;
        box-shadow: none;
    }
    .chat-page__sidebar {
        width: 100%;
        border-right: none;
        min-height: calc(100vh - 80px);
    }
    .chat-page__main {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 999;
        background: var(--bg-card);
    }
    .chat-page.dialog-open .chat-page__sidebar {
        display: none;
    }
    .chat-page.dialog-open .chat-page__main {
        display: flex;
    }
    .chat-page.dialog-open .chat-header__back-split {
        display: flex;
    }
}

/* -------- Dialog List (Telegram-style) -------- */
.dialog_list {
    background: var(--bg-card);
    overflow: hidden;
    font-family: var(--font-main);
    flex: 1;
}

/* Search bar */
.dialog-search-wrap {
    position: relative;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}
.dialog-search-input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: var(--fs-sm);
    background: var(--bg-body);
    transition: border-color var(--transition-fast);
    box-sizing: border-box;
}
.dialog-search-input:focus {
    outline: none;
    border-color: var(--primary);
}
.dialog-search-icon {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

/* Dialog item row */
.dialog_item_ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Override site.css legacy rules (.dialog_item_ul .dialog_item has higher specificity) */
.dialog_list .dialog_item_ul {
    padding-bottom: 0;
    margin-bottom: 0;
    min-height: 0;
    height: auto;
    border-radius: 0;
}
.dialog_item_ul .dialog_item {
    display: flex;
    align-items: center;
    padding: 12px 40px 12px 16px;
    gap: 12px;
    height: auto;
    width: auto;
    border-top: none;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background var(--transition-fast);
    position: relative;
    box-sizing: border-box;
}
.dialog_item_ul .dialog_item:last-child {
    border-bottom: none;
}
.dialog_item_ul .dialog_item:first-child {
    border-top: none;
}
.dialog_item:hover {
    background: var(--primary-light);
}
.dialog_item.is-unread {
    background: rgba(255, 107, 107, 0.04);
}

/* Avatar */
.dialog_item__avatar {
    position: relative;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
}
.dialog_item__avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}
.dialog_item__avatar-initials {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #ff8e8e);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
}
.dialog_item__online-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 12px;
    height: 12px;
    background: #4CAF50;
    border: 2px solid var(--bg-card);
    border-radius: 50%;
}

/* Content area */
.dialog_item__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dialog_item__top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
}
.dialog_item__name {
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}
.dialog_item__name .vip-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-left: 4px;
}
.dialog_item__time {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    white-space: nowrap;
    margin-left: 8px;
    flex-shrink: 0;
}
.dialog_item.is-unread .dialog_item__time {
    color: var(--primary);
}

/* Bottom row: preview + badge */
.dialog_item__bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
}
.dialog_item__preview {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}
.dialog_item.is-unread .dialog_item__preview {
    font-weight: 600;
    color: var(--text-primary);
}
.dialog_item__preview-prefix {
    color: var(--primary);
    font-weight: 500;
}

/* Unread badge */
.dialog_item__badge {
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    margin-left: 8px;
    flex-shrink: 0;
}

/* Delete button */
.dialog_item__delete {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: transparent;
    border: none;
    padding: 0;
    z-index: 2;
}
.dialog_item:hover .dialog_item__delete {
    opacity: 1;
}
.dialog_item__delete:hover {
    background: rgba(255, 107, 107, 0.1);
}
.dialog_item__delete svg {
    width: 12px;
    height: 12px;
}
.dialog_item__delete svg path {
    stroke: var(--text-muted);
    transition: stroke var(--transition-fast);
}
.dialog_item__delete:hover svg path {
    stroke: var(--primary);
}

/* Link overlay for entire row */
.dialog_item__link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* No results */
.dialog-no-results p {
    text-align: center;
    padding: 32px 24px;
    color: var(--text-muted);
    font-size: var(--fs-base);
}

/* Empty state */
.dialog-empty-state {
    text-align: center;
    padding: 64px 24px;
}
.dialog-empty-state__icon svg {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    opacity: .4;
}
.dialog-empty-state__title {
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin: 16px 0 8px;
}
.dialog-empty-state__text {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin-bottom: 24px;
}
.dialog-empty-state__btn {
    display: inline-block;
    padding: 10px 32px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 500;
    transition: background var(--transition-fast);
}
.dialog-empty-state__btn:hover {
    background: var(--primary-dark);
    color: #fff;
    text-decoration: none;
}

/* Mobile */
@media (max-width: 576px) {
    .dialog_list { border-radius: 0; box-shadow: none; }
    .dialog_item { padding: 10px 12px; }
    .dialog-search-wrap { padding: 8px 12px; }
}

/* -------- Chat Dialog Window -------- */

/* When dialog is inside split panel */
.chat-page__dialog-wrap .chat-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    box-shadow: none;
}
.chat-page__dialog-wrap .chat-wrap-overlow {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.chat-page__dialog-wrap .chat-wrap {
    flex: 1;
    max-height: none;
    min-height: 0;
}
.chat-page__dialog-wrap .comment-wall-form {
    flex-shrink: 0;
    border-radius: 0 !important;
    box-shadow: none !important;
    border-top: 1px solid var(--border);
}
.chat-page__dialog-wrap .limit-dialog-block {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detal-dialog-wrap {
    position: relative;
}

/* Chat messages area */
.chat-block {
    background: #E6EBEE;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    padding-bottom: 0 !important;
    position: relative;
}

.chat-wrap-overlow {
    position: relative;
}

/* Fade-out at the top of scroll area */
.chat-wrap-overlow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom, #E6EBEE, transparent);
    z-index: 2;
    pointer-events: none;
}

.chat-wrap {
    max-height: calc(100vh - 240px);
    padding: 0 !important;
    right: 0 !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.12) transparent;
}

.chat-wrap::-webkit-scrollbar {
    width: 5px;
}

.chat-wrap::-webkit-scrollbar-track {
    background: transparent;
}

.chat-wrap::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.08);
    border-radius: 5px;
}

.chat-wrap::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.15);
}

.chat {
    min-height: 40vh;
    gap: 0;
    padding: 8px 0;
}

/* Individual message */
.chat .wall-tem {
    margin-top: 0 !important;
    padding: 1px 0 !important;
    border-bottom: none !important;
    box-shadow: none !important;
    background: none !important;
    margin-bottom: 5px;
}

.chat .post_header {
    align-items: flex-end;
}

/* Message avatar */
.chat .post_image {
    flex-shrink: 0;
    margin-bottom: 0;
}

.chat .post_image .img {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    object-fit: cover;
    border: none !important;
}

/* Message bubble — incoming */
.chat .post_header_info {
    margin-left: 4px !important;
    margin-right: auto !important;
    border-radius: 4px 12px 12px 4px;
    background: #fff;
    padding: 3px 8px 2px !important;
    max-width: 75%;
    width: fit-content;
    flex-grow: 0 !important;
    display: block !important;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    transition: none;
}

.chat .wall-tem:hover .post_header_info {
    background: #fff;
}

/* Author + time in one row */
.chat .date-and-author-wrap {
    display: none !important;
}

.chat .rel_date {
    font-size: 10px !important;
    color: #a0adb8 !important;
    opacity: 1;
}

.chat .wall-tem:hover .rel_date {
    opacity: 1;
}

/* Message text */
.chat .post-text {
    font-family: var(--font-main);
    font-size: 13px;
    color: #000;
    line-height: 1.3;
    padding: 0 !important;
    border-bottom: none !important;
    word-break: break-word;
    display: inline !important;
}

/* Time floats to the right, inline with short text */
.chat .msg-meta {
    float: right !important;
    display: inline-flex !important;
    margin-top: 0 !important;
    margin-left: 8px;
    position: relative;
    bottom: -3px;
}

.chat .msg-time {
    font-size: 10px !important;
}

.chat .post-text img {
    max-width: 200px;
    border-radius: 8px;
    margin-top: 2px;
    box-shadow: none;
}

/* Right message (current user) — layout */
.chat .right-message .post_header {
    flex-direction: row !important;
    justify-content: flex-end !important;
}

.chat .right-message .post_image {
    display: none !important;
}

/* Right message — bubble */
.chat .right-message .post_header_info {
    background: #EEFFDE;
    margin-left: auto !important;
    margin-right: 0 !important;
    border-radius: 12px 4px 4px 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    text-align: left !important;
}

.chat .right-message:hover .post_header_info {
    background: #EEFFDE;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.chat .right-message .author {
    color: #4fae4e !important;
}

.chat .right-message .rel_date {
    color: #6cc96b !important;
    opacity: 1;
}

.chat .right-message:hover .rel_date {
    opacity: 1;
    color: #6cc96b !important;
}

.chat .right-message .post-text {
    color: #000;
}

.chat .right-message .msg-time {
    color: #6aae69 !important;
}

.chat .right-message .msg-read-icon {
    color: #6aae69;
    width: 14px;
    height: 14px;
}

.chat .right-message .msg-read-icon.is-read {
    color: #4fae4e;
}

.chat .right-message .post_image {
    display: none !important;
}

.chat .right-message .post_image .img {
    border: none !important;
}

/* Typing indicator */
.user-write-answer {
    padding: 0 8px;
    min-height: 14px;
}

.user-write-message-text {
    font-family: var(--font-main);
    font-size: 11px !important;
    color: var(--text-muted) !important;
    display: flex;
    align-items: center;
    gap: 4px;
}

.user-write-message-text img {
    width: 14px !important;
    height: auto;
}

/* Message form */
.detal-dialog-wrap .comment-wall-form,
#side-menu-content .comment-wall-form,
.chat-page__dialog-wrap .comment-wall-form {
    background: var(--bg-card);
    border-radius: var(--radius-lg) !important;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-wall-form .send-message-photo {
    flex-shrink: 0;
    margin-right: 0 !important;
}

.comment-wall-form .send-message-photo svg {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
    transition: color var(--transition-fast);
    cursor: pointer;
}

.comment-wall-form .send-message-photo:hover svg {
    color: var(--primary);
}

.comment-wall-form .show-message {
    flex-shrink: 0;
    cursor: pointer;
}

.comment-wall-form .show-message svg {
    width: 24px;
    height: 24px;
    transition: transform var(--transition-fast);
}

.comment-wall-form .show-message:hover svg {
    transform: scale(1.1);
}

/* Textarea */
.comment-wall-form #message-form {
    display: flex;
    align-items: center;
    flex: 1;
    position: relative;
}

.comment-wall-form #message-form .form-otvet {
    flex: 1;
    margin-right: 0 !important;
}

.comment-wall-form #message-form .form-otvet textarea {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md) !important;
    background: #F8F9FA;
    padding: 10px 50px 10px 14px;
    font-family: var(--font-main);
    font-size: var(--fs-base);
    color: var(--text-primary);
    resize: none;
    height: 42px !important;
    transition: all var(--transition-fast);
    width: 100%;
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.comment-wall-form #message-form .form-otvet textarea::-webkit-scrollbar {
    display: none;
}

.comment-wall-form #message-form .form-otvet textarea:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.08);
    outline: none;
}

.comment-wall-form #message-form .form-otvet textarea::placeholder {
    color: var(--text-muted);
}

/* Send button */
.message-send-btn {
    position: absolute !important;
    top: 50% !important;
    right: 4px !important;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm) !important;
    background: var(--gradient-primary) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    border: none;
}

.message-send-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.message-send-btn svg {
    width: 16px;
    height: 16px;
    position: static !important;
}

.message-send-btn svg path {
    fill: #fff !important;
}

.message-send-btn.not-active {
    background: #E0E0E0 !important;
    box-shadow: none;
    cursor: default;
}

.message-send-btn.not-active svg path {
    fill: #999 !important;
}

/* Limit dialog overlay */
.limit-dialog-block {
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.92) !important;
}

.limit-dialog-block h1 {
    font-family: var(--font-main);
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--text-primary);
}

.limit-dialog-block .cta-box__text {
    font-family: var(--font-main);
    font-size: var(--fs-base);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* No-VIP photo blur */
.no-vip-photo {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.no-vip-photo-wrap {
    filter: blur(12px);
}

.no-vip-photo-text {
    font-family: var(--font-main);
    font-size: var(--fs-md) !important;
    color: var(--text-primary);
}

/* Gift suggestion (empty chat) */
.chat .cta-box__text {
    font-family: var(--font-main);
    color: var(--text-muted);
    cursor: pointer;
    padding: 32px 16px;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.chat .cta-box__text:hover {
    background: var(--primary-light);
}

/* Message notification toast */
.message-event {
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg);
    font-family: var(--font-main);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(26, 26, 46, 0.9) !important;
}

/* Chat page responsive */
@media (max-width: 767px) {
    .chat-wrap {
        max-height: calc(100vh - 200px);
        padding: 6px 6px 4px !important;
    }

    .chat .post_header_info {
        max-width: 85%;
    }

    .detal-dialog-wrap .comment-wall-form {
        padding: 10px 12px;
        border-radius: var(--radius-md) !important;
    }

    .dialog_item {
        padding: 12px 14px !important;
    }
}

/* ========================================
   MODALS — Modern Style
   ======================================== */
.modal-content {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    margin-bottom: 15px;
}

.modal-title {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: var(--fs-xl);
    letter-spacing: -0.02em;
}

.modal-body {
    padding: 24px;
}

/* ========================================
   CITY MODAL — Premium Design
   ======================================== */
#cityModal .modal-dialog {
    max-width: 520px;
}

#cityModal .modal-content.city-modal {
    border-radius: var(--radius-xl);
    border: none;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    animation: cityModalSlideUp 0.35s var(--transition-spring);
}

@keyframes cityModalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header with gradient */
.city-modal__header {
    background: var(--gradient-primary);
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.city-modal__header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.city-modal__header::after {
    content: '';
    position: absolute;
    bottom: -60%;
    left: -10%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.city-modal__header-content {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.city-modal__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    backdrop-filter: blur(4px);
}

.city-modal__title {
    color: #fff;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: var(--fs-xl);
    letter-spacing: -0.02em;
    margin: 0;
}

.city-modal__close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(4px);
}

.city-modal__close:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: rotate(90deg);
}

/* Body */
.city-modal__body {
    padding: 24px 28px 28px;
}

/* Search input */
.city-modal__search-wrap {
    position: relative;
    margin-bottom: 20px;
}

.city-modal__search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: color var(--transition-fast);
}

.city-modal__search {
    width: 100%;
    padding: 14px 18px 14px 46px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: #F8F9FA;
    font-family: var(--font-main);
    font-size: var(--fs-md);
    color: var(--text-primary);
    transition: all var(--transition-fast);
    outline: none;
}

.city-modal__search::placeholder {
    color: var(--text-muted);
}

.city-modal__search:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.08);
}

.city-modal__search:focus ~ .city-modal__search-icon,
.city-modal__search-wrap:focus-within .city-modal__search-icon {
    color: var(--primary);
}

/* Popular label */
.city-modal__popular-label {
    font-family: var(--font-main);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding-left: 14px;
}

/* City list overrides inside modal */
.city-modal .city-list a {
    color: var(--text-primary) !important;
}

.city-modal .city-list a:hover {
    color: var(--primary) !important;
}

/* Scrollable city wrap */
.city-modal .city-wrap {
    max-height: 380px;
    overflow-y: auto;
    margin: 0 -8px;
    padding: 0 8px;
}

.city-modal .city-wrap::-webkit-scrollbar {
    width: 4px;
}

.city-modal .city-wrap::-webkit-scrollbar-track {
    background: transparent;
}

.city-modal .city-wrap::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.city-modal .city-wrap::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Modal backdrop */
#cityModal.modal.show,
#cityModal.modal.in {
    background: rgba(26, 26, 46, 0.5);
    backdrop-filter: blur(4px);
}

/* Mobile */
@media (max-width: 576px) {
    #cityModal .modal-dialog {
        margin: 16px;
        max-width: none;
    }

    .city-modal__header {
        padding: 18px 20px;
    }

    .city-modal__body {
        padding: 20px;
    }

    .city-modal .city-wrap {
        max-height: 50vh;
    }

    .city-modal .city-list {
        column-count: 1;
    }

    .city-modal .city-list a {
        padding: 12px 14px;
        font-size: var(--fs-md);
    }
}

/* --- Registration shade mobile --- */
@media (max-width: 767px) {
    .registration-shade {
        align-items: flex-end;
    }

    .shade-backdrop {
        background: rgba(0, 0, 0, 0.5);
    }

    .shade-content {
        position: absolute;
        top: 0;
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        padding: 16px 20px calc(env(safe-area-inset-bottom, 16px) + 24px);
        padding-top: calc(env(safe-area-inset-top, 16px) + 16px);
        box-shadow: none;
        justify-content: center;
        animation: shadeSlideUp 0.3s ease-out;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    @keyframes shadeSlideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    .shade-content::before {
        display: none;
    }

    .shade-close {
        top: 8px;
        right: 12px;
        width: 32px;
        height: 32px;
    }

    .auth-form h2 {
        font-size: 20px;
        text-align: center;
        margin-bottom: 2px;
    }

    .auth-subtitle {
        text-align: center;
        font-size: 13px;
        margin-bottom: 16px;
    }

    .auth-form .form-group {
        margin-bottom: 10px;
    }

    .auth-form input[type="text"],
    .auth-form input[type="email"],
    .auth-form input[type="password"] {
        font-size: 16px;
        padding: 12px 14px;
    }

    .auth-form select {
        font-size: 16px;
        padding: 12px 14px;
    }

    .remember-me-wrap {
        margin: 2px 0 12px;
    }

    .auth-submit-btn {
        font-size: 16px;
        padding: 13px;
    }

    .auth-links {
        margin-top: 14px;
        padding-bottom: 4px;
    }

    .auth-form .g-recaptcha {
        transform: scale(0.85);
        transform-origin: center;
        margin: 10px auto;
    }

    #form-signup {
        display: none;
    }
}

/* ========================================
   USER SIDEBAR (logged in) — Modern
   ======================================== */
.sidebar {
    border-radius: var(--radius-lg) !important;
    background: var(--bg-card) !important;
    box-shadow: var(--shadow-md) !important;
    font-family: var(--font-main);
}

.sidebar .avatar {
    border: 3px solid var(--border);
}

.sidebar .menu .item {
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    transition: all 0.2s ease;
}

.sidebar .menu .item:hover {
    background: var(--bg-primary);
}

/* ========================================
   GLOBAL INTERACTIVE TRANSITIONS
   ======================================== */
a {
    transition: color 0.2s ease;
}

button,
.btn,
input[type="submit"] {
    transition: all 0.25s ease;
}

/* All interactive elements get smooth transitions */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ========================================
   RESPONSIVE — Mobile Grid
   ======================================== */
@media (max-width: 767px) {
    .big-black-text {
        font-size: var(--fs-xl);
    }

    .header-inner {
        height: 48px;
        gap: 10px;
    }

    .header-logo {
        font-size: 20px;
    }

    .gender-switch a {
        padding: 5px 12px;
        font-size: 12px;
    }

    .gender-label {
        display: none;
    }

    .gender-switch a {
        gap: 0;
    }

    .location-city {
        display: none;
    }

    .location-selector {
        padding: 6px;
    }

    .header-login {
        padding: 4px 10px;
        font-size: 13px;
    }

    .header-right {
        gap: 4px;
    }

    .mobile-burger-btn {
        display: flex;
        padding: 4px;
    }

    .top-menu {
        top: 48px;
    }

    .filter-btn-wrap {
        margin-bottom: 24px;
    }

    .listing-h1 {
        margin-bottom: 16px;
    }

    header > .container,
    main > .container {
        padding: 0 16px;
    }
}

@media (max-width: 374px) {
    .header-inner {
        gap: 6px;
    }

    .header-logo {
        font-size: 18px;
    }

    .gender-switch {
        padding: 2px;
    }

    .gender-switch a {
        padding: 4px 8px;
    }

    .gender-icon {
        width: 12px;
        height: 12px;
    }

    .header-login {
        padding: 4px 8px;
        font-size: 12px;
    }

    .location-selector {
        padding: 4px;
    }

    header > .container {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .popular-mark {
        padding: 4px 12px !important;
        font-size: var(--fs-xs);
    }
}

/* ========================================
   MAIN MENU TOGGLE BUTTON (Ещё)
   ======================================== */
.main-menu {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    border-radius: var(--radius-xl) !important;
    font-family: var(--font-main);
    font-weight: 500;
    transition: all 0.25s ease;
    cursor: pointer;
}

.main-menu:hover {
    background: var(--gradient-primary);
    color: #fff !important;
    border-color: transparent !important;
}

/* ========================================
   MISC OVERRIDES FOR CONSISTENCY
   ======================================== */
.black-text {
    color: var(--text-primary);
    font-family: var(--font-main);
}

.bold-white-text {
    font-family: var(--font-main);
}

/* Ensure all cards are visible when JS not loaded (graceful degradation) */
@media (prefers-reduced-motion: reduce) {
    .user-card {
        opacity: 1;
        transform: none;
    }
}

/* Remove text-transform for filter text */
.black-text {
    font-size: var(--fs-base);
    font-weight: 400;
}

/* ========================================
   SIDE-MENU CHAT PANEL — Refactored
   ======================================== */

/* Overlay */
.side-menu-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}
.side-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Side-menu panel — override old site.css left-based animation */
.side-menu {
    position: fixed;
    top: 0;
    right: 0;
    left: auto !important;
    width: 420px;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    z-index: 9999;
    background: #fff;
    box-shadow: -8px 0 32px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.side-menu.open {
    transform: translateX(0);
}

/* Hide old close icon — replaced by chat-header back button */
.side-menu .icon-close {
    display: none;
}

/* Side-menu content fill */
.side-menu .side-content {
    max-width: 100%;
    margin: 0;
}

/* ========================================
   CHAT HEADER (inside side-menu & full page)
   ======================================== */
.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: #fff;
    flex-shrink: 0;
}

.chat-header__back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-primary);
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s;
}
.chat-header__back:hover {
    background: var(--border);
}
.chat-header__back svg {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
}

.chat-header__avatar {
    position: relative;
    flex-shrink: 0;
}
.chat-header__avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}
.chat-header__online-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #ccc;
}
.chat-header__online-dot.is-online {
    background: #4CD964;
}

.chat-header__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.chat-header__name {
    font-family: var(--font-main);
    font-weight: 600;
    font-size: var(--fs-md);
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-header__status {
    font-size: var(--fs-xs);
    color: var(--text-muted);
}
.chat-header__status.is-online {
    color: #4CD964;
}

/* Hide back button on full chat page */
.detal-dialog-wrap .chat-header__back {
    display: none;
}
/* In split panel: hide side-menu back, show split back only on mobile */
.chat-page__dialog-wrap .chat-header__back:not(.chat-header__back-split) {
    display: none;
}

/* ========================================
   MESSAGE META — timestamp + read status
   ======================================== */
.msg-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    justify-content: flex-end;
}
.msg-time {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-main);
}
.right-message .msg-time {
    color: rgba(255,255,255,0.6);
}

/* Read status icon */
.msg-read-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.msg-read-icon.is-read {
    color: rgba(255,255,255,0.85);
}
.msg-read-icon.is-unread {
    color: rgba(255,255,255,0.45);
}

/* ========================================
   TEXTAREA AUTO-RESIZE
   ======================================== */
#sendmessageform-text {
    resize: none;
    min-height: 42px;
    max-height: 120px;
    overflow-y: auto;
    transition: height .15s ease;
}

/* ========================================
   TYPING INDICATOR — animated dots
   ======================================== */
.typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-right: 6px;
    vertical-align: middle;
}
.typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    display: inline-block;
    animation: typingBounce .6s infinite alternate;
}
.typing-dots span:nth-child(2) {
    animation-delay: .2s;
}
.typing-dots span:nth-child(3) {
    animation-delay: .4s;
}
@keyframes typingBounce {
    to {
        opacity: .3;
        transform: translateY(-4px);
    }
}

/* ========================================
   CHAT CHIPS — first message suggestions
   ======================================== */
.chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    padding: 32px 16px;
    text-align: center;
}
.chat-empty__icon {
    font-size: 48px;
    margin-bottom: 12px;
}
.chat-empty__text {
    font-family: var(--font-main);
    font-size: var(--fs-lg);
    color: var(--text-secondary);
    margin-bottom: 20px;
}
.chat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}
.chat-chip {
    display: inline-block;
    padding: 8px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    background: #fff;
    font-family: var(--font-main);
    font-size: var(--fs-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: all .2s ease;
}
.chat-chip:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}
.chat-empty__gift {
    font-family: var(--font-main);
    font-size: var(--fs-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: color .2s;
}
.chat-empty__gift:hover {
    color: var(--primary);
}

/* ========================================
   SCROLL-TO-BOTTOM BUTTON
   ======================================== */
.chat-scroll-btn {
    position: absolute;
    bottom: 12px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all .2s ease;
}
.chat-scroll-btn:hover {
    background: var(--primary);
    box-shadow: var(--shadow-primary);
}
.chat-scroll-btn svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    transition: color .2s;
}
.chat-scroll-btn:hover svg {
    color: #fff;
}

/* ========================================
   SKELETON LOADER
   ======================================== */
.chat-skeleton {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    height: 100%;
}
.chat-skeleton__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.chat-skeleton__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
}
.chat-skeleton__lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.chat-skeleton__line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
}
.chat-skeleton__line--short { width: 60%; }
.chat-skeleton__line--medium { width: 80%; }

.chat-skeleton__messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
}
.chat-skeleton__bubble {
    height: 40px;
    border-radius: 18px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
}
.chat-skeleton__bubble--left { width: 65%; align-self: flex-start; }
.chat-skeleton__bubble--right { width: 55%; align-self: flex-end; }

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

/* ========================================
   BUTTON LOADING STATE
   ======================================== */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}
.btn-loading::after {
    content: '';
    width: 16px; height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: btn-spin .6s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-left: 6px;
}
@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   FRIENDS PAGE
   ======================================== */
.friends-page {
    min-height: 400px;
}

/* Tabs */
.friends-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.friends-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: var(--radius-xl);
    font-family: var(--font-main);
    font-size: var(--fs-base);
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid #eee;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}
.friends-tab:hover {
    color: var(--primary);
    border-color: var(--primary);
    text-decoration: none;
}
.friends-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border-color: transparent;
}
.friends-tab.active:hover {
    color: #fff;
}
.friends-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    font-size: var(--fs-xs);
    font-weight: 600;
    background: rgba(255,255,255,0.25);
}
.friends-tab:not(.active) .friends-tab__count {
    background: var(--primary-light);
    color: var(--primary);
}

/* Search */
.friends-search {
    position: relative;
    margin-bottom: 24px;
}
.friends-search__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}
.friends-search__input {
    width: 100%;
    padding: 12px 20px 12px 44px;
    border: 1px solid #eee;
    border-radius: var(--radius-xl);
    font-family: var(--font-main);
    font-size: var(--fs-base);
    color: var(--text-primary);
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.friends-search__input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}
.friends-search__input::placeholder {
    color: var(--text-muted);
}

/* Grid */
.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* Card */
.friend-card {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    font-family: var(--font-main);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}
.friend-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(255,107,107,0.12), 0 4px 12px rgba(0,0,0,0.06);
}

/* Photo area */
.friend-card__photo {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background-color: #f0f0f0;
}
.friend-card__photo a {
    display: block;
    width: 100%;
    height: 100%;
}
.friend-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.friend-card:hover .friend-card__photo img {
    transform: scale(1.05);
}

/* Gradient overlay on photo */
.friend-card.has-photo .friend-card__photo::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

/* No-photo gradient placeholder */
.friend-card__nophoto {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.friend-card__initial {
    font-size: 56px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Overlay info + actions */
.friend-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 40px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.friend-card.has-photo .friend-card__overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

.friend-card__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.friend-card__name {
    font-weight: 600;
    font-size: var(--fs-lg);
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    line-height: 1.3;
}
.friend-card__city {
    font-size: var(--fs-sm);
    color: rgba(255,255,255,0.85);
}

/* Action buttons row */
.friend-card__actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.friend-card:hover .friend-card__actions {
    opacity: 1;
    transform: translateY(0);
}

/* Reuse existing card-action-btn styles — add friends-specific ones */
.friend-card .card-action-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
}
.friend-card .card-action-btn:hover {
    transform: scale(1.15) translateY(-2px);
    background: rgba(255,255,255,0.25);
}
.friend-card .card-action-accept {
    border-color: #28a745;
    background: rgba(40,167,69,0.2);
}
.friend-card .card-action-accept:hover {
    background: #28a745;
    border-color: #28a745;
    box-shadow: 0 4px 16px rgba(40,167,69,0.4);
}
.friend-card .card-action-remove:hover {
    background: rgba(255,70,70,0.8);
    border-color: rgba(255,70,70,0.8);
}

/* Online indicator */
.friend-card__online {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #28a745;
    border: 2.5px solid #fff;
    z-index: 3;
    box-shadow: 0 0 6px rgba(40,167,69,0.5);
}

/* Empty state */
.friends-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-family: var(--font-main);
}
.friends-empty svg {
    margin-bottom: 16px;
    opacity: 0.5;
}
.friends-empty p {
    font-size: var(--fs-lg);
    margin: 0;
}

/* Owner sidebar card */
.friend-owner-card {
    position: sticky;
    top: 90px;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-md);
    padding: 24px 20px;
    text-align: center;
    font-family: var(--font-main);
}
.friend-owner-card__avatar-link {
    display: block;
    margin: 0 auto 14px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
}
.friend-owner-card__avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.friend-owner-card__avatar--nophoto {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.friend-owner-card__avatar--nophoto span {
    font-size: 36px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
}
.friend-owner-card__name {
    font-size: var(--fs-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.friend-owner-card__stat {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin-bottom: 16px;
}
.friend-owner-card__btn {
    display: inline-block;
    padding: 10px 28px;
    border-radius: var(--radius-xl);
    font-size: var(--fs-base);
    font-weight: 500;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    background: transparent;
    text-decoration: none;
    transition: all 0.25s ease;
}
.friend-owner-card__btn:hover {
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(255,107,107,0.3);
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .friends-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .friend-card__actions {
        opacity: 1;
        transform: translateY(0);
    }
    .friend-card__initial {
        font-size: 40px;
    }
    .friends-tabs {
        gap: 8px;
    }
    .friends-tab {
        padding: 6px 14px;
        font-size: var(--fs-sm);
    }
}

@media (max-width: 576px) {
    .side-menu {
        width: 100vw;
    }
}

@media (max-width: 480px) {
    .friends-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ========================================
   EVENTS / NOTIFICATIONS PAGE
   ======================================== */
.ev-page {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 24px;
    min-height: 400px;
}

/* Header */
.ev-header {
    margin-bottom: 20px;
}
.ev-header__title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ev-header__icon {
    color: var(--primary);
    flex-shrink: 0;
}
.ev-header__title {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 24px;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}
.ev-header__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 13px;
    font-size: var(--fs-xs);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
}

/* Filter tabs */
.ev-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.ev-filter {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 16px;
    border-radius: var(--radius-xl);
    font-family: var(--font-main);
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid #eee;
    cursor: pointer;
    transition: all 0.25s ease;
}
.ev-filter:hover {
    color: var(--primary);
    border-color: var(--primary);
}
.ev-filter.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border-color: transparent;
}
.ev-filter.active svg {
    color: #fff;
}

/* Date separators */
.ev-date-separator {
    font-family: var(--font-main);
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 0 6px;
}
.ev-date-separator:first-child {
    padding-top: 0;
}

/* Event card */
.ev-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 8px;
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    animation: evFadeIn 0.3s ease forwards;
    opacity: 0;
}
.ev-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: #e8e8e8;
    transform: translateY(-1px);
}

@keyframes evFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mutual sympathy — accent border */
.ev-card--mutual {
    border-left: 3px solid var(--primary);
    background: linear-gradient(135deg, rgba(255,107,107,0.03), rgba(255,142,83,0.03));
}

/* Avatar */
.ev-card__avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.ev-card__avatar {
    display: block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.ev-card__avatar-img,
.ev-card__avatar .img {
    width: 50px !important;
    height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    object-fit: cover;
    border-radius: 50%;
}

/* Locked avatar (non-VIP) */
.ev-card__avatar--locked .ev-card__avatar-img,
.ev-card__avatar--locked .img {
    filter: blur(8px);
}
.ev-card__lock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 2;
}

/* Dual avatars (mutual sympathy) */
.ev-card__avatar-wrap--dual {
    display: flex;
    width: 70px;
}
.ev-card__avatar--overlap-left {
    z-index: 2;
    width: 44px;
    height: 44px;
}
.ev-card__avatar--overlap-left .ev-card__avatar-img,
.ev-card__avatar--overlap-left .img {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
}
.ev-card__avatar--overlap-right {
    margin-left: -14px;
    z-index: 1;
    width: 44px;
    height: 44px;
}
.ev-card__avatar--overlap-right .ev-card__avatar-img,
.ev-card__avatar--overlap-right .img {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
}

/* Type badge */
.ev-card__badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    color: #fff;
    z-index: 3;
}
.ev-card__badge--heart {
    background: var(--primary);
}
.ev-card__badge--eye {
    background: var(--accent);
}
.ev-card__badge--comment {
    background: #28a745;
}
.ev-card__badge--dual {
    bottom: -2px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
}

/* Body */
.ev-card__body {
    flex: 1;
    min-width: 0;
}
.ev-card__text {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
    line-height: 1.4;
}
.ev-card__name {
    font-family: var(--font-main);
    font-weight: 600;
    font-size: var(--fs-base);
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}
.ev-card__name:hover {
    color: var(--primary);
    text-decoration: none;
}
.ev-card__action {
    font-family: var(--font-main);
    font-size: var(--fs-sm);
    color: var(--text-secondary);
}
.ev-card__action--mutual {
    font-weight: 600;
    color: var(--primary);
}
.ev-card__subtext {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
}
.ev-card__time {
    display: block;
    font-size: var(--fs-xs);
    color: var(--text-muted);
    margin-top: 2px;
}

/* Comment preview */
.ev-card__comment-preview {
    margin-top: 6px;
    padding: 8px 12px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: var(--fs-sm);
    color: var(--text-primary);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Action buttons */
.ev-card__actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.ev-card:hover .ev-card__actions {
    opacity: 1;
}
.ev-card__action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #e0e0e0;
    background: #fff;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    padding: 0;
}
.ev-card__action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.1);
    text-decoration: none;
}
.ev-card__action-btn--msg:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.ev-card__action-btn--vip {
    border-color: #FFD700;
    color: #FFA500;
    background: rgba(255,215,0,0.08);
}
.ev-card__action-btn--vip:hover {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #fff;
    border-color: transparent;
}

/* Empty state */
.ev-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}
.ev-empty__icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), rgba(255, 142, 83, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
    animation: evBellSwing 3s ease-in-out infinite;
}
@keyframes evBellSwing {
    0%, 100% { transform: rotate(0deg); }
    8% { transform: rotate(10deg); }
    16% { transform: rotate(-8deg); }
    24% { transform: rotate(5deg); }
    32% { transform: rotate(0deg); }
}
.ev-empty__title {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 20px;
    color: var(--text-primary);
    margin: 0 0 8px;
}
.ev-empty__text {
    font-family: var(--font-main);
    font-size: var(--fs-base);
    color: var(--text-muted);
    max-width: 320px;
    margin: 0 0 24px;
    line-height: 1.5;
}
.ev-empty__btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border: none;
    border-radius: var(--radius-xl);
    padding: 12px 32px;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: var(--fs-base);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}
.ev-empty__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    color: #fff;
    text-decoration: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .ev-page {
        padding: 16px;
        border-radius: var(--radius-md);
    }
    .ev-header__title {
        font-size: 20px;
    }
    .ev-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .ev-filters::-webkit-scrollbar {
        display: none;
    }
    .ev-filter {
        white-space: nowrap;
        flex-shrink: 0;
    }
    .ev-card {
        padding: 12px;
        gap: 10px;
    }
    .ev-card__actions {
        opacity: 1;
    }
    .ev-card__avatar, .ev-card__avatar-img, .ev-card__avatar .img {
        width: 42px !important;
        height: 42px !important;
        max-width: 42px !important;
        max-height: 42px !important;
    }
    .ev-card__avatar--overlap-left,
    .ev-card__avatar--overlap-left .ev-card__avatar-img,
    .ev-card__avatar--overlap-left .img,
    .ev-card__avatar--overlap-right,
    .ev-card__avatar--overlap-right .ev-card__avatar-img,
    .ev-card__avatar--overlap-right .img {
        width: 38px !important;
        height: 38px !important;
        max-width: 38px !important;
        max-height: 38px !important;
    }
    .ev-card__avatar-wrap--dual {
        width: 60px;
    }
    .ev-card__comment-preview {
        white-space: normal;
    }
}


/* ========================================
   PHOTO GALLERY — /user/photo
   ======================================== */
.pg-page {
    max-width: 100%;
}
.pg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.pg-header__left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.pg-header__icon {
    color: var(--primary);
}
.pg-header__title {
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}
.pg-header__count {
    background: var(--primary-light);
    color: var(--primary);
    font-size: var(--fs-sm);
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

/* Upload Zone */
.pg-upload {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 24px;
    text-align: center;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    background: var(--bg-card);
    position: relative;
}
.pg-upload:hover,
.pg-upload.pg-upload--dragover {
    border-color: var(--primary);
    background: var(--primary-light);
}
.pg-upload--dragover .pg-upload__icon {
    color: var(--primary);
    transform: translateY(-4px);
}
.pg-upload__icon {
    color: var(--text-muted);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}
.pg-upload__text {
    font-size: var(--fs-lg);
    color: var(--text-secondary);
    margin: 0 0 8px;
    font-weight: 500;
}
.pg-upload__or {
    display: block;
    color: var(--text-muted);
    font-size: var(--fs-sm);
    margin-bottom: 12px;
}
.pg-upload__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: var(--fs-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-primary);
}
.pg-upload__btn:hover {
    box-shadow: var(--shadow-primary-hover);
    transform: translateY(-1px);
}
.pg-upload__input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
    padding: 0 !important;
}
.pg-upload .field-photo-file,
.pg-upload .form-group,
.pg-upload .help-block {
    display: none;
}
.pg-upload__progress {
    display: none;
    width: 200px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 16px auto 0;
    overflow: hidden;
}
.pg-upload__progress--active {
    display: block;
}
.pg-upload__progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
}

/* Photo Grid */
.pg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

/* Photo Card */
.photo-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}
.photo-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.photo-card__wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}
.photo-card__img,
.photo-card__wrap .img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.photo-card__nophoto {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    color: var(--text-muted);
}

/* Main photo badge */
.photo-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: var(--fs-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

/* Hover overlay */
.photo-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 1;
}
.photo-card:hover .photo-card__overlay {
    opacity: 1;
}
.photo-card__action {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}
.photo-card__action:hover {
    background: #fff;
    transform: scale(1.1);
}
.photo-card__action--danger:hover {
    background: var(--primary);
    color: #fff;
}

/* Empty State */
.pg-empty {
    text-align: center;
    padding: 60px 24px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-top: 24px;
}
.pg-empty__icon {
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.5;
    animation: pg-float 3s ease-in-out infinite;
}
@keyframes pg-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.pg-empty__title {
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
}
.pg-empty__text {
    font-size: var(--fs-base);
    color: var(--text-secondary);
    margin: 0 0 20px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}
.pg-empty__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: var(--fs-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-primary);
}
.pg-empty__btn:hover {
    box-shadow: var(--shadow-primary-hover);
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

/* Lightbox */
.pg-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.pg-lightbox--open {
    display: flex;
}
.pg-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
}
.pg-lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
    padding: 0;
}
.pg-lightbox__close:hover {
    background: rgba(255,255,255,0.25);
}
.pg-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
    padding: 0;
}
.pg-lightbox__nav:hover {
    background: rgba(255,255,255,0.25);
}
.pg-lightbox__nav--prev {
    left: 20px;
}
.pg-lightbox__nav--next {
    right: 20px;
}
.pg-lightbox__content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pg-lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
}
.pg-lightbox__counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: var(--fs-sm);
    z-index: 2;
}

/* Responsive */
@media (max-width: 768px) {
    .pg-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    .pg-upload {
        padding: 24px 16px;
    }
    .pg-upload__text {
        font-size: var(--fs-base);
    }
    .pg-header__title {
        font-size: var(--fs-xl);
    }
    .photo-card__overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 40%);
    }
    .photo-card__action {
        width: 34px;
        height: 34px;
    }
    .photo-card__action svg {
        width: 16px;
        height: 16px;
    }
    .pg-lightbox__nav {
        width: 40px;
        height: 40px;
    }
    .pg-lightbox__nav--prev { left: 10px; }
    .pg-lightbox__nav--next { right: 10px; }
}
@media (max-width: 480px) {
    .pg-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .photo-card__badge {
        font-size: 10px;
        padding: 3px 8px;
    }
}


/* ========================================
   SYMPATHY PAGE — /user/sympathy
   ======================================== */
.sy-page {
    max-width: 100%;
}

/* Header */
.sy-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.sy-header__left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sy-header__icon {
    color: var(--primary);
}
.sy-header__title {
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}
.sy-header__settings {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}
.sy-header__settings:hover {
    box-shadow: var(--shadow-md);
    color: var(--primary);
}

/* Settings Panel */
.sy-settings {
    max-width: 480px;
    margin: 0 auto 24px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
}
.sy-settings__form .form-group {
    margin-bottom: 16px;
}
.sy-settings__form label {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.sy-settings__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 20px;
}
.sy-settings__title svg {
    color: var(--primary);
}
.sy-settings__label {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px;
}
.sy-settings__age-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}
.sy-settings__age-col {
    flex: 1;
}
.sy-settings__age-col .form-group {
    margin-bottom: 0;
}
.sy-settings__select {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    padding: 10px 12px !important;
    font-size: var(--fs-base) !important;
    transition: border-color 0.2s ease !important;
}
.sy-settings__select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-light) !important;
    outline: none !important;
}
.sy-settings__buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.sy-settings__save {
    flex: 1;
    padding: 12px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--fs-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-primary);
}
.sy-settings__save:hover {
    box-shadow: var(--shadow-primary-hover);
    transform: translateY(-1px);
}
.sy-settings__cancel {
    padding: 12px 24px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: var(--fs-base);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
.sy-settings__cancel:hover {
    background: var(--bg-primary);
}

/* Main Card Area */
.sy-page .main-info-anket {
    background: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    overflow: visible;
}

/* Sympathy Card */
.sy-card {
    max-width: 420px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--bg-card);
    position: relative;
    animation: syCardAppear 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center bottom;
}

@keyframes syCardAppear {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.sy-card__photo {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}
.sy-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sy-card__nophoto {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sy-card__initial {
    font-size: 120px;
    font-weight: 700;
    color: rgba(255,255,255,0.25);
    line-height: 1;
    user-select: none;
}
.sy-card__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.15) 35%, transparent 55%);
    pointer-events: none;
    z-index: 1;
}

/* Info overlay */
.sy-card__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
    color: #fff;
}
.sy-card__name-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}
.sy-card__name {
    font-size: 26px;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.sy-card__age {
    font-size: 22px;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.sy-card__city {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--fs-sm);
    color: rgba(255,255,255,0.75);
    margin-bottom: 6px;
}
.sy-card__city svg {
    opacity: 0.7;
}
.sy-card__about {
    font-size: var(--fs-sm);
    color: rgba(255,255,255,0.8);
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sy-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.sy-card__tag {
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    font-size: var(--fs-xs);
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

/* LIKE / NOPE Stamps */
.sy-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 48px;
    font-weight: 900;
    letter-spacing: 4px;
    padding: 8px 24px;
    border: 5px solid;
    border-radius: var(--radius-md);
    opacity: 0;
    z-index: 10;
    pointer-events: none;
    text-transform: uppercase;
}
.sy-stamp--like {
    color: #22c55e;
    border-color: #22c55e;
    transform: translate(-50%, -50%) rotate(-15deg);
}
.sy-stamp--nope {
    color: var(--primary);
    border-color: var(--primary);
    transform: translate(-50%, -50%) rotate(15deg);
}
.sy-stamp--show {
    animation: syStampShow 0.3s ease forwards;
}
@keyframes syStampShow {
    from { opacity: 0; transform: translate(-50%, -50%) rotate(-15deg) scale(1.5); }
    to { opacity: 0.85; transform: translate(-50%, -50%) rotate(-15deg) scale(1); }
}
.sy-stamp--nope.sy-stamp--show {
    animation-name: syStampShowNope;
}
@keyframes syStampShowNope {
    from { opacity: 0; transform: translate(-50%, -50%) rotate(15deg) scale(1.5); }
    to { opacity: 0.85; transform: translate(-50%, -50%) rotate(15deg) scale(1); }
}

/* Swipe Animations */
.sy-card--liked {
    animation: sySwipeRight 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.sy-card--skipped {
    animation: sySwipeLeft 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes sySwipeRight {
    to { transform: translateX(150%) rotate(15deg); opacity: 0; }
}
@keyframes sySwipeLeft {
    to { transform: translateX(-150%) rotate(-15deg); opacity: 0; }
}

/* Action Buttons */
.sy-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 24px 0 8px;
    max-width: 420px;
    margin: 0 auto;
}
.sy-btn {
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-md);
    padding: 0;
    flex-shrink: 0;
}
.sy-btn:hover {
    transform: scale(1.15) translateY(-4px);
}
.sy-btn:active {
    transform: scale(0.95);
}

/* Skip — white */
.sy-btn--skip {
    width: 54px;
    height: 54px;
    background: #fff;
    color: var(--text-muted);
}
.sy-btn--skip:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    color: var(--primary);
}

/* Message — white */
.sy-btn--msg {
    width: 48px;
    height: 48px;
    background: #fff;
    color: var(--accent);
}
.sy-btn--msg:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Gift — accent gradient */
.sy-btn--gift {
    width: 48px;
    height: 48px;
    background: var(--gradient-accent);
    color: #fff;
}
.sy-btn--gift:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Like — large, primary gradient */
.sy-btn--like {
    width: 68px;
    height: 68px;
    background: var(--gradient-primary);
    color: #fff;
}
.sy-btn--like:hover {
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
}

/* Empty State */
.sy-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    max-width: 420px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}
.sy-empty__icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), rgba(255, 142, 83, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
    animation: syHeartBeat 2s ease-in-out infinite;
}
@keyframes syHeartBeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.1); }
    30% { transform: scale(1); }
    45% { transform: scale(1.05); }
    60% { transform: scale(1); }
}
.sy-empty__title {
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
}
.sy-empty__text {
    font-size: var(--fs-base);
    color: var(--text-muted);
    max-width: 320px;
    margin: 0 0 24px;
    line-height: 1.5;
}
.sy-empty__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    padding: 12px 28px;
    font-size: var(--fs-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-primary);
    margin-bottom: 12px;
}
.sy-empty__btn:hover {
    box-shadow: var(--shadow-primary-hover);
    transform: translateY(-2px);
}
.sy-empty__link {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.sy-empty__link:hover {
    color: var(--primary);
}

/* Match Screen */
.sy-match {
    text-align: center;
    padding: 40px 20px;
    max-width: 420px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    animation: syCardAppear 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.sy-match__confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.sy-match__heart {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #fff;
    box-shadow: var(--shadow-primary);
    position: relative;
    z-index: 1;
    animation: syMatchPulse 1.5s ease-in-out infinite;
}
@keyframes syMatchPulse {
    0%, 100% { transform: scale(1); box-shadow: var(--shadow-primary); }
    50% { transform: scale(1.08); box-shadow: 0 8px 30px rgba(255, 107, 107, 0.5); }
}
.sy-match__title {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 24px;
    position: relative;
    z-index: 1;
}
.sy-match__photos {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}
.sy-match__avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: var(--shadow-md);
}
.sy-match__avatar:nth-child(2) {
    margin-left: -24px;
}
.sy-match__avatar-img,
.sy-match__avatar .img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sy-match__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}
.sy-match__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-primary);
    font-size: var(--fs-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.sy-match__btn:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--primary);
    color: var(--primary);
}
.sy-match__btn--primary {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-primary);
}
.sy-match__btn--primary:hover {
    box-shadow: var(--shadow-primary-hover);
    color: #fff;
    transform: translateY(-1px);
}
.sy-match__btn--muted {
    color: var(--text-muted);
    cursor: default;
    border-style: dashed;
}
.sy-match__btn--muted:hover {
    box-shadow: none;
    border-color: var(--border);
    color: var(--text-muted);
}
.sy-match__continue {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: var(--fs-sm);
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
    position: relative;
    z-index: 1;
}
.sy-match__continue:hover {
    color: var(--primary);
}

/* Touch swipe visual feedback */
.sy-card--swiping-right {
    transition: none;
}
.sy-card--swiping-left {
    transition: none;
}

/* Responsive */
@media (max-width: 768px) {
    .sy-card {
        max-width: 100%;
        border-radius: var(--radius-lg);
    }
    .sy-actions {
        max-width: 100%;
    }
    .sy-btn--skip, .sy-btn--msg {
        width: 48px;
        height: 48px;
    }
    .sy-btn--gift {
        width: 44px;
        height: 44px;
    }
    .sy-btn--like {
        width: 60px;
        height: 60px;
    }
    .sy-btn--like svg {
        width: 24px;
        height: 24px;
    }
    .sy-card__name {
        font-size: 22px;
    }
    .sy-card__age {
        font-size: 18px;
    }
    .sy-card__initial {
        font-size: 80px;
    }
    .sy-empty, .sy-match {
        max-width: 100%;
        border-radius: var(--radius-lg);
    }
    .sy-match__avatar {
        width: 90px;
        height: 90px;
    }
}
@media (max-width: 400px) {
    .sy-actions {
        gap: 12px;
    }
    .sy-btn--msg {
        width: 42px;
        height: 42px;
    }
    .sy-btn--gift {
        width: 42px;
        height: 42px;
    }
    .sy-stamp {
        font-size: 36px;
        padding: 6px 16px;
    }
}


/* ========================================
   EDIT ANKET v2 — /user/setting/anket
   ======================================== */

/* Card wrapper */
.edit-form.anket {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 28px;
    margin-bottom: 24px;
}

/* Heading */
.edit-form .heading-anket {
    font-family: 'Nunito', var(--font-main);
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 6px;
}
.ef-subtitle {
    font-size: var(--fs-base);
    color: var(--text-muted);
    text-align: center;
    margin: 0 0 20px;
    line-height: 1.5;
}

/* ---- Profile Completeness ---- */
.profile-completeness {
    margin-bottom: 20px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(255,107,107,0.04), rgba(255,142,83,0.04));
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,107,107,0.08);
}
.profile-completeness__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.profile-completeness__label {
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--text-primary);
}
.profile-completeness__value {
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--primary);
}
/* Color levels */
.profile-completeness--low .profile-completeness__value { color: #e74c3c; }
.profile-completeness--low .profile-completeness__fill { background: linear-gradient(90deg, #e74c3c, #ff6b6b); }
.profile-completeness--medium .profile-completeness__value { color: #f39c12; }
.profile-completeness--medium .profile-completeness__fill { background: linear-gradient(90deg, #f39c12, #f1c40f); }
.profile-completeness--high .profile-completeness__value {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.profile-completeness--high .profile-completeness__fill { background: linear-gradient(90deg, #27ae60, #2ecc71); }

.profile-completeness__bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}
.profile-completeness__fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.8s ease;
    animation: efBarGrow 1s ease forwards;
}
@keyframes efBarGrow {
    from { width: 0; }
}
.profile-completeness__hint {
    font-size: var(--fs-xs);
    color: var(--text-secondary);
    margin: 8px 0 0;
}

/* ---- Section Navigation ---- */
.settings-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 0 0 12px;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 10;
}
.settings-nav::-webkit-scrollbar { display: none; }
.settings-nav__item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    font-size: var(--fs-sm);
    font-weight: 500;
    font-family: var(--font-main);
    color: var(--text-secondary);
    background: #f5f5f5;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
}
.settings-nav__item:hover {
    color: var(--primary);
    background: var(--primary-light);
    text-decoration: none;
}
.settings-nav__item.active {
    color: #fff;
    background: var(--gradient-primary);
    font-weight: 600;
}
.settings-nav__check {
    color: currentColor;
    flex-shrink: 0;
}

/* ---- Sections ---- */
.settings-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(16px);
    animation: efSectionIn 0.5s ease forwards;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}
.settings-section:nth-child(1) { animation-delay: 0.05s; }
.settings-section:nth-child(2) { animation-delay: 0.1s; }
.settings-section:nth-child(3) { animation-delay: 0.15s; }
.settings-section:nth-child(4) { animation-delay: 0.2s; }
.settings-section:nth-child(5) { animation-delay: 0.25s; }
.settings-section:nth-child(6) { animation-delay: 0.3s; }
.settings-section:nth-child(7) { animation-delay: 0.35s; }
.settings-section:nth-child(8) { animation-delay: 0.4s; }
.settings-section:last-of-type {
    border-bottom: none;
    margin-bottom: 8px;
    padding-bottom: 0;
}
.settings-section:hover {
    background: rgba(255,107,107,0.015);
}

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

/* Section header — clickable for collapse */
.settings-section__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    cursor: pointer;
    user-select: none;
    padding: 4px 0;
    border-radius: var(--radius-sm);
    transition: opacity 0.2s;
}
.settings-section__header:hover {
    opacity: 0.85;
}
.settings-section__icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}
.settings-section__title {
    font-family: 'Nunito', var(--font-main);
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

/* Section progress badge */
.settings-section__progress {
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-main);
    color: var(--text-muted);
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
    flex-shrink: 0;
}
.settings-section__progress--complete {
    color: #27ae60;
    background: rgba(39,174,96,0.1);
}

/* Chevron for collapse */
.settings-section__chevron {
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

/* Collapsed state */
.settings-section.collapsed .settings-section__chevron {
    transform: rotate(-90deg);
}
.settings-section.collapsed .settings-section__fields {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.2s ease;
}
.settings-section__fields {
    max-height: 2000px;
    opacity: 1;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

/* ---- Labels ---- */
.edit-form .control-label {
    font-family: var(--font-main);
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Is-filled indicator */
.edit-form .form-group.is-filled .control-label::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2327ae60' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center center;
    flex-shrink: 0;
}

/* ---- Text inputs ---- */
.edit-form .form-control {
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 15px;
    font-family: var(--font-main);
    color: var(--text-primary);
    height: auto;
    transition: all 0.2s ease;
}
.edit-form .form-control:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
    outline: none;
}
.edit-form .form-control::placeholder {
    color: #adb5bd;
}

/* ---- Selects ---- */
.edit-form select.form-control {
    background-color: #f8f9fa;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    padding: 10px 36px 10px 14px;
    font-size: 15px;
    font-family: var(--font-main);
    font-weight: 400;
    color: var(--text-primary);
    height: auto;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.2s ease;
}
.edit-form select.form-control:focus {
    background-color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

/* ---- Textarea ---- */
.edit-form textarea.form-control {
    min-height: 100px;
    resize: vertical;
    line-height: 1.6;
}

/* Textarea character counter */
.textarea-counter {
    font-size: 12px;
    font-family: var(--font-main);
    color: var(--text-muted);
    text-align: right;
    margin-top: 4px;
    transition: color 0.2s;
}
.textarea-counter--warning {
    color: #f39c12;
}
.textarea-counter--limit {
    color: #e74c3c;
    font-weight: 600;
}

/* ---- Select2 multi-select ---- */
.edit-form .select2-container--default .select2-selection--multiple {
    background: #f8f9fa !important;
    border: 2px solid transparent !important;
    border-radius: var(--radius-sm) !important;
    padding: 6px 10px !important;
    min-height: 44px !important;
    transition: all 0.2s ease;
}
.edit-form .select2-container--default.select2-container--focus .select2-selection--multiple,
.edit-form .select2-container--default .select2-selection--multiple:focus-within {
    background: #fff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1) !important;
}
.edit-form .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: var(--gradient-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 3px 10px !important;
    font-size: var(--fs-sm) !important;
    font-family: var(--font-main) !important;
    margin: 3px 4px 3px 0 !important;
}
.edit-form .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: rgba(255,255,255,0.7) !important;
    margin-right: 6px !important;
    border: none !important;
    padding: 0 !important;
}
.edit-form .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #fff !important;
    background: transparent !important;
}
.edit-form .select2-container--default .select2-selection--multiple .select2-search__field {
    font-family: var(--font-main) !important;
    font-size: var(--fs-base) !important;
}
.edit-form .select2-container--default .select2-selection--multiple .select2-search__field::placeholder {
    color: #adb5bd !important;
}

/* Select2 dropdown (global — renders outside .edit-form) */
.select2-container--default .select2-dropdown {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: var(--shadow-md) !important;
    overflow: hidden;
}
.select2-container--default .select2-results__option {
    font-family: var(--font-main) !important;
    font-size: var(--fs-base) !important;
    padding: 8px 14px !important;
    transition: background 0.15s;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--primary) !important;
    color: #fff !important;
}
.select2-container--default .select2-results__option[aria-selected="true"] {
    background: var(--primary-light) !important;
    color: var(--primary) !important;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 2px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    padding: 8px 12px !important;
    font-family: var(--font-main) !important;
    font-size: var(--fs-base) !important;
    transition: border-color 0.2s;
}
.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--primary) !important;
    outline: none;
}

/* ---- Datepicker input group fix ---- */
.edit-form .input-group {
    display: flex;
    flex-wrap: nowrap;
}
.edit-form .input-group .form-control {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm) !important;
    flex: 1;
}
.edit-form .input-group .input-group-append,
.edit-form .input-group .input-group-prepend {
    display: flex;
}
.edit-form .input-group .input-group-text {
    background: var(--primary-light) !important;
    border: 2px solid transparent !important;
    color: var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
    padding: 0 12px;
    display: flex;
    align-items: center;
}
.edit-form .input-group:focus-within .form-control {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}
.edit-form .input-group:focus-within .input-group-text {
    border-color: var(--primary) !important;
}
.edit-form .krajee-datepicker {
    border-radius: var(--radius-sm) !important;
}

/* Datepicker dropdown */
.datepicker {
    font-family: var(--font-main) !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: var(--shadow-md) !important;
    border: 1px solid var(--border) !important;
    padding: 8px !important;
}
.datepicker table tr td.active,
.datepicker table tr td.active:hover,
.datepicker table tr td.active.highlighted {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}
.datepicker table tr td.today {
    background: var(--primary-light) !important;
    color: var(--primary) !important;
}

/* ---- Help block (Yii2 validation) ---- */
.edit-form .help-block {
    font-size: var(--fs-xs);
    color: var(--primary);
    min-height: 0;
    margin-top: 4px;
}

/* ---- Form group spacing ---- */
.edit-form .form-group {
    margin-bottom: 14px;
}

/* ---- Submit button ---- */
.settings-submit-wrap {
    text-align: center;
    padding-top: 12px;
}
.edit-form .btn-success {
    background: var(--gradient-primary) !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    padding: 14px 48px !important;
    font-size: var(--fs-lg) !important;
    font-weight: 600 !important;
    font-family: var(--font-main) !important;
    color: #fff !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}
.edit-form .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}
.edit-form .btn-success:active {
    transform: translateY(0);
}

/* Delete profile link */
.delete-profile-link {
    display: block;
    text-align: center;
    color: var(--text-muted);
    font-size: var(--fs-sm);
    margin-top: 20px;
    transition: color 0.2s;
    text-decoration: none;
}
.delete-profile-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* ---- Save Toast ---- */
.save-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #fff;
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--fs-base);
    font-weight: 600;
    font-family: var(--font-main);
    z-index: 9999;
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
    border: 1px solid rgba(39,174,96,0.2);
}
.save-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .edit-form.anket {
        padding: 16px 14px;
        border-radius: var(--radius-md);
    }
    .edit-form .heading-anket {
        font-size: 22px;
    }
    .settings-nav {
        margin-bottom: 16px;
        padding-bottom: 10px;
        gap: 4px;
    }
    .settings-nav__item {
        font-size: 12px;
        padding: 5px 10px;
    }
    .settings-section__header {
        margin-bottom: 12px;
    }
    .settings-section__title {
        font-size: var(--fs-base);
    }
    .settings-section__icon {
        width: 30px;
        height: 30px;
    }
    .settings-section {
        margin-bottom: 14px;
        padding-bottom: 12px;
    }
    .edit-form .form-group {
        margin-bottom: 12px;
    }
    .edit-form .btn-success {
        max-width: 100% !important;
    }
    .profile-completeness {
        padding: 12px 16px;
    }
    /* Sticky submit on mobile */
    .settings-submit-wrap {
        position: sticky;
        bottom: 0;
        background: var(--bg-card);
        padding: 12px 0 8px;
        margin: 0 -14px;
        padding-left: 14px;
        padding-right: 14px;
        box-shadow: 0 -4px 12px rgba(0,0,0,0.06);
        z-index: 10;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }
    .settings-submit-wrap .delete-profile-link {
        margin-top: 10px;
        font-size: var(--fs-xs);
    }
}


/* ========================================
   BALANCE PAGE — /user/balance
   ======================================== */

/* Balance Card */
.balance-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.25);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px);
    animation: balFadeUp 0.5s ease forwards;
}
.balance-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}
.balance-card::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: 60px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}
.balance-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.balance-card__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 1;
}
.balance-card__label {
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}
.balance-card__amount {
    font-family: 'Nunito', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

/* Pay Form Wrap */
.pay-from-wrap {
    background: var(--bg-card) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-md) !important;
    padding: 32px !important;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(16px);
    animation: balFadeUp 0.5s ease 0.1s forwards;
}
.pay-form-title {
    font-family: 'Nunito', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 24px;
}
.pay-form-label {
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: block;
}

/* Sum Presets */
.sum-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.sum-preset {
    padding: 8px 20px;
    border: 2px solid #f0f0f0;
    border-radius: 24px;
    background: #fff;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    cursor: pointer;
    transition: all 0.2s ease;
}
.sum-preset:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255, 107, 107, 0.04);
}
.sum-preset.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

/* Sum Input */
.sum-input-wrap {
    position: relative;
    max-width: 280px;
}
.sum-input-currency {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-secondary);
    pointer-events: none;
}
.pay-from-wrap .form-control {
    background: #f8f9fa !important;
    border: 2px solid transparent !important;
    border-radius: var(--radius-sm) !important;
    padding: 14px 16px !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    font-family: var(--font-main) !important;
    color: #1a1a2e !important;
    height: auto !important;
    max-width: 100% !important;
    transition: all 0.2s ease;
}
.pay-from-wrap .form-control:focus {
    background: #fff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1) !important;
    outline: none;
}
.sum-input-wrap .form-control {
    padding-right: 44px !important;
}
.pay-from-wrap .help-block {
    font-size: 12px;
    color: var(--primary);
    min-height: 0;
    margin-top: 4px;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}
.payment-method {
    cursor: pointer;
    margin: 0;
    display: block;
}
.payment-method input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.payment-method__card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}
.payment-method__card:hover {
    background: #fff;
    border-color: rgba(255, 107, 107, 0.3);
    box-shadow: var(--shadow-sm);
}
.payment-method input[type="radio"]:checked + .payment-method__card {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}
.payment-method__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(255, 107, 107, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.payment-method input[type="radio"]:checked + .payment-method__card .payment-method__icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
}
.payment-method__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}
.payment-method__name {
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
}
.payment-method__desc {
    font-family: var(--font-main);
    font-size: 12px;
    color: var(--text-secondary);
}
.payment-method__check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.payment-method input[type="radio"]:checked + .payment-method__card .payment-method__check {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: #fff;
}

/* reCAPTCHA wrap */
.pay-recaptcha-wrap {
    margin: 20px 0;
    padding: 16px 0;
    border-top: 1px solid rgba(0,0,0,0.06);
}

/* Submit button override for balance page */
.pay-from-wrap .type-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3) !important;
    border-radius: var(--radius-md) !important;
    font-family: var(--font-main) !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    line-height: 1 !important;
    border: none !important;
    padding: 16px 48px !important;
    color: #fff !important;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    max-width: 320px;
}
.pay-from-wrap .type-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4) !important;
}
.pay-from-wrap .type-btn:active {
    transform: translateY(0);
}

/* Security badge */
.payment-security {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-family: var(--font-main);
    font-size: 12px;
    color: #adb5bd;
}
.payment-security svg {
    flex-shrink: 0;
    color: #28a745;
}

/* Balance Info */
.balance-info {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 28px 32px;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(16px);
    animation: balFadeUp 0.5s ease 0.2s forwards;
}
.balance-info__title {
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 20px;
}
.balance-info__items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.balance-info__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.balance-info__icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.balance-info__icon-wrap--vip {
    background: rgba(255, 107, 107, 0.1);
    color: var(--primary);
}
.balance-info__icon-wrap--gift {
    background: rgba(255, 142, 83, 0.1);
    color: var(--secondary);
}
.balance-info__icon-wrap--chat {
    background: rgba(102, 126, 234, 0.1);
    color: var(--accent);
}
.balance-info__item strong {
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    display: block;
    margin-bottom: 2px;
}
.balance-info__item p {
    font-family: var(--font-main);
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Toast warning variant */
.save-toast--warning {
    border-color: rgba(243, 156, 18, 0.2);
}

/* Fade-up animation */
@keyframes balFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .balance-card {
        padding: 20px;
    }
    .balance-card__amount {
        font-size: 28px;
    }
    .balance-card__icon {
        width: 46px;
        height: 46px;
    }
    .balance-card__icon svg {
        width: 26px;
        height: 26px;
    }
    .pay-from-wrap {
        padding: 20px 16px !important;
        border-radius: var(--radius-md) !important;
    }
    .sum-presets {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .sum-presets::-webkit-scrollbar {
        display: none;
    }
    .sum-preset {
        flex-shrink: 0;
    }
    .payment-method__card {
        padding: 14px 16px;
    }
    .pay-from-wrap .type-btn {
        max-width: 100% !important;
    }
    .balance-info {
        padding: 20px 16px;
    }
    .balance-info__items {
        gap: 14px;
    }
}


/* ========================================
   VIP PAGE — /vip/buy
   ======================================== */

/* Header */
.vip-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.25);
    opacity: 0;
    transform: translateY(16px);
    animation: balFadeUp 0.5s ease forwards;
}
.vip-header::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}
.vip-header::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.vip-header__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    position: relative;
    z-index: 1;
}
.vip-header__title {
    font-family: 'Nunito', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px;
    position: relative;
    z-index: 1;
}
.vip-header__subtitle {
    font-family: var(--font-main);
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    margin: 0;
    position: relative;
    z-index: 1;
}
.vip-header__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 6px 16px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    position: relative;
    z-index: 1;
}

/* Features */
.vip-features {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px 28px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 0;
    transform: translateY(16px);
    animation: balFadeUp 0.5s ease 0.1s forwards;
}
.vip-feature {
    display: flex;
    align-items: center;
    gap: 14px;
}
.vip-feature__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.vip-feature__icon--search {
    background: rgba(255, 107, 107, 0.1);
    color: var(--primary);
}
.vip-feature__icon--eye {
    background: rgba(255, 142, 83, 0.1);
    color: var(--secondary);
}
.vip-feature__icon--msg {
    background: rgba(102, 126, 234, 0.1);
    color: var(--accent);
}
.vip-feature strong {
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    display: block;
    margin-bottom: 2px;
}
.vip-feature p {
    font-family: var(--font-main);
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* Plans */
.vip-plans {
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(16px);
    animation: balFadeUp 0.5s ease 0.15s forwards;
}
.vip-plans__title {
    font-family: 'Nunito', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 16px;
}
.vip-plans__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}
.vip-plan {
    background: var(--bg-card);
    border: 2px solid #f0f0f0;
    border-radius: var(--radius-md);
    padding: 20px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}
.vip-plan:hover {
    border-color: rgba(255, 107, 107, 0.3);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.vip-plan--popular {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}
.vip-plan__badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-main);
    padding: 2px 12px;
    border-radius: 10px;
    white-space: nowrap;
}
.vip-plan__period {
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}
.vip-plan__price {
    font-family: 'Nunito', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1;
}
.vip-plan__price small {
    font-size: 16px;
    font-weight: 600;
}
.vip-plan__btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 24px;
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}
.vip-plan__btn:hover {
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* Note */
.vip-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-main);
    font-size: 13px;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateY(16px);
    animation: balFadeUp 0.5s ease 0.2s forwards;
}
.vip-note svg {
    flex-shrink: 0;
    color: var(--text-secondary);
}
.vip-note a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.vip-note a:hover {
    text-decoration: underline;
}

/* VIP Responsive */
@media (max-width: 768px) {
    .vip-header {
        padding: 28px 20px;
    }
    .vip-header__title {
        font-size: 24px;
    }
    .vip-features {
        padding: 20px 16px;
    }
    .vip-plans__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .vip-plan {
        padding: 16px 12px;
    }
    .vip-plan__price {
        font-size: 20px;
    }
}

/* ========================================
   SCROLL PRELOADER — Skeleton Cards
   ======================================== */
.scroll-preloader {
    grid-column: 1 / -1;
    width: 100%;
    padding: 12px 0 40px;
    display: none;
}

.scroll-preloader.is-loading {
    display: block;
}

/* Progress bar */
.scroll-preloader__bar {
    width: 100%;
    max-width: 320px;
    height: 3px;
    margin: 0 auto 28px;
    border-radius: 3px;
    background: var(--border);
    overflow: hidden;
    position: relative;
}

.scroll-preloader__bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    border-radius: 3px;
    background: var(--gradient-primary);
    animation: scrollBarSlide 1.2s ease-in-out infinite;
}

@keyframes scrollBarSlide {
    0% { left: -40%; }
    100% { left: 100%; }
}

/* Skeleton cards grid */
.scroll-preloader__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

/* Single skeleton card */
.skeleton-card {
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: relative;
}

.skeleton-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 107, 107, 0.04) 40%,
        rgba(255, 142, 83, 0.06) 50%,
        rgba(255, 107, 107, 0.04) 60%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: skeletonCardShimmer 1.8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

/* Photo area skeleton */
.skeleton-card__photo {
    aspect-ratio: 3 / 4;
    background: linear-gradient(
        135deg,
        #f3f3f3 0%,
        #eaeaea 50%,
        #f3f3f3 100%
    );
    background-size: 200% 200%;
    animation: skeletonPhotoPulse 2.4s ease-in-out infinite;
    position: relative;
}

/* Faux avatar circle in photo area */
.skeleton-card__photo::before {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}

/* Faux "online" badge */
.skeleton-card__photo::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.25);
}

/* Info area skeleton */
.skeleton-card__info {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skeleton-card__line {
    height: 12px;
    border-radius: 6px;
    background: #f0f0f0;
}

.skeleton-card__line--title {
    width: 65%;
    height: 14px;
}

.skeleton-card__line--sub {
    width: 45%;
}

.skeleton-card__line--tag {
    width: 80%;
    height: 10px;
    margin-top: 2px;
}

/* Stagger animation delays */
.skeleton-card:nth-child(1) { animation-delay: 0s; }
.skeleton-card:nth-child(2) { animation-delay: 0.15s; }
.skeleton-card:nth-child(3) { animation-delay: 0.3s; }
.skeleton-card:nth-child(4) { animation-delay: 0.45s; }

.skeleton-card:nth-child(1) .skeleton-card__photo { animation-delay: 0s; }
.skeleton-card:nth-child(2) .skeleton-card__photo { animation-delay: 0.2s; }
.skeleton-card:nth-child(3) .skeleton-card__photo { animation-delay: 0.4s; }
.skeleton-card:nth-child(4) .skeleton-card__photo { animation-delay: 0.6s; }

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

@keyframes skeletonPhotoPulse {
    0%, 100% { background-position: 0% 0%; opacity: 1; }
    50% { background-position: 100% 100%; opacity: 0.7; }
}

/* End state — all content loaded */
.scroll-preloader.is-done {
    display: block;
    text-align: center;
    padding: 20px 0 32px;
}

.scroll-preloader.is-done .scroll-preloader__bar,
.scroll-preloader.is-done .scroll-preloader__grid {
    display: none;
}

.scroll-preloader__done {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: var(--fs-sm);
    font-family: var(--font-main);
}

.scroll-preloader.is-done .scroll-preloader__done {
    display: flex;
}

.scroll-preloader__done svg {
    opacity: 0.5;
}

/* Mobile: 1 skeleton card */
@media (max-width: 767px) {
    .scroll-preloader__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .skeleton-card__photo {
        aspect-ratio: 1 / 1;
    }

    .scroll-preloader__bar {
        max-width: 200px;
        margin-bottom: 20px;
    }
}