/* =====================================================================
   OnlyFind - Clean Light Theme
   ===================================================================== */
:root {
    --bg: #f8fafc;
    --bg-alt: #ffffff;
    --surface: #ffffff;
    --surface-2: #f1f5f9;
    --border: #e2e8f0;
    --text: #0f172a;
    --text-muted: #64748b;
    --primary: #e11d48;         /* عش المتقدم — وردي/أحمر */
    --primary-dark: #be123c;
    --primary-soft: #ffe4e6;
    --accent: #7c3aed;          /* بنفسجي */
    --accent-soft: #ede9fe;
    --success: #16a34a;
    --warning: #d97706;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 3px rgba(15,23,42,.06), 0 4px 14px rgba(15,23,42,.06);
    --shadow-lg: 0 8px 30px rgba(15,23,42,.12);
    --maxw: 1200px;
    --font: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.main-content { max-width: var(--maxw); margin: 0 auto; padding: 32px 20px 100px; }

/* ====== Bottom Navigation Bar ====== */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 500px;
    height: 64px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 
                0 0 15px rgba(225, 29, 72, 0.1);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s ease;
    flex: 1;
    gap: 4px;
}

.bottom-nav-item svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
    transition: all 0.2s ease;
}

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

.bottom-nav-item:hover svg, .bottom-nav-item.active svg {
    transform: translateY(-2px);
    filter: drop-shadow(0 0 5px var(--primary-soft));
}

.bottom-nav-item.active svg {
    stroke: var(--primary);
}

/* Specific styling for Swipe item to make it stand out */
.bottom-nav-item.nav-swipe {
    background: var(--primary);
    color: #fff;
    height: 50px;
    border-radius: 15px;
    margin: 0 5px;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.3);
}

.bottom-nav-item.nav-swipe svg {
    stroke: #fff;
}

.bottom-nav-item.nav-swipe:hover {
    background: var(--primary-dark);
    color: #fff;
}

@media (max-width: 480px) {
    .bottom-nav {
        bottom: 15px;
        width: calc(100% - 30px);
        height: 60px;
    }
}

/* ====== Buttons ====== */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    transition: .2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-pill { background: var(--surface); color: var(--text); border: 1px solid var(--border); padding: 8px 16px; }
.btn-pill:hover, .btn-pill.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* ====== Navbar ====== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo { font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.logo-accent { color: var(--primary); }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-muted);
    transition: .2s;
}
.nav-links a:hover { background: var(--surface-2); color: var(--text); }
.nav-links a.active { background: var(--primary); color: #fff; }

.nav-toggle { display: none; background: none; border: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0; right: 0;
        background: var(--surface);
        flex-direction: column;
        padding: 12px 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }
    .nav-links.open { display: flex; }
}

/* ====== Hero / Home ====== */
.hero {
    text-align: center;
    padding: 40px 0 30px;
}
.hero h1 { font-size: clamp(28px, 5vw, 44px); font-weight: 800; line-height: 1.15; letter-spacing: -.5px; }
.hero h1 span { color: var(--primary); }
.hero p { color: var(--text-muted); margin-top: 12px; font-size: 17px; }

/* Category specific Hero */
.category-hero {
    padding: 30px 0 10px;
    text-align: left;
}
.category-hero h1 {
    font-size: 32px;
}
.category-hero p {
    max-width: 800px;
    margin-left: 0;
}

@media (max-width: 720px) {
    .category-hero { text-align: center; }
    .category-hero p { margin-left: auto; margin-right: auto; }
}

/* Hero stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 22px;
}
.hero-stats .stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 22px; box-shadow: var(--shadow); }
.hero-stats .stat b { display: block; font-size: 20px; font-weight: 800; }
.hero-stats .stat span { font-size: 13px; color: var(--text-muted); }

/* ====== Search ====== */
.search-section { max-width: 640px; margin: 28px auto 0; }
.search-form { display: flex; align-items: center; background: var(--surface); border: 2px solid var(--border); border-radius: 999px; padding: 6px 6px 6px 18px; box-shadow: var(--shadow); transition: border-color .2s; }
.search-form:focus-within { border-color: var(--primary); }
.search-form input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    background: transparent;
    color: var(--text);
}
.search-form button {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 14px;
}
.search-form button:hover { background: var(--primary-dark); }

