/* ===== Finch Society of San Diego - Sunlit Gouldian Jewel Stylesheet ===== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ===== CSS Variables ===== */
:root {
    --brand-deep: #0B462D;
    --primary-green: #22A06B;
    --primary-dark: #0F5C3A;
    --text-green: #14633E;
    --accent-teal: #0D8A82;
    --light-green: #6EE7B7;
    --accent-orange: #E85D04;
    --accent-orange-dark: #C2410C;
    --accent-gold: #F59E0B;
    --text-dark: #1A2B22;
    --text-light: #44594E;
    --text-muted: #55695F;
    --bg-light: #F3F8F5;
    --bg-green: #E7F6EE;
    --bg-cream: #FFFBF0;
    --white: #ffffff;
    --border-soft: #D5E8DD;
    --shadow: 0 8px 24px rgba(11, 70, 45, 0.08);
    --shadow-hover: 0 14px 34px rgba(11, 70, 45, 0.14);
    --transition: all 0.25s ease;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.65;
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--white);
}

h1, h2, h3, h4, .logo-title, .btn, .mp-card-price {
    font-family: 'Outfit', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

a {
    color: var(--text-green);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--accent-orange);
    outline-offset: 2px;
}

/* Global Crisp Select Dropdown Arrow Styling */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: var(--white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2314633E' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px 16px;
    padding-right: 42px !important;
    cursor: pointer;
}

select::-ms-expand {
    display: none;
}

/* ===== Skip Link ===== */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 10px;
    z-index: 2000;
    background: var(--text-green);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--shadow-hover);
}

.skip-link:focus {
    left: 15px;
    top: 15px;
}

.page-loader {
    display: none;
}

/* ===== Scroll Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.88);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
.stagger-5 { transition-delay: 0.4s; }

/* ===== Header with Gouldian Jewel Top Strip ===== */
header {
    background: rgba(255, 255, 255, 0.96);
    padding: 16px 24px 13px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 22px rgba(11, 70, 45, 0.09);
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #22A06B 0%, #0D8A82 35%, #F59E0B 70%, #E85D04 100%);
}

header.scrolled {
    padding: 13px 24px 10px;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 6px 30px rgba(11, 70, 45, 0.14);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
    flex-shrink: 0;
    min-width: 0;
}

.logo-mark {
    width: 46px;
    height: 46px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 6px;
}

.logo-title,
.logo h1 {
    display: block;
    font-size: 1.38rem;
    color: var(--text-green);
    font-weight: 700;
    font-style: italic;
    transition: var(--transition);
    margin: 0;
    line-height: 1.2;
}

.logo span:not(.logo-title) {
    display: block;
    font-size: 0.78rem;
    color: var(--text-light);
    font-style: italic;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 18px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 2px;
    position: relative;
    transition: var(--transition);
    white-space: nowrap;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-gold), var(--accent-orange));
    transition: width 0.3s ease;
}

nav a:hover,
nav a[aria-current="page"] {
    color: var(--text-green);
}

nav a:hover::after,
nav a[aria-current="page"]::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: var(--bg-green);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-green);
}

