:root{--fhp-green:#123a2b;--fhp-green2:#1d6849;--fhp-bg:#f3f7f4;--fhp-card:rgba(255,255,255,.82);--fhp-line:#dfe9e2;--fhp-text:#143428;--fhp-muted:#6d8177}html,body{margin:0}.fhp-standalone{background:linear-gradient(180deg,#e9f3ed,#f8fbf9);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,Arial,sans-serif}.fhp-login{max-width:390px;margin:80px auto;padding:28px;border-radius:28px;background:#fff;text-align:center;box-shadow:0 20px 50px rgba(0,0,0,.08);direction:rtl}.fhp-login a,.fhp-launch{display:inline-block;background:var(--fhp-green);color:white;text-decoration:none;border-radius:16px;padding:12px 18px}.fhp-app{direction:rtl;max-width:460px;margin:0 auto;min-height:100vh;background:linear-gradient(180deg,#f6faf7,#eef5f1);color:var(--fhp-text);position:relative;padding-bottom:92px;box-shadow:0 0 0 1px rgba(0,0,0,.04)}.fhp-hero{background:radial-gradient(circle at 10% 10%,rgba(255,255,255,.22),transparent 28%),linear-gradient(135deg,#0e2d22,#1c6748);color:#fff;padding:24px 18px 26px;border-bottom-left-radius:34px;border-bottom-right-radius:34px;box-shadow:0 18px 40px rgba(18,58,43,.22);position:sticky;top:0;z-index:2}.fhp-topline{display:flex;align-items:center;justify-content:space-between;gap:12px}.fhp-topline h1{margin:0;font-size:26px;color:#fff}.fhp-topline p{margin:5px 0 0;color:rgba(255,255,255,.72);font-size:13px}.fhp-pill{border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.14);border-radius:999px;padding:8px 12px;font-size:12px;white-space:nowrap}.fhp-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-top:18px}.fhp-stats div{background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.14);border-radius:18px;text-align:center;padding:11px 5px;backdrop-filter:blur(12px)}.fhp-stats b{display:block;font-size:20px;color:#fff}.fhp-stats span{font-size:10.5px;color:rgba(255,255,255,.75)}.fhp-main{padding:16px}.fhp-page{display:none;animation:fhpFade .18s ease}.fhp-page.active{display:block}@keyframes fhpFade{from{opacity:.5;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.fhp-alert{background:#fff7df;border:1px solid #ffe2a4;color:#775000;padding:13px 14px;border-radius:20px;margin-bottom:14px}.fhp-grid-menu{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.fhp-tile{appearance:none;border:1px solid rgba(225,235,228,.9);background:var(--fhp-card);border-radius:26px;min-height:110px;text-align:center;box-shadow:0 12px 30px rgba(20,52,40,.07);cursor:pointer;color:var(--fhp-text);backdrop-filter:blur(14px);transition:.18s}.fhp-tile:active{transform:scale(.97)}.fhp-tile i{display:block;font-style:normal;font-size:32px;margin-bottom:8px}.fhp-tile span{font-weight:800}.fhp-card{background:var(--fhp-card);border:1px solid rgba(225,235,228,.9);border-radius:28px;padding:15px;margin-top:16px;box-shadow:0 14px 32px rgba(20,52,40,.07);backdrop-filter:blur(14px)}.fhp-card-head,.fhp-page-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.fhp-card h3,.fhp-page-head h2{margin:0}.fhp-card-head button,.fhp-page-head button,.fhp-trash{border:0;background:#e8f2ec;color:#0e4d35;border-radius:14px;padding:8px 12px;cursor:pointer}.fhp-page-head{margin-bottom:14px}.fhp-page-head h2{font-size:22px}.fhp-search{width:100%;border:1px solid var(--fhp-line);border-radius:18px;padding:13px 14px;background:white;box-sizing:border-box;font-family:inherit;margin-bottom:12px}.fhp-list{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;border:1px solid #e4eee7;border-radius:20px;padding:12px;background:#fff;margin-bottom:10px}.fhp-list strong{font-size:15px}.fhp-list p{margin:5px 0 0;color:var(--fhp-muted);font-size:12.5px;line-height:1.55}.fhp-status{background:#e7f4eb;color:#176040;border-radius:999px;padding:6px 10px;font-size:11px;white-space:nowrap}.fhp-trash{background:#ffe7e7;color:#a30d0d;font-size:11px}.fhp-money,.fhp-grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.fhp-money div,.fhp-report{background:#f7fbf8;border:1px solid #e4eee7;border-radius:20px;padding:14px}.fhp-money span,.fhp-report span{display:block;color:var(--fhp-muted);font-size:12px;margin-bottom:6px}.fhp-money b,.fhp-report b{font-size:17px}.fhp-bars{height:160px;display:flex;align-items:flex-end;gap:14px;background:#f7fbf8;border-radius:22px;padding:15px}.fhp-bars i{flex:1;background:linear-gradient(180deg,#2d8060,#14543a);border-radius:12px 12px 4px 4px}.fhp-tabs{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:460px;background:rgba(255,255,255,.9);border-top:1px solid #dfe9e2;display:grid;grid-template-columns:repeat(5,1fr);padding:9px 4px calc(9px + env(safe-area-inset-bottom));z-index:20;backdrop-filter:blur(18px)}.fhp-tabs button{border:0;background:transparent;color:#73857b;font-size:11px;cursor:pointer}.fhp-tabs button b{display:block;font-size:21px}.fhp-tabs button.active{color:#0f3d2d;font-weight:800}.fhp-fab{position:fixed;bottom:82px;left:calc(50% - 202px);width:58px;height:58px;border-radius:50%;border:0;background:var(--fhp-green);color:white;font-size:32px;box-shadow:0 16px 30px rgba(18,58,43,.28);z-index:21;cursor:pointer}.fhp-modal{display:none;position:fixed;inset:0;background:rgba(12,25,19,.34);z-index:40;align-items:flex-end;justify-content:center}.fhp-modal.active{display:flex}.fhp-sheet{width:100%;max-width:460px;max-height:86vh;overflow:auto;background:#f8fbf9;border-top-left-radius:32px;border-top-right-radius:32px;padding:20px;box-shadow:0 -20px 50px rgba(0,0,0,.2);position:relative;box-sizing:border-box}.fhp-close{position:absolute;left:18px;top:16px;border:0;background:#e8f2ec;border-radius:50%;width:34px;height:34px;font-size:22px}.fhp-form h3{margin:0 0 14px}.fhp-form label{display:block;font-weight:700;font-size:13px;margin:11px 0 6px}.fhp-form input,.fhp-form select,.fhp-form textarea{width:100%;border:1px solid var(--fhp-line);border-radius:16px;padding:12px;background:#fff;box-sizing:border-box;font-family:inherit}.fhp-form textarea{min-height:76px}.fhp-form button[type=submit]{width:100%;border:0;border-radius:18px;padding:13px;margin-top:14px;background:var(--fhp-green);color:white;font-weight:800}.fhp-empty{color:var(--fhp-muted);text-align:center}.fhp-admin-start{direction:rtl;background:#fff;border-radius:24px;padding:24px;margin-top:20px}.fhp-admin-start code{direction:ltr;display:inline-block}@media(max-width:420px){.fhp-stats{grid-template-columns:repeat(2,1fr)}.fhp-list{grid-template-columns:1fr auto}.fhp-trash{grid-column:1/-1}.fhp-fab{left:18px}.fhp-money,.fhp-grid-2{grid-template-columns:1fr}}@media print{.fhp-tabs,.fhp-fab,.fhp-page-head button{display:none}.fhp-app{box-shadow:none;max-width:none}.fhp-page{display:block!important}}

/* v3.3.1 fixes */
.fhp-alert ul{margin:8px 0 0;padding:0 18px;line-height:1.9}.fhp-alert li{font-size:13px}.fhp-vaccine-schedule{margin-bottom:14px}.fhp-vaccine-row{display:grid;grid-template-columns:115px 1fr;gap:10px;align-items:start;padding:12px;border:1px solid rgba(16,61,44,.12);border-radius:18px;margin:10px 0;background:#fbfdfb}.fhp-vaccine-row.is-current{background:#fff8dc;border-color:#e4bc3b}.fhp-vaccine-row div span{display:block;color:#6d7d75;font-size:12px;margin-top:4px}.fhp-vaccine-row ul{margin:0;padding:0 18px;line-height:1.8}.fhp-vaccine-row li{font-size:13px}.fhp-vaccine-note{background:#eaf7ee;border-radius:16px;padding:12px;line-height:1.8;font-size:13px;color:#145238;margin-top:10px}

/* v3.5 profit/loss report */
.fhp-pl-table-wrap{overflow:auto;border-radius:18px;border:1px solid rgba(13,45,34,.10);background:#fff}
.fhp-pl-table{width:100%;border-collapse:collapse;min-width:680px;font-size:12px;direction:rtl}
.fhp-pl-table th{background:#0d3b2a;color:#fff;padding:10px;text-align:center;white-space:nowrap}
.fhp-pl-table td{padding:10px;text-align:center;border-bottom:1px solid #e8f0ec;white-space:nowrap}
.fhp-pl-table tr.profit td:last-child{color:#0a6b3e}
.fhp-pl-table tr.loss td:last-child{color:#b42318}
.fhp-profit-bars{align-items:flex-end;gap:6px}
.fhp-profit-bars i.pos{background:#1b7a50!important}
.fhp-profit-bars i.neg{background:#b42318!important}
.fhp-install{border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.16);color:#fff;border-radius:999px;padding:8px 12px;font-size:12px;white-space:nowrap;cursor:pointer;font-family:inherit}.fhp-install[hidden]{display:none!important}

/* v3.8 multiple breeding seasons */
.fhp-season-card{background:#fff;border:1px solid #e4eee7;border-radius:22px;padding:14px;margin:12px 0;box-shadow:0 8px 18px rgba(20,52,40,.04)}
.fhp-season-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.fhp-season-head strong{font-size:16px}.fhp-season-head p{margin:5px 0 0;color:var(--fhp-muted);font-size:12.5px}
.fhp-season-status{border-radius:999px;padding:7px 10px;font-size:11px;white-space:nowrap;font-weight:800}.fhp-season-status.upcoming{background:#fff1d6;color:#8a5a00}.fhp-season-status.active{background:#dcfce7;color:#166534}.fhp-season-status.ended{background:#eef2f7;color:#475569}.fhp-season-status.neutral{background:#f3f4f6;color:#4b5563}
.fhp-season-note{background:#f7fbf8;border-radius:16px;padding:10px;margin:10px 0;color:#315244;font-size:13px;line-height:1.7}
.fhp-progress{height:9px;background:#e8f1eb;border-radius:999px;overflow:hidden;margin:10px 0 6px}.fhp-progress i{display:block;height:100%;background:#1f7a55;border-radius:999px}
.fhp-check-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:10px}.fhp-check-grid span{background:#f4f8f5;border:1px solid #e4eee7;border-radius:14px;padding:8px;font-size:12px;color:#6b7e75}.fhp-check-grid span.done{background:#e9f8ef;color:#14613f;border-color:#c6ead2;font-weight:800}
.fhp-season-notes{font-size:13px;color:#53685f;line-height:1.7;margin:10px 0 0}.fhp-season-actions{display:flex;gap:8px;align-items:center;margin-top:10px}.fhp-mini-action{border:0;background:#103d2c;color:#fff;border-radius:14px;padding:9px 12px;cursor:pointer;font-family:inherit}
.fhp-breeding-step{border-right:3px solid #1f7a55;padding:10px 12px;margin:10px 0;background:#fbfdfb;border-radius:14px}.fhp-breeding-step span{display:block;color:#7a8b83;font-size:12px;margin-bottom:4px}.fhp-breeding-step strong{display:block}.fhp-breeding-step p{margin:6px 0 0;color:#5b6f65;font-size:13px;line-height:1.7}

/* v3.9 Smart Popup + Custom Seasons */
.fhp-smart-popup{position:fixed;inset:0;background:rgba(9,25,18,.42);z-index:999999;display:flex;align-items:center;justify-content:center;padding:18px;direction:rtl;backdrop-filter:blur(6px)}
.fhp-smart-box{width:100%;max-width:430px;background:rgba(255,255,255,.96);border:1px solid rgba(255,255,255,.55);border-radius:28px;padding:20px;box-shadow:0 30px 80px rgba(0,0,0,.25);position:relative;font-family:Tahoma,Arial,sans-serif;color:#173b2d}
.fhp-smart-box h3{margin:0 0 12px;font-size:21px}.fhp-smart-box ul{margin:0;padding:0 20px;line-height:1.9}.fhp-smart-box li{margin-bottom:6px}.fhp-smart-close{position:absolute;left:14px;top:12px;border:0;background:#edf5f0;border-radius:50%;width:34px;height:34px;font-size:22px;cursor:pointer}.fhp-smart-ok{width:100%;border:0;background:#103d2c;color:#fff;border-radius:16px;padding:12px;margin-top:14px;font-weight:800;cursor:pointer;font-family:inherit}.fhp-season-form label{display:block;font-weight:800;font-size:13px;margin:11px 0 6px}.fhp-season-form input,.fhp-season-form textarea{width:100%;border:1px solid var(--fhp-line);border-radius:16px;padding:12px;background:#fff;box-sizing:border-box;font-family:inherit}.fhp-season-form textarea{min-height:70px}.fhp-season-form .fhp-mini-action{width:100%;margin-top:12px}