.trending {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.trending-label { font-size: 13px; color: var(--text-muted); margin-right: 4px; }
.trending a { background: var(--surface-2); border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--text-muted); transition: .2s; }
.trending a:hover { background: var(--primary-soft); color: var(--primary); border-color: var(--primary); }

/* ====== Section titles ====== */
.section { margin-top: 48px; }
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.section-title { font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
.section-title .em { color: var(--primary); }
.section-link { font-size: 14px; font-weight: 600; color: var(--accent); }

/* ====== Creator cards ====== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.creator-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}
.creator-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.creator-avatar-wrap {
    position: relative;
    width: 100%;
    height: 300px;          /* ارتفاع ثابت بدل الاعتماد على aspect-ratio فحسب */
    background: linear-gradient(135deg, var(--accent-soft), var(--primary-soft));
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
}
.creator-avatar-wrap .initials { font-size: 48px; font-weight: 800; color: var(--primary); opacity: .5; }
.creator-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* ====== إعلان البانر الأفقي (فيديو متجاوب) ====== */
.ad-banner {
    position: relative;
    width: 100%;
    margin: 12px 0 24px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #000;
    /* إطار يظل بعرض كامل والارتفاع يحدد عبر الفيديو فقط ليتجاوب مع كل الشاشات */
}
.ad-banner a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    position: relative;
}
.ad-video {
    width: 100%;
    height: auto;                     /* لا يُقتصّ الجانبان: يعرض الفيديو كاملاً */
    display: block;
    object-fit: contain;
    max-height: 480px;                /* حد أقصى حتى لا يصبح طويلاً على الشاشات الكبيرة */
}

/* للشاشات المتوسطة والكبيرة: حد ارتفاع أقل ليظل بانراً مدمجاً */
@media (min-width: 640px) {
    .ad-video { max-height: 260px; }
}
.ad-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: rgba(0,0,0,.6);
    color: #fff;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

/* إعلان أقصر على شاشات الهاتف (فراغات أقل ليتناسب مع العرض الضيق) */
@media (max-width: 640px) {
    .ad-banner { margin: 8px 0 20px; }
    .ad-video { max-height: 220px; }
}

/* ====== بطاقة إعلان داخل شبكة البطاقات (نفس حجم بطاقة المنشئ) ====== */
.ad-card-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: transform .2s, box-shadow .2s;
}
.ad-card-link:hover { text-decoration: none; }
.ad-card .creator-avatar-wrap.ad-wrap {
    height: 300px;               /* نفس ارتفاع صورة بطاقة المنشئ */
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.ad-card .ad-video {
    width: auto;
    height: 100%;               /* يملأ ارتفاع البطاقة ويغطيها بالكامل */
    max-height: none;
    object-fit: cover;
    margin: auto;
}
.ad-badge-card {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

/* زر Watch Now داخل بطاقة الإعلان - يظهر كزر أنيق وليس span نصي */
.ad-card .btn-visit {
    display: block;
    width: 100%;
    text-align: center;
    border-radius: 999px;
    padding: 9px 12px;
    font-weight: 600;
    font-size: 13px;
    background: var(--primary);
    border: 1px solid var(--primary);
    color: #fff;
}
.ad-card .btn-visit:hover { filter: brightness(1.1); }
.ad-card .creator-name { display: block; }
.ad-card .creator-handle { display: block; }
.ad-card .creator-actions { width: 100%; }

/* على الشاشات الضيقة: استخدم تغطية عريضة تتناسب مع حجم الشبكة */
@media (max-width: 640px) {
    .ad-card .ad-video { width: 100%; height: auto; object-fit: contain; max-height: 300px; }
}

.status-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255,255,255,.95);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: var(--shadow);
}
.status-badge::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

.price-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: var(--shadow);
}
.price-badge.free { background: var(--success); }

.creator-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.creator-name { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; height: 1.4em; }
.creator-handle { font-size: 13px; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; height: 1.3em; }
.creator-bio {
    font-size: 13.5px;
    line-height: 1.35;
    color: var(--text-muted);
    margin-top: 8px;
    height: 2.7em;          /* سطرين ثابتين = توحيد ارتفاع البطاقات */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.creator-meta {
    display: flex;
    gap: 14px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
    height: 1.4em;
    white-space: nowrap;
}
.creator-meta b { color: var(--text); font-weight: 700; }
.card-tag {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--accent);
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    margin: 6px 6px 0 0;
}
.creator-actions {
    margin-top: auto;
    padding-top: 14px;
    display: flex;
    gap: 8px;
}
.creator-actions a {
    display: block;
    text-align: center;
    border-radius: 999px;
    padding: 9px 12px;
    font-weight: 600;
    font-size: 13px;
    transition: .2s;
    text-decoration: none;
    flex: 1;
}
.creator-actions .btn-profile {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: #fff;
}
.creator-actions .btn-profile:hover { filter: brightness(1.1); }
.creator-actions .btn-visit {
    background: transparent;
    border: 1px solid rgba(225, 29, 72, .55);
    color: var(--primary);
}
.creator-actions .btn-visit:hover { background: rgba(225, 29, 72, .12); }

