/* FurrFinder 2026 — unified visual system, loaded after legacy styles. */
:root{--radius:18px;--ff-surface:#fff;--ff-line:#ded7ef;--ff-soft:#f3effc;--ff-accent:#6531bd;--ff-cta:linear-gradient(110deg,#7431c8,#c51b72);--ff-shadow:0 12px 32px -22px #34205b66}
:root[data-theme=dark]{--ff-surface:#201a2b;--ff-line:#49405a;--ff-soft:#2b213b;--ff-accent:#c4a5ff;--ff-cta:linear-gradient(110deg,#7431c8,#c51b72);--ff-shadow:0 12px 32px -22px #000b}
[hidden]{display:none!important}
:where(a,button,input,select,textarea,summary):focus-visible{outline:3px solid var(--ff-accent);outline-offset:3px}
.glass:not(.nav):not(.tabbar):not(.btn):not(.float-chip){border-color:var(--ff-line);box-shadow:var(--ff-shadow)}
:where(.form-card,.settings-form,.account-head,.step,.request,.shelter-card,.modal-box,.empty,.fact,.match-box,.cta-box,.snack-card,.theme-tile,.pet-tile,.offline-box){border-radius:18px}
.form-card,.settings-form,.account-head,.step,.request,.shelter-card,.modal-box,.match-box,.cta-box,.snack-card,.theme-tile,details.fold,.kf,.profile-photo{border-radius:18px}
.btn{min-height:44px;border-radius:14px;line-height:1.25;text-align:center;white-space:normal}
.btn-small{min-height:40px;border-radius:12px}
.btn.btn-dark,.vice-hero .btn.btn-dark,[data-theme=dark] .vice-hero .btn.btn-dark,[data-theme=dark] .btn.btn-dark{background:var(--ff-cta);color:white;box-shadow:0 7px 18px -10px #a1228a99}
.btn.glass{background:var(--ff-surface);border:1px solid var(--ff-line);color:var(--ink)}
input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea{max-width:100%;min-width:0;border-radius:12px}
.auth-page{min-height: min(760px, 78vh);padding-block:clamp(28px,6vw,80px);position:relative;isolation:isolate}
.auth-page::before{content:"";position:absolute;inset:0 -4vw;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 22% 30%,#bda1ff38,transparent 55%),radial-gradient(ellipse at 85% 80%,#ed9dc833,transparent 50%)}
.auth-card.glass{width:min(100%,490px);padding:clamp(20px,4vw,38px);gap:18px;background:var(--ff-surface);border:1px solid var(--ff-line);border-radius:22px;box-shadow:0 20px 60px -36px #592f8b77;backdrop-filter:none}
.auth-card .auth-logo{display:flex;align-items:center;justify-content:center;gap:10px;font-size:1.65rem;line-height:1.2;text-decoration:none}
.auth-logo img{width:42px;height:42px}.auth-logo .logo-word{white-space:nowrap}
.auth-card h1{font-size:clamp(1.45rem,4vw,1.85rem);margin:0;text-align:center}
.auth-card .auth-sub{margin:0;font-size:.94rem;line-height:1.5}
.auth-card .segmented{border:1px solid var(--ff-line);background:var(--ff-soft);border-radius:13px;gap:4px;padding:4px}
.auth-card .segmented button{min-height:44px;white-space:normal;border-radius:9px;line-height:1.25;color:var(--muted)}
.auth-card .segmented button.on{background:var(--ff-surface);color:var(--ff-accent);box-shadow:0 2px 8px #160d2b12}
.auth-card #who{background:transparent;border:0;padding:0;gap:8px}
.auth-card #who button{border:1px solid var(--ff-line);background:var(--ff-surface);font-size:.88rem}
.auth-card #who button.on{border-color:var(--ff-accent);background:var(--ff-soft)}
.auth-form{gap:15px}.auth-form label{min-width:0}
.auth-card input:not([type=checkbox]){width:100%;min-height:48px;background:var(--ff-surface);color:var(--ink);border:1px solid var(--ff-line);font-size:16px;padding:12px 14px}
.auth-card input::placeholder{color:var(--muted);opacity:.8}
.auth-card .forgot-link{justify-self:end;color:var(--ff-accent);min-height:36px}
.auth-card .form-message:empty{display:none}.auth-card .form-message{overflow-wrap:anywhere}
.ff-password{position:relative;display:block}.ff-password input{padding-right:82px!important}.ff-password button{position:absolute;right:5px;top:4px;bottom:4px;min-width:64px;border:0;border-radius:8px;background:var(--ff-soft);color:var(--ff-accent);font:600 .77rem Inter,system-ui;cursor:pointer}
.auth-card .auth-support{border-top:1px solid var(--ff-line);padding-top:14px;text-align:center;font-size:.85rem}.auth-support a{color:var(--ff-accent)}
.hero-actions .btn.glass{border:none;box-shadow:none;background:transparent;color:var(--ff-accent);text-decoration:underline;text-underline-offset:4px}
.hero-help a{color:var(--ff-accent)}.hero-stats li{min-width:0}
#kolekcje h2{margin-bottom:.75rem}.theme-tile{min-height:175px}.theme-tile.has-photo::before{background:linear-gradient(180deg,#0a08141a 10%,#0a0814db 100%)}
article.pet-tile{border:1px solid var(--ff-line);border-radius:18px;min-width:0;background:var(--ff-surface);padding:10px;gap:8px}
article.pet-tile .pet-photo{border-radius:12px;aspect-ratio:4/3}
article.pet-tile .pet-body{padding:8px 3px;gap:5px;min-width:0}
article.pet-tile .pet-body h3,article.pet-tile .pet-meta,article.pet-tile .pet-place{white-space:normal;overflow-wrap:anywhere}
article.pet-tile .chips{padding:0;margin:3px 0}.tile-foot{padding:0;min-height:0;margin-top:6px}
article.pet-tile .tile-wait{color:var(--ff-accent);white-space:normal;background:var(--ff-soft);border-radius:8px;padding:5px 8px}
.ff-tile-actions{display:flex;flex-wrap:wrap;gap:6px;padding-top:8px;border-top:1px solid var(--ff-line)}
article.pet-tile .ff-tile-actions :is(button,a){position:static;min-height:44px;min-width:0;width:auto;height:auto;flex:1 1 auto;border:1px solid var(--ff-line);border-radius:10px;background:var(--ff-surface);box-shadow:none;color:var(--ff-accent);display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:6px 9px;font:600 .78rem Inter,system-ui;text-decoration:none;transform:none}
article.pet-tile .ff-tile-actions .tile-compare.on{background:var(--ff-soft);border-color:var(--ff-accent)}
article.pet-tile .pet-badges{max-width:calc(100% - 12px)}
.profile{gap:clamp(18px,4vw,42px);grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.profile>*{min-width:0}.profile-photo{aspect-ratio:4/3}.profile-info .key-facts{gap:8px}.kf{background:var(--ff-soft);border:1px solid var(--ff-line);padding:12px 5px;overflow-wrap:anywhere}.profile-info .page-title{overflow-wrap:anywhere}.profile-info .card-actions{gap:10px}.profile-info .fold{background:var(--ff-surface)}.profile-info .fold summary{flex-wrap:wrap}.profile-info .fold summary em{text-align:left;flex:1 1 120px}
.process li{gap:10px;padding-bottom:10px}.process li>span{flex:1;min-width:0;border:1px solid var(--ff-line);border-radius:12px;background:var(--ff-surface);padding:10px 12px}.process li.now>span{background:var(--ff-soft);border-color:var(--ff-accent)}.process li.done b,.process li.done::after{background:#9c32bb}.process li.now b{color:var(--ff-accent);box-shadow:0 0 0 2px var(--ff-accent) inset}.process-bar i{background:var(--ff-cta)}
.offline-page{background:radial-gradient(ellipse at 50% 0%,var(--ff-soft),var(--bg) 75%);min-height:100dvh;padding:20px}.offline-box.glass{border-radius:22px;background:var(--ff-surface);padding:clamp(20px,5vw,38px);gap:16px}.offline-symbol{width:90px;height:90px;display:grid;place-items:center;border-radius:22px;background:var(--ff-soft);color:var(--ff-accent)}.offline-symbol svg{width:52px;height:52px}.offline-box h1 em{display:block}.offline-box .card-actions{width:100%;gap:10px}.offline-box .card-actions .btn{flex:1 1 100%}
@media(min-width:650px){#pet-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#pet-grid article.pet-tile .pet-link{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:10px;align-items:start}#pet-grid article.pet-tile .pet-photo{aspect-ratio:1/1} }
@media(max-width:850px){.profile{grid-template-columns:minmax(0,1fr)}.profile-photo{max-height:560px}.profile-info .key-facts{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:560px){.auth-page{padding-block:24px 36px;min-height:auto}.auth-card.glass{gap:14px;padding:20px 16px}.auth-form .row{grid-template-columns:1fr}.profile-info .key-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.theme-tile{min-height:145px;padding:12px}.theme-grid{gap:9px}.hero-actions{gap:10px}.hero-actions .btn{width:100%}#pet-grid{grid-template-columns:minmax(0,1fr)}.profile-info .card-actions .btn{flex:1 1 140px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