/* ===== Hero Section with Flying Finches ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0B462D 0%, #0D6E5D 55%, #125847 100%);
}

.hero-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.38;
    transform: scale(1.1);
    transition: transform 15s ease;
    animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 25%, rgba(245, 158, 11, 0.16) 0%, transparent 50%),
        radial-gradient(circle at 80% 75%, rgba(34, 160, 107, 0.25) 0%, transparent 50%),
        linear-gradient(135deg, rgba(11, 70, 45, 0.82) 0%, rgba(13, 110, 93, 0.68) 50%, rgba(11, 70, 45, 0.84) 100%);
    z-index: 1;
}

.flying-finches {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.finch {
    position: absolute;
    filter: drop-shadow(2px 4px 8px rgba(0, 0, 0, 0.4));
}

.finch svg {
    width: 60px;
    height: 40px;
}

@keyframes flyAcross1 {
    0% { transform: translate(-100px, 0) rotate(5deg) scaleX(1); opacity: 0; }
    5% { opacity: 1; }
    48% { transform: translate(48vw, -40px) rotate(-3deg) scaleX(1); }
    52% { transform: translate(52vw, -35px) rotate(3deg) scaleX(1); }
    95% { opacity: 1; }
    100% { transform: translate(calc(100vw + 100px), 30px) rotate(5deg) scaleX(1); opacity: 0; }
}

@keyframes flyAcross2 {
    0% { transform: translate(-80px, 0) rotate(-3deg) scaleX(1); opacity: 0; }
    5% { opacity: 0.95; }
    50% { transform: translate(50vw, 50px) rotate(5deg) scaleX(1); }
    95% { opacity: 0.95; }
    100% { transform: translate(calc(100vw + 80px), -20px) rotate(-3deg) scaleX(1); opacity: 0; }
}

@keyframes flyAcross3 {
    0% { transform: translate(calc(100vw + 100px), 0) rotate(-5deg) scaleX(-1); opacity: 0; }
    5% { opacity: 0.9; }
    50% { transform: translate(50vw, 60px) rotate(5deg) scaleX(-1); }
    95% { opacity: 0.9; }
    100% { transform: translate(-100px, -40px) rotate(-5deg) scaleX(-1); opacity: 0; }
}

@keyframes flyAcross4 {
    0% { transform: translate(-120px, 0) rotate(8deg) scaleX(1); opacity: 0; }
    5% { opacity: 0.85; }
    50% { transform: translate(50vw, -60px) rotate(-5deg) scaleX(1); }
    95% { opacity: 0.85; }
    100% { transform: translate(calc(100vw + 120px), 40px) rotate(8deg) scaleX(1); opacity: 0; }
}

.finch-1 { top: 18%; animation: flyAcross1 14s ease-in-out infinite; }
.finch-2 { top: 32%; animation: flyAcross2 18s ease-in-out infinite 4s; }
.finch-3 { top: 48%; animation: flyAcross3 20s ease-in-out infinite 8s; }
.finch-4 { top: 62%; animation: flyAcross4 16s ease-in-out infinite 2s; }
.finch-5 { top: 22%; animation: flyAcross2 22s ease-in-out infinite 12s; }
.finch-6 { top: 55%; animation: flyAcross1 19s ease-in-out infinite 6s; }

.feathers-container {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.feather {
    position: absolute;
    opacity: 0.72;
    pointer-events: none;
}

.feather svg {
    width: 25px;
    height: 50px;
}

@keyframes floatFeather {
    0% { transform: translate(0, -100px) rotate(0deg); opacity: 0; }
    10% { opacity: 0.72; }
    90% { opacity: 0.72; }
    100% { transform: translate(150px, 110vh) rotate(720deg); opacity: 0; }
}

.feather-1 { left: 8%; animation: floatFeather 18s linear infinite; }
.feather-2 { left: 25%; animation: floatFeather 22s linear infinite 4s; }
.feather-3 { left: 45%; animation: floatFeather 25s linear infinite 8s; }
.feather-4 { left: 65%; animation: floatFeather 20s linear infinite 12s; }
.feather-5 { left: 85%; animation: floatFeather 28s linear infinite 16s; }

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
    max-width: 880px;
}

.hero-content h1,
.hero-content h2 {
    font-size: 3.7rem;
    line-height: 1.12;
    margin-bottom: 24px;
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.45);
    animation: heroFadeIn 1.1s ease forwards;
    opacity: 0;
}

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

.hero-content p {
    font-size: 1.32rem;
    margin-bottom: 35px;
    text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.4);
    animation: heroFadeIn 1.1s ease 0.25s forwards;
    opacity: 0;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: heroFadeIn 1.1s ease 0.5s forwards;
    opacity: 0;
}

.hero-content > .btn {
    animation: heroFadeIn 1.1s ease 0.5s forwards;
    opacity: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-15px); }
    60% { transform: translateX(-50%) translateY(-8px); }
}

.scroll-indicator svg {
    width: 35px;
    height: 35px;
    fill: var(--white);
    opacity: 0.9;
    transition: var(--transition);
}

.scroll-indicator:hover svg {
    opacity: 1;
    transform: scale(1.1);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-dark) 100%);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(194, 65, 12, 0.36);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(194, 65, 12, 0.45);
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-green);
    border: 2px solid var(--text-green);
}

.btn-secondary:hover {
    background: var(--text-green);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-hero-outline {
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.btn-hero-outline:hover {
    background: var(--white);
    color: var(--text-green);
    transform: translateY(-3px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2.55rem;
    color: var(--text-green);
    margin-bottom: 18px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 82px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-teal), var(--accent-gold), var(--accent-orange));
    border-radius: 3px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 720px;
    margin: 12px auto 0;
}

/* ===== Mission Section ===== */
.mission {
    padding: 96px 0;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.mission::before {
    content: '';
    position: absolute;
    top: -45%;
    right: -10%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(34, 160, 107, 0.14) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatBubble 8s ease-in-out infinite;
    pointer-events: none;
}

.mission::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatBubble 10s ease-in-out infinite 2s;
    pointer-events: none;
}

