/* ═══════════════════════════════════════════════════
   UGCBG.eu — UGC & Influencer Marketplace
   Modern, Creative, Professional Design
   ═══════════════════════════════════════════════════ */

:root {
    --primary: #6C63FF;
    --primary-dark: #4A42D1;
    --primary-light: #EDE7F6;
    --secondary: #FF6584;
    --secondary-light: #FFE0E6;
    --accent: #00D4AA;
    --gradient: linear-gradient(135deg, #6C63FF 0%, #FF6584 100%);
    --gradient-reverse: linear-gradient(135deg, #FF6584 0%, #6C63FF 100%);
    --gradient-subtle: linear-gradient(135deg, #f5f3ff 0%, #fce7f3 100%);

    --bg: #FAFBFF;
    --bg-white: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-dark: #0F0E17;
    --bg-darker: #080812;

    --text: #2D3436;
    --text-light: #636E72;
    --text-lighter: #B2BEC3;
    --text-white: #FFFFFF;
    --text-on-gradient: #FFFFFF;

    --border: #E8ECF4;
    --border-light: #F1F3F8;

    --shadow-sm: 0 1px 3px rgba(108,99,255,0.06);
    --shadow: 0 4px 15px rgba(108,99,255,0.08);
    --shadow-lg: 0 10px 40px rgba(108,99,255,0.12);
    --shadow-xl: 0 20px 60px rgba(108,99,255,0.15);
    --shadow-hover: 0 12px 35px rgba(108,99,255,0.18);

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

/* ─── CONTAINER ──────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* ─── NAVBAR ─────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
    height: 70px;
}
.navbar.scrolled {
    box-shadow: var(--shadow);
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
}
.nav-logo:hover { color: var(--text); transform: scale(1.02); }
.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}
.logo-text { letter-spacing: -0.5px; }
.logo-dot { color: var(--primary); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}
.nav-link i { font-size: 0.85rem; }
.nav-cta {
    margin-left: 8px;
    background: var(--gradient) !important;
    color: white !important;
    padding: 8px 20px !important;
    border-radius: var(--radius-full) !important;
    font-weight: 600 !important;
}
.nav-cta:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); color: white !important; }

/* User dropdown */
.nav-dropdown { position: relative; }
.nav-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text);
    transition: var(--transition);
}
.nav-user-btn:hover { background: var(--primary-light); }
.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.nav-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}
.badge {
    background: var(--secondary);
    color: white;
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    font-weight: 700;
}
.badge-sm {
    background: var(--secondary);
    color: white;
    font-size: 0.65rem;
    padding: 1px 6px;
    border-radius: var(--radius-full);
    font-weight: 700;
    margin-left: auto;
}
/* BRAND-NOTIFY-BADGE-20260606 — светещ акцентен брояч за чакащи кандидати */
.badge.badge-pending,
.badge-sm.badge-pending {
    background: #FF6584;
    color: #fff;
    box-shadow: 0 0 0 0 rgba(255, 101, 132, 0.55);
    animation: ugcbgPendingPulse 1.8s ease-out infinite;
}
@keyframes ugcbgPendingPulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 101, 132, 0.55); }
    70%  { box-shadow: 0 0 0 7px rgba(255, 101, 132, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 101, 132, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .badge.badge-pending, .badge-sm.badge-pending { animation: none; }
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%; padding-top: 8px; margin-top: 0;
    right: 0;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    min-width: 220px;
    padding: 8px;
    z-index: 100;
}
.nav-dropdown:hover .dropdown-menu,
.dropdown-menu:hover { display: block; }
.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
}
.dropdown-menu a:hover { background: var(--primary-light); color: var(--primary); }
.dropdown-menu hr { margin: 4px 0; border: none; border-top: 1px solid var(--border-light); }
.dropdown-menu i { width: 18px; text-align: center; color: var(--text-lighter); }
.dropdown-menu a:hover i { color: var(--primary); }

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.nav-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ─── BUTTONS ────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; border-radius: var(--radius); }
.btn-xl { padding: 18px 40px; font-size: 1.1rem; border-radius: var(--radius); }

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(108,99,255,0.25);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108,99,255,0.35);
    color: white;
}
.btn-secondary {
    background: var(--secondary);
    color: white;
    box-shadow: 0 4px 15px rgba(255,101,132,0.25);
}
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,101,132,0.35);
    color: white;
}
.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
}
.btn-white {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--primary); }
.btn-ghost { color: var(--text-light); }
.btn-ghost:hover { color: var(--primary); background: var(--primary-light); }
.btn-block { width: 100%; }
.btn-pill { border-radius: var(--radius-full); }
.btn-icon { width: 42px; height: 42px; padding: 0; border-radius: 50%; }

