@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* --- DESIGN SYSTEM & TOKENS (Seçenek 1: İskandinav Zümrüt & Ferah Slate) --- */
:root {
    --primary-dark: #06241b;      /* Derin İskandinav Zümrüdü */
    --primary: #0d3b2e;           /* Sofistike Orman Zümrüdü */
    --primary-medium: #125442;    /* Orta Zümrüt */
    --primary-light: #166534;     /* Canlı Zümrüt */
    --accent: #10b981;            /* Canlı Taze Nane Yeşili / Emerald */
    --accent-light: #34d399;      /* Açık Nane */
    --accent-glow: #a7f3d0;       /* Işıltılı Nane */
    
    --bg-main: #f8fafc;           /* Ultra temiz ferah Slate zemin */
    --bg-card: #ffffff;           /* Kar beyazı kartlar */
    --text-main: #0f172a;         /* Derin antrasit net tipografi */
    --text-muted: #64748b;        /* Kurşuni gri yardımcı metin */
    --text-white: #ffffff;
    
    --border-glass: rgba(255, 255, 255, 0.25);
    --border-light: #e2e8f0;       /* Crisp slate ince kenarlık */
    
    --shadow-soft: 0 4px 16px rgba(15, 23, 42, 0.04);
    --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.07);
    --shadow-glow: 0 0 18px rgba(16, 185, 129, 0.35);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);

    /* Dynamic overlay & opacity helpers */
    --hero-overlay-top: rgba(6, 36, 27, 0.45);
    --hero-overlay-mid: rgba(6, 36, 27, 0.65);
    --hero-overlay-bottom: rgba(6, 36, 27, 0.9);
    --accent-rgba-20: rgba(16, 185, 129, 0.2);
    --accent-rgba-40: rgba(16, 185, 129, 0.4);
    --accent-rgba-60: rgba(16, 185, 129, 0.6);
    --accent-rgba-90: rgba(16, 185, 129, 0.9);
}

/* --- BASE STYLES --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary-dark);
    font-weight: 700;
}

a {
    color: var(--primary-medium);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- LAYOUT UTILITIES --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER / NAVIGATION --- */
body > header,
.site-header {
    background-color: var(--primary-dark);
    position: sticky;
    top: 0;
    z-index: 99999;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-white);
}

/* Owl logo image */
.logo-owl-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #00c471;
    box-shadow: 0 0 8px rgba(0, 196, 113, 0.45);
    flex-shrink: 0;
}

/* Logo text container */
.logo-text {
    display: flex;
    align-items: baseline;
    gap: 0;
    line-height: 1;
}

/* "kus" part — white */
.logo-kus {
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}

/* "atlasi.com" part — bright green, matching brand reference */
.logo-atlasi {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #00c471 0%, #00e688 60%, #00c471 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Keep old .logo svg / span rules for any legacy use */
.logo svg {
    width: 32px;
    height: 32px;
    fill: var(--accent);
}

.logo span {
    color: var(--text-white);
}

.logo span.highlight {
    color: var(--accent);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.navbar > nav {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 6px;
    height: 100%;
    align-items: center;
    margin: 0;
    padding: 5px 0 0 0;
}

.nav-links li {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    padding: 0 11px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.84rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    line-height: 1;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-white);
    background-color: rgba(255, 255, 255, 0.12);
}

.nav-links li.active a {
    background-color: var(--primary-medium);
    color: var(--text-white);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

/* Navigation Dropdown Item (Modern 4 Pillars) */
.nav-dropdown-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.88);
    padding: 0 12px;
    height: 38px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.nav-dropdown-caret {
    font-size: 0.65rem;
    opacity: 0.65;
    transition: transform 0.2s ease;
}

.nav-dropdown-item:hover .nav-dropdown-trigger {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.12);
}

.nav-dropdown-item:hover .nav-dropdown-caret {
    transform: rotate(180deg);
    opacity: 1;
}

.nav-dropdown-item.active .nav-dropdown-trigger {
    background-color: var(--primary-medium);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: #ffffff;
    min-width: 270px;
    border-radius: 12px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    display: none;
    flex-direction: column;
    padding: 8px;
    z-index: 100000;
    animation: navDropIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes navDropIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: transparent;
}

.nav-dropdown-item:hover .nav-dropdown-menu {
    display: flex;
}

.nav-dropdown-menu a {
    color: #1e293b !important;
    padding: 10px 12px !important;
    height: auto !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    border-radius: 8px !important;
    justify-content: flex-start !important;
    background: transparent !important;
    box-shadow: none !important;
    transition: all 0.15s ease !important;
}

.nav-dropdown-menu a i {
    font-size: 1.15rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.nav-dropdown-menu .dd-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-dropdown-menu .dd-sub {
    font-size: 0.72rem;
    font-weight: 400;
    color: #64748b;
    margin-top: 2px;
}

.nav-dropdown-menu a:hover {
    background-color: #f8fafc !important;
    color: var(--primary) !important;
    transform: translateX(3px);
}

.nav-dropdown-menu a:hover .dd-title {
    color: var(--primary);
}

.nav-badge-pulse {
    background: #ef4444;
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    animation: pulse 1.5s infinite;
}

/* Language Switcher */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
}

.lang-switcher .lang-btn {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 2px 4px;
}

.lang-switcher .lang-btn:hover {
    color: #ffffff;
}

.lang-switcher .lang-btn.lang-active {
    color: var(--accent);
    text-shadow: 0 0 8px rgba(82, 183, 136, 0.4);
}

.lang-switcher .lang-divider {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.75rem;
}

/* Header Action / Share Button */
.btn-header-share {
    background: linear-gradient(135deg, var(--accent) 0%, #2b9348 100%);
    color: #ffffff;
    padding: 0 12px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(82, 183, 136, 0.3);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-header-share:hover {
    background: linear-gradient(135deg, #74c69d 0%, #40916c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(82, 183, 136, 0.45);
    color: #ffffff;
}

.header-icon-btn {
    transition: transform 0.2s ease, color 0.2s ease;
}

.header-icon-btn:hover {
    color: var(--accent) !important;
    transform: scale(1.08);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    flex-wrap: nowrap;
}

.search-trigger {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
}

.search-trigger:hover {
    color: var(--accent);
}

.btn-header-login {
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0 12px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.8rem;
    white-space: nowrap;
}

.btn-header-login:hover {
    background-color: rgba(82, 183, 136, 0.1);
    box-shadow: var(--shadow-glow);
}

.btn-header-register {
    background-color: var(--primary-light);
    color: var(--text-white);
    padding: 0 12px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.8rem;
    white-space: nowrap;
}

.btn-header-register:hover {
    background-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   TOP NAV "GALERİ" FLASHING HIGHLIGHT ANIMATION
   ========================================================================== */
.nav-gallery-flash-btn {
    position: relative;
    background: rgba(251, 191, 36, 0.14) !important;
    border: 1px solid rgba(251, 191, 36, 0.4) !important;
    border-radius: 20px !important;
    padding: 5px 12px !important;
    color: #fef08a !important;
    animation: galleryNavFlash 2.2s infinite cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.25s ease;
}

.nav-gallery-flash-btn:hover {
    background: rgba(251, 191, 36, 0.28) !important;
    border-color: #fbbf24 !important;
    color: #ffffff !important;
}

@keyframes galleryNavFlash {
    0% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.65), 0 0 10px rgba(251, 191, 36, 0.3);
        border-color: rgba(251, 191, 36, 0.45);
        background: rgba(251, 191, 36, 0.12);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(251, 191, 36, 0), 0 0 20px rgba(251, 191, 36, 0.7);
        border-color: #fbbf24;
        background: rgba(251, 191, 36, 0.26);
        color: #ffffff;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0), 0 0 10px rgba(251, 191, 36, 0.2);
        border-color: rgba(251, 191, 36, 0.35);
        background: rgba(251, 191, 36, 0.12);
    }
}

.nav-gallery-icon {
    color: #fbbf24 !important;
    animation: galleryIconBounce 2.2s infinite ease-in-out;
}

@keyframes galleryIconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); color: #ffffff; }
}

.nav-flash-beacon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
    display: inline-block;
    box-shadow: 0 0 8px #fbbf24;
    animation: beaconPulse 1.6s infinite ease-in-out;
}

@keyframes beaconPulse {
    0%, 100% { transform: scale(0.85); opacity: 0.75; }
    50% { transform: scale(1.4); opacity: 1; box-shadow: 0 0 14px #fef08a; background: #fbbf24; }
}

.drawer-gallery-flash {
    background: rgba(251, 191, 36, 0.12) !important;
    border: 1px solid rgba(251, 191, 36, 0.35) !important;
    animation: galleryNavFlash 2.2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-flash-badge {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 10px;
    background: #f59e0b;
    color: #0f172a;
    letter-spacing: 0.5px;
    animation: beaconPulse 1.6s infinite ease-in-out;
}

/* --- RESPONSIVE HEADER & MOBILE DRAWER --- */
.desktop-nav {
    display: flex;
    height: 100%;
    align-items: center;
}

.mobile-toggle-btn {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1.25rem;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--accent);
}

/* Mobile Drawer Overlay */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Drawer Container */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: linear-gradient(180deg, #1b4332 0%, #081c15 100%);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-drawer.active {
    transform: translateX(0);
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-drawer-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 5px;
    transition: color 0.2s;
}

.mobile-drawer-close:hover {
    color: #ff4d6d;
}

.mobile-drawer-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.mobile-user-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-auth-actions {
    display: flex;
    gap: 10px;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-list a {
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    transition: all 0.2s;
}

.mobile-nav-list a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    padding-left: 18px;
}

.mobile-nav-list a i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    color: var(--accent);
}

.mobile-lang-box {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* User dropdown trigger */
.user-menu {
    position: relative;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.user-avatar-mini {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--accent);
}

.user-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background-color: var(--bg-card);
    min-width: 180px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 1px solid var(--border-light);
    display: none;
    flex-direction: column;
    overflow: visible;
    z-index: 5001;
}

.user-dropdown::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

.user-dropdown a {
    color: var(--text-main);
    padding: 12px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border-light);
}

.user-dropdown a:last-child {
    border-bottom: none;
    color: #d90429;
}

.user-dropdown a:hover {
    background-color: var(--bg-main);
}

.user-menu:hover .user-dropdown {
    display: flex;
}

/* Breakpoint for Responsive Header Navigation */
@media (max-width: 1180px) {
    .desktop-nav {
        display: none !important;
    }
    .mobile-toggle-btn {
        display: inline-flex !important;
    }
    .lang-switcher {
        display: none !important;
    }
    .user-trigger-name {
        display: none;
    }
    .btn-header-register {
        display: none;
    }
}

@media (max-width: 520px) {
    .logo-kus, .logo-atlasi {
        font-size: 1.15rem;
    }
    .logo-owl-img {
        width: 32px;
        height: 32px;
    }
    .logo {
        gap: 6px;
    }
    .navbar {
        height: 60px;
    }
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(180deg, var(--hero-overlay-top) 0%, var(--hero-overlay-bottom) 100%), 
                url('/static/images/hero.jpg') center/cover no-repeat;
    padding: 120px 0 140px 0;
    color: var(--text-white);
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.btn-primary {
    background-color: var(--primary-medium);
    color: var(--text-white);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(27, 67, 50, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 67, 50, 0.6);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--text-white);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--hero-overlay-mid);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 30px;
    max-width: 900px;
    margin: 0 auto -200px auto;
    position: relative;
    z-index: 10;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:last-child {
    border-right: none;
}

.stat-num {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-light);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
}

/* --- HOME PAGE GRID LAYOUT --- */
.home-content-section {
    padding: 240px 0 80px 0; /* Huge top padding to accommodate overlapping hero stats */
}

/* ===== GÜNÜN FOTOĞRAFLARI SECTION ===== */
.daily-photos-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-dark) 100%);
    padding: 15px 0 15px 0;
    position: relative;
    overflow: hidden;
}

.daily-photos-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, var(--accent-rgba-20) 0%, transparent 70%);
    pointer-events: none;
}

.daily-photos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 1060px;
    margin-left: auto;
    margin-right: auto;
}

.daily-photos-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.daily-badge {
    background: linear-gradient(135deg, #f6c90e, #f9a825);
    color: #1a1a1a;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.daily-photos-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.daily-date-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.daily-photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1060px;
    margin: 0 auto;
}

.daily-photo-card {
    position: relative;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.32s cubic-bezier(.22,.68,0,1.2), box-shadow 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(6px);
}

.daily-photo-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 0 1px var(--accent-rgba-40);
    border-color: var(--accent-rgba-40);
}

.daily-rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.daily-rank-badge.gold {
    background: linear-gradient(135deg, #f6c90e, #f9a825);
    color: #1a1a1a;
}

.daily-rank-badge.silver {
    background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
    color: #1a1a1a;
}

.daily-rank-badge.bronze {
    background: linear-gradient(135deg, #cd7f32, #b8651e);
    color: #fff;
}

.daily-photo-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10.5;
    overflow: hidden;
}

.daily-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.daily-photo-card:hover .daily-photo-img {
    transform: scale(1.07);
}

.daily-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, transparent 55%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 14px 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.daily-photo-card:hover .daily-photo-overlay {
    opacity: 1;
}

.daily-photo-likes {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    background: rgba(0,0,0,0.45);
    padding: 5px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.daily-photo-likes i {
    color: #f87171;
}

.daily-photo-info {
    padding: 16px 18px 18px;
}

.daily-bird-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.daily-bird-sci {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    font-style: italic;
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.daily-photo-meta {
    display: flex;
    align-items: center;
    gap: 9px;
}

.daily-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-rgba-60);
}

.daily-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-rgba-20);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-rgba-90);
    font-size: 0.75rem;
    border: 2px solid var(--accent-rgba-40);
}

.daily-username {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}

@media (max-width: 900px) {
    .daily-photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .daily-photos-grid .daily-photo-card:last-child {
        display: none;
    }
}

@media (max-width: 600px) {
    .daily-photos-grid {
        grid-template-columns: 1fr;
    }
    .daily-photos-grid .daily-photo-card:not(:first-child) {
        display: none;
    }
    .daily-photos-title {
        font-size: 1.2rem;
    }
}

/* ===== INSTAGRAM STORIES CAROUSEL ===== */
.bird-stories-scroll::-webkit-scrollbar {
    display: none;
}

.story-item:hover .story-ring {
    transform: scale(1.09) rotate(4deg);
    box-shadow: 0 4px 15px rgba(225, 48, 108, 0.45);
}

.story-item:active .story-ring {
    transform: scale(0.95);
}

.story-item:hover .story-name {
    color: var(--primary) !important;
    font-weight: 700;
}

.home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    align-items: start;
}

/* Standard columns config */
.home-col {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Dashboard Card Panels */
.panel-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.panel-header h2 {
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-header h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background-color: var(--primary-medium);
    border-radius: 2px;
}

.panel-link-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
}

/* Card grids & lists inside panels */
.photo-grid-mini {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.photo-card-mini {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.photo-card-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.photo-card-mini:hover img {
    transform: scale(1.08);
}

.photo-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(360deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    padding: 15px 12px 10px 12px;
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.photo-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
}

.photo-card-user {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
    margin-top: 2px;
}

/* Search panel inside Bird Species list */
.search-box-panel {
    position: relative;
    margin-bottom: 20px;
}

.search-box-panel input {
    width: 100%;
    padding: 12px 20px;
    padding-right: 45px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    background-color: var(--bg-main);
    font-size: 0.9rem;
    transition: var(--transition);
}

.search-box-panel input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.15);
}

.search-box-panel i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* Species List */
.species-list-mini {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.species-item-mini {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: var(--transition);
}

.species-item-mini:hover {
    background-color: var(--bg-main);
    border-color: var(--border-light);
}

.species-thumb-mini {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    box-shadow: var(--shadow-soft);
}

.species-info-mini {
    flex: 1;
}

.species-name-tr {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.species-name-sci {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

.species-stats-mini {
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.species-stats-mini span {
    display: block;
}

/* Observation Map Card (Turkey Map Preview) */
.map-preview-container {
    height: 250px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    margin-bottom: 25px;
    border: 1px solid var(--border-light);
}

#map-preview {
    height: 100%;
    width: 100%;
}

.popular-spots-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.spot-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
}

.spot-item:last-child {
    border-bottom: none;
}

.spot-name {
    font-weight: 600;
}

.spot-count {
    font-size: 0.8rem;
    background-color: rgba(27, 67, 50, 0.08);
    color: var(--primary-medium);
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 700;
}

/* Call to action "Join Us" Card */
.cta-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.cta-card h3 {
    color: var(--text-white);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.cta-card p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    margin-bottom: 25px;
    font-weight: 300;
}

.cta-card .btn-light {
    background-color: var(--text-white);
    color: var(--primary-dark);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
}

.cta-card .btn-light:hover {
    background-color: var(--accent-glow);
    box-shadow: var(--shadow-glow);
}

.cta-card-bg-icon {
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 150px;
    height: 150px;
    opacity: 0.06;
    fill: var(--text-white);
}

/* Community feed / activity list */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.activity-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.activity-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
}

.activity-body {
    flex: 1;
    font-size: 0.85rem;
}

.activity-username {
    font-weight: 700;
    color: var(--primary-dark);
}

.activity-text {
    color: var(--text-main);
}

.activity-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Quick links cards */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.quick-link-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    border-radius: var(--radius-md);
    background-color: rgba(27, 67, 50, 0.04);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    border: 1px solid transparent;
}