@keyframes floatBubble {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-28px) rotate(5deg); }
}

.mission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.mission-text h2 {
    font-size: 2.55rem;
    color: var(--text-green);
    margin-bottom: 30px;
    position: relative;
}

.mission-text h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-gold), var(--accent-orange));
    border-radius: 2px;
}

.mission-text p {
    color: var(--text-light);
    margin-bottom: 22px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.mission-image {
    position: relative;
}

.mission-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(11, 70, 45, 0.16);
    transition: var(--transition);
}

.mission-image::before {
    content: '';
    position: absolute;
    top: -18px;
    right: -18px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--primary-green);
    border-radius: 20px;
    z-index: -1;
    transition: var(--transition);
}

.mission-image:hover img {
    transform: scale(1.03);
}

.mission-image:hover::before {
    top: -10px;
    right: -10px;
}

/* ===== Membership CTA ===== */
.membership-cta {
    padding: 96px 0;
    background: linear-gradient(135deg, #E7F6EE 0%, #FFFBF0 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.membership-cta::before {
    content: '🐦';
    position: absolute;
    font-size: 120px;
    opacity: 0.08;
    top: 30px;
    left: 5%;
    animation: floatBubble 10s ease-in-out infinite;
    pointer-events: none;
}

.membership-cta::after {
    content: '🐦';
    position: absolute;
    font-size: 100px;
    opacity: 0.08;
    bottom: 30px;
    right: 5%;
    transform: scaleX(-1);
    animation: floatBubble 12s ease-in-out infinite 3s;
    pointer-events: none;
}

.membership-cta h2 {
    font-size: 2.55rem;
    color: var(--text-green);
    margin-bottom: 18px;
}

.membership-cta > .container > p {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 44px;
}

.price-box {
    background: var(--white);
    padding: 45px 40px;
    border-radius: 25px;
    max-width: 430px;
    margin: 0 auto;
    box-shadow: 0 18px 50px rgba(11, 70, 45, 0.14);
    border: 1px solid var(--border-soft);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.price-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-teal), var(--accent-gold), var(--accent-orange));
}

.price-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(11, 70, 45, 0.18);
}

.price {
    font-size: 4.2rem;
    font-weight: 800;
    color: var(--text-green);
    line-height: 1;
}

.price span {
    font-size: 2rem;
    vertical-align: top;
}

.price-period {
    color: var(--text-light);
    margin-bottom: 28px;
    font-size: 1.1rem;
}

.benefits-list {
    list-style: none;
    text-align: left;
    margin-bottom: 35px;
}

.benefits-list li {
    padding: 13px 0 13px 34px;
    position: relative;
    color: var(--text-dark);
    border-bottom: 1px solid #edf3ef;
    font-size: 1.03rem;
}