/* ─── HERO SECTION ───────────────────────────────── */
.hero {
    position: relative;
    padding: 140px 0 100px;
    background: var(--bg-dark);
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(108,99,255,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(255,101,132,0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 0%, rgba(0,212,170,0.08) 0%, transparent 50%);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(108,99,255,0.15);
    border: 1px solid rgba(108,99,255,0.3);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}
.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: white;
    margin-bottom: 20px;
    letter-spacing: -1px;
}
.hero h1 .gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 36px;
    max-width: 560px;
    line-height: 1.8;
}
.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat h3 {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-stat p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

/* Floating shapes */
.hero-shapes {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 50%;
    z-index: 1;
    pointer-events: none;
}
.hero-shape {
    position: absolute;
    border-radius: var(--radius-xl);
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}
.hero-shape:nth-child(1) {
    width: 300px;
    height: 300px;
    background: var(--gradient);
    top: 15%;
    right: 10%;
    animation-delay: 0s;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}
.hero-shape:nth-child(2) {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #00D4AA 0%, #6C63FF 100%);
    bottom: 20%;
    right: 25%;
    animation-delay: -2s;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}
.hero-shape:nth-child(3) {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #FF6584 0%, #FFC371 100%);
    top: 30%;
    right: 35%;
    animation-delay: -4s;
    border-radius: 40% 60% 70% 30% / 40% 50% 50% 60%;
}
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(5deg); }
    66% { transform: translateY(10px) rotate(-3deg); }
}

/* ─── SECTIONS ───────────────────────────────────── */
.section {
    padding: 100px 0;
}
.section-dark {
    background: var(--bg-dark);
    color: white;
}
.section-gradient {
    background: var(--gradient-subtle);
}
.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px;
}
.section-header .section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.section-dark .section-header h2 { color: white; }
.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}
.section-dark .section-header p { color: rgba(255,255,255,0.6); }

/* ─── CARDS ──────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 28px;
    transition: var(--transition);
}
.card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

/* Campaign cards */
.campaign-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    align-items: stretch;
}
.campaign-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}
/* CARD-ALIGN-20260608: equal-height cards, footer pinned to bottom */
.campaign-card-body { flex: 1 1 auto; }
.campaign-card-footer { margin-top: auto; }
.campaign-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}
/* CAMPAIGN-COVER-v1 — uniform cover image on listing cards */
.campaign-cover {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--gradient-subtle);
}
.campaign-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.campaign-card:hover .campaign-cover img {
    transform: scale(1.04);
}
.campaign-cover-empty {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
}
.campaign-cover-ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.85);
    font-size: 2.4rem;
}
.campaign-cover-demo {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #a855f7;
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
}
.campaign-card-header {
    padding: 24px 24px 16px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.campaign-brand-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--gradient-subtle);
}
.campaign-brand-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.campaign-brand-info h4 {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}
.campaign-brand-info h4 .verified {
    color: var(--primary);
    margin-left: 4px;
}
.campaign-card-body {
    padding: 0 24px 20px;
}
.campaign-card-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
    line-height: 1.4;
}
.campaign-card-body h3 a { color: inherit; }
.campaign-card-body h3 a:hover { color: var(--primary); }
.campaign-card-body p {
    color: var(--text-light);
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.campaign-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}
.tag {
    padding: 4px 10px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}
.tag-secondary {
    background: var(--secondary-light);
    color: var(--secondary);
}
.tag-accent {
    background: rgba(0,212,170,0.1);
    color: #00B894;
}
.campaign-card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.campaign-budget {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.05rem;
}
.campaign-budget small {
    font-weight: 400;
    color: var(--text-lighter);
    font-size: 0.8rem;
}
.campaign-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-lighter);
    font-size: 0.8rem;
}
.campaign-meta i { margin-right: 3px; }