.quick-link-btn i {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--primary-medium);
}

.quick-link-btn:hover {
    background-color: var(--bg-card);
    border-color: var(--accent);
    color: var(--primary-medium);
    box-shadow: var(--shadow-soft);
}

/* --- BIRDS DIRECTORY BROWSE PAGE --- */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    padding: 60px 0;
    margin-bottom: 40px;
}

/* Species detail: tighter title strip */
.page-header--species {
    padding: 22px 0;
    margin-bottom: 28px;
}

.species-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.species-header-titles {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.species-header-title {
    color: var(--text-white);
    font-size: 2.2rem;
    margin: 0 0 4px 0;
    line-height: 1.2;
    text-align: left;
}

.species-header-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    margin: 0;
    line-height: 1.35;
    text-align: left;
}

.species-header-back {
    color: var(--text-white);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.page-header h1 {
    color: var(--text-white);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.page-header p {
    color: rgba(255,255,255,0.8);
}

@media (max-width: 768px) {
    .page-header--species {
        padding: 14px 0 !important;
        margin-bottom: 14px !important;
    }
    .page-header--species .container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
    .species-header-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;
        width: 100% !important;
    }
    .species-header-titles {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .species-header-title {
        font-family: 'Outfit', sans-serif !important;
        font-size: 1.48rem !important;
        font-weight: 800 !important;
        color: #ffffff !important;
        margin: 0 0 3px 0 !important;
        line-height: 1.15 !important;
        text-align: left !important;
        padding: 0 !important;
        letter-spacing: -0.01em !important;
    }
    .species-header-subtitle {
        font-size: 0.82rem !important;
        line-height: 1.25 !important;
        color: rgba(255, 255, 255, 0.82) !important;
        font-style: italic !important;
        margin: 0 !important;
        text-align: left !important;
        padding: 0 !important;
    }
    .species-header-back {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        background: #ffffff !important;
        color: #1b4332 !important;
        font-family: 'Outfit', sans-serif !important;
        font-size: 0.74rem !important;
        font-weight: 800 !important;
        padding: 6px 12px !important;
        border-radius: 20px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22) !important;
        border: 1px solid rgba(255, 255, 255, 0.85) !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
    }
    .species-header-back i {
        color: #1b4332 !important;
        font-size: 0.72rem !important;
    }
    .species-header-back:active {
        transform: scale(0.96) !important;
        background: #f1f5f9 !important;
    }
}

.search-filter-bar {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-soft);
    margin-top: -30px;
    margin-bottom: 40px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-filter-bar form {
    display: flex;
    flex: 1;
    gap: 10px;
}

.bird-search-wrap {
    position: relative;
    flex: 2;
    min-width: 200px;
}

.bird-search-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #2d6a4f;
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 2;
    transition: color 0.2s ease;
}

.bird-search-wrap .autocomplete-suggestions {
    width: 100%;
}

.suggestion-en {
    font-size: 0.72rem;
    color: #475569;
}

.suggestion-taxon {
    font-size: 0.68rem;
    color: #64748b;
    margin-top: 2px;
}

.search-filter-bar input {
    flex: 1;
    padding: 12px 20px 12px 42px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    font-size: 0.95rem;
}

.search-filter-bar button {
    background-color: var(--primary-medium);
    color: var(--text-white);
    border: none;
    padding: 12px 25px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-filter-bar button:hover {
    background-color: var(--primary-light);
}

/* Bird Grid catalog */
.birds-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 45px;
    width: 100%;
}

.bird-card {
    background-color: var(--bg-card);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.9);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-align: center;
}

.bird-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(27, 67, 50, 0.12);
    border-color: var(--accent);
}

.bird-card-media {
    position: relative;
    height: 180px;
    background: #f4f1ea;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bird-card-img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    padding: 8px;
    transition: transform 0.3s ease;
}

.bird-card:hover .bird-card-img {
    transform: scale(1.05);
}

.bird-card-img-photo {
    object-fit: cover;
    padding: 0;
    background: #1e2937;
}

.bird-iucn-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #ffffff;
    padding: 2px 6px;
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.bird-card-body {
    padding: 14px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.bird-card-header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.bird-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
    margin: 0;
    line-height: 1.25;
}

.bird-card-sci {
    font-size: 0.78rem;
    color: #64748b;
    font-style: italic;
    text-align: center;
    margin-bottom: 2px;
}

.bird-card-family-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(45, 106, 79, 0.08);
    padding: 3px 8px;
    border-radius: 12px;
    margin: 4px 0 8px;
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bird-card-meta {
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    border-top: 1px solid #f1f5f9;
    padding-top: 8px;
}

.bird-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.birds-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
}

.birds-empty-icon {
    font-size: 2.5rem;
    color: #94a3b8;
    margin-bottom: 12px;
}

.birds-empty-title {
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 4px;
}

.birds-empty-sub {
    color: #64748b;
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .birds-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .page-header:not(.page-header--species) {
        padding: 12px 14px !important;
        margin-bottom: 12px !important;
        text-align: center !important;
    }
    .page-header:not(.page-header--species) h1 {
        font-size: 1.15rem !important;
        margin-bottom: 2px !important;
        font-weight: 800 !important;
    }
    .page-header:not(.page-header--species) p {
        font-size: 0.72rem !important;
        opacity: 0.88 !important;
        margin: 0 !important;
        line-height: 1.25 !important;
    }
    .search-filter-bar {
        padding: 12px !important;
        margin-top: 0 !important;
        margin-bottom: 16px !important;
        border-radius: 14px !important;
        background: #ffffff !important;
        border: 1px solid rgba(226, 232, 240, 0.9) !important;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
        position: relative !important;
        z-index: 1 !important;
    }
    .search-filter-bar form {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        align-items: stretch !important;
        width: 100% !important;
    }
    .search-filter-bar .birds-filter-select,
    .search-filter-bar select {
        display: none !important;
    }
    .bird-search-wrap {
        flex: 1 1 100% !important;
        width: 100% !important;
        min-width: 100% !important;
        position: relative !important;
    }
    .bird-search-wrap .bird-search-input-icon {
        position: absolute !important;
        left: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        color: #2d6a4f !important;
        font-size: 0.95rem !important;
        pointer-events: none !important;
        z-index: 3 !important;
    }
    .search-filter-bar input.bird-search-input,
    .search-filter-bar #birds-search-page-input {
        background: #ffffff !important;
        color: #0f172a !important;
        border: 1.5px solid #2d6a4f !important;
        border-radius: 12px !important;
        padding: 12px 14px 12px 42px !important;
        font-size: 0.95rem !important;
        font-weight: 500 !important;
        letter-spacing: -0.01em !important;
        width: 100% !important;
        box-sizing: border-box !important;
        outline: none !important;
        transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    }
    .search-filter-bar input.bird-search-input:focus,
    .search-filter-bar #birds-search-page-input:focus {
        border-color: #10b981 !important;
        box-shadow: 0 0 0 3.5px rgba(16, 185, 129, 0.18) !important;
    }
    .search-filter-bar input.bird-search-input::placeholder,
    .search-filter-bar #birds-search-page-input::placeholder {
        color: #94a3b8 !important;
        font-weight: 400 !important;
    }
    .search-filter-bar button#birds-search-page-btn,
    .search-filter-bar button {
        background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%) !important;
        color: #ffffff !important;
        border: none !important;
        border-radius: 12px !important;
        padding: 12px 20px !important;
        font-size: 0.92rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.04em !important;
        text-transform: uppercase !important;
        flex-shrink: 0 !important;
        width: 100% !important;
        min-width: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        box-shadow: 0 4px 12px rgba(27, 67, 50, 0.25) !important;
        cursor: pointer !important;
        transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease !important;
    }
    .search-filter-bar button#birds-search-page-btn:active,
    .search-filter-bar button:active {
        transform: scale(0.985) !important;
        box-shadow: 0 2px 6px rgba(27, 67, 50, 0.2) !important;
    }
    .birds-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 30px !important;
    }
    .bird-card {
        border-radius: 14px !important;
    }
    .bird-card-media {
        height: 130px !important;
    }
    .bird-card-body {
        padding: 10px 8px !important;
        gap: 2px !important;
    }
    .bird-card-title {
        font-size: 0.88rem !important;
    }
    .bird-card-sci {
        font-size: 0.7rem !important;
    }
    .bird-card-family-tag {
        font-size: 0.65rem !important;
        padding: 2px 6px !important;
        margin: 2px 0 6px !important;
    }
    .bird-card-meta {
        font-size: 0.65rem !important;
        gap: 8px !important;
        padding-top: 6px !important;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 60px;
}

.pagination a, .pagination span {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

.pagination a:hover {
    background-color: var(--primary-medium);
    color: var(--text-white);
    border-color: var(--primary-medium);
}

.pagination span.active {
    background-color: var(--primary-medium);
    color: var(--text-white);
    border-color: var(--primary-medium);
}

/* --- BIRD DETAIL PAGE --- */
.bird-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.detail-main-img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    margin-bottom: 30px;
}

.detail-main-img-plate,
.detail-main-img[src*="illustrations"] {
    object-fit: contain !important;
    background: #fbfbf9 !important;
    padding: 16px !important;
    height: auto !important;
    max-height: 580px !important;
    min-height: 340px !important;
}

.detail-info-block {
    margin-bottom: 40px;
}

.detail-taxonomy {
    display: flex;
    gap: 15px;
    background-color: rgba(27, 67, 50, 0.05);
    padding: 15px 25px;
    border-radius: var(--radius-md);
    margin-bottom: 25px;
}

.taxon-item {
    display: flex;
    flex-direction: column;
}

.taxon-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.taxon-val {
    font-weight: 700;
    color: var(--primary-dark);
}

.taxon-val.sci {
    font-style: italic;
    color: var(--primary-medium);
}

.section-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--border-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1.2;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

/* Observation list detail page */
.observation-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.observation-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
}

.obs-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.obs-reporter {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.9rem;
}

.obs-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.obs-loc {
    font-weight: 600;
    color: var(--primary-medium);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.obs-notes {
    font-size: 0.9rem;
    color: var(--text-main);
}

/* Detail Sidebar */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-map-container {
    height: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
}

#detail-map {
    height: 100%;
    width: 100%;
}

/* Form Styles */
.form-panel {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--primary-dark);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    background-color: var(--bg-main);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--accent);
    outline: none;
    background-color: var(--text-white);
}

.btn-submit {
    background-color: var(--primary-medium);
    color: var(--text-white);
    border: none;
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: var(--primary-light);
}

/* --- MAP PAGE --- */
body:has(.maps-page) footer {
    display: none !important;
}
body:has(.maps-page) main {
    padding: 0;
    margin: 0;
}

.maps-page {
    height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    background: #0b3a5c;
    position: relative;
    z-index: 1;
    isolation: isolate;
}

.maps-bluebar {
    flex: 0 0 auto;
    min-height: 48px;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    background: #06241b;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    z-index: 1100;
}

.maps-bluebar-btn {
    flex: 1 1 150px;
    min-height: 44px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.78);
    font-family: Outfit, sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-bottom: 3px solid transparent;
    padding: 0 10px;
    transition: all 0.2s ease;
}

.maps-bluebar-btn:hover {
    background: rgba(255,255,255,0.06);
    color: #34d399;
}

.maps-bluebar-btn.is-active {
    background: #0d3b2e;
    color: #ffffff;
    border-bottom-color: #10b981;
}

.maps-stage {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
}

.maps-panel {
    display: none;
    position: absolute;
    inset: 0;
}

.maps-panel.is-active {
    display: block;
}

#map-full,
#map-gps,
#map-breeding {
    height: 100%;
    width: 100%;
}

.mobile-sheet-handle {
    display: none;
}

.sheet-scrollable-body {
    display: block;
}

.breeding-atlas-toolbar {
    position: absolute;
    z-index: 1000;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1080px, calc(100% - 28px));
    min-height: 68px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}

.breeding-country-control {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: min(310px, 100%);
}

.breeding-country-control label {
    font-size: 0.8rem;
    font-weight: 800;
    color: #0f5132;
    white-space: nowrap;
}

#breeding-country-select {
    min-width: 190px;
    max-width: 290px;
    flex: 1;
    padding: 9px 34px 9px 10px;
    border: 1px solid #b7c9bf;
    border-radius: 8px;
    background: #fff;
    color: #173b2c;
    font-family: Inter, sans-serif;
    font-size: 0.84rem;
    font-weight: 700;
}

