/*
Theme Name: HenFarm
Theme URI: https://henfarm.online
Description: Bright cartoon farm UI for Hen Farming – matches reference screenshots.
Author: HenFarm
Version: 2.4.0
Requires at least: 6.0
Text Domain: henfarm
*/

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
    --green: #1B9E3E;
    --green-dark: #0D7A2B;
    --green-light: #E8F8EC;
    --green-soft: #F0FBF3;
    --gold: #F5A623;
    --text: #1A2E1A;
    --text-muted: #6B7C6B;
    --white: #FFFFFF;
    --card: #FFFFFF;
    --danger: #E74C3C;
    --radius: 20px;
    --radius-sm: 14px;
    --radius-pill: 999px;
    --nav-h: 70px;
    --max-w: 430px;
    --shadow: 0 4px 20px rgba(27, 158, 62, 0.12);
    --font: 'Nunito', system-ui, -apple-system, sans-serif;
}

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

html, body {
    height: 100%;
    background: #E8F5E9;
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* FORCE LIGHT THEME */
body, #hf-app {
    background: linear-gradient(180deg, #87CEEB 0%, #B8E0A8 30%, #E8F5E9 55%, #F5FBF5 100%) !important;
    color: #1A2E1A !important;
}
#hf-app {
    max-width: var(--max-w);
    margin: 0 auto;
    min-height: 100dvh;
    position: relative;
    background: linear-gradient(180deg, #87CEEB 0%, #B8E0A8 35%, #E8F5E9 60%, #E8F5E9 100%);
    box-shadow: 0 0 40px rgba(0,0,0,0.15);
    overflow-x: hidden;
}

.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.p-16 { padding: 16px; }
.p-20 { padding: 20px; }

.hf-logo { text-align: center; padding: 8px 0; }
.hf-logo .logo-row { display: flex; align-items: center; justify-content: center; gap: 10px; }
.hf-logo .logo-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, #1B9E3E, #4CAF50);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 26px; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(27,158,62,0.3);
}
.hf-logo .wordmark { font-size: 26px; font-weight: 900; letter-spacing: -0.5px; color: var(--green-dark); line-height: 1.1; }
.hf-logo .wordmark span { color: var(--green); }
.hf-logo .tagline { font-size: 11px; color: var(--green); font-weight: 700; letter-spacing: 0.5px; margin-top: 2px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 15px 22px; border: none; border-radius: var(--radius-pill);
    font-family: var(--font); font-size: 16px; font-weight: 800; cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s; text-decoration: none; color: #fff;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: linear-gradient(135deg, #22C55E, #16A34A); box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn-ghost { background: #fff; border: 2px solid var(--green); color: var(--green); }
.btn-sm { width: auto; padding: 8px 18px; font-size: 13px; }
.btn-icon {
    width: 42px; height: 42px; border-radius: 50%; background: var(--green); border: none;
    color: #fff; font-size: 18px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 3px 12px rgba(27,158,62,0.3); flex-shrink: 0;
}

.card {
    background: var(--card); border-radius: var(--radius); padding: 16px;
    box-shadow: var(--shadow); border: 1px solid rgba(27,158,62,0.08);
}
.card-soft { background: var(--green-soft); border-radius: var(--radius); padding: 14px 16px; }

.input-group { position: relative; margin-bottom: 12px; }
.input-group .icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    width: 28px; height: 28px; background: var(--green); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 13px; color: #fff; pointer-events: none;
}
.input-group input, .input-group select {
    width: 100%; padding: 14px 14px 14px 52px; background: #F7FBF8;
    border: 1.5px solid #D4E8D8; border-radius: var(--radius-sm); color: var(--text);
    font-family: var(--font); font-size: 14px; font-weight: 600; outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.input-group input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(27,158,62,0.12); }