.benefits-list li:last-child {
    border-bottom: none;
}

.benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: 800;
    font-size: 1.2rem;
}

/* ===== Events Section ===== */
.events {
    padding: 96px 0;
    background: var(--white);
}

.event-card {
    background: var(--bg-light);
    padding: 34px;
    border-radius: 18px;
    margin-bottom: 25px;
    border-left: 5px solid var(--primary-green);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.event-card.featured-event {
    background: linear-gradient(135deg, #E7F6EE 0%, #FFFBF0 100%);
    border-left: 6px solid var(--accent-orange);
    box-shadow: var(--shadow);
}

.event-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-hover);
}

.event-date {
    display: inline-block;
    background: linear-gradient(135deg, var(--text-green), var(--accent-teal));
    color: var(--white);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.94rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.event-card.featured-event .event-date {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-dark));
}

.event-card h3 {
    color: var(--text-dark);
    margin-bottom: 12px;
    font-size: 1.4rem;
}

.event-card p {
    color: var(--text-light);
    margin-bottom: 18px;
    line-height: 1.7;
}

.event-location {
    color: var(--text-light);
    font-size: 0.98rem;
    padding: 18px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    margin-top: 15px;
}

.event-location strong {
    color: var(--text-green);
}

/* ===== Gallery ===== */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.gallery img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 18px;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow);
}

.gallery img:hover,
.gallery img:focus-visible {
    transform: scale(1.04) rotate(0.5deg);
    box-shadow: 0 20px 40px rgba(11, 70, 45, 0.22);
}

.meeting-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.meeting-photo-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-soft);
    margin: 0;
}

.meeting-photo-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.meeting-photo-card figcaption {
    padding: 12px 16px;
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ===== About Section ===== */
.about {
    padding: 96px 0;
    background: var(--bg-cream);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.55rem;
    color: var(--text-green);
    margin-bottom: 30px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 22px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
}

/* Board Members */
.board-section {
    padding: 96px 0;
    background: var(--white);
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 28px;
}

.board-member {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-light);
    border-radius: 18px;
    border: 1px solid var(--border-soft);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.board-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-teal), var(--accent-gold));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.board-member:hover::before {
    transform: scaleX(1);
}

.board-member:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    background: var(--white);
}

.board-member h3,
.board-member h4 {
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.board-member .position,
.board-member p {
    color: var(--text-green);
    font-weight: 700;
}

/* ===== Contact Section ===== */
.contact-section,
.contact {
    padding: 96px 0;
    background: var(--bg-light);
}

.contact-grid,
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form {
    background: var(--white);
    padding: 42px;
    border-radius: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-soft);
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #d5e2da;
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    background-color: var(--white);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(34, 160, 107, 0.14);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-info h3 {
    color: var(--text-green);
    margin-bottom: 22px;
    font-size: 1.6rem;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 28px;
    line-height: 1.8;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 22px;
    padding: 22px;
    background: var(--white);
    border-radius: 18px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.info-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-hover);
}

.info-item .icon {
    font-size: 1.8rem;
}

.info-item h4 {
    color: var(--text-dark);
    margin-bottom: 6px;
}

.info-item p {
    color: var(--text-light);
    margin: 0;
}

