:root {
    /* Indigo + Teal — trust & security */
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #6366f1;
    --primary-glow: rgba(79, 70, 229, 0.14);
    --accent: #0d9488;
    --accent-light: #14b8a6;
    --accent-dark: #0f766e;
    --accent-glow: rgba(13, 148, 136, 0.14);
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --surface-3: #f1f5f9;
    --glass: rgba(255, 255, 255, 0.72);
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 4px 16px rgb(79 70 229 / 0.05);
    --shadow-md: 0 8px 24px rgb(79 70 229 / 0.1), 0 2px 8px rgb(15 23 42 / 0.04);
    --shadow-lg: 0 20px 48px -12px rgb(79 70 229 / 0.22);
    --shadow-glow: 0 0 60px -12px rgba(79, 70, 229, 0.35);
    --radius: 0.875rem;
    --radius-lg: 1.125rem;
    --radius-xl: 1.375rem;
    --header-h: 4rem;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --star-trusted: #0d9488;
    --star-suspicious: #d97706;
    --star-fake: #dc2626;
}

* { -webkit-font-smoothing: antialiased; }

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: var(--surface-2);
    color: var(--text);
}

/* Background mesh */
.page-bg {
    background-color: #f8fafc;
    background-image:
        radial-gradient(ellipse 80% 50% at 0% -10%, rgba(99, 102, 241, 0.07) 0, transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(20, 184, 166, 0.05) 0, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 100%, rgba(99, 102, 241, 0.04) 0, transparent 50%);
    min-height: 100vh;
}

::selection {
    background: rgba(99, 102, 241, 0.2);
    color: var(--text);
}

/* Header — glass */
.site-header {
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid rgba(99, 102, 241, 0.08);
    box-shadow: 0 4px 24px -8px rgba(79, 70, 229, 0.12);
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}
.site-logo-img {
    width: 2.75rem;
    height: 2.75rem;
    transition: transform 0.2s;
}
.site-logo:hover .site-logo-img { transform: scale(1.05); }
.site-logo-tag {
    display: block;
    font-size: 0.625rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.01em;
}
.nav-link-active {
    color: var(--primary) !important;
    background: var(--primary-glow) !important;
    font-weight: 600;
}
.nav-link-admin { color: #dc2626 !important; }
.nav-link-admin:hover { background: #fef2f2 !important; }
.nav-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    color: var(--text-muted);
    transition: all 0.2s;
    border: none;
    background: transparent;
    cursor: pointer;
}
.nav-icon-btn:hover { background: var(--primary-glow); color: var(--primary); }
.btn-nav-ghost {
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid var(--border);
    background: white;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-nav-ghost:hover { border-color: var(--primary-light); color: var(--primary); }
.mobile-nav {
    border-top: 1px solid var(--border-light);
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
}
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--border-light);
    text-decoration: none;
    transition: all 0.15s;
}
.mobile-nav-link:hover { border-color: var(--primary-light); color: var(--primary); }
.mobile-nav-link-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white !important;
    border-color: transparent;
}

.logo-mark {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.logo-text {
    background: linear-gradient(135deg, #312e81 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}
.nav-link:hover { color: var(--primary); background: rgba(99, 102, 241, 0.06); }

.btn-nav-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: all 0.2s;
}
.btn-nav-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

/* User account menu */
.user-menu {
    position: relative;
}
.user-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem 0.35rem 0.35rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
    color: var(--text);
    font-weight: 600;
    font-size: 0.875rem;
}
.user-menu-trigger:hover,
.user-menu-trigger[aria-expanded="true"] {
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px var(--primary-glow);
}
.user-menu-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 0.625rem;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    flex-shrink: 0;
}
.user-menu-name {
    max-width: 7rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-menu-chevron {
    width: 1rem;
    height: 1rem;
    color: var(--text-muted);
    flex-shrink: 0;
}
.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 13rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 60;
    animation: fade-in 0.15s var(--ease-out);
}
.user-menu-head {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--surface-2);
}
.user-menu-head-name {
    display: block;
    font-weight: 800;
    font-size: 0.875rem;
    color: var(--text);
}
.user-menu-head-email {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}
.user-menu-items {
    padding: 0.35rem;
}
.user-menu-item {
    display: block;
    width: 100%;
    text-align: right;
    padding: 0.6rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}
.user-menu-item:hover {
    background: var(--primary-glow);
    color: var(--primary);
}
.user-menu-logout {
    padding: 0.35rem;
    border-top: 1px solid var(--border-light);
}
.user-menu-item-danger {
    color: #dc2626 !important;
}
.user-menu-item-danger:hover {
    background: #fef2f2 !important;
    color: #b91c1c !important;
}

.account-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}
.account-info-row:last-child { border-bottom: none; }

.footer-logout-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s;
}
.footer-logout-btn:hover { color: var(--primary); }