/* Creator cards */
.creator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 24px;
}
.creator-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    text-align: center;
    padding: 32px 24px;
    transition: var(--transition);
}
.creator-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}
.creator-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 3px solid var(--border-light);
}
.creator-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 auto 16px;
}
.creator-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.creator-card h3 a { color: var(--text); }
.creator-card h3 a:hover { color: var(--primary); }
.creator-card .creator-handle {
    color: var(--text-lighter);
    font-size: 0.85rem;
    margin-bottom: 12px;
}
.creator-card .creator-bio {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.creator-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}
.creator-stats span {
    font-size: 0.8rem;
    color: var(--text-light);
}
.creator-stats span strong {
    display: block;
    font-size: 1rem;
    color: var(--text);
}
.creator-platforms {
    display: flex;
    justify-content: center;
    gap: 8px;
}
.creator-platforms a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: var(--transition);
}
.creator-platforms a:hover { transform: scale(1.1); }

/* ─── HOW IT WORKS ───────────────────────────────── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    counter-reset: step;
}
.step-card {
    text-align: center;
    padding: 40px 24px;
    position: relative;
    counter-increment: step;
}
.step-card::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1;
    z-index: 0;
}
.step-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius);
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}
.step-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
}
.step-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ─── FEATURES ───────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.feature-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}
.feature-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-4px);
}
.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }

/* ─── CTA SECTION ────────────────────────────────── */
.cta-section {
    padding: 80px 0;
    background: var(--gradient);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    position: relative;
}
.cta-section p {
    color: rgba(255,255,255,0.85);
    font-size: 1.15rem;
    margin-bottom: 32px;
    position: relative;
}
.cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* ─── FORMS ──────────────────────────────────────── */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--text);
}
.form-group label .required {
    color: var(--secondary);
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
    color: var(--text);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108,99,255,0.1);
}
.form-control::placeholder { color: var(--text-lighter); }
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { cursor: pointer; }
.form-hint {
    font-size: 0.8rem;
    color: var(--text-lighter);
    margin-top: 4px;
}
.form-error {
    font-size: 0.8rem;
    color: var(--secondary);
    margin-top: 4px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}

/* Auth forms */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 40px;
    background: var(--gradient-subtle);
}
.auth-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 48px;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-xl);
}
.auth-card h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-align: center;
}
.auth-card .auth-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 32px;
}
.auth-type-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 28px;
}
.type-option {
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}
.type-option:hover { border-color: var(--primary); }
.type-option.active {
    border-color: var(--primary);
    background: var(--primary-light);
}
.type-option i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 6px;
    display: block;
}
.type-option span {
    font-weight: 600;
    font-size: 0.9rem;
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-lighter);
    font-size: 0.85rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Error list */
.error-list {
    background: var(--secondary-light);
    border: 1px solid var(--secondary);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin-bottom: 20px;
    list-style: none;
}
.error-list li {
    color: var(--secondary);
    font-size: 0.9rem;
    padding: 2px 0;
}
.error-list li::before {
    content: '\f057';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 8px;
}

/* ─── FLASH MESSAGE ──────────────────────────────── */
.flash-message {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--accent);
    color: white;
    padding: 12px 0;
    animation: slideDown 0.3s ease;
}
.flash-message .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.flash-message p { font-weight: 500; }
.flash-message button { color: white; font-size: 1.2rem; }
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* ─── DASHBOARD ──────────────────────────────────── */
.dashboard-page {
    padding: 100px 0 60px;
    min-height: 100vh;
}
.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}
.dashboard-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border-light);
}
.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.stat-card h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}
.stat-card p {
    font-size: 0.85rem;
    color: var(--text-light);
}
.dashboard-section {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 28px;
    margin-bottom: 24px;
}
.dashboard-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.dashboard-section h2 i { color: var(--primary); }