/* ===== Page Hero ===== */
.page-hero {
    background:
        radial-gradient(circle at 18% 30%, rgba(245, 158, 11, 0.22) 0%, transparent 45%),
        radial-gradient(circle at 85% 20%, rgba(34, 160, 107, 0.35) 0%, transparent 45%),
        linear-gradient(135deg, #0B462D 0%, #0D6E5D 55%, #14633E 100%);
    padding: 155px 0 85px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: 3.15rem;
    line-height: 1.15;
    margin-bottom: 16px;
    position: relative;
    animation: heroFadeIn 1s ease forwards;
}

.page-hero p {
    font-size: 1.22rem;
    opacity: 0.95;
    max-width: 740px;
    margin: 0 auto;
    position: relative;
    animation: heroFadeIn 1s ease 0.2s forwards;
    opacity: 0;
}

/* ===== Badges, Cards & Library Components ===== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: var(--bg-green);
    color: var(--text-green);
}

.badge-orange {
    background: #FFF1E2;
    color: var(--accent-orange-dark);
}

.badge-dark {
    background: #E2ECE7;
    color: var(--text-dark);
}

.featured-encyclopedia-banner {
    background:
        radial-gradient(circle at 85% 20%, rgba(245, 158, 11, 0.22) 0%, transparent 45%),
        linear-gradient(135deg, #0B462D 0%, #0D6E5D 100%);
    color: var(--white);
    border-radius: 22px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 35px;
    align-items: center;
    box-shadow: var(--shadow-hover);
    margin-bottom: 50px;
}

.featured-encyclopedia-banner h2 {
    color: var(--white);
    font-size: 2.1rem;
    margin-bottom: 14px;
}

.featured-encyclopedia-banner p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.08rem;
    margin-bottom: 24px;
}

.featured-encyclopedia-thumbs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.featured-encyclopedia-thumbs img {
    width: 100%;
    height: 115px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.35);
}

.library-grid,
.classifieds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: 28px;
}

.article-card {
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-soft);
    border-top: 4px solid var(--primary-green);
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.article-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-card h3 {
    font-size: 1.28rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.35;
}

.article-card p {
    color: var(--text-light);
    font-size: 0.98rem;
    margin-bottom: 18px;
    flex-grow: 1;
}

.article-card-link {
    font-weight: 700;
    color: var(--text-green);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-card-link:hover {
    text-decoration: underline;
}

/* Species Encyclopedia Controls & Grid */
.species-controls {
    background: var(--white);
    padding: 26px;
    border-radius: 18px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-soft);
    margin-bottom: 35px;
}

.species-search-row {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.species-search-input {
    flex: 1 1 280px;
    padding: 13px 16px;
    border: 2px solid #d5e2da;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark);
}

.species-search-input:focus {
    outline: none;
    border-color: var(--primary-green);
}

.species-count {
    font-weight: 700;
    color: var(--text-green);
    font-size: 0.95rem;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-pill {
    padding: 8px 16px;
    border-radius: 25px;
    border: 2px solid #cbe2d6;
    background: var(--white);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.filter-pill:hover {
    border-color: var(--primary-green);
    color: var(--text-green);
    background: var(--bg-green);
}

.filter-pill.active,
.filter-pill[aria-pressed="true"] {
    background: var(--text-green);
    border-color: var(--text-green);
    color: var(--white);
}

.species-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 26px;
}

.species-card {
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-soft);
    border-top: 4px solid var(--accent-teal);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.species-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.species-card-media {
    position: relative;
    height: 220px;
    background: var(--bg-green);
    overflow: hidden;
}

.species-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.species-card:hover .species-card-media img {
    transform: scale(1.04);
}

.species-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.species-card-body h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.species-sci {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 12px;
}

.species-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.species-summary {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 16px;
    flex-grow: 1;
}

.species-credit-mini {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    border-top: 1px solid #edf3ef;
    padding-top: 10px;
}

/* Species Modal */
.species-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11, 36, 24, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 10000;
}

.species-modal-backdrop.open {
    display: flex;
}

.species-modal {
    background: var(--white);
    border-radius: 22px;
    max-width: 820px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
    position: relative;
}

.species-modal-close {
    position: sticky;
    top: 14px;
    float: right;
    margin: 14px 14px 0 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 2;
}

.species-modal-close:hover {
    background: var(--accent-orange);
    color: var(--white);
}

.species-modal-hero {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    display: block;
    background: var(--bg-green);
}

.species-modal-content {
    padding: 28px 34px 34px;
}

.species-modal-content h2 {
    font-size: 2rem;
    color: var(--text-green);
    margin-bottom: 4px;
}

.species-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
    gap: 14px;
    margin: 20px 0;
}