.breeding-atlas-summary,
.breeding-atlas-legend {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.breeding-atlas-summary span {
    padding: 6px 9px;
    border-radius: 999px;
    background: #edf7f1;
    color: #35584a;
    font-size: 0.72rem;
    white-space: nowrap;
}

.breeding-atlas-summary strong { color: #1b4332; }

.breeding-atlas-legend { margin-left: auto; }
.breeding-atlas-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #475569;
    font-size: 0.71rem;
    font-weight: 700;
}

.breeding-swatch {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
    border: 1px solid rgba(15, 23, 42, 0.15);
}
.breeding-swatch--published { background: #2563eb; }
.breeding-swatch--possible { background: #fde68a; }
.breeding-swatch--probable { background: #f59e0b; }
.breeding-swatch--confirmed { background: #15803d; }

.breeding-atlas-status {
    flex: 1 0 100%;
    margin: -2px 0 0;
    color: #64748b;
    font-size: 0.7rem;
    line-height: 1.35;
}

.breeding-country-outline {
    filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.2));
}

.breeding-cell-popup {
    min-width: 190px;
    font-family: Inter, sans-serif;
    line-height: 1.45;
    color: #334155;
    font-size: 0.8rem;
}
.breeding-cell-popup strong { color: #14532d; }

.maps-fly-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 1000;
    width: 340px;
    max-height: calc(100% - 32px);
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    padding: 18px;
    display: flex;
    flex-direction: column;
    overflow: auto;
}

.maps-fly-overlay h2 {
    font-family: Outfit, sans-serif;
    font-size: 1.15rem;
    color: var(--primary-dark);
    margin: 0 0 6px;
}

.maps-fly-kicker {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.maps-fly-kicker em { font-style: italic; }

.maps-fly-note,
.maps-fly-caption {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0 0 10px;
}

.maps-season-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin: 4px 0 10px;
}

.maps-season-btn {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    border-radius: 7px;
    padding: 7px 4px;
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
}

.maps-season-btn:hover { border-color: #0284c7; color: #0369a1; }

.maps-season-btn.is-active[data-season="all"] { background: #1b4332; color: #fff; border-color: #1b4332; }
.maps-season-btn.is-active[data-season="breed"] { background: #2d6a4f; color: #fff; border-color: #2d6a4f; }
.maps-season-btn.is-active[data-season="passage"] { background: #d97706; color: #fff; border-color: #d97706; }
.maps-season-btn.is-active[data-season="winter"] { background: #0284c7; color: #fff; border-color: #0284c7; }

.maps-extra { margin: 4px 0 8px; }
.maps-month-row { display: flex; align-items: center; gap: 10px; }
.maps-play-btn {
    width: 36px; height: 36px; border: none; border-radius: 50%;
    background: #0284c7; color: #fff; cursor: pointer; flex: 0 0 36px;
}
.maps-play-btn.is-playing { background: #1b4332; }
#maps-month-slider { flex: 1; accent-color: #0284c7; }
.maps-month-label { margin: 6px 0 0; font-weight: 800; color: #0c4a6e; font-size: 0.95rem; }
.maps-site-list { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow-y: auto; }
.maps-site-btn {
    text-align: left; border: 1px solid #e2e8f0; background: #f8fafc;
    border-radius: 8px; padding: 8px 10px; cursor: pointer; font-family: Inter, sans-serif;
}
.maps-site-btn:hover, .maps-site-btn.is-active { border-color: #0284c7; background: #e0f2fe; }
.maps-site-btn strong { display: block; font-size: 0.8rem; color: #0f172a; }
.maps-gate-num {
    background: none !important;
    border: none !important;
}
.maps-gate-num span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #b45309;
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    font-family: Outfit, sans-serif;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    border: 2px solid #fff;
}
.maps-gate-num--wet span { background: #0ea5e9; }

/* Wetland intelligence panel */
.wetland-filter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 6px;
    margin: 8px 0;
}
.wetland-filter-grid label:first-child { grid-column: 1 / -1; }
.wetland-filter-grid label { display: grid; gap: 3px; }
.wetland-filter-grid label > span {
    color: #475569;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.wetland-filter-grid input,
.wetland-filter-grid select {
    min-width: 0;
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: .72rem;
    padding: 7px 8px;
}
.wetland-list-status {
    min-height: 18px;
    color: #64748b;
    font-size: .68rem;
    font-weight: 700;
}
.maps-site-btn .wetland-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 4px 0 2px;
}
.wetland-mini-badge,
.wetland-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    border: 1px solid #bae6fd;
    background: #f0f9ff;
    color: #075985;
    font-size: .64rem;
    font-weight: 800;
    line-height: 1.2;
    padding: 3px 7px;
}
.wetland-mini-badge--ramsar,
.wetland-badge--ramsar { border-color: #99f6e4; background: #f0fdfa; color: #115e59; }
.wetland-detail-panel {
    position: absolute;
    z-index: 830;
    top: 18px;
    right: 18px;
    bottom: 18px;
    width: min(440px, calc(100% - 390px));
    min-width: 360px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .45);
    border-radius: 18px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
    backdrop-filter: blur(14px);
}
.wetland-detail-panel[hidden] { display: none; }
.wetland-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #ecfeff 0%, #f0fdf4 100%);
}
.wetland-detail-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #0f766e;
    font-size: .64rem;
    font-weight: 900;
    letter-spacing: .14em;
}
.wetland-detail-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1.2rem;
    line-height: 1.15;
}
.wetland-detail-head button {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    background: #fff;
    color: #334155;
    cursor: pointer;
}
.wetland-detail-body {
    height: calc(100% - 78px);
    overflow-y: auto;
    padding: 14px;
    scrollbar-width: thin;
}
.wetland-hero-meta,
.wetland-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.wetland-detail-summary {
    margin: 10px 0 0;
    color: #334155;
    font-size: .82rem;
    line-height: 1.55;
}
.wetland-boundary-note {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 10px 0 0;
    border: 1px solid #fde68a;
    border-radius: 10px;
    background: #fffbeb;
    color: #854d0e;
    font-size: .7rem;
    line-height: 1.4;
    padding: 8px 9px;
}
.wetland-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-top: 12px;
}
.wetland-stat {
    min-width: 0;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #f8fafc;
    padding: 8px 6px;
    text-align: center;
}
.wetland-stat strong { display: block; color: #0f766e; font-size: 1rem; }
.wetland-stat span { display: block; color: #64748b; font-size: .59rem; font-weight: 800; line-height: 1.25; }
.wetland-section {
    margin-top: 13px;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    background: #fff;
    padding: 11px;
}
.wetland-section h3 {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 8px;
    color: #0f172a;
    font-size: .82rem;
}
.wetland-section h3 i { color: #0891b2; }
.wetland-section p {
    margin: 0;
    color: #475569;
    font-size: .76rem;
    line-height: 1.5;
}
.wetland-species-card {
    border: 1px solid #bae6fd;
    border-radius: 11px;
    background: #f0f9ff;
    padding: 9px;
}
.wetland-species-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    color: #0c4a6e;
    font-size: .78rem;
    font-weight: 900;
}
.wetland-evidence {
    display: inline-flex;
    border-radius: 999px;
    background: #fff;
    color: #0369a1;
    font-size: .61rem;
    padding: 3px 6px;
}
.wetland-data-warning {
    margin-top: 7px;
    color: #475569;
    font-size: .68rem;
    line-height: 1.4;
}
.wetland-month-chart {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: end;
    gap: 3px;
    height: 98px;
    margin-top: 8px;
    border-bottom: 1px solid #cbd5e1;
}
.wetland-month {
    display: grid;
    grid-template-rows: 1fr auto;
    align-items: end;
    gap: 4px;
    height: 100%;
    text-align: center;
}
.wetland-month-bar {
    width: 100%;
    min-height: 2px;
    border-radius: 5px 5px 0 0;
    background: #cbd5e1;
}
.wetland-month-bar--breed { background: #2d6a4f; }
.wetland-month-bar--passage { background: #d97706; }
.wetland-month-bar--winter { background: #0284c7; }
.wetland-month span { color: #64748b; font-size: .53rem; font-weight: 800; }
.wetland-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 7px;
    color: #64748b;
    font-size: .62rem;
}
.wetland-legend i { display: inline-block; width: 8px; height: 8px; margin-right: 3px; border-radius: 50%; }
.wetland-top-species,
.wetland-threat-list,
.wetland-source-list {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.wetland-top-species li,
.wetland-threat-list li {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    color: #334155;
    font-size: .72rem;
}
.wetland-top-species a { color: #075985; font-weight: 800; text-decoration: none; }
.wetland-top-species small { color: #64748b; white-space: nowrap; }
.wetland-threat-list li { justify-content: flex-start; }
.wetland-threat-list i { margin-top: 2px; color: #dc2626; }
.wetland-sensitive-note {
    margin-top: 9px !important;
    border-left: 3px solid #dc2626;
    background: #fff7ed;
    padding: 8px 9px;
}
.wetland-source-list li { font-size: .69rem; color: #475569; line-height: 1.4; }
.wetland-source-list a { color: #0369a1; font-weight: 800; }
.wetland-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 12px;
}
.wetland-actions a,
.wetland-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid #0e7490;
    border-radius: 9px;
    background: #0e7490;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: .7rem;
    font-weight: 800;
    padding: 8px;
    text-decoration: none;
}
.wetland-actions a:last-child { background: #fff; color: #0e7490; }

@media (max-width: 980px) {
    .wetland-detail-panel {
        top: auto;
        right: 10px;
        bottom: 10px;
        left: 10px;
        width: auto;
        min-width: 0;
        height: min(70%, 620px);
    }
}

@media (max-width: 620px) {
    .wetland-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wetland-filter-grid { grid-template-columns: 1fr; }
    .wetland-filter-grid label:first-child { grid-column: auto; }
    .wetland-detail-panel { height: min(76%, 640px); border-radius: 15px; }
    .wetland-detail-head { padding: 13px; }
    .wetland-detail-body { padding: 11px; }
}

@media (max-width: 768px) {
    .maps-page {
        height: calc(100vh - 65px) !important;
        height: calc(100dvh - 65px) !important;
        overflow: hidden !important;
        position: relative !important;
    }

    /* 1. Brand Dark Emerald Glassmorphic Floating Top Bar */
    .maps-bluebar {
        position: absolute !important;
        top: 10px !important;
        left: 10px !important;
        right: 10px !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
        min-height: 42px !important;
        max-height: 42px !important;
        padding: 4px 6px !important;
        gap: 6px !important;
        align-items: center !important;
        justify-content: flex-start !important;
        background: rgba(6, 36, 27, 0.88) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        border: 1px solid rgba(16, 185, 129, 0.25) !important;
        border-radius: 24px !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28) !important;
        z-index: 1050 !important;
    }
    .maps-bluebar::-webkit-scrollbar { display: none !important; }
    
    .maps-bluebar-btn {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        min-height: 32px !important;
        height: 32px !important;
        padding: 0 12px !important;
        border-radius: 16px !important;
        font-size: 0.76rem !important;
        font-weight: 700 !important;
        border-bottom: none !important;
        background: rgba(255, 255, 255, 0.1) !important;
        color: rgba(255, 255, 255, 0.85) !important;
        gap: 5px !important;
        transition: all 0.2s ease !important;
    }
    .maps-bluebar-btn.is-active {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
        color: #ffffff !important;
        box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4) !important;
    }

    /* 2. Full-Screen Map Stage */
    .maps-stage {
        height: 100% !important;
        width: 100% !important;
        position: relative !important;
    }
    .maps-panel {
        height: 100% !important;
        width: 100% !important;
    }
    #map-full,
    #map-gps,
    #map-breeding {
        height: 100% !important;
        width: 100% !important;
    }

    /* Leaflet Control reposition on mobile */
    .leaflet-top.leaflet-left {
        top: 60px !important;
        left: auto !important;
        right: 12px !important;
    }
    .leaflet-control-zoom {
        border: none !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
        border-radius: 10px !important;
        overflow: hidden !important;
    }
    .leaflet-control-zoom a {
        background: rgba(255, 255, 255, 0.95) !important;
        color: #06241b !important;
        font-weight: 800 !important;
    }

    /* 3. Collapsible Bottom Sheet Overlay */
    .map-sidebar-overlay,
    .maps-fly-overlay,
    .breeding-atlas-toolbar {
        position: absolute !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        border-radius: 22px 22px 0 0 !important;
        padding: 0 !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        box-shadow: 0 -8px 30px rgba(6, 36, 27, 0.18) !important;
        z-index: 1000 !important;
        transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* Handle Bar */
    .mobile-sheet-handle {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 8px 16px 10px !important;
        cursor: pointer !important;
        background: #ffffff !important;
        border-bottom: 1px solid #f1f5f9 !important;
        border-radius: 22px 22px 0 0 !important;
        flex-shrink: 0 !important;
        user-select: none !important;
    }
    .sheet-pill-indicator {
        width: 38px;
        height: 4px;
        background: #cbd5e1;
        border-radius: 4px;
        margin-bottom: 6px;
    }
    .sheet-header-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    .sheet-title-text {
        font-family: 'Outfit', sans-serif;
        font-size: 0.88rem;
        font-weight: 750;
        color: #06241b;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .sheet-action-hint {
        font-size: 0.74rem;
        font-weight: 700;
        color: #059669;
        display: flex;
        align-items: center;
        gap: 4px;
        background: #ecfdf5;
        padding: 3px 10px;
        border-radius: 12px;
    }
    .sheet-chevron {
        transition: transform 0.3s ease;
    }

    /* Collapsed State: Only 50px header visible */
    .map-sidebar-overlay.is-collapsed,
    .maps-fly-overlay.is-collapsed,
    .breeding-atlas-toolbar.is-collapsed {
        max-height: 52px !important;
        overflow: hidden !important;
    }
    .is-collapsed .sheet-scrollable-body {
        display: none !important;
    }
    .is-collapsed .sheet-chevron {
        transform: rotate(0deg);
    }

    /* Expanded State: Up to 68vh scrollable */
    .map-sidebar-overlay.is-expanded,
    .maps-fly-overlay.is-expanded,
    .breeding-atlas-toolbar.is-expanded {
        max-height: 68vh !important;
    }
    .is-expanded .sheet-scrollable-body {
        display: block !important;
        overflow-y: auto !important;
        padding: 12px 16px 24px !important;
        flex: 1 1 auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .is-expanded .sheet-chevron {
        transform: rotate(180deg);
    }
    .is-expanded .sheet-action-hint {
        background: #fee2e2;
        color: #dc2626;
    }

    .maps-fly-overlay h2,
    .map-sidebar-overlay h2 {
        font-size: 1.05rem !important;
        margin-bottom: 2px !important;
        color: #06241b !important;
    }
    .maps-fly-kicker {
        font-size: 0.8rem !important;
        margin-bottom: 6px !important;
    }
    .maps-season-bar {
        gap: 4px !important;
        margin: 6px 0 8px !important;
    }
    .maps-season-btn {
        padding: 6px 4px !important;
        font-size: 0.72rem !important;
        border-radius: 8px !important;
    }
    .maps-fly-note,
    .maps-fly-caption {
        font-size: 0.72rem !important;
        line-height: 1.4 !important;
        margin-bottom: 8px !important;
    }
    .breeding-country-control { width: 100% !important; }
    #breeding-country-select { max-width: none !important; }
    .breeding-atlas-summary { gap: 5px !important; }
    .breeding-atlas-legend { margin-left: 0 !important; }
}

.map-full-container {
    height: calc(100vh - 70px);
    position: relative;
}

.maps-hub-search-wrap {
    position: relative;
    min-width: min(320px, 100%);
    flex: 1;
}

.maps-hub-search-wrap > i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

#gps-species-search,
#map-filter-input {
    width: 100%;
    padding: 9px 12px 9px 34px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-family: Inter, sans-serif;
    outline: none;
    background: var(--bg-card);
    color: var(--text-dark);
}

#gps-species-search:focus,
#map-filter-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}

.maps-hub-search-results {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 40;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    max-height: 380px;
    overflow-y: auto;
}

.maps-hub-search-item {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    padding: 9px 12px;
    cursor: pointer;
    font-family: Inter, sans-serif;
}

.maps-hub-search-item:hover {
    background: rgba(45, 106, 79, 0.08);
}

.maps-hub-search-item strong {
    display: block;
    color: var(--primary-dark);
    font-size: 0.88rem;
}

.maps-hub-search-item span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

.maps-hub-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 16px 8px;
}

.maps-hub-chip {
    border: 1px solid var(--border-light);
    background: var(--bg-main);
    color: var(--primary-dark);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.maps-hub-chip:hover,
.maps-hub-chip.is-active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.maps-hub-legend,
.maps-hub-mini-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 0 16px 8px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.maps-hub-legend .dot,
.maps-hub-mini-legend .pin {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}

.maps-hub-list-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--border-light);
}

.maps-hub-list-tabs .sidebar-tab {
    background: none;
    border: none;
    padding: 8px 2px;
    font-family: Outfit, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.maps-hub-list-tabs .sidebar-tab.active {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}

.maps-hub-toggle {
    display: flex;
    background: #e9ecef;
    padding: 4px;
    border-radius: var(--radius-sm);
    gap: 4px;
}

.maps-hub-toggle .btn-toggle {
    flex: 1;
    border: none;
    padding: 7px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: transparent;
    color: var(--text-muted);
}

.maps-hub-toggle .btn-toggle.active {
    background: var(--primary);
    color: #fff;
}

.maps-hub-filter {
    position: relative;
}

.maps-hub-filter > i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.8rem;
}

.maps-hub-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

#btn-toggle-all-time {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.72rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.btn-maps-enlarge {
    text-decoration: none;
    text-align: center;
    background: #1b4332;
    color: #fff !important;
}

.map-sidebar-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    width: 350px;
    max-height: calc(100% - 40px);
    background-color: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    border: 1px solid var(--border-light);
    padding: 25px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.map-sidebar-overlay h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* --- AUTH SCREENS --- */
.auth-container {
    max-width: 450px;
    margin: 80px auto;
}

.auth-card {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.auth-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-reset-row {
    text-align: right;
    margin: -8px 0 18px;
}

.auth-reset-row a {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--primary-medium, #2d6a4f);
}

/* --- ADMIN PANEL --- */
.admin-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.admin-sidebar {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    padding: 15px 0;
}

.admin-menu-item {
    padding: 12px 25px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid transparent;
}

.admin-menu-item:hover,
.admin-menu-item.active {
    background-color: var(--bg-main);
    color: var(--primary-medium);
    border-left-color: var(--primary-medium);
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.admin-stat-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    background-color: rgba(27,67,50,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-medium);
}

.admin-stat-info {
    display: flex;
    flex-direction: column;
}

.admin-stat-val {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.admin-stat-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Admin Tables */
.table-container {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

.admin-table th {
    background-color: rgba(27, 67, 50, 0.04);
    padding: 15px 20px;
    font-weight: 700;
    color: var(--primary-dark);
    border-bottom: 1px solid var(--border-light);
}

.admin-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-light);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-admin {
    background-color: rgba(217, 4, 41, 0.1);
    color: #d90429;
}

.badge-user {
    background-color: rgba(27, 67, 50, 0.1);
    color: var(--primary-medium);
}

.btn-action {
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.btn-action-approve {
    background-color: var(--primary-medium);
    color: var(--text-white);
}

.btn-action-approve:hover {
    background-color: var(--primary-light);
}

.btn-action-reject {
    background-color: #d90429;
    color: var(--text-white);
}

.btn-action-reject:hover {
    background-color: #ef233c;
}

/* --- FLASH MESSAGES --- */
.flash-container {
    max-width: 1400px;
    margin: 20px auto 0 auto;
    padding: 0 20px;
}

.flash-message {
    padding: 15px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flash-success {
    background-color: var(--accent-rgba-20);
    color: var(--primary);
    border: 1px solid var(--accent);
}

.flash-error {
    background-color: rgba(217, 4, 41, 0.1);
    color: #800f2f;
    border: 1px solid #d90429;
}

.flash-close {
    background: none;
    border: none;
    font-weight: 800;
    cursor: pointer;
    color: inherit;
}

/* --- LIGHTBOX MODAL --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--text-white);
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
}

/* Autocomplete suggestions dropdown dropdown */
.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    max-height: 380px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.suggestion-empty {
    padding: 14px 16px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: var(--bg-main);
}

.suggestion-thumb {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.suggestion-info {
    display: flex;
    flex-direction: column;
}

.suggestion-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.suggestion-sci {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-style: italic;
}

/* --- FOOTER --- */
footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0;
    font-size: 0.85rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    margin-bottom: 10px;
}

footer strong {
    color: var(--text-white);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.footer-contact-label {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.footer-contact a {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--accent, #95d5b2);
    text-decoration: underline;
}

/* --- RESPONSIVENESS --- */
@media (max-width: 1100px) {
    .home-grid {
        grid-template-columns: 1fr 1fr;
    }
    .home-col:last-child {
        grid-column: span 2;
    }
    .birds-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .home-grid {
        grid-template-columns: 1fr;
    }
    .home-col:last-child {
        grid-column: span 1;
    }
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-bottom: -150px;
    }
    .stat-item {
        border-right: none;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .birds-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bird-detail-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }
    .birds-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   MOBILE HEADER NAVBAR BUTTONS (LOGIN & REGISTER)
   ========================================================================== */
@media (max-width: 768px) {
    .navbar {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .desktop-nav {
        display: none !important;
    }
    .nav-actions {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 8px !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }
    .btn-header-login {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        height: 32px !important;
        padding: 0 12px !important;
        font-size: 0.78rem !important;
        font-weight: 700 !important;
        border-radius: 16px !important;
        border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.14) !important;
        backdrop-filter: blur(4px) !important;
        white-space: nowrap !important;
        text-decoration: none !important;
    }
    .mobile-toggle-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        height: 32px !important;
        padding: 0 !important;
        font-size: 1.15rem !important;
        border-radius: 10px !important;
        border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
        background: rgba(255, 255, 255, 0.14) !important;
        color: #ffffff !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        position: relative !important;
    }
    .mobile-toggle-btn:hover {
        background: rgba(255, 255, 255, 0.25) !important;
        color: var(--accent) !important;
    }
    .btn-header-register {
        display: none !important;
    }
    .btn-header-login:active,
    .mobile-toggle-btn:active {
        transform: scale(0.96) !important;
    }
    .spotlight-trigger-btn,
    .lang-switcher {
        display: none !important;
    }
    .user-menu .user-trigger {
        height: 32px !important;
        padding: 0 8px !important;
        font-size: 0.78rem !important;
        background: rgba(255, 255, 255, 0.14) !important;
        border-radius: 16px !important;
        border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
        color: #ffffff !important;
    }
    .user-menu .user-trigger-name {
        max-width: 80px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
}

/* ===== PAGE LOAD BIRD FLIGHT PRELOADER ===== */
#page-bird-preloader {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #1b4332 0%, #081c15 80%, #040e0a 100%);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#page-bird-preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Flying Birds Sky Container */
.preloader-sky {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

/* Flying Bird SVG Elements */
.flying-bird-svg {
    position: absolute;
    fill: #52b788;
    filter: drop-shadow(0 4px 12px rgba(82, 183, 136, 0.45));
}

.flying-bird-svg .left-wing {
    transform-origin: 32px 32px;
    animation: wing-flap-left 0.35s ease-in-out infinite alternate;
}

.flying-bird-svg .right-wing {
    transform-origin: 32px 32px;
    animation: wing-flap-right 0.35s ease-in-out infinite alternate;
}

@keyframes wing-flap-left {
    0% { transform: rotate(-28deg) scaleY(1.1); }
    100% { transform: rotate(38deg) scaleY(0.65); }
}

@keyframes wing-flap-right {
    0% { transform: rotate(28deg) scaleY(1.1); }
    100% { transform: rotate(-38deg) scaleY(0.65); }
}

/* Bird Trajectories Across Screen */
.bird-flock-1 {
    width: 62px;
    height: 62px;
    animation: fly-trajectory-1 3.2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

.bird-flock-2 {
    width: 44px;
    height: 44px;
    animation: fly-trajectory-2 3.5s cubic-bezier(0.25, 1, 0.5, 1) 0.25s infinite;
}

.bird-flock-3 {
    width: 50px;
    height: 50px;
    animation: fly-trajectory-3 3.3s cubic-bezier(0.25, 1, 0.5, 1) 0.55s infinite;
}

.bird-flock-4 {
    width: 36px;
    height: 36px;
    animation: fly-trajectory-4 3.9s cubic-bezier(0.25, 1, 0.5, 1) 0.85s infinite;
}

.bird-flock-5 {
    width: 40px;
    height: 40px;
    animation: fly-trajectory-5 3.6s cubic-bezier(0.25, 1, 0.5, 1) 1.1s infinite;
}

@keyframes fly-trajectory-1 {
    0% {
        left: -80px;
        bottom: 18%;
        transform: rotate(22deg) scale(0.7);
        opacity: 0;
    }
    12% { opacity: 1; }
    88% { opacity: 1; }
    100% {
        left: 110vw;
        bottom: 82%;
        transform: rotate(18deg) scale(1.1);
        opacity: 0;
    }
}

@keyframes fly-trajectory-2 {
    0% {
        left: -60px;
        bottom: 10%;
        transform: rotate(28deg) scale(0.6);
        opacity: 0;
    }
    12% { opacity: 0.9; }
    88% { opacity: 0.9; }
    100% {
        left: 110vw;
        bottom: 72%;
        transform: rotate(22deg) scale(0.9);
        opacity: 0;
    }
}

@keyframes fly-trajectory-3 {
    0% {
        left: -100px;
        bottom: 28%;
        transform: rotate(18deg) scale(0.8);
        opacity: 0;
    }
    12% { opacity: 1; }
    88% { opacity: 1; }
    100% {
        left: 110vw;
        bottom: 92%;
        transform: rotate(16deg) scale(1.15);
        opacity: 0;
    }
}

@keyframes fly-trajectory-4 {
    0% {
        left: -50px;
        bottom: 38%;
        transform: rotate(26deg) scale(0.5);
        opacity: 0;
    }
    12% { opacity: 0.8; }
    88% { opacity: 0.8; }
    100% {
        left: 110vw;
        bottom: 58%;
        transform: rotate(20deg) scale(0.75);
        opacity: 0;
    }
}

@keyframes fly-trajectory-5 {
    0% {
        left: -90px;
        bottom: 6%;
        transform: rotate(30deg) scale(0.65);
        opacity: 0;
    }
    12% { opacity: 0.85; }
    88% { opacity: 0.85; }
    100% {
        left: 110vw;
        bottom: 68%;
        transform: rotate(24deg) scale(1);
        opacity: 0;
    }
}

/* Preloader Center Branding */
.preloader-branding {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
}

.preloader-owl-logo {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    box-shadow: 0 0 25px rgba(82, 183, 136, 0.6);
    object-fit: cover;
    animation: preloader-pulse 1.6s ease-in-out infinite alternate;
}

@keyframes preloader-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 15px rgba(82, 183, 136, 0.4); }
    100% { transform: scale(1.07); box-shadow: 0 0 35px rgba(82, 183, 136, 0.85); }
}

.preloader-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1;
}

.preloader-title span {
    color: var(--accent);
}

.preloader-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.preloader-bar-wrap {
    width: 220px;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    margin-top: 4px;
}

.preloader-bar-inner {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 40%;
    background: linear-gradient(90deg, #2d6a4f, #52b788, #74c69d);
    border-radius: 4px;
    animation: preloader-loading 1.2s infinite ease-in-out;
}

@keyframes preloader-loading {
    0% { left: -40%; width: 30%; }
    50% { width: 60%; }
    100% { left: 100%; width: 30%; }
}

/* ===== DETAIL PAGE TAXONOMY GRID (6 Symmetrical Cards) ===== */
.detail-taxonomy-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-top: 15px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-soft);
}

.taxon-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 10px 11px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 84px;
    min-width: 0;
    transition: var(--transition);
}

.taxon-card-link {
    color: inherit;
    text-decoration: none;
}
.taxon-card-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}
.confusion-card-current {
    outline: 2px solid var(--accent);
}

.taxon-card:hover {
    background: #ffffff;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(82, 183, 136, 0.15);
}

.taxon-card-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.taxon-card-value {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.3;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.taxon-card-value.font-tr {
    color: #0f172a;
    font-size: 0.92rem;
}

.taxon-card-value.font-sci {
    font-style: italic;
    color: #1e3a8a;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.84rem;
    line-height: 1.25;
}

.taxon-card-value.font-order {
    font-style: italic;
    color: #0f766e;
    font-weight: 600;
    font-size: 0.82rem;
    line-height: 1.25;
}

.family-main {
    font-size: 0.86rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.family-sub {
    font-size: 0.74rem;
    font-style: italic;
    color: #64748b;
    font-weight: 600;
    margin-top: 2px;
    line-height: 1.2;
}

.iucn-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #ffffff;
    padding: 3px 7px;
    font-size: 0.72rem;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .detail-taxonomy-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }
}

@media (max-width: 768px) {
    /* Reduce top gap by half on mobile */
    .bio-info-panel,
    .bio-info-panel--hero {
        margin-bottom: 6px !important;
    }
    
    #detail-description-card {
        padding: 12px 14px 16px !important;
        margin-top: 6px !important;
    }
    
    #detail-description-card .section-title {
        margin-top: 0 !important;
        margin-bottom: 8px !important;
        font-size: 1.15rem !important;
        text-align: center !important;
        justify-content: center !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
    }
    
    #detail-description-card .section-title::before,
    #detail-description-card .section-title::after {
        content: '' !important;
        flex: 1 !important;
        height: 1px !important;
        background-color: #e2e8f0 !important;
    }

    .detail-taxonomy-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
        padding: 6px !important;
        margin-top: 4px !important;
        margin-bottom: 10px !important;
        border-radius: 10px !important;
    }
    .taxon-card {
        padding: 6px 6px 7px !important;
        min-height: 52px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        border-radius: 8px !important;
        gap: 2px !important;
    }
    .taxon-card-label {
        font-size: 0.62rem !important;
        font-weight: 800 !important;
        letter-spacing: 0.03em !important;
        margin-bottom: 2px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        gap: 4px !important;
        width: 100% !important;
    }
    .taxon-card-label i {
        font-size: 0.65rem !important;
    }
    .taxon-card-value {
        font-size: 0.8rem !important;
        font-weight: 700 !important;
        line-height: 1.15 !important;
        text-align: center !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .taxon-card-value.font-tr {
        font-size: 0.82rem !important;
    }
    .taxon-card-value.font-sci {
        font-size: 0.76rem !important;
    }
    .taxon-card-value.font-order {
        font-size: 0.76rem !important;
    }
    .family-main {
        font-size: 0.8rem !important;
        text-align: center !important;
        line-height: 1.15 !important;
    }
    .family-sub {
        font-size: 0.66rem !important;
        text-align: center !important;
        margin-top: 1px !important;
        line-height: 1.1 !important;
    }
    .iucn-badge {
        padding: 2px 6px !important;
        font-size: 0.66rem !important;
        border-radius: 5px !important;
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }
}

/* ===== SPECIES DETAIL EDITORIAL CARD & TABS ===== */
.species-editorial-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 24px 28px;
    box-shadow: var(--shadow-soft);
    margin-top: 10px;
    min-height: 180px;
}

.tab-section-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 18px;
}

.species-prose {
    font-size: 1.02rem;
    line-height: 1.85;
    color: #334155;
}

.species-prose p {
    margin-bottom: 16px;
    text-align: left;
    line-height: 1.85;
}

.species-prose p.prose-numbered-item,
.prose-numbered-item {
    text-align: left !important;
    text-align-last: left !important;
    font-weight: 700;
    color: var(--primary-dark);
    margin-top: 20px;
    margin-bottom: 6px;
    line-height: 1.4;
    word-spacing: normal !important;
    letter-spacing: normal !important;
}

.species-prose p.prose-numbered-item:first-child,
.prose-numbered-item:first-child {
    margin-top: 0;
}

.species-prose p:last-child {
    margin-bottom: 0;
}

.species-prose strong {
    color: var(--primary-dark);
    font-weight: 700;
}

.species-prose em {
    font-style: italic;
    color: #475569;
}

.prose-heading {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 26px 0 12px;
    padding-left: 12px;
    border-left: 3px solid var(--accent);
    line-height: 1.45;
}

.species-prose > .prose-heading:first-child {
    margin-top: 0;
}

.prose-list {
    margin: 0 0 16px;
    padding-left: 20px;
    list-style: none;
}

.prose-list li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 16px;
    line-height: 1.75;
}

.prose-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.prose-list li:last-child {
    margin-bottom: 0;
}

.prose-table-wrap {
    overflow-x: auto;
    margin: 0 0 18px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md, 10px);
}

.prose-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.prose-table tr:nth-child(odd) {
    background: #f8fafc;
}

.prose-table td {
    padding: 9px 14px;
    border-bottom: 1px solid #e2e8f0;
    line-height: 1.6;
}

.prose-table tr:last-child td {
    border-bottom: none;
}

.prose-table td:first-child {
    font-weight: 600;
    color: var(--primary-dark);
    white-space: nowrap;
    width: 38%;
}

@media (max-width: 640px) {
    .prose-table {
        font-size: 0.88rem;
    }
    .prose-table td {
        padding: 8px 10px;
    }
    .prose-table td:first-child {
        white-space: normal;
    }
}

.empty-tab-text {
    color: #94a3b8;
    font-style: italic;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    color: var(--text-muted);
    border-bottom: 3px solid transparent;
    border-radius: 6px 6px 0 0;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tab-btn:hover {
    color: var(--primary-dark);
    background: rgba(45, 106, 79, 0.04);
}

.tab-btn.active {
    color: var(--primary-dark);
    border-bottom: 3px solid var(--primary);
    background: rgba(45, 106, 79, 0.08);
}

/* Option 1: Mobile 2-Row Segmented Pills (max-width: 768px) */
@media (max-width: 768px) {
    .tabs-nav-wrapper {
        display: block !important;
        margin-top: 18px !important;
        margin-bottom: 14px !important;
    }
    
    .tabs-nav {
        display: flex !important;
        flex-wrap: wrap !important; /* 2 Satır Dizilim */
        gap: 6px !important;
        border-bottom: none !important;
        padding-bottom: 0 !important;
        overflow-x: visible !important;
        background: #f1f5f9 !important;
        padding: 5px !important;
        border-radius: 12px !important;
        border: 1px solid #e2e8f0 !important;
    }
    
    .tab-btn {
        flex: 1 1 calc(33.333% - 6px) !important; /* 1. Satır: 3 Buton */
        min-width: 0 !important;
        padding: 8px 6px !important;
        font-size: 0.78rem !important;
        font-weight: 700 !important;
        justify-content: center !important;
        text-align: center !important;
        border-radius: 8px !important;
        border-bottom: none !important;
        background: transparent !important;
        color: #475569 !important;
        white-space: nowrap !important;
        gap: 5px !important;
        transition: all 0.2s ease !important;
    }
    
    .tab-btn i {
        font-size: 0.82rem !important;
    }
    
    /* 2. Satır: 2 Buton (Beslenme & İlginç Bilgiler) %50 paylaşır */
    .tab-btn:nth-child(4),
    .tab-btn:nth-child(5) {
        flex: 1 1 calc(50% - 6px) !important;
    }
    
    .tab-btn.active {
        background: #2d6a4f !important;
        color: #ffffff !important;
        box-shadow: 0 2px 6px rgba(45, 106, 79, 0.25) !important;
    }
    
    .tab-btn.active i {
        color: #ffffff !important;
    }
    
    /* Editorial card display */
    .species-editorial-card {
        display: block !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 14px !important;
        padding: 16px !important;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
    }
    
    .species-editorial-card .tab-content {
        display: none;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        padding: 0 !important;
    }
    
    .species-editorial-card .tab-content.active-tab-content {
        display: block !important;
        animation: tabContentFadeIn 0.2s ease;
    }
    
    .species-editorial-card .tab-section-header {
        display: flex !important;
        align-items: center !important;
        padding: 0 0 12px 0 !important;
        margin-bottom: 12px !important;
        border-bottom: 1px dashed #e2e8f0 !important;
        background: transparent !important;
        cursor: default !important;
    }
    
    .species-editorial-card .accordion-chevron {
        display: none !important;
    }
    
    /* Mobile Linguistic & Editorial Typography (Turkish Justified & Hyphenated Standard) */
    .species-editorial-card {
        padding: 16px 14px 20px !important;
        border-radius: 14px !important;
    }

    .species-editorial-card .tab-content .species-prose,
    .species-editorial-card .species-prose,
    .species-editorial-card--derekusu .species-prose,
    .species-prose {
        display: block !important;
        padding: 0 !important;
        font-size: 0.94rem !important;
        line-height: 1.72 !important;
        color: #1e293b !important;
        text-align: justify !important;
        text-justify: inter-word !important;
        text-align-last: left !important;
        -webkit-hyphens: auto !important;
        -ms-hyphens: auto !important;
        hyphens: auto !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
    }

    .species-editorial-card .species-prose p,
    .species-editorial-card--derekusu .species-prose p,
    .species-prose p {
        margin-bottom: 14px !important;
        line-height: 1.72 !important;
        text-align: justify !important;
        text-justify: inter-word !important;
        text-align-last: left !important;
        -webkit-hyphens: auto !important;
        -ms-hyphens: auto !important;
        hyphens: auto !important;
    }

    .species-prose p.prose-numbered-item,
    .prose-numbered-item {
        text-align: left !important;
        text-align-last: left !important;
        word-spacing: normal !important;
        letter-spacing: normal !important;
        font-weight: 750 !important;
        margin-top: 18px !important;
        margin-bottom: 6px !important;
        line-height: 1.35 !important;
        display: block !important;
    }

    .species-prose p.prose-numbered-item:first-child,
    .prose-numbered-item:first-child {
        margin-top: 0 !important;
    }

    .species-prose p:last-child {
        margin-bottom: 0 !important;
    }

    .species-prose strong {
        color: #0f172a !important;
        font-weight: 750 !important;
    }

    .species-prose em {
        font-style: italic !important;
        color: #334155 !important;
    }

    .prose-heading {
        font-size: 0.98rem !important;
        font-weight: 800 !important;
        color: #0f172a !important;
        margin: 18px 0 10px !important;
        padding-left: 8px !important;
        border-left: 3.5px solid var(--accent) !important;
        line-height: 1.35 !important;
        text-align: left !important;
        text-align-last: left !important;
    }

    /* Mobile Footer Clean Copyright */
    .footer-brand-prefix {
        display: none !important;
    }
    .footer-copyright-line {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
        text-align: center !important;
    }
    .footer-slogan-text {
        font-size: 0.78rem !important;
        text-align: center !important;
        width: 100% !important;
        margin-top: 4px !important;
    }
}

@keyframes tabContentFadeIn {
    from {
        opacity: 0;
        transform: translateY(3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 1. FIELD ID & SIMILAR SPECIES COMPARISON ===== */
.similar-species-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 14px;
}

.similar-species-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.similar-species-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.similar-species-card.highlight-current {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
}

.similar-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    background: #e2e8f0;
    color: #475569;
    margin-bottom: 6px;
}

.similar-badge.current {
    background: #2d6a4f;
    color: #ffffff;
}

.similar-name {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 2px 0;
}

.similar-sci {
    font-size: 0.8rem;
    font-style: italic;
    color: #64748b;
    font-family: 'Outfit', sans-serif;
    display: block;
    margin-bottom: 12px;
}

.similar-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.82rem;
    color: #334155;
    line-height: 1.45;
}

.similar-footer {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px dashed #cbd5e1;
}

.similar-compare-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: gap 0.2s ease;
}

.similar-compare-link:hover {
    gap: 9px;
    text-decoration: underline;
}

/* ===== 2. SPECIES BIOMETRICS — Biyolojik Bilgiler (foto altı, LTR) ===== */
.bio-info-panel {
    margin: 8px 0 12px;
    padding: 10px 12px 12px;
    background: #22262b;
    border-radius: 10px;
    border: 1px solid #32363c;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2);
}

.bio-info-panel--hero {
    margin-top: 8px;
}

.bio-info-title {
    margin: 0 0 8px;
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #f0a202;
    letter-spacing: 0.02em;
}

.bio-info-cols {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: flex-start;
    gap: 6px;
    direction: ltr;
    width: 100%;
}

.bio-info-col {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex: 1 1 0;
    min-width: 0;
}

.bio-info-icon {
    color: #ffffff;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    line-height: 1;
}

.bio-info-icon--wing {
    height: 32px;
}

.bio-info-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: lowercase;
    line-height: 1.2;
}

.bio-info-value {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: #f0a202;
    line-height: 1.2;
}

.bio-sex-under {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 6px;
    width: 100%;
    margin-top: 2px;
}

.bio-sex-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 3px 7px 4px;
    border-radius: 6px;
    min-width: 0;
    flex: 1 1 auto;
    max-width: 110px;
}

.bio-sex-pill--m {
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.45);
}

.bio-sex-pill--f {
    background: rgba(244, 114, 182, 0.14);
    border: 1px solid rgba(244, 114, 182, 0.45);
}

.bio-sex-pill em {
    font-style: normal;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.1;
}

.bio-sex-pill--m em {
    color: #7dd3fc;
}

.bio-sex-pill--f em {
    color: #f9a8d4;
}

.bio-sex-pill strong {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    color: #f0a202;
    line-height: 1.15;
    white-space: nowrap;
}

.bio-info-empty {
    opacity: 0.4 !important;
}

@media (max-width: 768px) {
    .bio-info-panel {
        padding: 10px 8px 12px;
    }
    .bio-info-cols {
        gap: 6px;
    }
    .bio-info-icon {
        height: 28px;
        font-size: 1.4rem;
    }
    .bio-info-label {
        font-size: 0.72rem;
    }
    /* Mobile: Erkek Üstte, Dişi Altta Dikey Yığın */
    .bio-sex-under {
        flex-direction: column;
        align-items: center;
        gap: 3px;
        margin-top: 4px;
    }
    .bio-sex-pill {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 4px;
        padding: 2px 6px;
        width: 100%;
        max-width: 135px;
        box-sizing: border-box;
    }
    .bio-sex-pill em {
        font-size: 0.58rem;
        flex-shrink: 0;
    }
    .bio-sex-pill strong {
        font-size: 0.72rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.bio-measure-table td {
    padding: 8px 10px;
    font-size: 0.85rem;
    vertical-align: top;
    border-bottom: 1px solid #f1f5f9;
}

.bio-measure-table tr:last-child td {
    border-bottom: none;
}

/* ===== 3. PHENOLOGY STAGES TIMELINE ===== */
.phenology-stages-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 12px;
}

.pheno-stage {
    padding: 10px 8px;
    text-align: center;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.75rem;
    font-weight: 700;
}

.pheno-stage small {
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.9;
}

.stage-winter {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.stage-arrival {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.stage-peak {
    background: #dcfce7;
    color: #15803d;
    border: 1.5px solid #86efac;
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.15);
}

.stage-depart {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

@media (max-width: 640px) {
    .phenology-stages-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== 4. MIGRATION ROUTE INTERACTIVE BUTTON ===== */
.btn-migration-interactive {
    width: 100%;
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
    color: #ffffff;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 3px 8px rgba(27, 67, 50, 0.25);
    transition: all 0.2s ease;
}

.btn-migration-interactive:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(27, 67, 50, 0.35);
}

.btn-migration-interactive.active-route {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 3px 8px rgba(217, 119, 6, 0.3);
}

@keyframes migration-flow {
    to { stroke-dashoffset: -20; }
}

.leaflet-overlay-pane .migration-dash {
    stroke-dasharray: 10 10;
    animation: migration-flow 1.1s linear infinite;
}

.leaflet-overlay-pane .migration-dash-vagrant {
    stroke-dasharray: 2 10;
    animation: migration-flow 1.4s linear infinite;
}

/* ===== COMPARE PAGE AUTOCOMPLETE LIVE SEARCH ===== */
.compare-selector-panel {
    padding: 22px 24px;
    border-radius: var(--radius-lg, 16px);
    background: #ffffff;
    border: 1px solid #d8e8dd;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(27, 67, 50, 0.05);
}

.compare-search-form {
    display: grid;
    grid-template-columns: 1fr 48px 1fr auto;
    gap: 16px;
    align-items: start;
}

.compare-search-wrapper {
    position: relative;
}

.compare-label-row {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 8px;
    height: 28px;
    width: 100%;
}

.compare-search-label {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--primary-dark, #1b4332);
    margin-bottom: 6px;
    letter-spacing: 0.2px;
    margin-left: auto;
    margin-right: auto;
}

.compare-label-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #e8f5e9;
    color: #1b4332;
    padding: 4px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    border: 1px solid rgba(45, 106, 79, 0.25);
    letter-spacing: 0.5px;
}

.compare-label-badge-2 {
    background: #e0f2fe;
    color: #0369a1;
    border-color: rgba(3, 105, 161, 0.25);
}

.compare-label-text {
    display: none;
}

.compare-mobile-swap-btn {
    display: none;
    align-items: center;
    gap: 5px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.compare-mobile-swap-btn:hover {
    background: var(--primary, #2d6a4f);
    color: #ffffff;
    border-color: var(--primary, #2d6a4f);
}

.compare-input-box {
    position: relative;
    display: flex;
    align-items: center;
    background: #fbfdfb;
    border: 1.5px solid #c8ded1;
    border-radius: 10px;
    padding: 0 8px;
    height: 44px;
    transition: all 0.2s ease;
}

.compare-input-box:focus-within {
    background: #ffffff;
    border-color: var(--primary, #2d6a4f);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}

.compare-input-box .search-icon {
    color: var(--primary, #2d6a4f);
    margin-left: 4px;
    font-size: 0.9rem;
    opacity: 0.85;
}

.compare-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px 10px;
    font-size: 0.92rem;
    font-family: inherit;
    color: #0f172a;
    background: transparent;
    min-width: 0;
}

.compare-search-input::placeholder {
    color: #94a3b8;
    font-size: 0.85rem;
}

.btn-clear-search {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-clear-search:hover {
    color: #dc2626;
    background: #fee2e2;
}

.selected-bird-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    font-size: 0.76rem;
    color: #334155;
    flex-wrap: wrap;
}

.selected-bird-pill .pill-badge {
    background: #dcfce7;
    color: #15803d;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 8px;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #bbf7d0;
}

.selected-bird-pill .pill-name {
    font-weight: 700;
    color: var(--primary-dark, #1b4332);
}

.selected-bird-pill .pill-sci {
    font-style: italic;
    color: #64748b;
    font-size: 0.74rem;
}

.compare-vs-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 2px solid #cbd5e1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--primary-dark, #1b4332);
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: start;
    justify-self: center;
    margin-top: 36px;
}

.compare-submit-wrapper {
    display: flex;
    align-items: center;
    margin-top: 36px;
    align-self: start;
}

.compare-vs-badge:hover {
    background: var(--primary, #2d6a4f);
    color: #ffffff;
    border-color: var(--primary, #2d6a4f);
    transform: rotate(180deg);
}

@media (max-width: 992px) {
    .compare-selector-panel {
        padding: 14px 14px;
        margin-bottom: 18px;
        border-radius: 14px;
        background: linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
    }
    .compare-search-form {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .compare-vs-badge {
        display: none !important;
    }
    .compare-mobile-swap-btn {
        display: inline-flex;
    }
    .compare-search-label {
        margin-bottom: 4px;
        font-size: 0.78rem;
    }
    .compare-input-box {
        height: 40px;
        border-radius: 9px;
    }
    .compare-search-input {
        font-size: 0.86rem;
        padding: 6px 8px;
    }
    .btn-compare-action {
        width: 100%;
        height: 42px;
        font-size: 0.9rem;
        border-radius: 9px;
    }
    .compare-submit-wrapper {
        margin-top: 2px;
    }
}

.compare-suggestions-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    max-height: 320px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.highlighted {
    background: #f0fdf4;
}

.suggestion-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.suggestion-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.suggestion-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.suggestion-sci {
    font-size: 0.78rem;
    font-style: italic;
    color: #64748b;
    font-family: 'Outfit', sans-serif;
}

.suggestion-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    background: #e8f5e9;
    padding: 3px 10px;
    border-radius: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.suggestion-item:hover .suggestion-badge,
.suggestion-item.highlighted .suggestion-badge {
    opacity: 1;
}

.btn-compare-action {
    padding: 12px 26px;
    font-weight: 700;
    font-size: 0.92rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(27, 67, 50, 0.25);
    transition: all 0.2s ease;
    height: 46px;
    white-space: nowrap;
}

.btn-compare-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(27, 67, 50, 0.35);
}

/* ===== HOMEPAGE BIRD SEARCH BOX & AUTOCOMPLETE ===== */
.search-box-panel {
    position: relative;
    margin-bottom: 14px;
}

.search-box-panel input.bird-search-input {
    width: 100%;
    padding: 10px 38px 10px 14px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.88rem;
    font-family: inherit;
    color: var(--text-dark);
    outline: none;
    transition: all 0.2s ease;
}

.search-box-panel input.bird-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
}

.search-box-panel i.fa-magnifying-glass {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    font-size: 0.9rem;
}

.autocomplete-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    max-height: 380px;
    overflow-y: auto;
    z-index: 1000;
}

.story-scroll-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 5;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.story-scroll-btn:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #94a3b8;
    transform: scale(1.08);
}

.story-scroll-btn.left {
    margin-right: 6px;
}

.story-scroll-btn.right {
    margin-left: 6px;
}

/* ===== MORPHOLOGICAL FIELD ID DIAGRAM ===== */
.morph-diagram-card {
    margin-top: 25px;
    padding: 26px 28px;
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.morph-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 22px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 16px;
}

.morph-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 24px;
    align-items: stretch;
}

@media (max-width: 900px) {
    .morph-grid {
        grid-template-columns: 1fr;
    }
}

/* Left Visual Silhouette Panel */
.morph-visual-panel {
    background: linear-gradient(145deg, #0d2818 0%, #081c15 100%);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
    min-height: 380px;
}

.morph-svg-container {
    position: relative;
    width: 100%;
    max-width: 280px;
    height: 300px;
}

.morph-svg-container svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.4));
}

/* Hotspot Pins */
.morph-hotspot-pin {
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #10b981;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2.5px solid #ffffff;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.4), 0 4px 10px rgba(0,0,0,0.5);
    transform: translate(-50%, -50%);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
}

.morph-hotspot-pin:hover {
    transform: translate(-50%, -50%) scale(1.2);
    background: #059669;
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.6);
}

.morph-hotspot-pin.active {
    background: #f59e0b;
    border-color: #ffffff;
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.5), 0 0 20px rgba(245, 158, 11, 0.8);
    transform: translate(-50%, -50%) scale(1.25);
    animation: morphPulse 1.8s infinite;
}

@keyframes morphPulse {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.morph-pin-hint {
    margin-top: 12px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Right Stepper Card Panel */
.morph-card-panel {
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.morph-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}

.morph-step-counter {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--primary-dark);
    background: #e2e8f0;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.morph-nav-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.morph-nav-btn {
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.morph-nav-btn:hover:not(:disabled) {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-1px);
}

.morph-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Slide Content */
.morph-slide {
    display: none;
    animation: fadeInSlide 0.3s ease;
}

.morph-slide.active {
    display: block;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.morph-slide-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 14px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.morph-key-trait-box {
    background: #ffffff;
    border: 1.5px solid #10b981;
    border-left: 5px solid #10b981;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 14px;
}

.morph-key-trait-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: #047857;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.morph-key-trait-text {
    font-size: 0.92rem;
    color: #1e293b;
    line-height: 1.55;
    margin: 0;
}

.morph-compare-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 14px;
}

.morph-compare-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: #b45309;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.morph-compare-list {
    margin: 0;
    padding-left: 18px;
    font-size: 0.85rem;
    color: #451a03;
    line-height: 1.5;
}

.morph-field-tip-box {
    background: #f0fdf4;
    border: 1px dashed #86efac;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.83rem;
    color: #166534;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.45;
}

/* Dots Indicator */
.morph-dots-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}

.morph-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.morph-dot:hover {
    background: #94a3b8;
}

.morph-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 6px;
}

/* ===== REALISTIC ORNITHOLOGICAL FIELD GUIDE PLATE ===== */
.field-plate-card {
    margin-top: 25px;
    padding: 26px 28px;
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.field-plate-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 16px;
}

.plate-toggle-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
}