.input-group input::placeholder { color: #A0B5A0; font-weight: 500; }
.input-group .toggle-eye {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 18px; padding: 4px;
}

.screen { display: none; min-height: 100dvh; padding-bottom: calc(var(--nav-h) + 12px); animation: fadeUp 0.28s ease; position: relative; }
.screen.active { display: block; }
.screen.auth-screen {
    padding-bottom: 24px;
    background: linear-gradient(180deg, #87CEEB 0%, #A8D5A2 40%, #C8E6C9 70%, #E8F5E9 100%);
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.farm-hero { position: relative; padding: 16px 16px 0; text-align: center; overflow: hidden; }
.farm-hero .hero-bg { font-size: 90px; line-height: 1; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.1)); }

.auth-card {
    background: #fff; border-radius: 28px 28px 0 0; margin-top: -20px;
    padding: 28px 22px 32px; box-shadow: 0 -4px 30px rgba(0,0,0,0.08);
    position: relative; z-index: 2; min-height: 55dvh;
}
.auth-card h1 { font-size: 24px; font-weight: 900; color: var(--text); text-align: center; margin-bottom: 4px; }
.auth-card .subtitle { text-align: center; color: var(--text-muted); font-size: 13px; margin-bottom: 22px; font-weight: 600; }

.top-bar {
    position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(27,158,62,0.1);
}
.top-bar .icon-btn {
    width: 40px; height: 40px; border-radius: 50%; background: var(--green); border: none;
    color: #fff; font-size: 18px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; position: relative; box-shadow: 0 2px 8px rgba(27,158,62,0.25);
}
.top-bar .badge {
    position: absolute; top: -2px; right: -2px; background: #EF4444; color: #fff;
    font-size: 10px; font-weight: 800; min-width: 18px; height: 18px; border-radius: 999px;
    display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
}
.top-bar .user-chip {
    display: flex; align-items: center; gap: 8px; background: var(--green-soft);
    border-radius: var(--radius-pill); padding: 4px 12px 4px 4px; font-size: 12px; font-weight: 700;
}
.top-bar .user-chip img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid var(--green); }

.bottom-nav {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: var(--max-w); height: var(--nav-h); background: #fff;
    border-top: 1px solid rgba(27,158,62,0.1); display: flex; z-index: 100;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06); padding-bottom: env(safe-area-inset-bottom, 0);
}
.bottom-nav .nav-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; background: none; border: none; color: #9CA89C; font-size: 10px; font-weight: 700;
    cursor: pointer; padding: 6px 0; font-family: var(--font); transition: color 0.2s;
}
.bottom-nav .nav-item .nav-icon {
    font-size: 22px; width: 40px; height: 32px; display: flex; align-items: center;
    justify-content: center; border-radius: 12px; transition: 0.2s;
}
.bottom-nav .nav-item.active { color: var(--green); }
.bottom-nav .nav-item.active .nav-icon { background: var(--green-light); }