/* Application rows */
.app-list { list-style: none; }
.app-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
    gap: 12px;
}
.app-item:last-child { border-bottom: none; }
.app-info h4 { font-size: 0.95rem; font-weight: 600; }
.app-info p { font-size: 0.8rem; color: var(--text-light); }
.status-badge {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}
.status-pending { background: #FFF3E0; color: #F57C00; }
.status-accepted { background: #E8F5E9; color: #388E3C; }
.status-rejected { background: #FFEBEE; color: #D32F2F; }
.status-completed { background: var(--primary-light); color: var(--primary); }

/* ─── MESSAGES ───────────────────────────────────── */
.conversation-list { list-style: none; }
.conversation-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: var(--radius);
    transition: var(--transition);
    border-bottom: 1px solid var(--border-light);
}
.conversation-item:hover { background: var(--primary-light); }
.conversation-item .unread { font-weight: 700; }
.message-list {
    max-height: 500px;
    overflow-y: auto;
    padding: 20px 0;
    list-style: none;
}
.message-bubble {
    max-width: 70%;
    padding: 12px 18px;
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.6;
}
.message-mine {
    background: var(--gradient);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}
.message-other {
    background: var(--bg);
    color: var(--text);
    border-bottom-left-radius: 4px;
}
.message-time {
    font-size: 0.7rem;
    opacity: 0.6;
    margin-top: 4px;
}
.message-form {
    display: flex;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}
.message-form input { flex: 1; }

/* ─── BLOG ───────────────────────────────────────── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}
.blog-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: var(--transition);
}
.blog-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}
.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.blog-card-body {
    padding: 24px;
}
.blog-card-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}
.blog-card-body h3 a { color: var(--text); }
.blog-card-body h3 a:hover { color: var(--primary); }
.blog-card-body p {
    color: var(--text-light);
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--text-lighter);
}

/* Article page */
.article-page {
    padding: 100px 0 60px;
}
.article-header {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}
.article-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.3;
}
.article-cover {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
}
.article-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.9;
}
.article-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 36px 0 16px;
}
.article-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 28px 0 12px;
}
.article-content p { margin-bottom: 18px; }
.article-content ul, .article-content ol {
    margin-bottom: 18px;
    padding-left: 24px;
}
.article-content li { margin-bottom: 6px; }
.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--primary-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
}

/* ─── PROFILE PAGE ───────────────────────────────── */
.profile-page { padding: 100px 0 60px; }
.profile-header {
    background: white;
    border-radius: var(--radius-xl);
    padding: 40px;
    margin-bottom: 32px;
    border: 1px solid var(--border-light);
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-light);
    flex-shrink: 0;
}
.profile-avatar-large-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    flex-shrink: 0;
}
.profile-info h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 4px;
}
.profile-info .verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
}
.profile-meta {
    display: flex;
    gap: 20px;
    margin: 12px 0;
    flex-wrap: wrap;
}
.profile-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 0.9rem;
}
.profile-meta i { color: var(--text-lighter); }
.profile-stats-row {
    display: flex;
    gap: 30px;
    margin-top: 16px;
}
.profile-stats-row .p-stat {
    text-align: center;
}
.profile-stats-row .p-stat strong {
    display: block;
    font-size: 1.4rem;
    color: var(--text);
}
.profile-stats-row .p-stat span {
    font-size: 0.8rem;
    color: var(--text-lighter);
}

/* ─── SEARCH/FILTER BAR ──────────────────────────── */
.filter-bar {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 32px;
    border: 1px solid var(--border-light);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.filter-bar .search-input {
    flex: 1;
    min-width: 200px;
}
.filter-bar select {
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
}
.filter-bar select:focus {
    border-color: var(--primary);
    outline: none;
}

/* ─── PAGINATION ─────────────────────────────────── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
}
.pagination a, .pagination span {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.pagination a:hover { background: var(--primary-light); color: var(--primary); }
.pagination .active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ─── PAGE HERO ──────────────────────────────────── */
.page-hero {
    padding: 120px 0 50px;
    background: var(--bg-dark);
    text-align: center;
}
.page-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
}
.page-hero p {
    color: rgba(255,255,255,0.6);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ─── 404 ────────────────────────────────────────── */
.not-found {
    text-align: center;
    padding: 150px 20px 80px;
}
.not-found h1 {
    font-size: 6rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.not-found p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin: 16px 0 32px;
}

/* ─── STATIC PAGES ───────────────────────────────── */
.static-page {
    padding: 100px 0 60px;
}
.static-page .container-sm h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 24px;
}
.static-page .container-sm h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 32px 0 12px;
}
.static-page .container-sm p {
    margin-bottom: 16px;
    line-height: 1.8;
}
.static-page .container-sm ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