.plate-toggle-scroll {
    width: 100%;
    margin-top: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1px 1px 8px;
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 transparent;
    -webkit-overflow-scrolling: touch;
}

.plate-toggle-group-bottom {
    justify-content: space-between;
}

.plate-toggle-btn {
    padding: 8px clamp(10px, 1.15vw, 18px);
    font-size: clamp(0.72rem, 0.82vw, 0.85rem);
    font-weight: 700;
    border-radius: 20px;
    border: 1.5px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.plate-toggle-btn:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.plate-toggle-btn.active {
    background: var(--primary-dark);
    color: #ffffff;
    border-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(13, 40, 24, 0.25);
}

/* Two-column layout: Left Plate Image with Hotspots, Right Interactive Diagnostic Card */
.field-plate-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
    align-items: start;
}

.field-plate-layout:has(.plate-canvas-female-only) {
    grid-template-columns: 1fr;
}

.field-plate-canvas.plate-canvas-female-only {
    max-width: 720px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .field-plate-layout {
        grid-template-columns: 1fr;
    }
}

/* Realistic Plate Canvas Frame */
.field-plate-canvas {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f4f1ea;
    border: 1px solid #e2ded5;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.field-plate-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: #f4f1ea;
    max-height: 560px;
    transition: transform 0.3s ease;
}