/* روابط الاسم والوصف والبصريات داخل البطاقة */
.creator-name a,
.creator-bio a { color: inherit; text-decoration: none; }
.creator-name a:hover,
.creator-bio a:hover { color: var(--primary); }

/* ====== Ranking number ====== */
.rank-num {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(15,23,42,.75);
    color: #fff;
    border-radius: 10px;
    padding: 4px 10px;
    font-size: 14px;
    font-weight: 800;
    backdrop-filter: blur(4px);
    z-index: 2;
}

/* ====== Featured Badge & Card Style ====== */
.featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ffd700, #b8860b);
    color: #000;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.5);
    z-index: 2;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.creator-card.is-featured {
    border: 2px solid #ffd700;
    background: linear-gradient(180deg, var(--surface) 0%, rgba(255, 215, 0, 0.05) 100%);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.15), var(--shadow);
    transform: scale(1.02);
    position: relative;
    overflow: hidden;
}

.creator-card.is-featured::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transform: rotate(45deg);
    animation: gold-shimmer 4s infinite linear;
    pointer-events: none;
}

@keyframes gold-shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.creator-card.is-featured .creator-name a {
    color: #b8860b;
}

/* Featured in Swipe Mode */
.swipe-featured {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ffd700, #b8860b);
    color: #000;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 12px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* ====== Load more / infinite scroll ====== */
.load-more-wrap { text-align: center; margin-top: 36px; }
.loader { display: none; }
.loading .loader { display: inline-block; }
.loader-spinner { width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.load-more-sentinel { height: 1px; }
.more-creators-btn-wrap { text-align: center; margin-top: 32px; }
.more-creators-btn {
    display: inline-block;
    padding: 16px 44px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 999px;
    letter-spacing: .3px;
    box-shadow: 0 8px 30px rgba(var(--primary-rgb, 225, 29, 72), .35);
    transition: transform .2s ease, box-shadow .2s ease;
}
.more-creators-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(var(--primary-rgb, 225, 29, 72), .5); }

/* ====== Filters (Professional UI) ====== */
.filters-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin: 24px 0 32px;
    box-shadow: var(--shadow);
}
.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--surface-2);
}
.filters-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}
.filters-title span { color: var(--primary); }
.filters-reset {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    padding: 0;
    transition: .2s;
}
.filters-reset:hover { color: var(--primary); }

.filters-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
}
.filter-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.filter-group.selects {
    flex: 1;
    justify-content: flex-end;
}

/* Custom Checkbox Design */
.filter-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}
.filter-check:hover {
    border-color: var(--primary);
    color: var(--text);
    transform: translateY(-1px);
}
.filter-check input { display: none; }
.check-box {
    width: 18px;
    height: 18px;
    border: 2px solid var(--text-muted);
    border-radius: 4px;
    position: relative;
    transition: .2s;
}
.filter-check:has(input:checked),
.filter-check.active {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
}
.filter-check:has(input:checked) .check-box,
.filter-check.active .check-box {
    background: var(--primary);
    border-color: var(--primary);
}
.filter-check:has(input:checked) .check-box::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
}

