/* Nextmarket: sapphire surfaces, generous cards and NextChat's neural ecosystem. */
:root{--bg:#f2f5fb;--ink:#172442;--muted:#65748c;--border:#e0e7f2;--accent:#315ee8;--soft:#eaf0ff}
body[data-theme=glass]{--bg:#e9edfb;--surface:#ffffffa8;--ink:#203251;--muted:#5a6b87;--border:#ffffffce;--soft:#e4eaffaa;background:radial-gradient(ellipse at 5% 10%,#c8c8ff,transparent 50%),radial-gradient(ellipse at 100% 55%,#bedef4,transparent 50%),#e9edfb;background-attachment:fixed}
body[data-theme=dark]{--bg:#101522;--surface:#1a2234;--border:#2b3750;--soft:#24324b;--accent:#95b1ff}
body[data-theme=glass] :is(.surface,.menu-list,.listing-card,.bottom-nav,.searchbox,.stat){backdrop-filter:blur(22px)}
h1,h2,.price,.stat strong{font-family:'Segoe UI Variable Display','Segoe UI',sans-serif;letter-spacing:-.035em}
button,a{touch-action:manipulation}button:focus-visible,a:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
.surface{box-shadow:0 8px 26px #27395905}.topbar{border-bottom:1px solid var(--border);margin-bottom:22px}
.listing-card{background:var(--surface);border:1px solid var(--border);border-radius:23px;overflow:hidden;box-shadow:0 6px 18px #20325206;transition:box-shadow .2s,transform .2s;position:relative;padding:7px 7px 14px;min-width:0}
.listing-card>a{display:block}.listing-card .card-image{border-radius:17px;position:relative;background:var(--soft)}
.listing-card :is(.price,h3,small,.listing-metrics){margin-left:7px;margin-right:7px}.listing-card .price{margin-top:12px}.listing-card h3{line-height:1.4}.listing-card small{display:block;margin-top:6px}
.listing-metrics{display:flex;align-items:center;gap:16px;margin-top:12px;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}.listing-metrics span{display:inline-flex;gap:5px;align-items:center}.listing-metrics .icon{width:15px;height:15px}
.card-like{top:16px;right:16px;width:39px;height:39px;border:1px solid #ffffff99;background:#fffffff0;color:#5c6b86;box-shadow:0 3px 15px #15294b17;backdrop-filter:blur(12px);z-index:2}.card-like.liked{background:#fff0f5;color:#da4174;border-color:#f6c4d5}.liked .icon{fill:currentColor}.card-like:active{transform:scale(.9)}
.favorite-action{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;border:1px solid var(--border);background:var(--soft);color:var(--accent);border-radius:15px;min-height:50px;padding:12px 18px;font-weight:650}.favorite-action.liked{background:#d8437512;border-color:#d8437533;color:#d84375}
.saved-hero{display:flex;gap:24px;align-items:center;padding:30px;border:1px solid #bacaf333;border-radius:25px;color:#f5f7ff;background:radial-gradient(ellipse at 95% 10%,#506ebb,transparent 65%),#233864;margin:20px 0}.saved-hero h2{font-size:30px;line-height:1.17;margin:8px 0 12px}.saved-hero p{color:#cad7f4;font-size:14px}.saved-emblem{width:80px;height:95px;flex-shrink:0;display:grid;place-items:center;background:linear-gradient(145deg,#ffffff30,#ffffff08);border:1px solid #ffffff30;border-radius:24px;transform:rotate(-9deg)}.saved-emblem .icon{width:42px;height:42px;fill:#ffffff14}
.collection-tabs{display:flex;gap:9px;overflow:auto;padding:4px 0 18px;margin-bottom:8px;scroll-snap-type:x proximity}.collection-tabs .chip{flex-shrink:0;scroll-snap-align:start;display:flex;gap:7px;align-items:center;min-height:43px}.collection-tabs .chip>span{border-radius:6px;background:var(--soft);color:var(--ink);padding:1px 5px;font-size:11px}
.profile-identity{position:relative;overflow:hidden;padding:28px 22px;background:linear-gradient(120deg,var(--surface),var(--soft));min-height:120px;border-radius:24px}.profile-identity .avatar{width:62px;height:62px;flex-shrink:0;border-radius:20px;font-size:28px;background:linear-gradient(140deg,#6c92ff,#355bd5);color:#fff;box-shadow:0 7px 20px #315ee830}.profile-identity h2{font-size:23px;overflow-wrap:anywhere}.profile-identity .caption{min-width:0}.profile-identity p{overflow-wrap:anywhere}.profile-identity>.icon-button{flex-shrink:0}
.profile-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.profile-stats .stat{text-align:left;padding:17px 14px;color:var(--ink)}.profile-stats .stat>.icon{width:20px;color:var(--accent);margin-bottom:8px}.profile-stats .stat strong{font-size:27px}.profile-stats .stat small{font-size:12px}.stats-note{font-size:11px;color:var(--muted);margin:10px 0 22px;line-height:1.5}
.profile-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.profile-shortcuts button{display:grid;text-align:left;gap:7px;position:relative;border:1px solid var(--border);border-radius:20px;background:var(--surface);padding:20px;color:var(--ink);min-width:0}.profile-shortcuts button>small{font-size:12px;color:var(--muted)}.profile-shortcuts button>.icon:first-child{color:var(--accent);margin-bottom:7px}.profile-shortcuts button>.icon:last-child{position:absolute;right:15px;top:21px;width:18px;color:var(--muted)}
.menu-row{min-height:58px;padding:17px 18px}.menu-row>.icon{color:var(--accent);width:21px;flex-shrink:0}.menu-row .caption{min-width:0}.menu-row .chevron .icon{width:17px}.menu-list{box-shadow:0 5px 20px #25365404;border-radius:20px}
.settings-section{margin-bottom:17px;padding:24px}.section-kicker{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:700;margin-bottom:14px}.section-kicker>.icon{color:var(--accent);width:21px}.settings-section>.muted{font-size:13px;margin-bottom:17px}.settings-section>small{font-size:12px;color:var(--muted)}.settings-section .menu-row{padding-left:0;padding-right:0;font-size:14px}
.theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin:20px 0}.theme-choice{position:relative;cursor:pointer;text-align:center;font-size:12px;padding:5px;border:2px solid transparent;border-radius:15px}.theme-choice:has(input:checked){border-color:var(--accent);background:var(--soft)}.theme-choice input{position:absolute;opacity:0;width:1px;height:1px}.theme-choice:has(input:focus-visible){outline:3px solid var(--accent)}.theme-sample{display:flex;flex-wrap:wrap;gap:5px;padding:12px;height:78px;border:1px solid #dae2ee;border-radius:10px;background:#f3f6fc;margin-bottom:7px}.theme-sample i{display:block;border-radius:4px;background:#c9d5ec;flex:1}.theme-sample i:first-child{flex:0 0 100%;height:9px;background:#708fea}.theme-sample.dark{background:#192337;border-color:#34425d}.theme-sample.dark i{background:#344666}.theme-sample.glass{background:linear-gradient(130deg,#cccbff,#caeafa);border-color:#fff}.theme-sample.glass i{background:#ffffffa0}
.setting-toggle{display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid var(--border);padding:17px 0;font-size:14px}.setting-toggle span{min-width:0}.setting-toggle small{display:block;font-size:12px;color:var(--muted);margin-top:5px;line-height:1.5}.setting-toggle input{appearance:none;flex-shrink:0;width:44px;height:26px;border-radius:20px;border:0;background:#9aa7bb;position:relative;cursor:pointer;padding:0}.setting-toggle input:checked{background:var(--accent)}.setting-toggle input:before{content:'';position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:white;box-shadow:0 1px 4px #0002;transition:transform .15s}.setting-toggle input:checked:before{transform:translateX(18px)}.settings-save{margin:8px 0 18px}
.neural-shell{display:block;position:relative;flex:0 0 65px;width:65px;height:65px;border-radius:50%;background:radial-gradient(circle,#4d286780,transparent 72%)}.neural-shell canvas{width:100%;height:100%;display:block}.neira-banner{background:radial-gradient(ellipse at 0 50%,#43305f,transparent 60%),#1b213b;color:#f5eeff;border:1px solid #7760a640;border-radius:22px;padding:17px 20px;box-shadow:0 8px 24px #302a5010}.neira-banner p{color:#c6bdd9}.neira-banner>.caption{min-width:0}.neira-banner>.icon{flex-shrink:0;color:#c6b6ef}.neira-banner strong{font-size:16px}
.neural-large{width:min(280px,75vw);height:min(280px,75vw);margin:0 auto;flex:none;background:radial-gradient(circle,#5c367165,transparent 70%)}
#uli-stage{background:radial-gradient(ellipse at center,#4f376180,transparent 68%),#151a30;border-radius:30px;padding:5px 0 25px;margin-bottom:26px;overflow:hidden;box-shadow:inset 0 0 70px #443b6d20}.neira-status{display:block;color:#d4c5eb;font-size:12px;letter-spacing:.04em}#uli-stage[data-state=thinking] .neira-status{color:#fff}.ai-intro h2{font-size:27px}.ai-intro .suggestions .chip{min-height:44px;border-radius:14px;padding:12px 16px}.ai-intro{padding:8px 0}.ai-intro p{font-size:15px}.bottom-nav{box-shadow:0 -5px 32px #25395c0b}
body[data-density=compact] .listing-card{padding:4px 4px 10px}body[data-density=compact] .card-image{aspect-ratio:1.4}body[data-density=compact] .results-grid{gap:12px}body[data-motion=off] *,body[data-motion=off] *::before{animation:none!important;transition:none!important}
@media(hover:hover){.listing-card:hover{transform:translateY(-3px);box-shadow:0 13px 24px #20325212}.menu-row:hover{background:var(--soft)}}
@media(max-width:600px){.topbar{margin-bottom:14px}.listing-card{border-radius:19px;padding:5px 5px 12px}.listing-card .card-image{border-radius:14px}.card-like{top:12px;right:12px;width:34px;height:34px}.card-like .icon{width:18px;height:18px}.listing-card .price{font-size:17px}.results-grid{gap:14px 10px}.saved-hero{padding:23px 20px;gap:18px}.saved-hero h2{font-size:23px}.saved-emblem{width:58px;height:78px;border-radius:19px}.saved-emblem .icon{width:32px}.profile-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.profile-stats .stat{display:grid;grid-template-columns:1fr auto;gap:3px;padding:15px}.profile-stats .stat>.icon{grid-column:2;grid-row:1;margin:0}.profile-stats .stat strong{grid-column:1;grid-row:1;font-size:25px}.profile-stats .stat small{grid-column:1/-1}.profile-shortcuts button{padding:17px 15px}.profile-shortcuts strong{font-size:14px}.settings-section{padding:20px 17px}.neira-banner{gap:12px;padding:14px}.neural-shell{flex-basis:53px;width:53px;height:53px}.neural-large{width:240px;height:240px;margin:auto}.neira-banner strong{font-size:14px}.neira-banner p{font-size:12px}.bottom-nav{height:auto;min-height:72px;padding-bottom:max(9px,env(safe-area-inset-bottom));width:100%;box-sizing:border-box}.theme-options{gap:5px}.theme-sample{padding:9px}.profile-identity{padding:23px 16px;gap:12px}.profile-identity .avatar{width:52px;height:52px;border-radius:17px}.profile-identity h2{font-size:20px}.profile-identity p{font-size:12px}.gallery-main{border-radius:23px}}
@media(prefers-reduced-motion:reduce){*,*::before{animation:none!important;transition:none!important}}
.metric-bar{height:6px;background:var(--soft);border-radius:9px;margin-top:16px;overflow:hidden}.metric-bar span{display:block;height:100%;background:var(--accent);border-radius:9px}.voice-controls{display:flex;flex-wrap:wrap;gap:9px;align-items:end;margin-bottom:18px}.voice-controls label{font-size:12px;color:var(--muted)}.voice-controls select{display:block;margin-top:5px}.record-widget{text-align:center;display:grid;gap:17px}.record-widget audio{width:100%}.record-widget strong{font-size:38px;font-variant-numeric:tabular-nums}.record-widget p{color:var(--muted);font-size:14px}.record-dot{width:12px;height:12px;border-radius:50%;background:#df4564;margin:auto}.message audio,.message video{max-width:100%;width:280px;border-radius:13px}.message video{max-height:340px}.chat-log{padding:18px 10px;background:radial-gradient(circle at 0 0,var(--soft),transparent 65%);border-radius:22px}.composer{flex-wrap:wrap}.composer textarea{flex:1;min-width:100px;width:auto}.composer .upload-label,.composer .icon-button{width:36px;height:42px;min-width:36px;padding:8px}.composer .icon{width:20px;height:20px}select option{background:var(--surface);color:var(--ink)}.profile-identity+.section-head{margin-top:25px}