.field-plate-img-photo {
    padding: 12px 12px 28px 12px;
    object-fit: contain;
}

.plate-single-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 800;
    color: #92400e;
    background: #fffbeb;
    border: 1.5px solid #fde68a;
    border-radius: 20px;
}

/* Minimalist Glowing Interactive Hotspot Pins */
.plate-hotspot-pin {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0f172a;
    color: #ffffff;
    border: 2.5px solid #f59e0b;
    font-size: 0.88rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.35), 0 4px 12px rgba(0,0,0,0.4);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
}

.plate-hotspot-pin:hover,
.plate-hotspot-pin.active {
    transform: translate(-50%, -50%) scale(1.28);
    background: #f59e0b;
    color: #0f172a;
    border-color: #ffffff;
    box-shadow: 0 0 0 7px rgba(245, 158, 11, 0.5), 0 8px 22px rgba(0,0,0,0.5);
    z-index: 15;
}

/* Morph & Population Information Box */
.plate-morph-box {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.82rem;
    color: #334155;
    line-height: 1.55;
    transition: all 0.2s ease;
}

.plate-morph-box strong {
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 4px;
}

/* Right Column: Diagnostic Feature Box */
.plate-diag-panel {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-soft);
}

.plate-diag-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
}

.plate-diag-badge {
    background: #e8f5e9;
    color: #1b4332;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.76rem;
    font-weight: 800;
    border: 1px solid #a7f3d0;
}