/* Telegram community promo */
.telegram-community {
    background: linear-gradient(145deg, #eef2ff, #ecfdf5);
    border: 1px solid rgba(99, 102, 241, 0.14);
    border-radius: var(--radius-xl);
    padding: 1.25rem 1.5rem;
}
.hero .telegram-community {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
}
.telegram-community-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.hero .telegram-community-label { color: rgba(255,255,255,0.65); }
.telegram-community-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}
@media (min-width: 480px) {
    .telegram-community-links { grid-template-columns: 1fr 1fr; }
}
.telegram-community-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    background: white;
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.hero .telegram-community-link {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.18);
    color: white;
}
.telegram-community-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.telegram-community-icon { font-size: 1.35rem; }
.telegram-community-title {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
}
.hero .telegram-community-title { color: rgba(255,255,255,0.7); }
.telegram-community-handle {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary);
}
.hero .telegram-community-handle { color: #99f6e4; }
.telegram-community-hint {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.telegram-community-compact .telegram-community-hint { display: none; }

/* Hero — indigo/teal gradient + grid glow */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(155deg, #0a0f1e 0%, #1e1b4b 32%, #312e81 58%, #134e4a 88%, #0f766e 100%);
    color: white;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse 70% 55% at 15% 45%, rgba(99, 102, 241, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 50% 45% at 85% 15%, rgba(20, 184, 166, 0.28) 0%, transparent 50%),
        radial-gradient(ellipse 40% 35% at 55% 95%, rgba(129, 140, 248, 0.2) 0%, transparent 45%);
    pointer-events: none;
    animation: hero-glow 8s ease-in-out infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(20, 184, 166, 0.12) 0%, transparent 70%);
    pointer-events: none;
    filter: blur(40px);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, black 25%, transparent 92%);
    pointer-events: none;
}

@keyframes hero-glow {
    0% { opacity: 0.85; }
    100% { opacity: 1; }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Search box */
.search-box {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-xl);
    padding: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: stretch;
}

.search-box select,
.search-box input {
    border: none;
    background: #f1f5f9;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    color: var(--text);
    outline: none;
    transition: box-shadow 0.2s;
}
.search-box select:focus,
.search-box input:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
    background: white;
}
.search-box select { min-width: 130px; font-weight: 600; }
.search-box input { flex: 1; min-width: 200px; }

.btn-search {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-dark) 100%);
    color: white;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}
.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.5);
}

.search-box-compact {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0.375rem;
    box-shadow: var(--shadow);
}

/* Cards */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    transition: border-color 0.25s var(--ease-out), box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.card-glow {
    border-color: rgba(99, 102, 241, 0.12);
    box-shadow: var(--shadow), 0 0 0 1px rgba(99, 102, 241, 0.04);
}

a.card,
.card-interactive,
.card-hover {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
a.card:hover,
.card-interactive:hover,
.card-hover:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(79, 70, 229, 0.25);
    transform: translateY(-3px);
}
a.card:active,
.card-interactive:active { transform: scale(0.995); }

.card-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.feature-card {
    padding: 1.75rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.25s;
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover { transform: translateY(-4px); }

.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

/* Item cards */
.item-card {
    padding: 1.25rem;
    display: block;
    text-decoration: none;
    color: inherit;
}
.item-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.score-pill {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
}

/* Score ring */
.score-ring {
    background: conic-gradient(var(--ring-color) calc(var(--score) * 3.6deg), #e2e8f0 0deg);
    border-radius: 50%;
    padding: 6px;
    box-shadow: 0 0 30px color-mix(in srgb, var(--ring-color) 30%, transparent);
}

.score-ring-inner {
    background: white;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.06);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}
.badge-low { background: #d1fae5; color: #047857; }
.badge-medium { background: #fef3c7; color: #b45309; }
.badge-high { background: #ffedd5; color: #c2410c; }
.badge-critical { background: #fee2e2; color: #b91c1c; }
.badge-type {
    background: linear-gradient(135deg, #eef2ff 0%, #ecfdf5 100%);
    color: #4338ca;
    border: 1px solid rgba(99, 102, 241, 0.14);
    box-shadow: 0 1px 4px rgba(79, 70, 229, 0.06);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 45%, var(--accent-dark) 100%);
    color: white;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4), 0 0 20px rgba(13, 148, 136, 0.15);
}

.btn-secondary {
    background: white;
    color: var(--text);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.25s var(--ease-out);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-secondary:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
    transform: translateY(-1px);
}

.text-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.15s;
}
.text-link:hover { color: var(--accent-dark); text-decoration: underline; }

.btn-vote {
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-vote:hover { transform: scale(1.03); }

/* Forms */
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    background: white;
    transition: all 0.2s;
    outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--accent-light);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12), 0 0 0 1px rgba(13, 148, 136, 0.2);
}

/* Auth card */
.auth-wrap {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
}

.auth-card h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
}
.alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; }
.alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #b45309; }
.alert-danger { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; }