.species-fact-box {
    background: var(--bg-light);
    padding: 14px 16px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-green);
}

.species-fact-box strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.species-credit-box {
    background: var(--bg-cream);
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.88rem;
    color: var(--text-light);
    margin-top: 20px;
}

.species-card-media-link {
    display: block;
    width: 100%;
    height: 100%;
}

.species-card-title-link {
    color: inherit;
    text-decoration: none;
}

.species-card-title-link:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

.species-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

/* Standalone Species & Bird Classified Detail Pages */
.species-profile-shell,
.bird-listing-shell {
    padding: 46px 0 90px;
    background: var(--bg-light);
}

.species-profile-card {
    max-width: 960px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-soft);
}

.species-profile-hero {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    display: block;
    background: var(--bg-green);
}

.species-profile-body {
    padding: 36px 42px;
}

.species-profile-body h2 {
    color: var(--text-green);
    font-size: 1.55rem;
    margin: 28px 0 10px;
}

.species-profile-body p {
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.78;
}

.species-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 18px;
    margin-top: 16px;
}

.species-related-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-light);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-dark);
    border: 1px solid var(--border-soft);
    transition: var(--transition);
}

.species-related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-green);
}

.species-related-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.species-related-card div {
    padding: 12px 14px;
}

.species-related-card strong {
    display: block;
    color: var(--text-green);
    font-size: 1rem;
    margin-bottom: 3px;
}

.species-related-card span {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
}

.bird-listing-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 32px;
    align-items: start;
}

.bird-share-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: var(--white);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 14px 18px;
    margin-top: 22px;
}

@media (max-width: 768px) {
    .species-profile-body {
        padding: 24px 20px;
    }

    .bird-listing-grid {
        grid-template-columns: 1fr;
    }
}

/* Article Pages Layout */
.article-page-wrapper {
    padding: 60px 0 90px;
    background: var(--bg-light);
}

.article-layout {
    max-width: 860px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 22px;
    padding: 46px 48px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-soft);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.92);
    justify-content: center;
    margin-bottom: 16px;
}

.breadcrumbs a {
    color: var(--white);
    text-decoration: underline;
}

.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 28px;
    border-bottom: 2px solid var(--bg-green);
    color: var(--text-muted);
    font-size: 0.92rem;
}

.article-featured-img {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 10px;
}

.article-img-caption {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    text-align: center;
}

.article-content h2 {
    color: var(--text-green);
    font-size: 1.8rem;
    margin: 34px 0 14px;
}

.article-content h3 {
    color: var(--text-dark);
    font-size: 1.32rem;
    margin: 24px 0 10px;
}

.article-content p {
    color: var(--text-dark);
    margin-bottom: 18px;
    font-size: 1.07rem;
    line-height: 1.8;
}