/* Custom Select Design */
.select-wrapper {
    position: relative;
    min-width: 160px;
}
.filter-select {
    width: 100%;
    appearance: none;
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 10px 36px 10px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: .2s;
}
.select-wrapper::after {
    content: '▼';
    font-size: 10px;
    color: var(--text-muted);
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.filter-select:hover { border-color: var(--primary); }
.filter-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

@media (max-width: 900px) {
    .filter-group.selects { justify-content: flex-start; }
    .select-wrapper { flex: 1; min-width: calc(50% - 12px); }
}

@media (max-width: 600px) {
    .filters-container { padding: 16px; }
    .filters-groups { gap: 16px; }
    .select-wrapper { min-width: 100%; }
    .filter-group { width: 100%; }
}

.page-subtitle { color: var(--text-muted); font-size: 15px; margin-top: 4px; }
.page-subtitle time { font-weight: 600; color: var(--text); }

.count-line { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.count-line b { color: var(--text); }

/* ====== SEO article (best page) ====== */
.article {
    max-width: 900px;
    margin: 48px auto 0;
    padding: 0 20px;
}
.article h2 { font-size: 28px; font-weight: 800; margin: 40px 0 16px; letter-spacing: -0.5px; }
.article h3 { font-size: 22px; font-weight: 700; margin: 32px 0 12px; color: var(--primary); }
.article p { color: var(--text-muted); margin-bottom: 18px; font-size: 16px; line-height: 1.7; }
.article ul { margin: 16px 0 24px; }
.article ul li { padding: 6px 0 6px 28px; position: relative; color: var(--text-muted); font-size: 15.5px; }
.article ul li::before { content: '◆'; position: absolute; left: 0; color: var(--primary); font-size: 12px; top: 10px; }

/* FAQ Grid */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 32px 0;
}
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.faq-item h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}
.faq-item p {
    font-size: 14.5px;
    margin-bottom: 0;
}

/* ====== Creator profile page ====== */
.back-link {
    display: inline-block;
    margin: 18px 0 8px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    transition: .2s;
}
.back-link:hover { opacity: .75; }

.profile-hero {
    display: flex;
    gap: 28px;
    align-items: center;
    background: var(--accent-soft);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
    flex-wrap: wrap;
}
.profile-avatar {
    position: relative;
    width: 300px; height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
}
.profile-avatar .initials { font-size: 64px; font-weight: 800; color: var(--primary); opacity: .5; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-stats {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    display: flex;
    justify-content: space-around;
    gap: 6px;
    padding: 12px 8px;
    background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,0));
    backdrop-filter: blur(2px);
}
.astat {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    text-align: center;
    min-width: 0;
}
.astat b { font-size: 13px; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 90px; }
.astat em { font-size: 10px; font-style: normal; opacity: .75; text-transform: uppercase; letter-spacing: .5px; }
.profile-avatar .avatar-stats [data-empty="country"] { display: none; }
.profile-info { flex: 1; min-width: 260px; }
.profile-info .handle { color: var(--text-muted); font-size: 15px; }
.profile-info h1 { font-size: 30px; font-weight: 800; margin-top: 4px; }
.profile-actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.profile-actions .btn-ghost {
    background: rgba(255,255,255,.6);
    color: var(--primary);
    border: 1.5px solid rgba(225, 29, 72, .4);
    backdrop-filter: blur(4px);
}
.profile-actions .btn-ghost:hover {
    background: #fff;
    border-color: var(--primary);
    transform: translateY(-1px);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin-top: 24px;
}
.profile-stats .stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; text-align: center; box-shadow: var(--shadow); }
.profile-stats .stat-card b { font-size: 22px; font-weight: 800; display: block; }
.profile-stats .stat-card span { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }

.profile-bio {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 24px;
    box-shadow: var(--shadow);
}
.profile-bio h2 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.profile-bio p { color: var(--text-muted); white-space: pre-line; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags .tag { background: var(--accent-soft); color: var(--accent); padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }

/* Why subscribe */
.why-subscribe { margin-top: 40px; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 16px; margin-top: 16px; }
.why-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.why-card .icon { font-size: 26px; }
.why-card h3 { font-size: 15px; font-weight: 700; margin: 10px 0 6px; }
.why-card p { font-size: 13px; color: var(--text-muted); }

/* Related creators */
.related { margin-top: 48px; }

/* ====== Age modal ====== */
.age-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.6);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}
.age-modal {
    background: var(--surface);
    max-width: 420px;
    width: 100%;
    border-radius: var(--radius);
    padding: 36px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.age-modal h2 { font-size: 20px; font-weight: 800; }
.age-modal p { color: var(--text-muted); margin: 12px 0 20px; font-size: 14px; }
.age-modal-buttons { display: flex; gap: 12px; justify-content: center; }

/* ====== Empty state ====== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .big { font-size: 48px; margin-bottom: 12px; }

/* ====== Footer ====== */
.footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 40px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 48px 20px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; flex-wrap: wrap; }
.footer-brand p { color: var(--text-muted); font-size: 13px; margin-top: 10px; max-width: 260px; }
.footer-links { display: flex; justify-content: flex-end; gap: 48px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-bottom: 12px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { font-size: 14px; color: var(--text); }
.footer-col ul a:hover { color: var(--primary); }
.footer-bottom { max-width: var(--maxw); margin: 0 auto; padding: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-muted); }
@media (max-width: 720px) {
    .footer-inner { grid-template-columns: 1fr; }
    .footer-links { justify-content: flex-start; gap: 32px; }
    .profile-hero { padding: 20px; flex-direction: column; align-items: stretch; }
    .profile-avatar {
        width: 100%;
        height: 420px;
        align-self: center;
    }
    .profile-info { text-align: center; }
    .profile-info .status-badge { margin-left: auto; margin-right: auto; }
    .profile-actions { justify-content: center; }
    .profile-info h1 { font-size: 24px; }
    .avatar-stats { padding: 14px 10px; }
    .astat b { font-size: 14px; }
    .astat em { font-size: 11px; }
}