/* Vote stats */
.vote-stat {
    text-align: center;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    transition: transform 0.2s;
}
.vote-stat:hover { transform: scale(1.02); }
.vote-stat-trusted { background: linear-gradient(135deg, #ecfdf5, #d1fae5); border-color: #a7f3d0; }
.vote-stat-suspicious { background: linear-gradient(135deg, #fffbeb, #fef3c7); border-color: #fde68a; }
.vote-stat-fake { background: linear-gradient(135deg, #fef2f2, #fee2e2); border-color: #fecaca; }

/* Factor list */
.factor-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
}
.factor-positive { background: #f0fdf4; border-right: 3px solid #22c55e; }
.factor-negative { background: #fef2f2; border-right: 3px solid #ef4444; }
.factor-warning { background: #fffbeb; border-right: 3px solid #f59e0b; }
.factor-neutral { background: #f8fafc; border-right: 3px solid #94a3b8; }

/* Review thread */
.review-card { padding: 1.25rem 0; border-bottom: 1px solid #f1f5f9; }
.review-card:last-child { border-bottom: none; }
.reply-thread {
    margin-top: 0.75rem;
    margin-right: 1rem;
    padding-right: 1rem;
    border-right: 2px solid #e0e7ff;
}
.reply-bubble {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
}

/* Section title */
.section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.section-title::before {
    content: '';
    width: 4px;
    height: 1.25rem;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    border-radius: 2px;
}

/* Footer */
.site-footer {
    background: linear-gradient(to top, #f1f5f9, white);
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}

.site-footer-pro {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}
.footer-heading {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Stats row on dashboard */
.stat-card {
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    background: white;
    border: 1px solid var(--border);
}

/* Notification bell */
.notif-badge {
    position: absolute;
    top: -4px;
    left: -4px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 1.1rem;
    height: 1.1rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Animations */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
.animate-fade-up { animation: fade-up 0.65s var(--ease-out) forwards; }
.animate-fade-in { animation: fade-in 0.5s var(--ease-out) forwards; }
.delay-1 { animation-delay: 0.08s; opacity: 0; }
.delay-2 { animation-delay: 0.16s; opacity: 0; }
.delay-3 { animation-delay: 0.24s; opacity: 0; }
.main-content { animation: fade-in 0.4s var(--ease-out); }

/* Page container */
.container-main { max-width: 88rem; margin: 0 auto; padding: 0 1.25rem; }

/* Platform branding on item pages */
.platform-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}
@media (min-width: 1024px) {
    .platform-brand { flex-direction: row; text-align: right; align-items: flex-start; }
}
.platform-brand-logo-wrap {
    width: 5rem;
    height: 5rem;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
    background: white;
    border: 2px solid var(--border);
}
.platform-telegram .platform-brand-logo-wrap { border-color: #229ED9; background: #e8f6fc; }
.platform-instagram .platform-brand-logo-wrap { border-color: #D6249F; background: #fdf2f8; }
.platform-website .platform-brand-logo-wrap { border-color: var(--primary-light); }
.platform-brand-logo { width: 100%; height: 100%; object-fit: cover; }
.platform-brand-type {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}
.platform-brand-link {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.6rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.platform-telegram .platform-brand-link { background: #229ED9; color: white; }
.platform-instagram .platform-brand-link { background: linear-gradient(135deg, #FD5949, #D6249F); color: white; }
.platform-website .platform-brand-link { background: var(--primary); color: white; }
.platform-brand-link:hover { transform: translateY(-1px); opacity: 0.95; }

/* Iran map grid */
.iran-map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
}
.iran-province-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
    min-height: 3.5rem;
}
.iran-province-card:hover {
    background: linear-gradient(135deg, #c7d2fe, #e0e7ff);
    border-color: var(--primary-light);
    transform: scale(1.03);
}
.iran-province-count {
    font-size: 0.65rem;
    color: var(--primary);
    margin-top: 0.15rem;
}

.prose-blog img { max-width: 100%; border-radius: var(--radius); margin: 1rem 0; }

/* Profession rankings */
.ranking-cta { transition: all 0.25s; text-decoration: none; color: inherit; }
.ranking-cta-best:hover { border-color: #10b981; box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15); }
.ranking-cta-worst:hover { border-color: #ef4444; box-shadow: 0 8px 24px rgba(239, 68, 68, 0.15); }

.ranking-list-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}
.ranking-row-best { border-right: 4px solid #10b981; }
.ranking-row-worst { border-right: 4px solid #ef4444; }
.ranking-list-row:hover { transform: translateX(-2px); box-shadow: var(--shadow-lg); }
.ranking-medal {
    font-size: 1.5rem;
    font-weight: 900;
    width: 2.5rem;
    text-align: center;
    flex-shrink: 0;
    color: var(--text-muted);
}

/* Report hero card */
.report-hero {
    padding: 2rem;
    background: linear-gradient(135deg, white 0%, #f8fafc 100%);
}

/* Detail row */
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
}
.detail-row:last-child { border-bottom: none; }

/* Categories */
.category-card {
    padding: 1.75rem;
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}
.category-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 4px;
    opacity: 0.8;
}
.category-emerald::before { background: linear-gradient(90deg, #10b981, #14b8a6); }
.category-amber::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.category-orange::before { background: linear-gradient(90deg, #f97316, #fb923c); }
.category-red::before { background: linear-gradient(90deg, #ef4444, #f87171); }
.category-indigo::before { background: linear-gradient(90deg, #6366f1, #818cf8); }

.category-card:hover { transform: translateY(-3px); border-color: var(--primary-light); }
.category-card-sm { padding: 1.25rem; display: block; text-decoration: none; color: inherit; transition: all 0.2s; }
.category-card-sm:hover { transform: translateY(-2px); border-color: var(--primary-light); }

.category-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.category-icon-lg {
    width: 4rem;
    height: 4rem;
    border-radius: 1.25rem;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

/* Experience reporting */
.experience-cta {
    background: linear-gradient(135deg, #fef2f2 0%, #fff 40%, #eff6ff 100%);
    border-color: #fecaca;
}
.experience-card { padding: 1.5rem; }
.experience-card-sm { padding: 1.25rem; }

.stat-highlight {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
    transition: transform 0.2s;
}
.stat-highlight:hover { transform: scale(1.03); }

/* Rankings */
.ranking-card { padding: 1.5rem; }
.ranking-worst { border-top: 3px solid #ef4444; }
.ranking-best { border-top: 3px solid #10b981; }

.ranking-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}
.ranking-row:hover { background: #f8fafc; }
.ranking-num {
    font-size: 1.25rem;
    font-weight: 900;
    width: 1.5rem;
    text-align: center;
    flex-shrink: 0;
}

/* Blog */
.blog-card {
    padding: 0;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
    overflow: hidden;
}
.blog-card-has-image .p-5 { padding: 1.25rem; }
.blog-card:hover { border-color: var(--primary-light); transform: translateY(-2px); }

.blog-card-image {
    width: 100%;
    height: 11rem;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
}
.blog-card-sm {
    padding: 0;
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}
.blog-card-sm:hover { border-color: var(--primary-light); transform: translateY(-2px); }

.blog-card-image-sm {
    width: 100%;
    height: 8rem;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
}

.blog-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.blog-icon-sm {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.prose-blog h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 1.5rem 0 0.75rem;
    color: var(--text);
}
.prose-blog p, .prose-blog li {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #475569;
}
.prose-blog ul, .prose-blog ol {
    margin: 0.75rem 0;
    padding-right: 1.5rem;
}
.prose-blog li { margin-bottom: 0.5rem; }
.prose-blog strong { color: var(--text); font-weight: 700; }

/* Coming soon */
.coming-soon-card {
    padding: 1.5rem;
    position: relative;
    opacity: 0.92;
    background: linear-gradient(135deg, white, #f8fafc);
}
.coming-soon-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Contributors / Referrers program ── */
.contrib-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #0f0a1a 0%, #1a1035 35%, #2d1b4e 65%, #1a3a35 100%);
    color: white;
    border-radius: 0 0 2rem 2rem;
    margin: 0 -1.25rem;
    padding: 3rem 1.25rem 4rem;
}
.contrib-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 40%, rgba(251, 191, 36, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 85% 25%, rgba(99, 102, 241, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 50% 90%, rgba(20, 184, 166, 0.12) 0%, transparent 50%);
    pointer-events: none;
}
.contrib-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, black 20%, transparent 100%);
    pointer-events: none;
}
.contrib-hero-inner { position: relative; z-index: 1; max-width: 88rem; margin: 0 auto; }

.contrib-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fcd34d;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.contrib-prize-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 2rem;
}
@media (min-width: 640px) {
    .contrib-prize-grid { gap: 1rem; margin-top: 0; }
}

.contrib-prize-card {
    position: relative;
    padding: 1.25rem 1rem;
    border-radius: 1.25rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    transition: transform 0.25s, box-shadow 0.25s;
}
.contrib-prize-card:hover { transform: translateY(-4px); }
.contrib-prize-gold {
    background: linear-gradient(160deg, rgba(251,191,36,0.2), rgba(180,83,9,0.15));
    border-color: rgba(251,191,36,0.35);
    box-shadow: 0 8px 32px rgba(251,191,36,0.15);
}
.contrib-prize-silver {
    background: linear-gradient(160deg, rgba(203,213,225,0.15), rgba(100,116,139,0.1));
    border-color: rgba(203,213,225,0.25);
}
.contrib-prize-bronze {
    background: linear-gradient(160deg, rgba(217,119,6,0.15), rgba(146,64,14,0.1));
    border-color: rgba(217,119,6,0.25);
}
.contrib-prize-amount {
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1;
    margin-top: 0.5rem;
}
.contrib-prize-gold .contrib-prize-amount { color: #fbbf24; }
.contrib-prize-silver .contrib-prize-amount { color: #e2e8f0; }
.contrib-prize-bronze .contrib-prize-amount { color: #fb923c; }

.contrib-period-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: -2rem auto 2rem;
    position: relative;
    z-index: 2;
    max-width: 88rem;
    padding: 0 1.25rem;
}
.contrib-period-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 0.5rem 0.75rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.contrib-period-card select {
    border: none;
    background: #f1f5f9;
    border-radius: 0.75rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}
.contrib-period-card select:focus { box-shadow: 0 0 0 2px rgba(99,102,241,0.25); }

.contrib-my-rank {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    border: 1px solid #c7d2fe;
    border-radius: var(--radius-xl);
    padding: 0.875rem 1.25rem;
    box-shadow: var(--shadow);
}
.contrib-my-rank-num {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}
.contrib-my-rank-score {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Winners podium */
.contrib-winners-section {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 50%, white 100%);
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}
.contrib-winners-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(16,185,129,0.1), transparent 70%);
    pointer-events: none;
}
.contrib-winner-card {
    position: relative;
    text-align: center;
    padding: 1.75rem 1.25rem;
    border-radius: 1.25rem;
    background: white;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform 0.25s;
}
.contrib-winner-card:hover { transform: translateY(-3px); }
.contrib-winner-card.is-first {
    border-color: #fcd34d;
    box-shadow: 0 12px 40px rgba(251,191,36,0.2);
    background: linear-gradient(180deg, #fffbeb, white);
}
.contrib-winner-card.is-second { border-color: #cbd5e1; }
.contrib-winner-card.is-third { border-color: #fdba74; }
.contrib-winner-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin: 0 auto 0.75rem;
}
.contrib-winner-prize {
    font-size: 1.5rem;
    font-weight: 900;
    margin-top: 0.5rem;
}
.contrib-winner-card.is-first .contrib-winner-prize { color: #d97706; }
.contrib-winner-card.is-second .contrib-winner-prize { color: #64748b; }
.contrib-winner-card.is-third .contrib-winner-prize { color: #ea580c; }

/* Leaderboard podium top 3 */
.contrib-podium {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 0.75rem;
    align-items: end;
    margin-bottom: 1.5rem;
}
@media (max-width: 639px) {
    .contrib-podium { grid-template-columns: 1fr; align-items: stretch; }
}
.contrib-podium-slot {
    text-align: center;
    padding: 1.5rem 1rem 1.25rem;
    border-radius: 1.25rem;
    border: 1px solid var(--border);
    background: white;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}
.contrib-podium-slot:hover { transform: translateY(-2px); }
.contrib-podium-first {
    padding-bottom: 2rem;
    border-color: #fcd34d;
    background: linear-gradient(180deg, #fffbeb 0%, white 60%);
    box-shadow: 0 16px 40px rgba(251,191,36,0.15);
}
.contrib-podium-second { border-color: #e2e8f0; background: linear-gradient(180deg, #f8fafc, white); }
.contrib-podium-third { border-color: #fed7aa; background: linear-gradient(180deg, #fff7ed, white); }
.contrib-podium-rank {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.contrib-podium-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
    font-size: 1.25rem;
    margin: 0 auto 0.75rem;
}
.contrib-podium-score {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}
.contrib-podium-first .contrib-podium-score { color: #d97706; }
.contrib-podium-second .contrib-podium-score { color: #64748b; }
.contrib-podium-third .contrib-podium-score { color: #ea580c; }

/* Leaderboard rows */
.contrib-leader-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.2s;
}
.contrib-leader-row:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
    transform: translateX(-2px);
}
.contrib-leader-rank {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-shrink: 0;
}
.contrib-leader-avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}
.contrib-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    background: #f1f5f9;
    color: var(--text-muted);
}
.contrib-score-badge {
    min-width: 3.5rem;
    text-align: center;
    padding: 0.5rem 0.75rem;
    border-radius: 0.875rem;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 1px solid #a7f3d0;
}
.contrib-score-badge-num {
    font-size: 1.35rem;
    font-weight: 900;
    color: #059669;
    line-height: 1;
}

/* Sidebar panels */
.contrib-sidebar-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}
.contrib-sidebar-card h3 {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.contrib-rule-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.contrib-rule-item:last-child { border-bottom: none; }
.contrib-rule-icon {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.5rem;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.contrib-score-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.85rem;
}
.contrib-score-row:last-child { border-bottom: none; }
.contrib-score-val {
    font-weight: 800;
    color: var(--primary);
    background: #eef2ff;
    padding: 0.15rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

.contrib-action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-lg);
    background: #f8fafc;
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
}
.contrib-action-btn:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: var(--primary);
    transform: translateX(-2px);
}
.contrib-action-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    background: white;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.contrib-pending-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fde68a;
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
}
.contrib-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border: 2px dashed var(--border);
    border-radius: var(--radius-xl);
}
.contrib-empty-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.25rem;
}

/* Home promo strip */
.contrib-home-promo {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 2rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #0f0a1a 0%, #2d1b4e 50%, #1a3a35 100%);
    color: white;
    text-decoration: none;
    border: 1px solid rgba(251,191,36,0.2);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.contrib-home-promo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 50%, rgba(251,191,36,0.12), transparent 50%);
    pointer-events: none;
}
.contrib-home-promo:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(99,102,241,0.2);
    border-color: rgba(251,191,36,0.4);
}
@media (min-width: 640px) {
    .contrib-home-promo { flex-direction: row; align-items: center; justify-content: space-between; }
}
.contrib-home-promo-prizes {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}
.contrib-home-promo-prize {
    padding: 0.5rem 0.85rem;
    border-radius: 0.75rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}
.contrib-home-promo-prize strong { color: #fbbf24; }

.contrib-past-draw {
    padding: 0.875rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.contrib-past-draw:last-child { border-bottom: none; }

/* ── Site-wide v2 utilities ── */

/* Page shell */
.page-shell { padding: 2rem 0 4rem; }
@media (min-width: 640px) { .page-shell { padding: 2.5rem 0 5rem; } }

/* Page header */
.page-header { margin-bottom: 2rem; }
.page-header-center { text-align: center; }
.page-header-center .page-header-row { justify-content: center; }
.page-header-center .page-header-sub { margin-inline: auto; }
.page-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.page-breadcrumb a { color: var(--primary); text-decoration: none; font-weight: 500; }
.page-breadcrumb a:hover { text-decoration: underline; }
.page-breadcrumb-sep { opacity: 0.4; }
.page-header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}
.page-header-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-glow);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 0.5rem;
}
.page-header-title {
    font-size: 1.875rem;
    font-weight: 900;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: -0.02em;
}
@media (min-width: 640px) { .page-header-title { font-size: 2.25rem; } }
.page-header-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    max-width: 36rem;
    line-height: 1.6;
}
.page-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Section head (home + listings) */
.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}
.section-head-center { text-align: center; justify-content: center; flex-direction: column; align-items: center; }
.section-head-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.section-head-title::before {
    content: '';
    width: 4px;
    height: 1.35rem;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    border-radius: 2px;
    flex-shrink: 0;
}
.section-head-center .section-head-title::before { display: none; }
.section-head-sub { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.35rem; }
.section-head-link {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
}
.section-head-link:hover { text-decoration: underline; }

/* Flash toasts */
.flash-toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}
.flash-icon {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    flex-shrink: 0;
}
.flash-success {
    background: linear-gradient(135deg, #ecfdf5, #fff);
    border: 1px solid #a7f3d0;
    color: #047857;
}
.flash-success .flash-icon { background: #d1fae5; color: #059669; }
.flash-error {
    background: linear-gradient(135deg, #fef2f2, #fff);
    border: 1px solid #fecaca;
    color: #b91c1c;
}
.flash-error .flash-icon { background: #fee2e2; color: #dc2626; }

/* Dashboard */
.dash-hero {
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 50%, #ecfdf5 100%);
    border: 1px solid #e0e7ff;
    border-radius: var(--radius-xl);
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}
.dash-hero-greeting { font-size: 1.75rem; font-weight: 900; letter-spacing: -0.02em; }
.dash-hero-name { color: var(--primary); }
.dash-action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
    margin-bottom: 2.5rem;
}
@media (min-width: 1024px) { .dash-action-grid { grid-template-columns: repeat(3, 1fr); } }
.dash-action-card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
.dash-action-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.2s;
}
.dash-action-card:hover {
    border-color: rgba(99,102,241,0.25);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.dash-action-card:hover::after { opacity: 1; }
.dash-action-card-featured {
    background: linear-gradient(135deg, #fffbeb, #fff);
    border-color: #fde68a;
}
.dash-action-card-featured::after {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    opacity: 1;
}
.dash-action-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.875rem;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}
.dash-action-title { font-weight: 800; font-size: 0.95rem; }
.dash-action-desc { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; line-height: 1.4; }
.dash-panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.dash-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--surface-2);
}
.dash-panel-title { font-weight: 800; font-size: 0.95rem; }
.dash-panel-link { font-size: 0.8rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.dash-panel-link:hover { text-decoration: underline; }
.dash-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.dash-list-item:last-child { border-bottom: none; }
.dash-list-item:hover { background: var(--primary-glow); }

/* Auth split layout */
.auth-split {
    min-height: calc(100vh - var(--header-h));
    display: grid;
    grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
    .auth-split { grid-template-columns: 1fr 1fr; }
}
.auth-split-brand {
    display: none;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #0c1222 0%, #1e1b4b 45%, #312e81 75%, #0f766e 100%);
    color: white;
    padding: 3rem;
    flex-direction: column;
    justify-content: center;
}
@media (min-width: 1024px) {
    .auth-split-brand { display: flex; }
}
.auth-split-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 30% 40%, rgba(99,102,241,0.3), transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(20,184,166,0.2), transparent 40%);
    pointer-events: none;
}
.auth-split-brand-inner { position: relative; z-index: 1; max-width: 24rem; }
.auth-split-form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
}
.auth-card-v2 {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}
.auth-card-v2 h1 { font-size: 1.65rem; font-weight: 900; letter-spacing: -0.02em; }

/* Form card (inner pages) */
.form-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.75rem 2rem;
    box-shadow: var(--shadow);
    max-width: 42rem;
}
.form-card-wide { max-width: 48rem; }

/* List panel */
.list-panel { background: white; border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow); }
.list-panel-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.list-panel-row:last-child { border-bottom: none; }
.list-panel-row:hover { background: var(--primary-glow); }

/* Pagination override */
nav[role="navigation"] span, nav[role="navigation"] a {
    border-radius: 0.5rem !important;
}

/* Admin shell polish */
.admin-shell-header {
    background: linear-gradient(135deg, #fef2f2, #fff);
    border: 1px solid #fecaca;
    border-radius: var(--radius-xl);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}
.admin-nav-pill {
    padding: 0.4rem 0.85rem;
    border-radius: 0.625rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    background: white;
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}
.admin-nav-pill:hover { border-color: #fca5a5; color: #dc2626; background: #fff; }
.admin-nav-pill-active {
    background: #dc2626 !important;
    color: white !important;
    border-color: #dc2626 !important;
}

/* Admin sidebar layout */
.admin-layout { max-width: 1400px; }
.admin-layout-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}
.admin-sidebar {
    position: sticky;
    top: 1rem;
    background: linear-gradient(180deg, #fef2f2, #fff);
    border: 1px solid #fecaca;
    border-radius: var(--radius-xl);
    padding: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}
.admin-sidebar-head {
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #fecaca;
}
.admin-sidebar-group { margin-bottom: 1rem; }
.admin-sidebar-group-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #b91c1c;
    padding: 0 0.5rem;
    margin-bottom: 0.35rem;
}
.admin-sidebar-list { list-style: none; padding: 0; margin: 0; }
.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.55rem;
    border-radius: 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.15s;
}
.admin-sidebar-link:hover {
    background: #fff;
    color: #dc2626;
    border-color: #fca5a5;
}
.admin-sidebar-link-active {
    background: #dc2626 !important;
    color: #fff !important;
}
.admin-sidebar-icon { width: 1.1rem; text-align: center; flex-shrink: 0; }
.admin-sidebar-text { flex: 1; min-width: 0; }
.admin-sidebar-badge {
    font-size: 0.65rem;
    font-weight: 800;
    background: rgba(0,0,0,0.08);
    color: inherit;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    flex-shrink: 0;
}
.admin-sidebar-link-active .admin-sidebar-badge {
    background: rgba(255,255,255,0.25);
}
.admin-main { min-width: 0; }
.admin-page-header { margin-bottom: 1.25rem; }
.admin-page-title { font-size: 1.15rem; font-weight: 900; color: #1e293b; }
.admin-page-desc { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }
.admin-stat-card {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s;
}
.admin-subtab {
    display: inline-flex;
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    background: #fff;
    border: 1px solid var(--border);
    text-decoration: none;
}
.admin-subtab-active {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
}
@media (max-width: 1024px) {
    .admin-layout-grid { grid-template-columns: 1fr; }
    .admin-sidebar {
        position: static;
        max-height: none;
    }
}

/* ── Star icons & voting ── */
.star-row {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    line-height: 1;
}
.star-row-xs .star-icon { width: 0.75rem; height: 0.75rem; }
.star-row-sm .star-icon { width: 0.875rem; height: 0.875rem; }
.star-row-md .star-icon { width: 1rem; height: 1rem; }
.star-row-lg .star-icon { width: 1.35rem; height: 1.35rem; }
.star-row-xl .star-icon { width: 1.65rem; height: 1.65rem; }

.star-icon {
    flex-shrink: 0;
    transition: transform 0.2s var(--ease-out), color 0.2s;
}
.star-icon.is-empty { color: #e2e8f0; }
.star-row.tone-trusted .star-icon.is-filled { color: var(--star-trusted); }
.star-row.tone-suspicious .star-icon.is-filled { color: var(--star-suspicious); }
.star-row.tone-fake .star-icon.is-filled { color: var(--star-fake); }

/* Inline vote stats (listings, rankings) */
.vote-stat-inline-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
}
.vote-stat-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
}
.vote-stat-inline-num {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.vote-stat-inline-trusted .vote-stat-inline-num { color: var(--star-trusted); }
.vote-stat-inline-fake .vote-stat-inline-num { color: var(--star-fake); }
.vote-stat-inline-label { color: var(--text-muted); font-weight: 600; }

/* Star vote panel */
.star-vote-panel {
    margin-top: 0.5rem;
}
.star-vote-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.star-vote-stats-2 {
    grid-template-columns: repeat(2, 1fr);
}
.star-vote-stat {
    text-align: center;
    padding: 1rem 0.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.star-vote-stat:hover {
    transform: translateY(-2px);
}
.star-vote-stat-trusted {
    background: linear-gradient(145deg, #ecfdf5, #d1fae5);
    border-color: rgba(13, 148, 136, 0.2);
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.08);
}
.star-vote-stat-suspicious {
    background: linear-gradient(145deg, #fffbeb, #fef3c7);
    border-color: rgba(217, 119, 6, 0.2);
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.08);
}
.star-vote-stat-fake {
    background: linear-gradient(145deg, #fef2f2, #fee2e2);
    border-color: rgba(220, 38, 38, 0.15);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.08);
}
.star-vote-stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.star-vote-stat-trusted .star-vote-stat-num { color: #0f766e; }
.star-vote-stat-suspicious .star-vote-stat-num { color: #b45309; }
.star-vote-stat-fake .star-vote-stat-num { color: #b91c1c; }
.star-vote-stat-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    margin: 0.2rem 0 0.35rem;
}
.star-vote-prompt {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
    text-align: center;
}
.star-vote-prompt strong { color: var(--text); }
.star-vote-hint {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.2rem;
}
@media (min-width: 640px) {
    .star-vote-hint { display: inline; margin-top: 0; }
}

.review-edit-details {
    display: inline-block;
}
.review-edit-toggle {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.review-edit-toggle::-webkit-details-marker { display: none; }
.review-edit-toggle:hover { text-decoration: underline; }
.review-edit-form {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem;
    min-width: 14rem;
}
.star-vote-guest {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    padding: 0.75rem;
    background: var(--surface-2);
    border-radius: var(--radius);
    border: 1px dashed var(--border);
}

.star-vote-auth-gate {
    padding: 1.5rem 1.25rem;
    background: linear-gradient(145deg, #f8fafc, #eef2ff);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-lg);
}
.star-vote-auth-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}
.star-vote-auth-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.35rem;
}
.star-vote-auth-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 28rem;
    margin: 0 auto 1rem;
}
.star-vote-auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}

.star-vote-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
}
.star-vote-options-2 {
    grid-template-columns: repeat(2, 1fr);
}
.star-vote-options form { display: block; }

.star-vote-btn {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem 0.65rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    background: white;
    cursor: pointer;
    transition: transform 0.25s var(--ease-out), border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.star-vote-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.star-vote-btn:hover .star-icon.is-filled {
    transform: scale(1.08);
}
.star-vote-btn-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text);
}
.star-vote-btn-hint {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 500;
}

.star-vote-btn-trusted:hover,
.star-vote-btn-trusted.is-selected {
    border-color: var(--star-trusted);
    background: linear-gradient(180deg, #ecfdf5, white);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.18);
}
.star-vote-btn-suspicious:hover,
.star-vote-btn-suspicious.is-selected {
    border-color: var(--star-suspicious);
    background: linear-gradient(180deg, #fffbeb, white);
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.15);
}
.star-vote-btn-fake:hover,
.star-vote-btn-fake.is-selected {
    border-color: var(--star-fake);
    background: linear-gradient(180deg, #fef2f2, white);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.15);
}
.star-vote-btn.is-selected {
    transform: translateY(-2px);
}
.star-vote-btn.is-selected .star-vote-btn-label {
    color: var(--primary-dark);
}

.star-vote-panel-compact .star-vote-stat {
    padding: 0.75rem 0.5rem;
}
.star-vote-panel-compact .star-vote-stat-num {
    font-size: 1.25rem;
}
.star-vote-panel-compact .star-vote-btn {
    padding: 0.85rem 0.5rem;
}

@media (max-width: 640px) {
    .star-vote-options {
        grid-template-columns: 1fr;
    }
    .star-vote-stats {
        grid-template-columns: 1fr;
    }
    .star-vote-stats-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Review star picker */
.review-stars-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.review-star-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
}
.review-star-option:hover,
.review-star-option:has(input:checked) {
    border-color: var(--primary-light);
    background: var(--primary-glow);
    color: var(--primary);
    transform: translateY(-1px);
}
.review-star-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
/* —— Iran Leaflet map —— */
.iran-leaflet-map {
    width: 100%;
    height: 420px;
    z-index: 1;
    background: #e8eef5;
}
.iran-leaflet-map-sm {
    height: 260px;
}
@media (max-width: 640px) {
    .iran-leaflet-map { height: 320px; }
    .iran-leaflet-map-sm { height: 220px; }
}
.dorostify-map-pin {
    background: transparent !important;
    border: none !important;
}
.dorostify-map-pin-dot {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.35);
}
.map-popup {
    font-family: Vazirmatn, Tahoma, sans-serif;
    text-align: right;
    min-width: 160px;
}
.map-popup-icon { font-size: 1.25rem; margin-bottom: 0.15rem; }
.map-popup-title { display: block; font-size: 0.9rem; margin-bottom: 0.2rem; }
.map-popup-meta { font-size: 0.72rem; color: #64748b; margin-bottom: 0.35rem; }
.map-popup-score { font-size: 0.8rem; margin-bottom: 0.25rem; }
.map-popup-phone { font-size: 0.75rem; color: #475569; margin-bottom: 0.35rem; }
.map-popup-link {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #4f46e5;
    text-decoration: none;
}
.map-popup-link:hover { text-decoration: underline; }
.leaflet-container { font-family: Vazirmatn, Tahoma, sans-serif; }

/* —— Listing photo gallery —— */
.listing-gallery { display: flex; flex-direction: column; gap: 0.5rem; }
.listing-gallery-main {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border, #e2e8f0);
    background: #f1f5f9;
    aspect-ratio: 16 / 9;
}
.listing-gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.listing-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.listing-gallery-thumb {
    width: 64px;
    height: 64px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 0.6rem;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
}
.listing-gallery-thumb:hover,
.listing-gallery-thumb:focus {
    border-color: var(--primary, #4f46e5);
}
.listing-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* —— Independence / community truth banner —— */
.independence-banner {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem 1.35rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #ecfdf5 0%, #eef2ff 55%, #fdf4ff 100%);
    border: 1px solid rgba(79, 70, 229, 0.15);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}
.independence-banner-icon {
    font-size: 1.75rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 0.15rem;
}
.independence-banner-body { min-width: 0; text-align: right; }
.independence-banner-title {
    font-size: 1.05rem;
    font-weight: 900;
    color: #1e1b4b;
    margin: 0 0 0.5rem;
    line-height: 1.5;
}
.independence-banner-text {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.85;
    margin: 0 0 0.55rem;
}
.independence-banner-emphasis {
    color: #0f766e;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.08);
    border-radius: 0.75rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(16, 185, 129, 0.18);
}
.independence-banner-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
}
.independence-banner-points li {
    font-size: 0.75rem;
    font-weight: 700;
    color: #4338ca;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(79, 70, 229, 0.12);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
}
.footer-independence {
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    padding-top: 1.25rem;
    margin-bottom: 1rem;
}
.footer-independence p {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.8;
    max-width: 52rem;
}
@media (max-width: 640px) {
    .independence-banner { flex-direction: column; gap: 0.65rem; }
    .independence-banner-title { font-size: 0.98rem; }
}

/* —— Manual specialized review box —— */
.manual-review-box {
    border: 1px solid rgba(79, 70, 229, 0.18);
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}
.manual-review-result {
    border-radius: 0.9rem;
    padding: 1rem 1.1rem;
    border: 1px solid transparent;
}
.manual-review-result.verdict-emerald {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}
.manual-review-result.verdict-amber {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}
.manual-review-result.verdict-red {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}
.manual-review-result.verdict-orange {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}
.manual-review-result.verdict-slate,
.manual-review-result.verdict-indigo {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}
.manual-review-badge {
    font-size: 0.7rem;
    font-weight: 800;
    background: rgba(255,255,255,0.7);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
}
.manual-review-verdict {
    font-size: 0.8rem;
    font-weight: 900;
}