.article-content ul,
.article-content ol {
    margin: 0 0 22px 26px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-content li {
    margin-bottom: 8px;
}

.callout-box {
    background: var(--bg-green);
    border-left: 5px solid var(--primary-green);
    padding: 20px 24px;
    border-radius: 12px;
    margin: 26px 0;
}

.callout-box.callout-warn {
    background: #FFF6E6;
    border-left-color: var(--accent-orange);
}

.callout-box h4,
.callout-box h3 {
    margin-top: 0;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.callout-box p:last-child,
.callout-box ul:last-child {
    margin-bottom: 0;
}

.faq-list details {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    border: 1px solid var(--border-soft);
}

.faq-list summary {
    font-weight: 700;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.faq-list details p {
    margin-top: 12px;
    margin-bottom: 0;
    color: var(--text-light);
}

.related-articles {
    margin-top: 46px;
    padding-top: 30px;
    border-top: 2px solid var(--bg-green);
}

.related-articles h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

/* ===== Footer ===== */
footer {
    background: linear-gradient(135deg, #0B462D 0%, #0D5B4E 100%);
    color: var(--white);
    padding: 80px 0 35px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-teal), var(--accent-gold), var(--accent-orange));
}

.footer-content {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 22px;
    color: var(--white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.9;
}

.footer-links {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 20px;
}

.footer-links li {
    margin-bottom: 4px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    padding-left: 0;
}

.footer-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.4rem;
    transition: var(--transition);
    color: var(--white);
}

.social-links a:hover {
    background: var(--accent-orange);
    transform: translateY(-6px) rotate(5deg);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.mt-2 { margin-top: 35px; }

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 25px;
        box-shadow: var(--shadow-hover);
        display: none;
        border-top: 3px solid var(--primary-green);
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .mission-content,
    .about-content,
    .contact-grid,
    .contact-content,
    .featured-encyclopedia-banner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 2.9rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 560px;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 2.3rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .section-header h2,
    .mission-text h2,
    .membership-cta h2 {
        font-size: 2.1rem;
    }

    .price {
        font-size: 3.4rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .social-links {
        justify-content: center;
    }

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

    .page-hero {
        padding: 135px 0 65px;
    }

    .page-hero h1 {
        font-size: 2.3rem;
    }

    .article-layout {
        padding: 28px 20px;
    }

    .contact-form {
        padding: 28px 20px;
    }

    .finch-3, .finch-4, .finch-5, .finch-6 {
        display: none;
    }

    .feather-3, .feather-4, .feather-5 {
        display: none;
    }
}

@media (max-width: 480px) {
    header {
        padding: 12px 14px 10px;
    }

    header.scrolled {
        padding: 10px 14px 8px;
    }

    .header-content {
        gap: 10px;
    }

    .logo {
        gap: 8px;
        flex-shrink: 1;
    }

    .logo-mark {
        width: 38px;
        height: 38px;
    }

    .logo-title,
    .logo h1 {
        font-size: 1.12rem;
    }

    .logo span:not(.logo-title) {
        font-size: 0.72rem;
    }
}

/* ===== Reduced Motion Support ===== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .fade-in,
    .fade-in-left,
    .fade-in-right,
    .scale-in,
    .hero-content h1,
    .hero-content h2,
    .hero-content p,
    .hero-actions,
    .hero-content > .btn,
    .page-hero h1,
    .page-hero p {
        opacity: 1 !important;
        transform: none !important;
    }

    .flying-finches,
    .feathers-container {
        display: none;
    }
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Bird Marketplace Components ===== */
.mp-shell {
    padding: 50px 0 90px;
    background: linear-gradient(180deg, var(--bg-light) 0%, #FFFFFF 100%);
}

.mp-account-bar {
    background: var(--white);
    border-radius: 18px;
    padding: 20px 26px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-soft);
    border-left: 6px solid var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.mp-account-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.mp-account-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mp-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.mp-tab-btn {
    padding: 11px 20px;
    border-radius: 30px;
    border: 2px solid #cbe2d6;
    background: var(--white);
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.94rem;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.mp-tab-btn:hover {
    border-color: var(--primary-green);
    color: var(--text-green);
    background: var(--bg-green);
}

.mp-tab-btn.active {
    background: linear-gradient(135deg, var(--text-green), var(--accent-teal));
    border-color: var(--text-green);
    color: var(--white);
}

.mp-tab-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.78rem;
    background: var(--accent-orange-dark);
    color: var(--white);
}

.mp-panel[hidden] {
    display: none;
}

.mp-filters-card {
    background: var(--white);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-soft);
    margin-bottom: 28px;
}

.mp-filters-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 14px;
    margin-top: 16px;
}

.mp-filters-row input,
.mp-filters-row select,
.mp-form-grid input,
.mp-form-grid select,
.mp-form-grid textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #cfe0d6;
    border-radius: 11px;
    font-size: 0.96rem;
    font-family: inherit;
    color: var(--text-dark);
    background-color: var(--white);
    transition: var(--transition);
}

.mp-filters-row input:focus,
.mp-filters-row select:focus,
.mp-form-grid input:focus,
.mp-form-grid select:focus,
.mp-form-grid textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(34, 160, 107, 0.14);
}