/* ====== Browse by Category & Country ====== */
.browse-section { padding-top: 8px; }
.browse-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: start;
}
.discovery-hub {
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
.discovery-hub .browse-block {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.discovery-hub .browse-title {
    color: #fff;
    font-size: 18px;
    margin-bottom: 16px;
}
.discovery-hub .browse-chip {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.discovery-hub .browse-chip:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}
.discovery-hub .chip-count {
    background: rgba(255, 255, 255, 0.2);
    color: #eee;
}

@media (max-width: 768px) {
    .discovery-hub .browse-grid {
        grid-template-columns: 1fr;
    }
    .hero {
        padding: 60px 20px;
    }
}
.browse-title { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.browse-subtitle { color: var(--text-muted); font-size: 13.5px; margin-bottom: 18px; }
.browse-chips {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}
.browse-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 16px 8px;
    font-size: 13.5px;
    font-weight: 700;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
    min-height: 100px;
}
.browse-chip:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary);
}
.chip-flag {
    width: 28px;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.browse-chip .chip-name {
    display: block;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.browse-chip .chip-count {
    background: var(--surface-2);
    color: var(--text-muted);
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
}
.browse-chip:hover .chip-count {
    background: var(--primary);
    color: #fff;
}
.browse-more { margin-top: 18px; }
@media (max-width: 900px) {
    .browse-grid { grid-template-columns: 1fr; }
}

/* ====== Toast / misc ====== */
.hidden { display: none !important; }

/* ====== Floating subscribe bar (mobile only) ====== */
.float-bar {
    display: none;
}
@media (max-width: 720px) {
    .float-bar {
        display: flex;
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 40px);
        max-width: 500px;
        bottom: 92px;
        z-index: 95;
        padding: 8px;
        background: rgba(255,255,255,.92);
        backdrop-filter: blur(10px);
        border: 1px solid var(--border);
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(0,0,0,.12);
    }
    .float-bar .btn {
        flex: 1;
        text-align: center;
        padding: 14px;
        font-size: 15px;
    }
    /* مساحة أسفل الصفحة كي لا يغطي الشريطان محتوى */
    .page-creator { padding-bottom: 175px; }
}

/* ====== Legal / DMCA page ====== */
.legal-page {
    max-width: 780px;
    margin: 0 auto;
}
.legal-hero {
    text-align: center;
    padding: 32px 0 16px;
}
.legal-hero h1 {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 800;
    letter-spacing: -.5px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.legal-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-top: 20px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(4px);
}
.legal-section h2 {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text);
}
.legal-section p {
    color: var(--text-muted);
    margin-bottom: 14px;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section strong { color: var(--primary); }
.legal-list {
    margin: 4px 0 16px;
}
.legal-list li {
    padding: 5px 0 5px 24px;
    position: relative;
    color: var(--text-muted);
}
.legal-list li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 10px;
    top: 10px;
}
.legal-contact {
    background: var(--primary-soft);
    border: 1px solid rgba(225, 29, 72, .35);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    text-align: center;
    margin-top: 8px;
    box-shadow: 0 0 20px rgba(225, 29, 72, .06);
}
.legal-contact a {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: .2s;
}
.legal-contact a:hover { color: var(--primary-dark); text-decoration: underline; }
.legal-warning {
    background: rgba(217, 119, 6, .08);
    border: 1px solid rgba(217, 119, 6, .35);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
}
.legal-warning p { color: #92400e; margin: 0; }
.legal-warning strong { color: var(--warning); }