/* ── Modal Backdrop ── */ .f-modal-bg { position: fixed; inset: 0; background: var(--bg-overlay); z-index: 100; display: flex; align-items: center; justify-content: center; animation: mfadeIn .2s ease; } .f-modal { background: var(--bg-card); border: 1px solid var(--border); border-radius: 24px; width: 440px; max-height: 90vh; overflow-y: auto; padding: 26px 28px 24px; animation: mslideUp .3s cubic-bezier(.34,1.56,.64,1); } .f-modal::-webkit-scrollbar { width: 4px; } .f-modal::-webkit-scrollbar-thumb { background: var(--muted2); border-radius: 2px; } /* Header */ .f-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; } .f-modal-title { color: var(--text-primary); font-weight: 900; font-size: 1.1rem; } .f-close-btn { background: var(--hover-bg); border: 1px solid var(--border); border-radius: 8px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); transition: background .15s; } .f-close-btn:hover { background: var(--hover-bg); color: var(--text-primary); } /* Form Fields */ .f-m-group { margin-bottom: 14px; } .f-m-row { display: flex; gap: 10px; } .f-m-row .f-m-group { flex: 1; } .f-m-label { display: block; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .6px; margin-bottom: 6px; text-transform: uppercase; font-family: var(--font); } .f-m-field { width: 100%; background: var(--bg-input); border: 1.5px solid var(--border); border-radius: 12px; padding: 11px 14px; color: var(--text-primary); font-family: var(--font); font-size: .9rem; outline: none; resize: none; transition: border-color .2s, box-shadow .2s; } .f-m-field:focus { border-color: var(--teal); background: rgba(var(--teal-rgb), .07); box-shadow: 0 0 0 3px rgba(var(--teal-rgb), .12); } .f-m-field::placeholder { color: var(--muted); } .f-m-field option { background: var(--bg-surface-solid); color: var(--text-primary); } .f-m-field.err { border-color: rgba(237,73,86,.55); } /* Type Toggle */ .f-type-toggle { display: flex; gap: 8px; } .f-type-opt { flex: 1; padding: 10px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--bg-input); color: var(--muted); font-family: var(--font); font-size: .85rem; font-weight: 800; cursor: pointer; text-align: center; transition: all .2s; } .f-type-opt.loss { border-color: rgba(237,73,86,.5); background: rgba(237,73,86,.12); color: #ff6b6b; } .f-type-opt.found { border-color: rgba(var(--teal-rgb), .5); background: rgba(var(--teal-rgb), .1); color: var(--teal); } /* Map picker */ .f-map-pick { height: 80px; background: var(--bg-card-img); border-radius: 12px; border: 1.5px dashed var(--border); display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: .83rem; cursor: pointer; transition: border-color .2s; font-family: var(--font); font-weight: 600; } .f-map-pick:hover { border-color: rgba(var(--teal-rgb), .4); color: var(--teal); } /* Image Upload */ .f-img-upload-label { display: flex; align-items: center; justify-content: center; gap: 8px; border: 2px dashed var(--border); border-radius: 12px; padding: 20px; cursor: pointer; color: var(--muted); font-size: .85rem; font-family: var(--font); transition: border-color .2s, background .2s; } .f-img-upload-label:hover { border-color: var(--teal); background: rgba(var(--teal-rgb), .05); color: var(--teal); } .f-img-input { display: none; } /* Multi-image Grid */ .f-img-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; } .f-img-grid-item { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; } .f-img-grid-preview { width: 100%; height: 100%; object-fit: cover; display: block; } .f-img-grid-item .f-img-remove { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; background: rgba(0,0,0,0.55); border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #fff; padding: 0; transition: background .2s; } .f-img-grid-item .f-img-remove:hover { background: rgba(0,0,0,0.8); } .f-img-grid-item .f-img-remove svg { width: 12px; height: 12px; } /* ── Image Viewer Modal ── */ .f-viewer-bg { position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 200; display: flex; align-items: center; justify-content: center; animation: mfadeIn .2s ease; } .f-viewer { position: relative; max-width: 90vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; user-select: none; } .f-viewer-img-wrap { touch-action: pan-y; } .f-viewer-img { max-width: 90vw; max-height: 80vh; border-radius: 12px; object-fit: contain; cursor: pointer; box-shadow: 0 8px 40px rgba(0,0,0,.5); touch-action: pan-y; } .f-viewer-contact { margin-top: 16px; padding: 10px 28px; border-radius: 12px; border: none; background: var(--teal); color: #fff; font-size: .95rem; font-weight: 600; cursor: pointer; transition: opacity .2s; z-index: 1; } .f-viewer-contact:hover { opacity: .85; } .f-viewer-close { position: fixed; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 210; transition: background .2s; } .f-viewer-close:hover { background: rgba(255,255,255,.25); } .f-viewer-dots { display: flex; gap: 8px; margin-top: 16px; } .f-viewer-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.3); border: none; cursor: pointer; padding: 0; transition: background .2s; } .f-viewer-dot.active { background: #fff; } /* Hints & Errors */ .f-hint { font-size: .72rem; color: var(--muted); margin-top: 4px; } .f-err-msg { font-size: .78rem; color: var(--err); margin-top: 5px; } /* Submit Button */ .f-m-submit { width: 100%; background: var(--teal); border: none; border-radius: 13px; padding: 14px; color: #fff; font-family: var(--font); font-size: 1rem; font-weight: 800; cursor: pointer; margin-top: 6px; transition: background .15s, opacity .15s, transform .15s; } .f-m-submit:hover:not(:disabled) { background: var(--teal2); transform: translateY(-1px); } .f-m-submit:active:not(:disabled) { transform: translateY(0); } .f-m-submit:disabled { opacity: .5; cursor: not-allowed; animation: none; background: var(--muted2); color: var(--muted); } .f-m-submit-row { display: flex; align-items: center; justify-content: center; gap: 8px; } /* ── Modal Logout Button ── */ .f-modal-logout { display: block; width: 100%; margin-top: 16px; padding: 10px; border-radius: 10px; border: 1px solid rgba(237,73,86,.3); background: rgba(237,73,86,.08); color: rgba(237,73,86,.8); font-family: var(--font); font-size: .9rem; font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s; } .f-modal-logout:hover { background: rgba(237,73,86,.18); border-color: rgba(237,73,86,.5); } .f-m-spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; } /* ── Support Modal ── */ .f-support-body { padding: 0 4px; } .f-support-text { margin: 0; font-size: 0.9rem; line-height: 1.7; color: var(--text-primary); } .f-support-email { margin: 18px 0 0; } .f-support-email a { color: var(--teal); font-weight: 700; font-size: 1.05rem; text-decoration: none; transition: opacity 0.15s; } .f-support-email a:hover { opacity: 0.8; } .f-support-footer { margin: 18px 0 0; font-size: 0.82rem; color: var(--muted); } @media (max-width: 600px) { .f-modal-bg { align-items: flex-end; } .f-modal { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; padding: 20px 16px 32px; /* 32px снизу — отступ от home indicator */ } } /* ── Rules Checkbox ── */ .f-rules-checkbox { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; padding: 6px 0; } .f-rules-input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; } .f-rules-checkmark { flex-shrink: 0; width: 20px; height: 20px; border: 2px solid var(--border); border-radius: 5px; background: var(--bg-input); transition: all .2s; position: relative; } .f-rules-input:checked + .f-rules-checkmark { background: var(--teal); border-color: var(--teal); } .f-rules-input:checked + .f-rules-checkmark::after { content: ""; position: absolute; left: 5px; top: 1px; width: 6px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); } .f-rules-input:focus + .f-rules-checkmark { box-shadow: 0 0 0 3px rgba(var(--teal-rgb), .25); } .f-rules-text { font-size: .82rem; color: var(--muted); line-height: 1.4; } .f-rules-link { color: var(--teal); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; transition: opacity .15s; } .f-rules-link:hover { opacity: .75; } /* ── Result Modal (success / blocked) ── */ .f-modal-result { text-align: center; padding: 36px 28px 28px; max-width: 380px; } .f-result-icon { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 1.5rem; font-weight: 900; } .f-result-icon.success { background: rgba(var(--teal-rgb), .15); color: var(--teal); } .f-result-icon.blocked { background: rgba(255, 107, 107, .15); color: #ff6b6b; } .f-result-title { margin: 0 0 8px; font-size: 1.05rem; font-weight: 800; color: var(--text-primary); } .f-result-text { margin: 0 0 22px; font-size: .85rem; line-height: 1.5; color: var(--muted); } .f-result-btn { width: 100%; border: none; border-radius: 12px; padding: 13px; font-family: var(--font); font-size: .9rem; font-weight: 800; cursor: pointer; transition: opacity .15s, transform .15s; } .f-result-btn:hover { opacity: .88; transform: translateY(-1px); } .f-result-btn:active { transform: translateY(0); } .f-result-btn.ok { background: var(--teal); color: #fff; } .f-result-btn.err { background: rgba(237, 73, 86, .1); border: 1.5px solid rgba(237, 73, 86, .35); color: #ed4956; } .f-map-frame { width: 100%; height: 260px; border-radius: 8px; overflow: hidden; } .f-map-inner { width: 100%; height: 100%; } .f-modal-sm { width: 420px; }