.mp-auto-title-preview {
    background: linear-gradient(135deg, var(--bg-green) 0%, #FFFBF0 100%);
    border: 2px solid var(--primary-green);
    border-radius: 14px;
    padding: 16px 20px;
}

.mp-auto-title-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-green);
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.mp-auto-title-value {
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    font-size: 1.24rem;
    font-weight: 700;
    color: var(--text-dark);
}

.mp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
    gap: 24px;
}

.mp-card {
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-soft);
    border-top: 4px solid var(--primary-green);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.mp-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.mp-card.featured {
    border: 2px solid var(--accent-orange);
    border-top: 5px solid var(--accent-orange);
}

.mp-card-media {
    position: relative;
    height: 210px;
    background: var(--bg-green);
    overflow: hidden;
}

.mp-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mp-card-type-pill {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, var(--text-green), var(--accent-teal));
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.mp-card-type-pill.wanted {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-dark));
}

.mp-card-type-pill.supplies {
    background: linear-gradient(135deg, #0D6E5D, #0B462D);
}

.mp-card-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.mp-card-price {
    font-size: 1.38rem;
    font-weight: 800;
    color: var(--text-green);
    margin-bottom: 6px;
}

.mp-card-title {
    font-size: 1.18rem;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.35;
}

.mp-card-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.mp-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.mp-contact-locked {
    background: var(--bg-cream);
    border: 1px dashed #E09F3E;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.86rem;
    color: var(--text-dark);
    margin-top: auto;
    margin-bottom: 14px;
}

.mp-contact-unlocked {
    background: var(--bg-green);
    border: 2px solid var(--primary-green);
    border-radius: 14px;
    padding: 20px;
    margin: 20px 0;
}

.mp-upsell-box {
    background: linear-gradient(135deg, #FFF7E8 0%, #E7F6EE 100%);
    border: 2px solid var(--accent-orange);
    border-radius: 14px;
    padding: 22px;
    margin: 20px 0;
}

.mp-form-card {
    background: var(--white);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-soft);
}

.mp-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.mp-form-full {
    grid-column: 1 / -1;
}

.mp-checkbox-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.mp-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    cursor: pointer;
}

.mp-checkbox-label input {
    width: auto;
}

.mp-photo-preview {
    max-height: 180px;
    border-radius: 12px;
    margin-top: 10px;
    border: 2px solid var(--border-soft);
    display: none;
}

.mp-inbox-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.mp-thread-card {
    background: var(--white);
    border-radius: 16px;
    padding: 22px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-soft);
    border-left: 5px solid var(--primary-green);
}

.mp-msg-bubble {
    padding: 12px 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    background: var(--bg-light);
}

.mp-msg-bubble.mine {
    background: var(--bg-green);
    border-left: 3px solid var(--primary-green);
}

.mp-table-wrap {
    overflow-x: auto;
    background: var(--white);
    border-radius: 14px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-soft);
    margin-top: 16px;
}

.mp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.mp-table th,
.mp-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #edf3ef;
    vertical-align: middle;
}

.mp-table th {
    background: var(--bg-green);
    color: var(--text-dark);
    font-weight: 700;
}

.mp-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11, 36, 24, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 10001;
}

.mp-modal-backdrop.open {
    display: flex;
}

.mp-modal {
    background: var(--white);
    border-radius: 22px;
    max-width: 780px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.42);
    position: relative;
}

.mp-modal.auth-modal {
    max-width: 500px;
}

.mp-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10010;
    background: var(--brand-deep);
    color: var(--white);
    padding: 14px 22px;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    font-weight: 600;
    max-width: 380px;
    display: none;
}

.mp-toast.error {
    background: #9f251b;
}

.mp-toast.show {
    display: block;
}

@media (max-width: 900px) {
    .mp-filters-row {
        grid-template-columns: 1fr 1fr;
    }
    .mp-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .mp-filters-row {
        grid-template-columns: 1fr;
    }
    .mp-form-card {
        padding: 22px 16px;
    }
}