.side-menu-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 200;
    opacity: 0; visibility: hidden; transition: 0.25s;
}
.side-menu-overlay.open { opacity: 1; visibility: visible; }
.side-menu {
    position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 88vw);
    background: linear-gradient(180deg, #F7FDF8 0%, #FFFFFF 40%, #F0FAF2 100%);
    z-index: 210; transform: translateX(-105%); transition: transform 0.28s cubic-bezier(.2,.8,.2,1);
    box-shadow: 8px 0 32px rgba(0,0,0,0.18);
    display: flex; flex-direction: column;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    border-radius: 0 24px 24px 0;
}
.side-menu.open { transform: translateX(0); }
.side-menu .menu-close {
    position: absolute; top: 14px; right: 14px; width: 36px; height: 36px;
    border: none; background: #F0F4F0; border-radius: 50%; font-size: 16px;
    color: #555; cursor: pointer; z-index: 2;
}
.side-menu .menu-header {
    padding: 20px 20px 12px; border-bottom: 1px solid #E8F0E8;
}
.side-menu .menu-user {
    display: flex; align-items: center; gap: 12px;
    margin: 12px 14px; padding: 12px 14px;
    background: #fff; border-radius: 16px;
    border: 1px solid #E8F0E8; box-shadow: 0 2px 8px rgba(46,125,50,0.06);
    cursor: pointer; width: calc(100% - 28px); text-align: left;
}
.side-menu .menu-user img {
    width: 48px; height: 48px; border-radius: 50%;
    border: 2px solid var(--green); object-fit: cover; flex-shrink: 0;
}
.side-menu .menu-user .mu-info { flex: 1; min-width: 0; }
.side-menu .menu-user .mu-name {
    font-weight: 800; font-size: 14px; color: #1A2E1A;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.side-menu .menu-user .mu-sub {
    font-size: 11px; font-weight: 700; color: var(--green); margin-top: 2px;
}
.side-menu .menu-list { padding: 4px 12px; flex: 1; }
.side-menu .menu-item {
    display: flex; align-items: center; gap: 12px;
    width: 100%; padding: 12px 14px; margin-bottom: 4px;
    border: none; background: #fff; border-radius: 14px;
    font-family: inherit; font-size: 14px; font-weight: 700;
    color: #1A3A1A; cursor: pointer; text-align: left;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s;
}
.side-menu .menu-item:hover, .side-menu .menu-item:active {
    background: #E8F8EC;
}
.side-menu .menu-item.active {
    background: linear-gradient(90deg, #E0F5E4, #F0FAF2);
    border-color: #C8E6C9;
}
.side-menu .menu-item .mi-icon {
    width: 36px; height: 36px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; background: #F0F7F0; flex-shrink: 0;
}
.side-menu .menu-item .mi-label { flex: 1; }
.side-menu .menu-item .chevron { color: #C0C8C0; font-size: 18px; font-weight: 400; }
.side-menu .menu-item .menu-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px;
    background: #EF4444; color: #fff; border-radius: 9px;
    font-size: 10px; font-weight: 800;
}
.side-menu .menu-item.logout {
    color: #DC2626; margin: 8px 12px 4px;
    width: calc(100% - 24px);
    background: #FEF2F2; border: 1px solid #FECACA;
}
.side-menu .menu-item.logout .mi-icon { background: #FEE2E2; }
.side-menu .menu-footer {
    text-align: center; padding: 16px 12px 24px;
    background: linear-gradient(180deg, transparent, #E8F5E9);
    margin-top: auto;
}
.side-menu .menu-footer-sign {
    display: inline-block; padding: 8px 18px;
    background: linear-gradient(180deg, #D4A574, #B8956A);
    color: #fff; font-weight: 800; font-size: 13px;
    border-radius: 8px; border: 2px solid #8B6914;
    box-shadow: 0 3px 0 #8B6914;
}


.badge-pill {
    display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px;
    border-radius: var(--radius-pill); font-size: 11px; font-weight: 800;
}
.badge-pending { background: #FEF3C7; color: #D97706; }
.badge-approved, .badge-completed { background: #D1FAE5; color: #059669; }
.badge-rejected { background: #FEE2E2; color: #DC2626; }
.badge-active { background: #D1FAE5; color: #059669; }

.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button {
    width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--green);
    color: #fff; font-size: 18px; font-weight: 800; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(27,158,62,0.25);
}
.stepper .qty {
    min-width: 36px; text-align: center; font-weight: 800; font-size: 16px;
    background: #F0F7F0; border-radius: 8px; padding: 4px 8px;
}

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-tile {
    background: #fff; border-radius: var(--radius-sm); padding: 14px 12px;
    text-align: center; box-shadow: var(--shadow);
}
.stat-tile .val { font-size: 22px; font-weight: 900; color: var(--green); }
.stat-tile .lbl { font-size: 11px; color: var(--text-muted); margin-top: 2px; font-weight: 700; }

.action-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.action-card {
    border-radius: var(--radius); padding: 16px 8px 14px; text-align: center;
    cursor: pointer; transition: transform 0.15s; box-shadow: var(--shadow);
    border: none; color: #fff; font-family: var(--font);
}
.action-card:active { transform: scale(0.96); }
.action-card .icon { font-size: 36px; margin-bottom: 6px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15)); }
.action-card .title { font-weight: 900; font-size: 13px; }
.action-card .arrow { font-size: 12px; opacity: 0.8; margin-top: 2px; }
.action-card.orange { background: linear-gradient(135deg, #F59E0B, #D97706); }
.action-card.blue { background: linear-gradient(135deg, #3B82F6, #2563EB); }
.action-card.purple { background: linear-gradient(135deg, #8B5CF6, #7C3AED); }

.page-header {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    background: linear-gradient(135deg, #1B9E3E, #16A34A); color: #fff;
}
.page-header .back {
    width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.2);
    border: none; color: #fff; font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.page-header h1 { font-size: 18px; font-weight: 900; flex: 1; }
.page-header .sub { font-size: 11px; opacity: 0.85; font-weight: 600; }

.content { padding: 16px; }

.info-banner {
    background: var(--green-soft); border: 1px solid #C8E6C9; border-radius: var(--radius-sm);
    padding: 12px 14px; font-size: 12px; color: var(--text-muted); font-weight: 600;
    display: flex; gap: 8px; align-items: flex-start;
}

.list-item {
    display: flex; align-items: center; gap: 12px; padding: 14px;
    background: #fff; border-radius: var(--radius-sm); margin-bottom: 10px; box-shadow: var(--shadow);
}
.list-item .thumb {
    width: 48px; height: 48px; border-radius: 14px; background: var(--green-light);
    display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0;
}
.list-item .body { flex: 1; min-width: 0; }
.list-item .title { font-weight: 800; font-size: 14px; color: var(--text); }
.list-item .meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; font-weight: 600; }
.list-item .right { text-align: right; flex-shrink: 0; }

.radio-card {
    display: flex; align-items: center; gap: 12px; padding: 14px; background: #fff;
    border: 2px solid #E0EDE0; border-radius: var(--radius); margin-bottom: 10px;
    cursor: pointer; transition: 0.15s; box-shadow: var(--shadow);
}
.radio-card.selected { border-color: var(--green); background: var(--green-soft); }
.radio-card .initial {
    width: 44px; height: 44px; border-radius: 12px; background: var(--green); color: #fff;
    font-weight: 900; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0;
}

.upload-zone {
    border: 2px dashed #A5D6A7; border-radius: var(--radius); padding: 32px 16px;
    text-align: center; cursor: pointer; transition: 0.2s; background: var(--green-soft);
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--green); background: #E0F2E0; }
.upload-zone .icon { font-size: 40px; margin-bottom: 8px; }
.upload-zone .hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; font-weight: 600; }
.upload-zone img { max-width: 100%; max-height: 140px; border-radius: 10px; margin-top: 10px; }

.filter-tabs {
    display: flex; gap: 8px; padding: 12px 16px; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.filter-tabs button {
    padding: 8px 16px; border-radius: var(--radius-pill); border: 1.5px solid #D0E0D0;
    background: #fff; color: var(--text-muted); font-family: var(--font); font-weight: 800;
    font-size: 12px; cursor: pointer; white-space: nowrap; transition: 0.15s;
}
.filter-tabs button.active { background: var(--green); color: #fff; border-color: var(--green); }

.check-row {
    display: flex; align-items: flex-start; gap: 10px; margin: 14px 0;
    font-size: 13px; color: var(--text-muted); font-weight: 600;
}
.check-row input { width: 20px; height: 20px; accent-color: var(--green); margin-top: 1px; flex-shrink: 0; }
.check-row a { color: var(--green); font-weight: 800; }

.divider {
    display: flex; align-items: center; gap: 12px; margin: 18px 0;
    color: var(--text-muted); font-size: 12px; font-weight: 700;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: #D8E8D8; }

.hen-card {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); margin-bottom: 14px; border: 1.5px solid #E8F0E8;
}
.hen-card .hen-img {
    height: 140px; background: linear-gradient(180deg, #87CEEB 0%, #C8E6C9 100%);
    display: flex; align-items: center; justify-content: center; font-size: 80px; position: relative;
}
.hen-card .hen-body { padding: 14px 16px; }
.hen-card .hen-name { font-size: 17px; font-weight: 900; color: var(--text); }
.hen-card .hen-meta {
    display: flex; gap: 12px; margin: 8px 0; font-size: 12px; font-weight: 700; color: var(--text-muted);
}
.hen-card .hen-meta span { display: flex; align-items: center; gap: 4px; }
.hen-card .hen-price { font-size: 20px; font-weight: 900; color: var(--green); }
.hen-card .hen-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }

.toast {
    position: fixed; bottom: calc(var(--nav-h) + 20px); left: 50%;
    transform: translateX(-50%) translateY(100px); background: var(--text); color: #fff;
    padding: 12px 22px; border-radius: var(--radius-pill); font-weight: 700; font-size: 14px;
    z-index: 300; opacity: 0; transition: 0.3s; max-width: 90%; text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

.empty-state { text-align: center; padding: 48px 24px; color: var(--text-muted); }
.empty-state .icon { font-size: 56px; margin-bottom: 12px; opacity: 0.5; }
.spinner {
    width: 32px; height: 32px; border: 3px solid #C8E6C9; border-top-color: var(--green);
    border-radius: 50%; animation: spin 0.7s linear infinite; margin: 32px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.avatar-ring {
    width: 100px; height: 100px; border-radius: 50%; border: 4px solid var(--green);
    object-fit: cover; background: var(--green-light); box-shadow: 0 4px 16px rgba(27,158,62,0.2);
}
.profile-field {
    display: flex; align-items: center; gap: 14px; padding: 14px 16px;
    background: #fff; border-radius: var(--radius-sm); margin-bottom: 10px; box-shadow: var(--shadow);
}
.profile-field .pf-icon {
    width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0;
}
.profile-field .pf-label { font-size: 11px; color: var(--text-muted); font-weight: 700; }
.profile-field .pf-value { font-size: 14px; font-weight: 800; color: var(--text); }

.sticky-bar {
    position: sticky; bottom: var(--nav-h); background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px); padding: 12px 16px; border-top: 1px solid #E0EDE0;
    z-index: 40; box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}

.countdown { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--green); }

.section-title {
    font-size: 15px; font-weight: 900; color: var(--text); margin-bottom: 12px;
    display: flex; align-items: center; gap: 8px;
}

.banner-card {
    border-radius: var(--radius); padding: 16px; display: flex; align-items: center;
    gap: 14px; margin-bottom: 12px; color: #fff; box-shadow: var(--shadow); cursor: pointer;
}
.banner-card.green-grad { background: linear-gradient(135deg, #22C55E, #16A34A); }
.banner-card.blue-grad { background: linear-gradient(135deg, #3B82F6, #2563EB); }
.banner-card .bc-icon { font-size: 36px; }
.banner-card .bc-title { font-weight: 900; font-size: 15px; }
.banner-card .bc-sub { font-size: 12px; opacity: 0.9; font-weight: 600; margin-top: 2px; }
.banner-card .bc-btn {
    margin-left: auto; background: rgba(255,255,255,0.25); border: none; color: #fff;
    width: 36px; height: 36px; border-radius: 50%; font-size: 16px; cursor: pointer; flex-shrink: 0;
}

.success-icon {
    width: 90px; height: 90px; border-radius: 50%;
    background: linear-gradient(135deg, #22C55E, #16A34A);
    display: flex; align-items: center; justify-content: center; font-size: 44px; color: #fff;
    margin: 0 auto 16px; box-shadow: 0 8px 28px rgba(34,197,94,0.35);
}

.lang-chip {
    position: absolute; top: 14px; right: 14px; background: #fff; border-radius: var(--radius-pill);
    padding: 6px 14px; font-size: 12px; font-weight: 800; color: var(--text);
    box-shadow: var(--shadow); display: flex; align-items: center; gap: 4px; z-index: 5;
}

/* ===== Image Icons (reference design) ===== */
.hf-icon, .logo-icon-img, .nav-icon-img, .mi-icon-img, .field-icon,
.stat-icon, .action-img, .bc-img, .thumb-img, .icon-btn-img,
.hen-card-img, .meta-icon, .step-img, .pm-logo-img, .page-title-icon,
.menu-footer-img, .auth-hero-img, .dash-hero-img {
    display: block;
    object-fit: contain;
}
.logo-icon-img { width: 48px; height: 48px; border-radius: 50%; }
.logo-icon-img.logo-sm { width: 32px; height: 32px; }
.nav-icon-img { width: 26px; height: 26px; margin: 0 auto; }
.mi-icon-img { width: 28px; height: 28px; }
.field-icon { width: 22px; height: 22px; }
.stat-icon { width: 36px; height: 36px; margin: 0 auto 4px; }
.action-img { width: 64px; height: 64px; margin: 0 auto 6px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.12)); }
.bc-img { width: 48px; height: 48px; flex-shrink: 0; }
.thumb-img { width: 36px; height: 36px; border-radius: 10px; }
.icon-btn-img { width: 22px; height: 22px; }
.page-title-icon { width: 28px; height: 28px; display: inline-block; vertical-align: middle; margin-right: 6px; }

.bottom-nav .nav-item .nav-icon {
    background: transparent !important;
    width: auto; height: auto; padding: 0;
}
.bottom-nav .nav-item.active .nav-icon { background: transparent !important; }
.side-menu .menu-item .mi-icon {
    background: transparent !important;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
}

.auth-hero { padding: 8px 16px 0; text-align: center; }
.auth-hero-img, .dash-hero-img {
    width: 100%; max-height: 180px; object-fit: contain; margin: 0 auto;
}
.dash-hero { padding: 8px 12px 0; background: linear-gradient(180deg,#87CEEB 0%,#B8E0A8 55%,#E8F5E9 100%); }
.hero-banner-wrap { text-align: center; }

.hen-card { overflow: hidden; }
.hen-card-inner { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hen-img-wrap { width: 110px; flex-shrink: 0; }
.hen-card-img { width: 100%; height: auto; border-radius: 14px; }
.hen-info { flex: 1; min-width: 140px; }
.hen-name { font-size: 16px; font-weight: 800; display: block; margin-bottom: 4px; }
.hen-rate { font-size: 12px; color: var(--green); font-weight: 700; margin-bottom: 6px; }
.hen-meta { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.hen-meta .meta-icon { width: 16px; height: 16px; display: inline-block; vertical-align: middle; margin-right: 4px; }
.hen-price { font-size: 14px; }
.hen-price strong { color: var(--green-dark); font-size: 18px; }
.hen-stepper { margin-left: auto; }
.step-btn { background: none !important; border: none !important; padding: 0 !important; width: 36px !important; height: 36px !important; }
.step-img { width: 32px; height: 32px; }

.pm-card { align-items: center; }
.pm-logo { width: 48px; height: 48px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.pm-logo-img { max-width: 44px; max-height: 44px; }

.menu-footer-banner { text-align: center; padding: 8px; }
.menu-footer-img { width: 100%; max-height: 80px; object-fit: contain; margin: 0 auto; }

.list-item .thumb { background: transparent !important; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }

.farm-hen-thumb { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.success-wrap { text-align: center; margin-bottom: 12px; }
.success-img { width: 120px; height: auto; margin: 0 auto; }
.empty-img { width: 100px; height: auto; margin: 0 auto 12px; opacity: 0.85; }
.hen-card.hen-golden { background: linear-gradient(135deg, #FFFBF0, #FFF8E7); border: 1px solid #F5D78E; }
.hen-card.hen-broiler { background: linear-gradient(135deg, #F0FBF3, #E8F8EC); border: 1px solid #A8D5B5; }
.farm-hen-thumb { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.success-wrap { text-align: center; margin-bottom: 12px; }
.success-img { width: 120px; height: auto; margin: 0 auto; }
.empty-img { width: 100px; height: auto; margin: 0 auto 12px; opacity: 0.85; }
.hen-card.hen-golden { background: linear-gradient(135deg, #FFFBF0, #FFF8E7); border: 1px solid #F5D78E; }
.hen-card.hen-broiler { background: linear-gradient(135deg, #F0FBF3, #E8F8EC); border: 1px solid #A8D5B5; }

/* ===== FIXES: full images, proper icon fit ===== */
.auth-top-logo { text-align: center; padding: 16px 16px 4px; }
.auth-top-logo .wordmark { font-size: 28px; font-weight: 900; color: var(--green-dark); line-height: 1.1; }
.auth-top-logo .wordmark span { color: var(--green); }
.auth-top-logo .tagline { font-size: 12px; color: var(--green); font-weight: 700; margin-top: 2px; }

.auth-hero { padding: 0 0 0; text-align: center; overflow: hidden; }
.auth-hero .hero-banner-wrap { width: 100%; padding: 0 12px; }
.auth-hero-img {
    width: 100% !important;
    max-height: none !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 16px;
    display: block;
    margin: 0 auto;
}

.dash-hero { padding: 4px 12px 0; }
.dash-hero-img {
    width: 100% !important;
    max-height: 200px !important;
    object-fit: contain !important;
    border-radius: 16px;
}

/* Top bar icons - fill circle, no weird crop */
.icon-btn.icon-btn-img-only {
    width: 42px;
    height: 42px;
    padding: 0 !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green) !important;
    border: none !important;
}
.icon-btn.icon-btn-img-only .top-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Field icons in green circle */
.input-group .icon.icon-green-circle {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}
.input-group .icon.icon-green-circle .field-icon {
    width: 22px;
    height: 22px;
    /* no invert */
}

/* Full-width image buttons */
.btn-img-wrap {
    display: block;
    width: 100%;
    border: none;
    background: transparent;
    padding: 0;
    margin: 8px 0;
    cursor: pointer;
    border-radius: 999px;
    overflow: hidden;
}
.btn-img-wrap:disabled { opacity: 0.45; pointer-events: none; }
.btn-full-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 999px;
}

/* Dashboard action cards - full image squares */
.action-row-imgs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}
.action-card-img {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.action-full-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 18px;
}

/* Invite & Download - full horizontal banners */
.banner-img-btn {
    display: block;
    width: 100%;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0 0 12px;
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    text-decoration: none;
}
.banner-full-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 16px;
}

/* Stat icons bigger */
.stat-icon { width: 48px !important; height: 48px !important; margin: 0 auto 6px !important; }

/* Nav bottom icons bigger */
.nav-icon-img { width: 28px !important; height: 28px !important; }

/* Menu icons fit */
.side-menu .menu-item .mi-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px;
    overflow: hidden;
}
.mi-icon-img { width: 40px !important; height: 40px !important; object-fit: cover; }

/* Success image larger */
.success-img { width: 160px !important; max-width: 80%; }

.page-banner-img { width: 100%; height: auto; border-radius: 16px; display: block; object-fit: contain; }
.section-icon { width: 28px; height: 28px; display: inline-block; vertical-align: middle; margin-right: 8px; }
.how-step { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 14px; font-weight: 600; border-bottom: 1px solid rgba(0,0,0,0.05); }
.how-step:last-child { border-bottom: none; }
.how-num-img { width: 36px; height: 36px; object-fit: contain; }
.profile-avatar-wrap { position: relative; width: 100px; height: 100px; margin: 0 auto; }
.profile-avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 4px solid var(--green); }
.cam-badge { position: absolute; bottom: 0; right: 0; background: var(--green); color: #fff; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.badge-img { height: 28px; width: auto; display: inline-block; }
.pf-icon-wrap { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--green); display: flex; align-items: center; justify-content: center; }
.pf-icon-img { width: 40px; height: 40px; object-fit: cover; }
.profile-field { display: flex; align-items: center; gap: 12px; }
.tx-filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.tx-filter-btn { border: none; background: transparent; padding: 0; cursor: pointer; flex-shrink: 0; border-radius: 12px; overflow: hidden; opacity: 0.7; }
.tx-filter-btn.active { opacity: 1; box-shadow: 0 0 0 2px var(--green); border-radius: 12px; }
.tx-filter-img { height: 36px; width: auto; display: block; }
.tx-badge-img { height: 24px; width: auto; margin-top: 4px; }
.list-item.unread { background: var(--green-soft); }
.input-group input { flex: 1; }