.plate-diag-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plate-diag-sci {
    display: none !important;
}

.plate-diag-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #334155;
    margin: 0;
}

.plate-key-trait {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.84rem;
    color: #166534;
    line-height: 1.5;
}

.plate-compare-box {
    background: #fffbeb;
    border: 1.5px solid #fde68a;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.82rem;
    color: #92400e;
    line-height: 1.5;
}

.plate-nav-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}

.plate-step-btn {
    padding: 7px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 20px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.plate-step-btn:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.plate-step-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.plate-step-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.plate-step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.plate-step-dot.active {
    background: var(--primary);
    width: 20px;
    border-radius: 4px;
}

/* Confusion species thumbnail strip under field-guide plates */
.confusion-strip {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed #d6d3d1;
}

.confusion-strip-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.confusion-strip-title {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.confusion-strip-title i {
    color: #d97706;
}

.confusion-strip-sub {
    margin: 4px 0 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.confusion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 10px;
}

.confusion-card {
    background: #faf8f3;
    border: 1px solid #e7e0d4;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.confusion-card:hover {
    transform: translateY(-2px);
    border-color: #c4b5a0;
    box-shadow: 0 8px 18px rgba(27, 67, 50, 0.1);
}

.confusion-thumb-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    flex: 1;
    min-width: 0;
}

.confusion-thumb {
    aspect-ratio: 4 / 3;
    background: #ffffff;
    border-bottom: 1px solid #ede8df;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    box-sizing: border-box;
}

.confusion-thumb img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: auto;
    transition: transform 0.22s ease;
}

.confusion-card:hover .confusion-thumb img {
    transform: scale(1.05);
}

.confusion-badge {
    display: inline-block;
    margin: 8px 10px 0 10px;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #92400e;
    background: #fef3c7;
    border-radius: 999px;
    padding: 2px 7px;
    width: fit-content;
}

.confusion-name {
    display: block;
    margin: 6px 10px 0 10px;
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.25;
}

.confusion-sci {
    display: block;
    margin: 2px 10px 0 10px;
    font-size: 0.72rem;
    font-style: italic;
    color: #78716c;
}

.confusion-hint {
    display: block;
    margin: 6px 10px 0 10px;
    font-size: 0.72rem;
    line-height: 1.4;
    color: #57534e;
}

.confusion-compare {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 8px 10px 10px 10px;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.confusion-compare:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .confusion-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Guest homepage join gate */
.guest-join-overlay {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(8, 28, 21, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.guest-join-overlay.is-open {
    display: flex;
}

body.guest-join-locked {
    overflow: hidden;
}

.guest-join-dialog {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 36px 28px 28px;
    text-align: center;
    color: var(--text-main);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(8, 28, 21, 0.35);
    animation: guestJoinIn 0.35s ease-out;
}

@keyframes guestJoinIn {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.guest-join-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}

.guest-join-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 14px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent);
    box-shadow: 0 6px 18px rgba(82, 183, 136, 0.35);
}

.guest-join-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guest-join-kicker {
    margin: 0 0 8px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-medium);
}

.guest-join-dialog h2 {
    margin: 0 0 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.25;
}

.guest-join-text {
    margin: 0 0 22px;
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.guest-join-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(27, 67, 50, 0.28);
}

.guest-join-cta:hover {
    color: #fff;
    filter: brightness(1.06);
}

/* ==========================================================================
   MODERN CLEAN HOMEPAGE & DASHBOARD STYLES
   ========================================================================== */

/* Hero Section (Compact & Sleek - Option 1: Scandinavian Emerald & Crisp Slate) */
.hero-clean-section {
    background: radial-gradient(circle at 50% 15%, #0d3b2e 0%, #06241b 60%, #02120c 100%);
    padding: 16px 20px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.hero-clean-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(16, 185, 129, 0.12) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    opacity: 0.6;
}

.hero-clean-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

.hero-clean-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 700;
    margin-bottom: 6px;
    backdrop-filter: blur(6px);
}

.hero-clean-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin: 0 0 2px 0;
}

.hero-highlight {
    background: linear-gradient(135deg, #10b981 0%, #6ee7b7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-clean-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
    line-height: 1.4;
    margin: 0 auto 10px auto;
    max-width: 620px;
    font-weight: 400;
}

/* Spotlight Search (Compact) */
.hero-search-wrap {
    max-width: 660px;
    margin: 0 auto 12px auto;
}

.hero-search-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 40px;
    padding: 4px 6px 4px 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(82, 183, 136, 0.25);
    transition: all 0.25s ease;
}

.hero-search-form:focus-within {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(82, 183, 136, 0.4);
    transform: translateY(-1px);
}

.hero-search-icon {
    color: #94a3b8;
    font-size: 1rem;
    margin-right: 10px;
}

.hero-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.92rem;
    color: #0f172a;
    font-weight: 500;
    background: transparent;
}

.hero-search-input::placeholder {
    color: #94a3b8;
    font-size: 0.85rem;
}

.hero-search-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    border: none;
    padding: 9px 18px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hero-search-submit-btn:hover {
    filter: brightness(1.15);
    transform: translateX(2px);
}

/* ==========================================================================
   HERO & CATALOG INSTANT AUTOCOMPLETE DROPDOWN
   ========================================================================== */
.hero-search-wrap {
    position: relative;
    width: 100%;
}

.hero-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.06);
    z-index: 1050;
    max-height: 440px;
    overflow-y: auto;
    padding: 8px;
    text-align: left;
    backdrop-filter: blur(10px);
    animation: heroDropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes heroDropdownFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px 6px 12px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 4px;
}

.hero-dropdown-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hero-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #0f172a;
    transition: background 0.15s ease, transform 0.15s ease;
    cursor: pointer;
}

.hero-dropdown-item:hover,
.hero-dropdown-item.is-selected {
    background: #f1f5f9;
}

.hero-dropdown-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.hero-dropdown-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.hero-dropdown-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: #0f172a;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-dropdown-match {
    color: #2d6a4f;
    font-weight: 800;
    background: rgba(82, 183, 136, 0.2);
    padding: 0 2px;
    border-radius: 3px;
}

.hero-dropdown-meta {
    font-size: 0.78rem;
    color: #64748b;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-dropdown-badge {
    font-style: normal;
    font-size: 0.70rem;
    font-weight: 600;
    background: #eef2ff;
    color: #4338ca;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
    flex-shrink: 0;
}

.hero-dropdown-arrow {
    color: #cbd5e1;
    font-size: 0.85rem;
    transition: transform 0.15s ease, color 0.15s ease;
    padding-left: 4px;
}

.hero-dropdown-item:hover .hero-dropdown-arrow,
.hero-dropdown-item.is-selected .hero-dropdown-arrow {
    color: var(--primary);
    transform: translateX(3px);
}

.hero-dropdown-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    background: #f8fafc;
    border-radius: 8px;
    margin-top: 6px;
    text-decoration: none;
    transition: background 0.15s;
    border: 1px dashed #cbd5e1;
}

.hero-dropdown-footer:hover {
    background: #edf2f7;
    color: var(--primary-dark);
}

.hero-dropdown-empty {
    padding: 24px 16px;
    text-align: center;
    color: #64748b;
    font-size: 0.88rem;
}

.hero-quick-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.quick-tag-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
}

.quick-tag-pill {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    padding: 2px 10px;
    border-radius: 16px;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.2s ease;
}

.quick-tag-pill:hover {
    background: var(--accent);
    color: #05140f;
    border-color: var(--accent);
}

/* Clean Stats Bar (Compact) */
.hero-clean-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 760px;
    margin: 0 auto;
}

.clean-stat-box {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(6px);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    cursor: pointer;
}

.clean-stat-box:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
    border-color: rgba(82, 183, 136, 0.45);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.clean-stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(82, 183, 136, 0.18);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.clean-stat-data {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.clean-stat-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.clean-stat-lbl {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 2px;
}

.clean-stat-box:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.clean-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(82, 183, 136, 0.18);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.clean-stat-data {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.clean-stat-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
}

.clean-stat-lbl {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-top: 2px;
}

/* Stories Standalone Card */
.stories-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    max-width: 980px;
    margin: 0 auto 16px auto;
    width: 100%;
    box-sizing: border-box;
}

.stories-and-alert-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    max-width: 980px;
    margin: 0 auto 16px auto;
    width: 100%;
    box-sizing: border-box;
}

.rare-alert-integrated,
.rare-alert-standalone {
    background: #fff5f5;
    border: 1px solid #fee2e2;
    border-radius: 14px;
    padding: 10px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.06);
    max-width: 980px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .rare-alert-integrated,
    .rare-alert-standalone {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 14px;
    }
}

.rare-alert-tag {
    background: #ef4444;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 12px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.rare-alert-items {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.rare-alert-link {
    color: #1e293b;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
}

.rare-alert-link strong {
    color: #b91c1c;
}

.rare-alert-loc {
    color: #64748b;
    font-size: 0.72rem;
}

.rare-alert-sep {
    color: #cbd5e1;
}

.rare-alert-more {
    color: #ef4444;
    font-weight: 700;
    font-size: 0.78rem;
    text-decoration: none;
    white-space: nowrap;
}

.stories-row-wrap {
    padding: 12px 16px 14px;
}

/* Stories Clean Bar */
.stories-clean-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.stories-clean-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 0.88rem;
    color: #0f172a;
}

.stories-ig-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 0.68rem;
    font-weight: 700;
    text-decoration: none;
}

.stories-clean-hint {
    font-size: 0.72rem;
    color: #64748b;
}

.stories-scroll-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.bird-stories-scroll {
    display: flex !important;
    flex-direction: row !important;
    gap: 14px !important;
    overflow-x: auto !important;
    padding: 8px 6px !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    width: 100%;
    justify-content: safe center;
}

@media (min-width: 992px) {
    .bird-stories-scroll {
        justify-content: center !important;
    }
}

.bird-stories-scroll::-webkit-scrollbar {
    display: none !important;
}

.story-item-clean {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    cursor: pointer;
    flex-shrink: 0 !important;
    width: 82px !important;
    text-align: center !important;
    transition: transform 0.2s ease;
}

.story-item-clean:hover {
    transform: translateY(-3px);
}

.story-ring-clean {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    padding: 2.5px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(220, 39, 67, 0.22);
    box-sizing: border-box;
    flex-shrink: 0;
}

.story-ring-clean img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
    object-position: center;
    padding: 4px;
    box-sizing: border-box;
    border: 2px solid #ffffff;
    background: #ffffff;
    display: block;
}

.story-name-clean {
    font-size: 0.72rem;
    font-weight: 600;
    color: #334155;
    margin-top: 6px;
    text-align: center;
    width: 100%;
    line-height: 1.25;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 2.5em;
}

.story-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    z-index: 10;
    transition: all 0.2s ease;
}

.story-scroll-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.story-scroll-btn.left {
    left: -8px;
}

.story-scroll-btn.right {
    right: -8px;
}

/* Daily Podium Cards */
.section-clean-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 18px;
}

.section-clean-header-centered {
    text-align: center;
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section-kicker {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--primary-medium);
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-clean-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    color: #0f172a;
    margin: 4px 0 0 0;
}

.section-clean-link {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
}