/* ─── COOKIE BANNER ──────────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    z-index: 9999;
    padding: 16px 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.cookie-inner p {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    flex: 1;
}
.cookie-buttons { display: flex; gap: 10px; }

/* ─── NEWSLETTER ─────────────────────────────────── */
.newsletter-form {
    display: flex;
    gap: 8px;
}
.newsletter-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}
.newsletter-form button {
    padding: 10px 16px;
    background: var(--gradient);
    color: white;
    border-radius: var(--radius-sm);
    border: none;
    transition: var(--transition);
}
.newsletter-form button:hover { transform: translateY(-1px); }

/* ─── FOOTER ─────────────────────────────────────── */
.footer {
    background: var(--bg-dark);
    padding: 60px 0 0;
    color: rgba(255,255,255,0.7);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.footer-logo:hover { color: white; }
.footer-logo span { color: var(--primary); }
.footer-logo i { color: var(--primary); }
.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 16px;
}
.footer-social {
    display: flex;
    gap: 10px;
}
.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); transform: translateY(-2px); }
.footer-links h4 {
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.footer-links a {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    padding: 4px 0;
}
.footer-links a:hover { color: var(--primary); }
.footer-newsletter h4 {
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.footer-newsletter p {
    font-size: 0.85rem;
    margin-bottom: 12px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .hero-shapes { display: none; }
    .hero { min-height: auto; padding: 120px 0 80px; }
    .profile-header { flex-direction: column; align-items: center; text-align: center; }
    .profile-meta { justify-content: center; }
    .profile-stats-row { justify-content: center; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-light);
    }
    .nav-toggle { display: flex; }
    .nav-cta { margin-left: 0 !important; }

    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; }

    .section { padding: 60px 0; }
    .section-header h2 { font-size: 1.7rem; }

    .campaign-grid { grid-template-columns: 1fr; }
    .creator-grid { grid-template-columns: 1fr 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .filter-bar { flex-direction: column; }

    .auth-card { padding: 28px; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .cta-section h2 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .creator-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
}

/* ─── UTILITIES ──────────────────────────────────── */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.hidden { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


/* Popup animations */
@keyframes fadeIn { from { opacity:0 } to { opacity:1 } }
@keyframes slideUp { from { opacity:0;transform:translateY(20px) } to { opacity:1;transform:translateY(0) } }

/* === UGCBG 20260515 mobile + deadline badge fixes === */
body { max-width: 100%; overflow-x: hidden; }
.nav-container, .dashboard-section { min-width: 0; max-width: 100%; }
.nav-toggle, #navToggle { min-width: 44px; min-height: 44px; padding: 10px; }
.tap-target { min-width:44px; min-height:44px; display:inline-flex; align-items:center; justify-content:center; }
.footer-links a { padding: 14px 0; min-height: 44px; display: inline-block; }
.tag { font-size: 14px; }
.creator-bio, .nav-cta { font-size: 14px; }
input[type=text], input[type=email], input[type=password] {
    width: 100%; max-width: 100%; box-sizing: border-box;
}

/* Deadline badges */
.deadline-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 999px;
    font-size: 13px; font-weight: 600;
    line-height: 1.2;
}
.deadline-badge.db-green  { background:#dcfce7; color:#166534; border:1px solid #86efac; }
.deadline-badge.db-yellow { background:#fef3c7; color:#92400e; border:1px solid #fcd34d; }
.deadline-badge.db-red    { background:#fee2e2; color:#991b1b; border:1px solid #fca5a5; }
.deadline-badge.db-closed { background:#e5e7eb; color:#374151; border:1px solid #d1d5db; }

/* Cookie banner compact 1-line on mobile */
@media (max-width: 640px) {
    #cookieBanner { padding: 10px 14px !important; max-width: 100%; box-sizing: border-box; }
    #cookieBanner p { font-size: 12px !important; line-height: 1.4 !important; }
    /* MOBILE-OVERFLOW-FIX: позволи пренасяне — nowrap преливаше бутоните вдясно */
    #cookieBanner .container { gap: 8px !important; flex-wrap: wrap !important; max-width: 100%; }
    #cookieBanner .cookie-buttons, #cookieBanner .container > div { flex-wrap: wrap; }
    #cookieBanner .btn, #cookieBanner button { flex: 1 1 auto; min-width: 0; }
}

/* === UGCBG 20260515 perf+ux pass === */
/* Prevent iOS zoom on focus: force 16px inputs on small screens */
@media (max-width: 768px) {
    input[type=text], input[type=email], input[type=password], input[type=tel],
    input[type=number], input[type=search], input[type=url], input[type=date],
    select, textarea, .form-control {
        font-size: 16px !important;
    }
    /* Buttons + form-control min touch target */
    .btn, .btn-pill, .btn-primary, button[type=submit], .form-control {
        min-height: 44px;
    }
    /* Nav links bigger tap */
    .nav-links a { padding: 12px 8px; min-height: 44px; display: flex; align-items: center; }
}
/* Smooth img fade-in for lazy */
img[loading=lazy] { transition: opacity .25s ease; }

/* ============================================
   MOBILE-OVERFLOW-FIX-20260606
   Дефинитивна поправка на хоризонталния overflow на мобилно.
   Причина: absolute-позиционирани декорации (.hero-shape, right:10% + фиксирани px)
   стърчаха извън viewport-а, а .hero нямаше overflow:hidden → текст/бутони
   се отрязваха отстрани на всички страници.
   ============================================ */
html, body { overflow-x: hidden !important; max-width: 100%; }

/* Hero контейнерите да не пропускат absolute декорации навън */
.hero, .hero-section, section[class*="hero"], .page-hero, .cs-hero, .masters-hero {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    /* Скрий чисто-декоративните плаващи форми на мобилно (те причиняваха overflow) */
    .hero-shape, .hero-shapes, .floating-shape, .blob, .deco-shape { display: none !important; }

    /* Никой елемент да не може да надхвърли ширината на екрана */
    .hero, .hero-content, .container, .container-sm, .container-lg,
    section, .section, .card, .campaign-card, .creator-card,
    .dashboard-section, .grid, [class*="grid"] {
        max-width: 100% !important;
        box-sizing: border-box;
    }

    /* Дълги думи/линкове да се пренасят вместо да разширяват екрана */
    body { word-wrap: break-word; overflow-wrap: break-word; }

    /* Контейнерите с padding да не прелеят */
    .container, .container-sm, .container-lg { padding-left: 16px; padding-right: 16px; }

    /* Hero текстът да се събира в екрана */
    .hero h1, .hero p { max-width: 100%; }

    /* Inline 2-колонни grid-ове (напр. campaign-detail 2fr 1fr) → 1 колона */
    [style*="grid-template-columns:2fr 1fr"],
    [style*="grid-template-columns: 2fr 1fr"],
    [style*="grid-template-columns:1fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns:1fr 2fr"],
    [style*="grid-template-columns: 1fr 2fr"],
    .campaign-grid {
        grid-template-columns: 1fr !important;
    }

    /* Дълги заглавия в hero (TUASOLEA и т.н.) да се пренасят, не да преливат */
    h1, h2, .hero h1, .page-hero h1 {
        word-break: break-word;
        overflow-wrap: anywhere;
        font-size: clamp(1.4rem, 7vw, 2.2rem) !important;
        line-height: 1.2;
    }

    /* page-hero (detail/listing hero-та) — гарантирано в рамките на екрана */
    .page-hero, .page-hero .container { max-width: 100%; overflow-x: hidden; }
    .page-hero h1 { font-size: clamp(1.3rem, 6.5vw, 2rem) !important; }

    /* Breadcrumb навигацията да не разширява (дълги имена на кампании) */
    .page-hero nav { white-space: normal; word-break: break-word; }

    /* Hero подзаглавия/параграфи да се събират в екрана (не fixed max-width) */
    .hero p, .page-hero p, .hero-subtitle, .page-hero .subtitle,
    section[class*="hero"] p {
        max-width: 100% !important;
        overflow-wrap: break-word;
    }

    /* Всички input/select/textarea гарантирано в рамките */
    input, select, textarea, .form-control, .input {
        max-width: 100% !important;
        box-sizing: border-box;
    }

    /* Форм-обвивки и карти да не преливат */
    form, .auth-card, .login-card, .card-form { max-width: 100%; }
}

/* ============================================
   MOBILE-MENU-FIX-20260606
   Мобилното меню беше центрирано + силно разредено + счупен БГ|EN.
   Прави го подравнено ВЛЯВО, компактно, четимо.
   ============================================ */
@media (max-width: 768px) {
    .nav-links.active {
        align-items: stretch !important;
        gap: 2px !important;
        padding: 8px 0 !important;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    /* Всеки линк — вляво, компактен, tap-friendly, със ховър фон */
    .nav-links.active > a,
    .nav-links.active .nav-link {
        text-align: left !important;
        justify-content: flex-start !important;
        width: 100%;
        padding: 13px 20px !important;
        margin: 0 !important;
        border-radius: 10px;
        font-size: 1rem;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .nav-links.active > a:hover,
    .nav-links.active .nav-link:hover { background: var(--bg-soft, #f5f5fa); }
    /* Икони подравнени */
    .nav-links.active a i { width: 22px; text-align: center; }
    /* Търсачка — пълна ширина, вляво */
    .nav-links.active .nav-search {
        width: 100%; margin: 6px 0; padding: 0 20px;
    }
    .nav-links.active .nav-search input { width: 100%; }
    /* CTA бутон Регистрация — пълна ширина, не центриран balloon */
    .nav-links.active .nav-cta {
        width: calc(100% - 40px); margin: 8px 20px !important;
        text-align: center; justify-content: center;
    }
    /* Вход линк — като другите, вляво */
    .nav-links.active .nav-link[href="/login"] { font-weight: 600; }
    /* БГ | EN — оправяме счупения вертикален разделител, правим хоризонтален ред */
    .nav-links.active .nav-lang {
        display: flex !important; flex-direction: row !important;
        align-items: center; gap: 10px;
        padding: 12px 20px !important; margin: 4px 0 0 !important;
        font-size: .95rem !important;
        border-top: 1px solid var(--border-light, #eee);
    }
    .nav-links.active .nav-lang a { padding: 4px 10px !important; display: inline-block; }
    .nav-links.active .nav-lang br { display: none; }
    /* Dropdown менюто (логнат потребител) също вляво */
    .nav-links.active .nav-dropdown { width: 100%; }
    .nav-links.active .dropdown-menu {
        position: static !important; box-shadow: none !important;
        border: none !important; padding: 0 !important; width: 100%;
        background: transparent !important;
    }
    .nav-links.active .dropdown-menu a { text-align: left !important; padding: 12px 20px !important; }
}

/* ============================================
   UX-PERF-AUDIT-20260606
   1) Десктоп hero-ите хабеха цял екран празно пространство:
      .hero { min-height:90vh; align-items:center } центрираше
      малкото съдържание → заглавието падаше ~250px надолу (под линията
      на четене), value-prop-ът не се виждаше веднага. Махаме 90vh,
      височината се определя от padding-а → съдържанието започва веднага
      след хедъра. На мобилно вече беше auto (1024px media), не пипаме.
   2) Дребни conversion/полиш добавки (campaigns value-strip, empty stat).
   ============================================ */
@media (min-width: 1025px) {
    .hero {
        min-height: 0;
        padding-top: 120px;
        padding-bottom: 84px;
        align-items: flex-start;
    }
    /* hero декорациите следват по-ниския hero */
    .hero-shapes { top: 0; bottom: auto; height: 100%; }
}

/* Campaigns „value strip" — запълва празнотата при малко кампании
   и дава ясна следваща стъпка (намалява усещането за „мъртва" платформа) */
.ux-campaigns-cta {
    margin: 40px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.ux-campaigns-cta .ux-cta-box {
    background: #fff;
    border: 1px solid var(--border, #ececf3);
    border-radius: 16px;
    padding: 26px 24px;
    box-shadow: 0 4px 18px rgba(31,41,55,.05);
}
.ux-campaigns-cta .ux-cta-box h3 { font-size: 1.15rem; margin: 0 0 6px; }
.ux-campaigns-cta .ux-cta-box p { color: var(--text-light, #6b7280); font-size: .92rem; margin: 0 0 16px; }
.ux-campaigns-cta .ux-cta-box.ux-creator { border-top: 4px solid var(--primary, #6C63FF); }
.ux-campaigns-cta .ux-cta-box.ux-brand { border-top: 4px solid var(--secondary, #FF6584); }
@media (max-width: 640px) {
    .ux-campaigns-cta { grid-template-columns: 1fr; }
}

/* „0" статистика в карти/профил изглежда слабо — приглушаваме нулата
   (само визуално, числото си стои) */
.cp-stat strong.ux-zero { color: #c3c3d6; }