.daily-photos-grid-clean {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.daily-card-clean {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.daily-card-clean:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.daily-rank-pill {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.daily-rank-pill.gold { background: #fbbf24; color: #78350f; }
.daily-rank-pill.silver { background: #e2e8f0; color: #334155; }
.daily-rank-pill.bronze { background: #fed7aa; color: #9a3412; }

.daily-card-img-wrap {
    position: relative;
    height: 240px;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.daily-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.4s ease;
}

.daily-card-img-wrap.has-plate,
.daily-card-img-wrap:has(img[src*="illustrations"]) {
    background: #ffffff;
}

.daily-card-img-wrap.has-plate img,
.daily-card-img-wrap img[src*="illustrations"] {
    object-fit: contain !important;
    object-position: center center !important;
    padding: 10px 14px !important;
    background: #ffffff !important;
    width: 100% !important;
    height: 100% !important;
}

.daily-card-clean:hover .daily-card-img-wrap.has-plate img,
.daily-card-clean:hover .daily-card-img-wrap img[src*="illustrations"] {
    transform: scale(1.04);
}

.daily-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
    pointer-events: none;
}

.daily-card-img-wrap.has-plate .daily-card-gradient,
.daily-card-img-wrap:has(img[src*="illustrations"]) .daily-card-gradient {
    display: none;
}

.daily-card-heart {
    position: absolute;
    bottom: 10px;
    right: 12px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    color: #f87171;
    padding: 4px 9px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 5;
}

.daily-card-img-wrap.has-plate .daily-card-heart,
.daily-card-img-wrap:has(img[src*="illustrations"]) .daily-card-heart {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e2e8f0;
    color: #e11d48;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.daily-card-body {
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.daily-card-tr {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.daily-card-sci {
    font-size: 0.75rem;
    color: #64748b;
    font-style: italic;
}

.daily-card-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.daily-author-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

.daily-author-avatar-ph {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.daily-author-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
}

/* 2-Column Balanced Dashboard Layout */
.dashboard-two-col {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
    align-items: start;
}

.dash-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.dash-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.dash-panel-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-panel-more {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

/* Latest Photos Grid */
.latest-photos-grid-clean {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.latest-photo-box {
    position: relative;
    height: 155px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #0f172a;
}

.latest-photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.latest-photo-box:hover img {
    transform: scale(1.08);
}

.latest-photo-info-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 8px 6px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
}

.latest-photo-bird {
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.latest-photo-user {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.75);
}

/* Activity Feed */
.activity-feed-clean {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-row-clean {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    transition: background-color 0.15s ease;
}

.activity-row-clean:hover {
    background-color: #f8fafc;
}

.activity-row-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.activity-row-content {
    flex: 1;
}

.activity-row-text {
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.35;
}

.activity-row-user {
    font-weight: 700;
    color: #0f172a;
}

.activity-row-action {
    color: #64748b;
}

.activity-row-target {
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.activity-row-time {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 2px;
}

/* Map Box Clean */
.map-box-clean {
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    margin-bottom: 14px;
}

#map-preview {
    width: 100%;
    height: 100%;
}

.popular-spots-clean {
    margin-top: 10px;
}

.popular-spots-title {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #475569;
    letter-spacing: 0.4px;
    margin-bottom: 8px;
}

.popular-spots-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.spot-chip {
    background: #f1f5f9;
    color: #334155;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

.spot-chip:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* Popular Birds List */
.popular-birds-list-clean {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.popular-bird-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.popular-bird-row:hover {
    background-color: #f8fafc;
    transform: translateX(3px);
}

.popular-bird-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
}

.popular-bird-meta {
    flex: 1;
}

.popular-bird-tr {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
}

.popular-bird-sci {
    font-size: 0.72rem;
    color: #64748b;
    font-style: italic;
}

.popular-bird-counts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
}

/* Join CTA */
.join-cta-clean {
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    color: #ffffff;
}

.join-cta-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.join-cta-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.join-cta-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.45;
    margin-bottom: 16px;
}

.join-cta-btn {
    display: inline-block;
    background: var(--accent);
    color: #05140f;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 10px 22px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.join-cta-btn:hover {
    filter: brightness(1.1);
    transform: scale(1.03);
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 992px) {
    .dashboard-two-col {
        grid-template-columns: 1fr;
    }
    .hero-clean-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .daily-photos-grid-clean {
        grid-template-columns: 1fr;
    }
    .latest-photos-grid-clean {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-clean-title {
        font-size: 2.1rem;
    }
}

@media (max-width: 600px) {
    .hero-clean-stats {
        grid-template-columns: 1fr;
    }
    .latest-photos-grid-clean {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-search-form {
        flex-direction: column;
        border-radius: 16px;
        padding: 12px;
    }
    .hero-search-submit-btn {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }
}

/* ==========================================================================
   MOBILE APP EXPERIENCE: 5-BUTTON BOTTOM TAB BAR
   ========================================================================== */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(66px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
    z-index: 9999;
    user-select: none;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .mobile-bottom-bar {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        align-items: center;
    }
}

.bottom-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    color: #64748b;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    gap: 3px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-sizing: border-box;
    text-align: center;
}

.bottom-tab-item i {
    font-size: 1.25rem;
    line-height: 1;
    transition: transform 0.2s ease, color 0.2s ease;
}

.bottom-tab-item:active i {
    transform: scale(0.88);
}

.bottom-tab-item.active {
    color: var(--primary-dark);
}

.bottom-tab-item.active i {
    color: var(--primary);
    transform: translateY(-2px);
}

.bottom-tab-item.active::after {
    content: '';
    position: absolute;
    bottom: calc(4px + env(safe-area-inset-bottom, 0px));
    width: 18px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

/* Prominent Middle Center Action Button */
.bottom-action-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(27, 67, 50, 0.35);
    border: 2px solid #ffffff;
    margin-bottom: 2px;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bottom-tab-item:active .bottom-action-circle {
    transform: scale(0.9);
    box-shadow: 0 2px 6px rgba(27, 67, 50, 0.25);
}

.bottom-tab-item.tab-action-highlight span {
    color: var(--primary-dark);
    font-weight: 800;
}

@media (max-width: 768px) {
    .mobile-bottom-bar {
        display: flex;
    }
    body {
        padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
        background: #f8fafc;
    }

    /* iOS 18 Liquid Glass Hero Section */
    .hero-clean-section {
        padding: 18px 0 14px !important;
        background: linear-gradient(180deg, #1b4332 0%, #153829 70%, #f8fafc 100%) !important;
    }

    .hero-clean-badge {
        background: rgba(255, 255, 255, 0.12) !important;
        backdrop-filter: blur(12px) !important;
        border: 1px solid rgba(255, 255, 255, 0.25) !important;
        font-size: 0.75rem !important;
        border-radius: 20px !important;
        margin-bottom: 6px !important;
    }

    .hero-clean-title {
        font-size: 1.85rem !important;
        margin-bottom: 4px !important;
    }

    .hero-clean-subtitle {
        font-size: 0.84rem !important;
        opacity: 0.9 !important;
        margin-bottom: 12px !important;
    }

    .hero-search-form {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        border-radius: 22px !important;
        padding: 8px 12px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
        border: 1px solid rgba(255, 255, 255, 0.8) !important;
    }

    .hero-search-input {
        font-size: 0.9rem !important;
        padding: 8px 6px !important;
    }

    /* iOS 18 Liquid Glass 3-Pill Stats Widgets */
    .hero-clean-stats {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        margin-top: 20px !important;
    }

    .clean-stat-box {
        background: rgba(255, 255, 255, 0.88) !important;
        backdrop-filter: blur(16px) !important;
        border: 1px solid rgba(255, 255, 255, 0.9) !important;
        border-radius: 18px !important;
        padding: 12px 8px !important;
        text-align: center !important;
        flex-direction: column !important;
        align-items: center !important;
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
    }

    .clean-stat-icon {
        width: 32px !important;
        height: 32px !important;
        border-radius: 10px !important;
        font-size: 0.9rem !important;
        margin-bottom: 4px !important;
    }

    .clean-stat-num {
        font-size: 1.15rem !important;
        font-weight: 800 !important;
        color: #0f172a !important;
    }

    .clean-stat-lbl {
        font-size: 0.68rem !important;
        font-weight: 700 !important;
        color: #64748b !important;
    }

    /* iOS 18 Günün Kuş Türü Hero Card */
    .daily-card-clean {
        border-radius: 22px !important;
        overflow: hidden !important;
        background: #ffffff !important;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
        border: 1px solid rgba(226, 232, 240, 0.9) !important;
        margin-bottom: 16px !important;
    }

    .daily-card-img-wrap {
        height: 220px !important;
    }

    .daily-card-tr {
        font-size: 1.15rem !important;
        font-weight: 800 !important;
    }

    .daily-card-sci {
        font-size: 0.8rem !important;
        font-style: italic !important;
    }

    /* iOS 18 Community Sightings List Cards */
    .activity-item {
        background: #ffffff !important;
        border-radius: 18px !important;
        padding: 12px 14px !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
        align-items: center !important;
    }

    .activity-avatar {
        width: 44px !important;
        height: 44px !important;
        border-radius: 50% !important;
        border: 2px solid var(--accent) !important;
    }

    .activity-username {
        font-size: 0.92rem !important;
        font-weight: 800 !important;
        color: var(--primary-dark) !important;
    }

    .activity-text {
        font-size: 0.82rem !important;
        color: #334155 !important;
    }
}

/* ==========================================================================
   REDESIGNED CATEGORIZED MOBILE DRAWER
   ========================================================================== */
.mobile-drawer-categories {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 20px;
}

.drawer-category-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    overflow: hidden;
}

.drawer-category-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    color: var(--accent);
    padding: 10px 14px 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.drawer-links-grid {
    display: flex;
    flex-direction: column;
}

.drawer-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.15s ease;
}

.drawer-link-item:hover, .drawer-link-item:active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding-left: 18px;
}

.drawer-link-item i {
    width: 20px;
    font-size: 1rem;
    text-align: center;
}

.drawer-link-badge {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 10px;
}

/* ==========================================================================
   SPOTLIGHT QUICK SPECIES SEARCH (CTRL + K)
   ========================================================================== */
.spotlight-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 16px 20px;
}

.spotlight-modal-box {
    width: 100%;
    max-width: 640px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    animation: spotlightPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes spotlightPop {
    from { opacity: 0; transform: scale(0.95) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.spotlight-search-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.spotlight-search-header i.search-icon {
    font-size: 1.25rem;
    color: var(--primary);
}

.spotlight-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    font-family: inherit;
    color: var(--primary-dark);
    outline: none;
    font-weight: 600;
}

.spotlight-shortcut-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    background: #e2e8f0;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: monospace;
}

.spotlight-results-wrap {
    max-height: 420px;
    overflow-y: auto;
    padding: 8px;
}

.spotlight-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.spotlight-item:hover, .spotlight-item.is-selected {
    background: #f1f5f9;
}

.spotlight-item-img {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    background: #f4f1ea;
}

.spotlight-item-meta {
    flex: 1;
}

.spotlight-item-name {
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--primary-dark);
    margin-bottom: 2px;
}

.spotlight-item-sci {
    font-size: 0.78rem;
    color: #64748b;
    font-style: italic;
}

.spotlight-item-arrow {
    color: #94a3b8;
    font-size: 0.85rem;
}

.spotlight-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 0.75rem;
    color: #64748b;
}

/* ==========================================================================
   CANLI SAHA REHBERİ (FIELD ATLAS PRO - MOBILE ARCHITECTURE)
   ========================================================================== */
.field-atlas-mobile-view {
    display: none;
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
        position: relative !important;
        touch-action: pan-y;
        overscroll-behavior-y: none !important;
        overscroll-behavior-x: none !important;
    }

    .desktop-homepage-view {
        display: none !important;
    }
    .field-atlas-mobile-view {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        padding: 12px 14px 90px !important;
        background: #f1f5f9 !important;
        min-height: 100vh !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* 1. Field Top Header */
    .field-header {
        display: flex;
        flex-direction: column;
        gap: 10px;
        background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
        padding: 14px 16px;
        border-radius: 18px;
        color: #ffffff;
        box-shadow: 0 8px 24px rgba(27, 67, 50, 0.25);
    }

    .field-brand {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
    }

    .field-logo-owl {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        border: 2px solid var(--accent);
        object-fit: cover;
        flex-shrink: 0;
    }

    .field-brand-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        flex: 1 1 auto;
        min-width: 0;
    }

    .field-brand-main {
        font-family: 'Outfit', sans-serif;
        font-size: 1.15rem;
        font-weight: 800;
        letter-spacing: 0.5px;
        color: #ffffff;
        text-align: center;
        line-height: 1.2;
    }

    .field-brand-sub {
        font-size: 0.68rem;
        color: rgba(255, 255, 255, 0.85);
        font-weight: 600;
        text-align: center;
        line-height: 1.2;
    }

    .field-search-btn {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        background: #ffffff;
        border: none;
        border-radius: 14px;
        padding: 10px 14px;
        color: #475569;
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
        width: 100%;
        position: relative;
        box-sizing: border-box;
    }

    .field-search-btn i {
        color: #1b4332;
        font-size: 1.05rem;
    }

    .field-search-btn span {
        flex: 1 1 auto;
        text-align: left;
        color: #334155;
        font-size: 0.92rem;
        font-weight: 600;
        margin-left: 2px;
    }

    .field-search-btn kbd,
    .field-search-kbd {
        margin-left: auto;
        background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%) !important;
        color: #ffffff !important;
        font-size: 0.78rem !important;
        font-weight: 700 !important;
        padding: 5px 14px !important;
        border-radius: 9px !important;
        letter-spacing: 0.3px !important;
        box-shadow: 0 2px 6px rgba(27, 67, 50, 0.35) !important;
        border: none !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* 2. Live Radar Strip */
    .field-radar-strip {
        display: flex;
        align-items: center;
        gap: 10px;
        background: #ffffff;
        border: 1px solid #fed7aa;
        border-radius: 14px;
        padding: 8px 12px;
        box-shadow: 0 2px 10px rgba(249, 115, 22, 0.08);
        overflow: hidden;
    }

    .field-radar-badge {
        font-size: 0.72rem;
        font-weight: 800;
        color: #c2410c;
        background: #ffedd5;
        padding: 4px 8px;
        border-radius: 8px;
        white-space: nowrap;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .field-radar-scroll {
        display: flex;
        align-items: center;
        gap: 14px;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }

    .field-radar-scroll::-webkit-scrollbar { display: none; }

    .field-radar-item {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-size: 0.78rem;
        color: #334155;
        text-decoration: none;
        font-weight: 600;
    }

    .field-radar-item strong { color: #0f172a; font-weight: 800; }
    .field-radar-item span { color: #64748b; font-size: 0.72rem; }

    .radar-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #ea580c;
        display: inline-block;
    }

    /* 3. 4 Büyük Saha Aksiyon Kartı (2x2 Grid) */
    .field-action-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .field-tile {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 9px;
        border-radius: 14px;
        background: #ffffff;
        text-decoration: none;
        color: inherit;
        border: 1px solid rgba(226, 232, 240, 0.95);
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
        transition: transform 0.15s ease;
        position: relative;
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .field-tile:active {
        transform: scale(0.97);
    }

    .tile-icon-wrap {
        width: 34px;
        height: 34px;
        min-width: 34px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        flex-shrink: 0;
    }

    .tile-catalog .tile-icon-wrap { background: #e0f2fe; color: #0284c7; }
    .tile-record .tile-icon-wrap { background: #dcfce7; color: #16a34a; }
    .tile-map .tile-icon-wrap { background: #fef3c7; color: #d97706; }
    .tile-ai .tile-icon-wrap { background: #f3e8ff; color: #9333ea; }

    .tile-text {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        justify-content: center;
    }

    .tile-title {
        font-family: 'Outfit', sans-serif;
        font-size: 0.84rem;
        font-weight: 800;
        color: #0f172a;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: left;
        width: 100%;
    }

    .tile-sub {
        font-size: 0.63rem;
        color: #64748b;
        font-weight: 600;
        margin-top: 1px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: left;
        width: 100%;
    }

    .tile-arrow {
        display: none !important;
    }

    /* 4. Section Blocks */
    .field-section-block {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 4px;
    }

    .field-section-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 4px;
    }

    .field-section-title {
        font-family: 'Outfit', sans-serif;
        font-size: 1.05rem;
        font-weight: 800;
        color: #0f172a;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .field-section-note {
        font-size: 0.74rem;
        color: #64748b;
        font-weight: 600;
    }

    .field-section-link {
        font-size: 0.78rem;
        font-weight: 800;
        color: var(--primary);
        text-decoration: none;
    }

    /* Stories Carousel */
    .field-stories-carousel {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        padding: 4px 2px 8px;
        scrollbar-width: none;
    }

    .field-stories-carousel::-webkit-scrollbar { display: none; }

    .field-story-bubble {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        cursor: pointer;
        flex-shrink: 0;
        width: 66px;
    }

    .field-story-ring {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        padding: 2.5px;
        background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .field-story-ring img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: contain;
        object-position: center center;
        background: #ffffff;
        border: 2px solid #ffffff;
        padding: 1px;
    }

    .field-story-name {
        font-size: 0.68rem;
        font-weight: 700;
        color: #334155;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
    }

    /* 5. Photo Cards (Büyük Canlı Kartlar) */
    .field-photo-cards {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .field-photo-card {
        background: #ffffff;
        border-radius: 20px;
        overflow: hidden;
        border: 1px solid rgba(226, 232, 240, 0.9);
        box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
        cursor: pointer;
    }

    .field-card-media {
        position: relative;
        width: 100%;
        height: 240px;
        background: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .field-card-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

    .field-card-media.has-plate,
    .field-card-media:has(img[src*="illustrations"]) {
        background: #ffffff;
    }

    .field-card-media.has-plate img,
    .field-card-media img[src*="illustrations"] {
        object-fit: contain !important;
        object-position: center center !important;
        padding: 10px 14px !important;
        background: #ffffff !important;
        width: 100% !important;
        height: 100% !important;
    }

    .field-rank-tag {
        position: absolute;
        top: 12px;
        left: 12px;
        background: rgba(245, 158, 11, 0.95);
        color: #ffffff;
        font-size: 0.72rem;
        font-weight: 800;
        padding: 4px 10px;
        border-radius: 12px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .field-like-pill {
        position: absolute;
        bottom: 12px;
        right: 12px;
        background: rgba(0, 0, 0, 0.65);
        backdrop-filter: blur(8px);
        color: #ffffff;
        font-size: 0.75rem;
        font-weight: 700;
        padding: 4px 10px;
        border-radius: 20px;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .field-like-pill i { color: #f43f5e; }

    .field-card-body {
        padding: 12px 14px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .field-card-names {
        display: flex;
        flex-direction: column;
    }

    .field-bird-tr {
        font-family: 'Outfit', sans-serif;
        font-size: 1.05rem;
        font-weight: 800;
        color: #0f172a;
    }

    .field-bird-sci {
        font-size: 0.78rem;
        color: #64748b;
        font-style: italic;
    }

    .field-card-author {
        font-size: 0.78rem;
        font-weight: 700;
        color: var(--primary);
        background: #f1f5f9;
        padding: 5px 10px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        gap: 5px;
    }
}


@media (max-width: 768px) {
    .desktop-homepage-view {
        display: none !important;
    }
    .ios18-mobile-view {
        display: block !important;
        padding: 14px 14px 90px !important;
        background: #f8fafc !important;
        min-height: 100vh !important;
    }

    /* iOS 18 Top Header */
    .ios-header-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
        padding: 4px 2px;
    }

    .ios-header-title {
        font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Outfit", sans-serif;
        font-size: 1.65rem;
        font-weight: 800;
        color: #0f172a;
        letter-spacing: -0.5px;
        margin: 0;
    }

    .ios-header-actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .ios-header-btn {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(226, 232, 240, 0.85);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #334155;
        font-size: 0.95rem;
        text-decoration: none;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
        cursor: pointer;
    }

    /* Section Headings */
    .ios-section-heading {
        font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Outfit", sans-serif;
        font-size: 1.15rem;
        font-weight: 800;
        color: #0f172a;
        margin-bottom: 10px;
        margin-top: 14px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        letter-spacing: -0.3px;
    }

    /* Günün Kuş Türü Hero Card */
    .ios-hero-card {
        background: #ffffff;
        border-radius: 22px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
        border: 1px solid rgba(226, 232, 240, 0.85);
        margin-bottom: 18px;
        position: relative;
        text-decoration: none;
        display: block;
    }

    .ios-hero-img-box {
        position: relative;
        width: 100%;
        height: 230px;
        background: #1e293b;
    }

    .ios-hero-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .ios-hero-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.75) 100%);
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 14px 16px;
        color: #ffffff;
    }

    .ios-hero-badge {
        position: absolute;
        top: 12px;
        left: 12px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        color: #0f172a;
        font-size: 0.72rem;
        font-weight: 800;
        padding: 4px 10px;
        border-radius: 20px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .ios-hero-name-tr {
        font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
        font-size: 1.35rem;
        font-weight: 800;
        color: #ffffff;
        line-height: 1.2;
    }

    .ios-hero-name-sci {
        font-size: 0.82rem;
        color: rgba(255, 255, 255, 0.85);
        font-style: italic;
        margin-bottom: 6px;
    }

    .ios-hero-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 4px;
    }

    .ios-hero-loc {
        font-size: 0.76rem;
        color: rgba(255, 255, 255, 0.9);
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .ios-hero-cta {
        background: rgba(255, 255, 255, 0.95);
        color: #0f172a;
        font-size: 0.78rem;
        font-weight: 800;
        padding: 5px 14px;
        border-radius: 20px;
        backdrop-filter: blur(8px);
    }

    /* Gözlem İstatistikleriniz 3'lü Grid */
    .ios-stats-card-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-bottom: 18px;
    }

    .ios-stat-pill-box {
        background: #ffffff;
        border: 1px solid rgba(226, 232, 240, 0.9);
        border-radius: 16px;
        padding: 12px 6px;
        text-align: center;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .ios-stat-pill-title {
        font-size: 0.65rem;
        font-weight: 700;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    .ios-stat-pill-num {
        font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
        font-size: 1.25rem;
        font-weight: 800;
        color: #0f172a;
    }

    /* Topluluk Gözlemleri iOS Feed Cards */
    .ios-community-feed-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .ios-community-card-item {
        background: #ffffff;
        border-radius: 16px;
        padding: 10px 12px;
        border: 1px solid rgba(226, 232, 240, 0.9);
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
        display: flex;
        align-items: center;
        gap: 12px;
        text-decoration: none;
        color: inherit;
    }

    .ios-card-avatar {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid var(--accent);
    }

    .ios-card-meta {
        flex: 1;
        min-width: 0;
    }

    .ios-card-user {
        font-weight: 800;
        font-size: 0.85rem;
        color: #0f172a;
    }

    .ios-card-bird {
        font-weight: 700;
        font-size: 0.9rem;
        color: var(--primary);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ios-card-loc-time {
        font-size: 0.72rem;
        color: #64748b;
        display: flex;
        align-items: center;
        gap: 4px;
        margin-top: 2px;
    }

    .ios-card-thumb {
        width: 52px;
        height: 52px;
        border-radius: 12px;
        object-fit: cover;
        background: #f1f5f9;
    }
}

/* ==========================================================================
   TÜR TEŞHİS & TANIM HEYETİ / TOPLULUK MUTABAKATI
   ========================================================================== */
.consensus-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    margin-bottom: 24px;
}
.consensus-bar-wrap {
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    margin: 12px 0;
}
.consensus-bar-segment {
    height: 100%;
    transition: width 0.4s ease;
}
.criteria-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
}
.criteria-chip input {
    display: none;
}
.criteria-chip.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}
.criteria-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(45, 106, 79, 0.1);
    color: var(--primary-dark);
    border: 1px solid rgba(45, 106, 79, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
}
.agree-vote-btn {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.agree-vote-btn:hover {
    background: #f1f5f9;
    border-color: var(--primary);
    color: var(--primary);
}
.agree-vote-btn.has-voted {
    background: #dcfce7;
    border-color: #22c55e;
    color: #15803d;
}
.committee-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
}
.zoom-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.zoom-lightbox-img {
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   SNEAK PEEK / WELCOME UNDER CONSTRUCTION MODAL
   ========================================================================== */
.sneak-peek-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.sneak-peek-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}
.sneak-peek-dialog {
    background: #ffffff;
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    padding: 32px 28px 24px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    text-align: center;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sneak-peek-overlay.is-visible .sneak-peek-dialog {
    transform: scale(1) translateY(0);
}
.sneak-peek-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.sneak-peek-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.sneak-peek-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}
.sneak-peek-icon-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    margin-bottom: 12px;
}
.sneak-peek-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #2d6a4f;
    box-shadow: 0 8px 20px rgba(45, 106, 79, 0.25);
}
.sneak-peek-badge {
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
    color: #d8f3dc;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(45, 106, 79, 0.2);
}
.sneak-peek-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    line-height: 1.3;
}
.sneak-peek-body {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 22px;
    text-align: left;
}
.sneak-peek-body > p {
    text-align: center;
    margin-bottom: 14px;
}
.sneak-peek-features-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sneak-peek-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: #334155;
}
.sneak-peek-note {
    background: #fffbeb;
    border: 1px solid #fef08a;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.78rem;
    color: #854d0e;
    line-height: 1.5;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.sneak-peek-note i {
    margin-top: 2px;
    color: #d97706;
}
.sneak-peek-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.btn-sneak-peek-explore {
    background: linear-gradient(135deg, #2d6a4f 0%, #1b4332 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 12px 20px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(45, 106, 79, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    width: 100%;
}
.btn-sneak-peek-explore:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(45, 106, 79, 0.45);
}
.btn-sneak-peek-login {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: color 0.2s;
}
.btn-sneak-peek-login:hover {
    color: #2d6a4f;
    text-decoration: underline;
}

/* Hide Atlas filter fields on Mobile (Shown on Desktop/PC only) */
@media (max-width: 768px) {
    .desktop-only-atlas-fields {
        display: none !important;
    }
}

/* ==========================================================================
   GPS NEARBY BIRDS RADAR MODAL (20 KM RADIUS)
   ========================================================================== */
.nearby-radar-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100000;
    display: none;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.nearby-radar-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.nearby-radar-modal-box {
    background: #ffffff;
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    border-radius: 24px 24px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
    animation: slideUpModal 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUpModal {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.nearby-radar-header {
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
    color: #ffffff;
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.nearby-radar-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.18);
    color: #fef08a;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 20px;
    margin-bottom: 6px;
}

.nearby-radar-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 4px;
    color: #ffffff;
}

.nearby-radar-sub {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.35;
}

.nearby-radar-close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.nearby-radar-close-btn:hover {
    background: rgba(255, 255, 255, 0.28);
}

.nearby-radar-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    gap: 10px;
}

.nearby-radius-pills {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.nearby-radius-pills::-webkit-scrollbar {
    display: none;
}

.radius-pill {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #475569;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.radius-pill.active {
    background: #1b4332;
    border-color: #1b4332;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(27, 67, 50, 0.3);
}

.nearby-radar-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #dbeafe;
    color: #1d4ed8;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.nearby-radar-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px 30px;
    -webkit-overflow-scrolling: touch;
    min-height: 250px;
}

.nearby-radar-loading,
.nearby-empty-state,
.nearby-error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.nearby-radar-spinner {
    width: 44px;
    height: 44px;
    border: 3.5px solid #e2e8f0;
    border-top-color: #1b4332;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 14px;
}

.nearby-retry-btn {
    background: #1b4332;
    color: #ffffff;
    border: none;
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
}

.nearby-retry-btn:hover {
    background: #2d6a4f;
}

/* Nearby Birds Fallback & City Picker */
.nearby-fallback-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 5px 20px;
    max-width: 480px;
    margin: 0 auto;
}

.nearby-fallback-icon {
    font-size: 2.4rem;
    color: #f59e0b;
    margin-bottom: 12px;
}

.nearby-fallback-box h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 6px;
}

.nearby-fallback-box p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 16px;
}

.nearby-quick-cities {
    width: 100%;
    margin-bottom: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 10px;
}

.nearby-quick-label {
    display: block;
    font-size: 0.74rem;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    text-align: left;
}

.nearby-city-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
}

.nearby-city-pill {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.nearby-city-pill:hover,
.nearby-city-pill:active {
    background: #1b4332;
    color: #ffffff;
    border-color: #1b4332;
    transform: translateY(-1px);
}

.nearby-city-select-wrap {
    width: 100%;
    margin-bottom: 16px;
    text-align: left;
}

.nearby-city-select-wrap label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.nearby-province-select {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s ease;
}

.nearby-province-select:focus {
    border-color: #1b4332;
    box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.15);
}

.nearby-fallback-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.nearby-species-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nearby-species-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 8px 12px 8px 8px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nearby-species-card:active {
    transform: scale(0.98);
}

.nearby-species-img-wrap {
    width: 68px;
    height: 68px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
    flex-shrink: 0;
}

.nearby-species-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nearby-dist-badge {
    position: absolute;
    bottom: 3px;
    left: 3px;
    background: rgba(15, 23, 42, 0.8);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 4px;
    border-radius: 4px;
}

.nearby-species-info {
    flex: 1;
    min-width: 0;
}

.nearby-name-tr {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nearby-name-sci {
    font-size: 0.74rem;
    font-style: italic;
    color: #64748b;
    margin-top: 1px;
}

.nearby-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.nearby-count-pill {
    background: #dcfce7;
    color: #166534;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
}

.nearby-date-pill {
    font-size: 0.68rem;
    color: #94a3b8;
    font-weight: 600;
}

/* GPS Target Focus Pin & Pulse Ring */
.gps-target-pulse-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gps-pulse-ring {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.35);
    border: 2.5px solid #dc2626;
    animation: gpsTargetPulse 1.8s ease-out infinite;
    pointer-events: none;
}
.gps-pulse-center {
    position: absolute;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #dc2626;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
    border: 2px solid #ffffff;
}
@keyframes gpsTargetPulse {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* ==========================================================================
   NAVIGATION PROMPT & APPS CHOICE MODAL
   ========================================================================== */
.nav-prompt-card {
    position: fixed;
    bottom: 75px;
    left: 14px;
    right: 14px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    border: 1.5px solid #e2e8f0;
    padding: 14px 16px;
    z-index: 99999;
    animation: slideUpNavPrompt 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 480px;
    margin: 0 auto;
}

@keyframes slideUpNavPrompt {
    from { transform: translateY(120%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.nav-prompt-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.nav-prompt-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #1b4332;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.nav-prompt-text {
    flex: 1;
    min-width: 0;
}

.nav-prompt-text h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.98rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 3px;
    line-height: 1.25;
}

.nav-prompt-text p {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
    line-height: 1.35;
}

.nav-prompt-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0 4px;
}

.nav-prompt-actions {
    display: flex;
    gap: 8px;
}

.btn-nav-yes {
    flex: 2;
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
    color: #ffffff;
    border: none;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(27, 67, 50, 0.3);
}

.btn-nav-no {
    flex: 1;
    background: #f1f5f9;
    color: #475569;
    border: none;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}

/* Nav Apps Modal Sheet */
.nav-apps-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.nav-apps-sheet {
    background: #ffffff;
    width: 100%;
    max-width: 520px;
    border-radius: 24px 24px 0 0;
    padding: 20px 20px 30px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
    animation: slideUpModal 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-apps-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.nav-apps-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-apps-close {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #64748b;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-apps-subtitle {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0 0 16px;
}

.nav-apps-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.nav-app-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1.5px solid #e2e8f0;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    background: #ffffff;
}

.nav-app-item:active {
    transform: scale(0.98);
    background: #f8fafc;
}

.nav-app-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.nav-app-info {
    flex: 1;
    min-width: 0;
}

.nav-app-name {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.nav-app-sub {
    font-size: 0.74rem;
    color: #64748b;
    margin-top: 2px;
}

.nav-app-arrow {
    color: #cbd5e1;
    font-size: 0.9rem;
}

.nav-apps-cancel-btn {
    width: 100%;
    background: #f1f5f9;
    color: #64748b;
    border: none;
    padding: 12px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-popup-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #1b4332;
    color: #ffffff !important;
    border: none;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    margin-top: 8px;
    width: 100%;
    box-shadow: 0 2px 6px rgba(27, 67, 50, 0.3);
    text-decoration: none;
}

/* ==========================================================================
   SMART MOBILE LANDSCAPE MODE OPTIMIZATION (YATAY TELEFON MODU)
   ========================================================================== */
@media screen and (orientation: landscape) and (max-height: 540px) {
    /* 1. Header & Navigation */
    header {
        position: relative;
    }
    .navbar {
        height: 44px !important;
        padding-top: 2px !important;
        padding-bottom: 2px !important;
    }
    .logo-owl-img {
        width: 30px !important;
        height: 30px !important;
    }
    .logo-text {
        font-size: 1.05rem !important;
    }
    .desktop-nav {
        display: none !important; /* Masaüstü menülerine geçişi engelle */
    }
    .nav-actions {
        display: flex !important;
        gap: 6px !important;
    }
    .btn-header-login,
    .btn-header-register {
        height: 28px !important;
        font-size: 0.72rem !important;
        padding: 0 9px !important;
    }
    .spotlight-trigger-btn,
    .lang-switcher {
        display: none !important;
    }

    /* 2. Species Detail Header */
    .page-header--species {
        padding: 8px 0 !important;
        margin-bottom: 10px !important;
    }
    .page-header--species .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    .species-header-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;
    }
    .species-header-titles {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
    }
    .species-header-title {
        font-size: 1.22rem !important;
        margin: 0 0 2px 0 !important;
        line-height: 1.15 !important;
    }
    .species-header-subtitle {
        font-size: 0.74rem !important;
        line-height: 1.2 !important;
    }
    .species-header-back {
        padding: 5px 10px !important;
        font-size: 0.70rem !important;
        border-radius: 16px !important;
    }

    /* 3. Hero & Illustration Scale in Landscape */
    .detail-main-img,
    .detail-main-img-plate,
    .field-plate-canvas {
        max-height: 68vh !important;
        object-fit: contain !important;
        width: auto !important;
        margin: 0 auto !important;
        display: block !important;
    }

    /* 4. Bottom Nav Bar (Ultra-compact in Landscape) */
    .bottom-nav {
        height: 48px !important;
        padding: 3px 0 !important;
    }
    .bottom-nav-item {
        font-size: 0.64rem !important;
    }
    .bottom-nav-item i {
        font-size: 0.95rem !important;
        margin-bottom: 2px !important;
    }
    .bottom-nav-item.active::after {
        bottom: 2px !important;
    }

    /* 5. Floating / Modal Panels in Landscape */
    .nav-prompt-card {
        bottom: 56px !important;
        padding: 10px 14px !important;
    }
    .nav-apps-sheet {
        max-height: 88vh !important;
        overflow-y: auto !important;
        padding: 14px 16px 20px !important;
    }
}

/* ==========================================================================
   SPECIES DETAIL HEADER MOBILE ALIGNMENT FIX (LEFT-ALIGNED TITLES & BACK BTN)
   ========================================================================== */
.page-header--species,
.page-header.page-header--species {
    text-align: left !important;
}

@media (max-width: 768px) {
    .page-header--species,
    .page-header.page-header--species {
        padding: 14px 0 !important;
        margin-bottom: 14px !important;
        text-align: left !important;
    }
    .page-header--species .container,
    .page-header--species .species-header-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;
        width: 100% !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
        text-align: left !important;
    }
    .species-header-titles {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
        text-align: left !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .page-header--species h1,
    .page-header--species .species-header-title,
    .species-header-titles h1,
    .species-header-title {
        display: block !important;
        font-family: 'Outfit', sans-serif !important;
        font-size: 1.48rem !important;
        font-weight: 800 !important;
        color: #ffffff !important;
        margin: 0 0 3px 0 !important;
        padding: 0 !important;
        line-height: 1.15 !important;
        text-align: left !important;
        align-self: flex-start !important;
        letter-spacing: -0.01em !important;
    }
    .page-header--species p,
    .page-header--species .species-header-subtitle,
    .species-header-titles p,
    .species-header-subtitle {
        display: block !important;
        font-size: 0.82rem !important;
        line-height: 1.25 !important;
        color: rgba(255, 255, 255, 0.82) !important;
        font-style: italic !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
        align-self: flex-start !important;
    }
    .species-header-back {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        background: #ffffff !important;
        color: #1b4332 !important;
        font-family: 'Outfit', sans-serif !important;
        font-size: 0.74rem !important;
        font-weight: 800 !important;
        padding: 6px 12px !important;
        border-radius: 20px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22) !important;
        border: 1px solid rgba(255, 255, 255, 0.85) !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
        margin: 0 !important;
    }
    .species-header-back i {
        color: #1b4332 !important;
        font-size: 0.72rem !important;
    }
    .species-header-back:active {
        transform: scale(0.96) !important;
        background: #f1f5f9 !important;
    }
}

/* 29 Eylül 2026: tür anlatımlarında aynı punto/ağırlık ve sıkı paragraf akışı. */
.species-prose--uniform p { margin-bottom: 10px !important; }
.species-prose--uniform strong,
.species-prose--uniform p.prose-numbered-item {
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
}
.species-prose--uniform p.prose-numbered-item {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}
.species-prose--uniform .prose-heading {
    font-family: inherit;
    text-transform: none;
}
@media (max-width: 768px) {
    .species-prose--uniform p,
    .species-editorial-card--derekusu .species-prose--uniform p {
        margin-bottom: 10px !important;
    }
    .species-prose--uniform strong,
    .species-prose--uniform p.prose-numbered-item {
        color: inherit !important;
        font-family: inherit !important;
        font-size: inherit !important;
        font-weight: inherit !important;
        line-height: inherit !important;
        margin-top: 0 !important;
        margin-bottom: 10px !important;
    }
}

