*{box-sizing:border-box}html{min-height:100%;background:#090b14}body{margin:0;min-height:100vh;color:#f5f6ff;background:radial-gradient(ellipse at 75% 20%,rgba(74,92,255,.13),transparent 36%),#090b14;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}.topbar{height:86px;padding:0 clamp(20px,5vw,76px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(147,165,205,.14);background:rgba(9,11,20,.86)}.brand{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none;font-weight:900;letter-spacing:.14em;font-size:20px}.brandmark{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,#477bff,#9352ff);font-size:22px;letter-spacing:0;box-shadow:0 8px 28px #5a5cff35}.topbar nav{display:flex;align-items:center;gap:22px}.navlink{color:#b9c4df;text-decoration:none;font-weight:700}.navlink:hover,.switch a:hover{color:#fff}.button{display:inline-flex;align-items:center;justify-content:center;gap:18px;min-height:54px;padding:0 24px;border:0;border-radius:15px;background:linear-gradient(100deg,#477bff,#9250f7);color:white;text-decoration:none;font-weight:800;font-size:15px;box-shadow:0 12px 30px #625aff30;cursor:pointer}.button:hover{filter:brightness(1.08);transform:translateY(-1px)}.button-small{min-height:42px;padding:0 18px;font-size:14px}.button-ghost{background:#151b2b;border:1px solid #293650;box-shadow:none}.hero-wrap{width:min(1160px,90vw);min-height:calc(100vh - 150px);margin:auto;display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:5vw;padding:65px 0}.hero{max-width:620px}.eyebrow{display:flex;align-items:center;gap:10px;color:#9db9ff;font-size:11px;font-weight:900;letter-spacing:.22em}.dot{width:8px;height:8px;border-radius:50%;background:#7c68ff;box-shadow:0 0 16px #7c68ff}.hero h1,.auth-card h1{font-size:clamp(44px,6vw,76px);line-height:1.03;letter-spacing:-.055em;margin:24px 0}.hero h1 span{background:linear-gradient(90deg,#8cb5ff,#b28aff);color:transparent;background-clip:text}.lead,.muted{color:#9ba8c2;line-height:1.7;font-size:17px}.actions{display:flex;flex-wrap:wrap;gap:13px;margin-top:30px}.hero-note{display:flex;align-items:center;gap:10px;color:#8f9bb5;margin-top:28px;font-size:13px}.check{display:grid;place-items:center;width:21px;height:21px;border-radius:50%;background:#173a37;color:#7af0c0}.visual{position:relative;min-height:420px;display:grid;place-items:center;overflow:hidden}.orb{position:absolute;border-radius:50%;filter:blur(2px)}.orb-a{width:290px;height:290px;background:radial-gradient(circle,#5e63ff55,transparent 70%);top:20px;right:10%}.orb-b{width:230px;height:230px;background:radial-gradient(circle,#a45cff40,transparent 70%);bottom:5px;left:8%}.visual-card{position:relative;width:min(340px,80%);height:340px;border:1px solid #38456a;background:linear-gradient(145deg,#19233aee,#111625f2);border-radius:34px;box-shadow:0 35px 100px #0009;display:flex;flex-direction:column;align-items:center;justify-content:center;transform:rotate(5deg)}.visual-logo{display:grid;place-items:center;width:100px;height:100px;border-radius:30px;background:linear-gradient(135deg,#477bff,#9352ff);font-size:54px;font-weight:900;box-shadow:0 18px 50px #675aff55}.visual-word{font-size:22px;font-weight:900;letter-spacing:.22em;margin-top:22px}.visual-line{height:9px;width:68%;border-radius:10px;background:#ffffff16;margin-top:36px}.visual-line.short{width:43%;margin-top:12px}.visual-pill{width:110px;height:10px;border-radius:20px;background:linear-gradient(90deg,#477bff,#9352ff);margin-top:34px}footer{text-align:center;color:#66728c;font-size:12px;padding:22px}.auth-wrap{min-height:calc(100vh - 145px);display:grid;place-items:center;padding:40px 18px}.auth-card{width:min(100%,470px);padding:clamp(25px,5vw,42px);border:1px solid #283550;border-radius:26px;background:linear-gradient(145deg,#141c2d,#101522);box-shadow:0 25px 90px #0005}.auth-card h1{font-size:clamp(36px,8vw,48px);margin:17px 0 8px}.auth-card .muted{font-size:14px;margin:0 0 25px}.auth-card form{display:flex;flex-direction:column}.auth-card label{font-size:13px;font-weight:750;color:#dbe3f6;margin:16px 0 8px}.auth-card input{height:52px;border-radius:12px;border:1px solid #34425e;background:#0b1120;color:#fff;padding:0 15px;font-size:16px;outline:none;width:100%}.auth-card input:focus{border-color:#7785ff;box-shadow:0 0 0 3px #7785ff20}.hint{color:#7887a3;font-size:11px;margin-top:7px}.full{width:100%;margin-top:23px}.form-message{min-height:20px;margin-top:14px;font-size:13px;line-height:1.5;color:#ff929d}.form-message.ok{color:#7be0b8}.switch{text-align:center;color:#8996b0;font-size:13px;margin:24px 0 0}.switch a{color:#a9baff;font-weight:800;text-decoration:none}button:disabled{opacity:.6;cursor:wait}@media(max-width:760px){.topbar{height:72px;padding:0 18px}.brand{font-size:17px}.brandmark{width:38px;height:38px}.topbar nav{gap:12px}.hero-wrap{grid-template-columns:1fr;min-height:auto;padding:72px 0 35px;gap:10px}.hero{max-width:100%}.hero h1{font-size:clamp(48px,13vw,66px)}.lead{font-size:15px}.visual{min-height:290px}.visual-card{height:250px;width:230px}.visual-logo{width:75px;height:75px;font-size:42px}.visual-word{font-size:18px}.actions .button{flex:1}.auth-wrap{min-height:calc(100vh - 130px);align-items:start;padding-top:42px}.auth-card{border-radius:22px}.navlink{font-size:12px}}
/* Authenticated home state */
.logged-user{white-space:nowrap}.authenticated-note{color:#8fdbbd}.is-authenticated .hero h1 span{background:linear-gradient(90deg,#8cb5ff,#b28aff);color:transparent;background-clip:text}
@media(max-width:760px){.logged-user{font-size:11px}.topbar nav{gap:9px}.topbar nav .button-small{padding:0 13px;font-size:12px}}

/* FANIVO Creator Dashboard v4 */
.dashboard-mode{background:radial-gradient(ellipse at 80% 12%,#13265b55,transparent 34%),#070a13;padding-bottom:100px}
.dashboard-mode .topbar{height:82px;padding:0 clamp(18px,4vw,58px);position:sticky;top:0;z-index:20;background:#080b15ed;backdrop-filter:blur(18px)}
.dash-brand{display:flex;align-items:center;gap:13px;text-decoration:none;color:#fff}
.dash-brandmark{width:46px;height:46px;border-radius:15px;display:grid;place-items:center;background:linear-gradient(135deg,#168dff,#6357ff);box-shadow:0 0 30px #167dff55;font-size:29px;font-weight:950}
.dash-brandtext{font-size:22px;letter-spacing:.15em;font-weight:950;line-height:1}
.dash-brandtext small{display:block;color:#38c9ff;letter-spacing:.02em;font-size:11px;margin-top:6px}
.dash-head-actions{display:flex;align-items:center;gap:15px;position:relative}
.round-action,.profile-avatar{width:43px;height:43px;border-radius:50%;border:1px solid #243451;background:#10182a;color:#dce8ff;font-size:23px;display:grid;place-items:center;cursor:pointer}
.notification-action{position:relative}.notification-action i{position:absolute;width:7px;height:7px;border-radius:50%;background:#8a6cff;right:8px;top:7px}
.profile-avatar{border:2px solid #38baff;background:linear-gradient(135deg,#153e69,#6745c8);font-size:14px;font-weight:900}
.profile-pop{position:absolute;right:0;top:54px;width:210px;padding:17px;border:1px solid #293b5d;border-radius:16px;background:#111a2b;box-shadow:0 18px 50px #000a;z-index:30}
.profile-pop[hidden]{display:none}.profile-pop strong,.profile-pop span{display:block}.profile-pop span{color:#8494b4;font-size:12px;margin:5px 0 14px}.profile-pop button{border:0;background:#202d46;color:#fff;border-radius:10px;padding:10px 14px;width:100%;font-weight:800}
.dashboard-main{width:min(1160px,calc(100% - 44px));margin:0 auto;padding:28px 0 55px}
.dash-welcome{min-height:270px;border:1px solid #1b355d;border-radius:25px;overflow:hidden;position:relative;display:grid;grid-template-columns:1.15fr .85fr;align-items:center;padding:32px 38px;background:linear-gradient(112deg,#0e1b31 0%,#0c1426 58%,#15113a 100%);box-shadow:0 20px 70px #0004}
.dash-welcome:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 45%,#427aff0b);pointer-events:none}
.dash-welcome-copy{position:relative;z-index:2}.dash-kicker,.section-kicker{font-size:10px;letter-spacing:.2em;font-weight:950;color:#75bfff}
.dash-kicker{display:flex;align-items:center;gap:9px}.dash-kicker span{width:8px;height:8px;border-radius:50%;background:#18caff;box-shadow:0 0 14px #18caff}
.dash-welcome h1{font-size:clamp(30px,4.3vw,53px);line-height:1.06;letter-spacing:-.05em;margin:17px 0 12px;max-width:620px}
.dash-welcome h1 em{font-style:normal;background:linear-gradient(90deg,#28caff,#8c65ff);color:transparent;background-clip:text}
.dash-welcome p{color:#a3b3d0;font-size:14px;line-height:1.6;margin:0;max-width:490px}
.dash-hero-art{height:220px;position:relative;display:grid;place-items:center}
.art-glow{position:absolute;width:240px;height:210px;background:radial-gradient(ellipse,#1b8dff66,transparent 70%);filter:blur(8px)}
.art-device{position:relative;width:225px;height:160px;padding:10px;border:1px solid #416ca8;border-radius:20px;background:linear-gradient(145deg,#172944,#090f1e);transform:rotate(-7deg);box-shadow:0 20px 45px #0009}
.device-screen{height:112px;border-radius:12px;background:linear-gradient(135deg,#123f70,#171c4e 55%,#6c3da0);display:flex;flex-direction:column;justify-content:center;padding:18px;position:relative;overflow:hidden}
.device-screen:after{content:"";position:absolute;width:100px;height:100px;border-radius:50%;background:#20caff44;filter:blur(25px);right:0;top:0}
.device-play{font-size:26px;color:#6ce4ff;z-index:1}.device-screen b{font-size:14px;line-height:1.1;z-index:1;letter-spacing:.06em}.device-screen small{font-size:7px;letter-spacing:.2em;color:#91caff;margin-top:8px;z-index:1}
.device-timeline{display:flex;gap:5px;margin-top:8px}.device-timeline i{height:8px;flex:1;border-radius:3px;background:linear-gradient(90deg,#17bfff,#7b5cff)}
.art-chip,.art-clapper{position:absolute;z-index:2;border:1px solid #685cff;background:#161d40;color:#a99cff;border-radius:12px;padding:9px 12px;font-weight:950;box-shadow:0 0 24px #805aff55}.art-chip{right:4%;top:20px}.art-clapper{left:3%;bottom:24px;color:#4de5ff;border-color:#19caff}
.dash-section{margin-top:30px}.section-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:15px}.section-heading h2{font-size:20px;letter-spacing:-.025em;margin:5px 0 0}.section-kicker{color:#788eaf;font-size:9px}.section-count{font-size:9px;color:#7183a5;letter-spacing:.13em}
.tool-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.tool-card{position:relative;min-height:142px;border:1px solid #263653;border-radius:17px;background:linear-gradient(145deg,#121d31,#0c1322);color:#f5f8ff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;cursor:pointer;transition:.18s}
.tool-card:hover,.quick-card:hover{transform:translateY(-3px);border-color:#467dcb;box-shadow:0 12px 30px #0005}
.tool-icon{font-size:31px;line-height:1;margin-bottom:4px;text-shadow:0 0 18px currentColor}.tool-card b{font-size:14px}.tool-card small{font-size:11px;color:#93a4c2}.tool-arrow{position:absolute;right:13px;top:10px;color:#536987;opacity:0}
.tool-card:hover .tool-arrow{opacity:1}.cyan .tool-icon{color:#25caff}.violet .tool-icon{color:#b46aff}.purple .tool-icon{color:#a76cff}.teal .tool-icon{color:#20d8c4}.amber .tool-icon{color:#ffc45c}.blue .tool-icon{color:#55aaff}
.social-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.social-card{display:flex;align-items:center;gap:12px;padding:15px;border:1px solid #253653;border-radius:16px;background:linear-gradient(110deg,#111c30,#0d1423)}
.social-logo{width:40px;height:40px;border-radius:13px;display:grid;place-items:center;font-size:25px;font-weight:900}.instagram{background:linear-gradient(135deg,#ffb347,#e52b8a 55%,#7353ff)}.tiktok{background:#10151f;border:1px solid #34425b;color:#fff}
.social-info{min-width:0;flex:1}.social-info b,.social-info small{display:block}.social-info b{font-size:13px}.social-info small{font-size:10px;color:#8495b3;margin-top:5px}
.connect-button{border:1px solid #2876a4;background:#102a40;color:#68d7ff;border-radius:9px;padding:8px 12px;font-size:10px;font-weight:850;white-space:nowrap}
.text-action{border:0;background:none;color:#42caff;font-weight:800;font-size:12px;cursor:pointer}.text-action span{font-size:20px;vertical-align:-2px}
.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.quick-card{min-height:88px;border:1px solid #293a58;border-radius:14px;background:#111a2b;color:#eaf1ff;display:flex;align-items:center;justify-content:center;gap:9px;flex-direction:column;cursor:pointer;transition:.18s}.quick-card span{font-size:24px;color:#83aaff}.quick-card b{font-size:11px}.quick-primary{background:linear-gradient(135deg,#087edb,#384cff);border-color:#368eff;box-shadow:0 8px 25px #1769ff35}.quick-primary span{color:white}
.dash-toast{position:fixed;z-index:60;left:50%;bottom:95px;transform:translate(-50%,20px);opacity:0;pointer-events:none;padding:12px 18px;border:1px solid #38517b;border-radius:13px;background:#14213a;color:#e9f4ff;font-size:12px;box-shadow:0 10px 35px #0008;transition:.2s;white-space:nowrap}.dash-toast.show{opacity:1;transform:translate(-50%,0)}
.mobile-dock{display:none}
@media(max-width:760px){
 .dashboard-mode{padding-bottom:106px}.dashboard-mode .topbar{height:76px;padding:0 18px}.dash-brandmark{width:42px;height:42px;border-radius:14px}.dash-brandtext{font-size:19px}.dash-head-actions{gap:9px}.round-action,.profile-avatar{width:38px;height:38px}.round-action{font-size:20px}
 .dashboard-main{width:calc(100% - 30px);padding:18px 0 30px}.dash-welcome{min-height:250px;grid-template-columns:1fr;padding:24px 20px 5px;border-radius:20px}.dash-welcome h1{font-size:34px;max-width:440px;margin:15px 0 9px}.dash-welcome p{font-size:12px;max-width:350px}.dash-hero-art{height:130px;margin-top:2px}.art-device{width:175px;height:120px;border-radius:15px}.device-screen{height:80px;padding:12px}.device-screen b{font-size:11px}.device-screen small{font-size:6px}.device-play{font-size:20px}.device-timeline i{height:6px}.art-glow{height:140px}.art-chip{right:12%;top:2px;font-size:11px}.art-clapper{left:13%;bottom:10px;font-size:12px}
 .dash-section{margin-top:24px}.section-heading h2{font-size:17px}.tool-grid{gap:9px}.tool-card{min-height:119px;border-radius:14px;gap:6px}.tool-icon{font-size:27px}.tool-card b{font-size:11px}.tool-card small{font-size:9px;text-align:center;padding:0 3px}
 .social-grid{gap:8px}.social-card{padding:11px 9px;gap:8px;flex-wrap:wrap}.social-logo{width:33px;height:33px;font-size:20px;border-radius:10px}.social-info b{font-size:11px}.social-info small{font-size:9px}.connect-button{margin-left:41px;padding:6px 9px;font-size:9px}
 .quick-grid{grid-template-columns:repeat(4,1fr);gap:7px}.quick-card{min-height:76px;gap:5px;border-radius:12px}.quick-card span{font-size:20px}.quick-card b{font-size:9px;text-align:center;line-height:1.2;padding:0 3px}
 .mobile-dock{position:fixed;z-index:50;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:space-around;height:76px;padding:7px 8px calc(7px + env(safe-area-inset-bottom));background:#080c17f5;border-top:1px solid #26334d;backdrop-filter:blur(20px)}
 .dock-item{width:18%;height:58px;border:0;background:none;color:#8190ad;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;cursor:pointer}.dock-item span{font-size:24px;line-height:1}.dock-item small{font-size:9px;font-weight:750}.dock-item.active{color:#34caff;text-shadow:0 0 15px #28baff55}
 .dock-create{width:54px;height:54px;border:1px solid #4aaeff;border-radius:50%;background:linear-gradient(135deg,#08aaff,#315cff);color:white;font-size:34px;line-height:1;box-shadow:0 0 28px #168dff66;cursor:pointer;margin-top:-24px}
 .dash-toast{bottom:90px;max-width:90vw;white-space:normal;text-align:center}
}
@media(min-width:761px){.mobile-dock{display:none}}

.session-warning{max-width:900px;margin:18px auto;padding:14px 18px;border:1px solid #f0b44d55;border-radius:14px;background:#f0b44d12;color:#f4d7a0;font:600 14px/1.5 system-ui,sans-serif}

/* FANIVO v6 functional bottom navigation screens */
.dash-subpage{min-height:65vh;padding:18px 0 45px}.dash-subhead{padding:12px 0 22px}.dash-subhead h1{font-size:clamp(32px,5vw,48px);letter-spacing:-.045em;margin:8px 0}.dash-subhead p{color:#9baac4;line-height:1.6}.sub-toolbar{display:flex;align-items:center;justify-content:space-between;margin:8px 0 18px}.saved-list{display:grid;gap:10px}.saved-card{display:flex;align-items:center;gap:13px;padding:15px;border:1px solid #263653;border-radius:15px;background:linear-gradient(120deg,#121d31,#0c1322)}.saved-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#172c4d;color:#43caff;font-size:20px}.saved-card>div{flex:1;min-width:0}.saved-card b,.saved-card small{display:block}.saved-card small{color:#8293b2;font-size:11px;margin-top:5px}.empty-state{display:flex;align-items:center;flex-direction:column;text-align:center;padding:36px 20px;margin-top:15px;border:1px dashed #314363;border-radius:18px;background:#10192a}.empty-state>span{font-size:34px;color:#42caff;margin-bottom:12px}.empty-state>b{font-size:17px}.empty-state p{max-width:440px;color:#91a1bd;line-height:1.6;font-size:13px}.metric-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.metric-card{padding:20px;border:1px solid #263653;border-radius:15px;background:#111b2e}.metric-card small{display:block;color:#92a2bf;font-size:11px}.metric-card strong{display:block;font-size:32px;margin-top:10px}.analytics-note{margin-top:20px}.planner-form{display:grid;gap:10px;max-width:600px;padding:20px;border:1px solid #293b5b;border-radius:17px;background:#111a2b}.planner-form label{font-size:12px;font-weight:800;color:#cbd8f0;margin-top:5px}.planner-form input,.planner-form select{width:100%;min-height:48px;border:1px solid #344662;border-radius:11px;background:#090f1d;color:#fff;padding:0 13px;font:inherit}.planner-form .button{margin-top:8px}.subsection-title{font-size:19px;margin:28px 0 13px}.planner-form .form-message{color:#ff9aa6}
@media(max-width:760px){.dash-subpage{padding-top:8px}.metric-grid{grid-template-columns:1fr 1fr}.metric-card:last-child{grid-column:1/-1}.saved-card{padding:11px}.saved-card b{font-size:13px}.saved-card .connect-button{margin-left:0}.sub-toolbar .button{min-height:44px}.planner-form{padding:15px}}

/* FANIVO v7 – account tab in the fixed mobile dock */
.account-panel{max-width:760px;padding:22px;border:1px solid #293b5b;border-radius:20px;background:linear-gradient(145deg,#141f34,#0d1423);box-shadow:0 20px 55px #0003}
.account-identity{display:flex;align-items:center;gap:16px;padding-bottom:20px;border-bottom:1px solid #293852}
.account-avatar{width:64px;height:64px;flex:0 0 64px;display:grid;place-items:center;border-radius:20px;background:linear-gradient(135deg,#168cff,#8051f6);font-size:23px;font-weight:900;box-shadow:0 10px 28px #327dff40}
.account-identity h2{margin:0 0 4px;font-size:22px}.account-identity p{margin:0 0 8px;color:#9aabc9;font-size:13px}
.account-status{display:inline-flex;align-items:center;gap:7px;color:#7de5bd;font-size:12px;font-weight:750}.account-status i{width:7px;height:7px;border-radius:50%;background:#54d7a6;box-shadow:0 0 12px #54d7a6}
.account-details{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:20px 0}.account-details>div{min-width:0;padding:13px;border:1px solid #263653;border-radius:13px;background:#0b1322}.account-details small,.account-details b{display:block;overflow-wrap:anywhere}.account-details small{margin-bottom:7px;color:#8192b1;font-size:11px}.account-details b{font-size:13px;color:#edf2ff}.account-actions{display:flex;justify-content:flex-end;padding-top:5px}.account-preserve{max-width:760px;align-items:flex-start;text-align:left}.account-preserve>span{color:#6ce0b5}
@media(max-width:760px){.account-panel{padding:16px}.account-details{grid-template-columns:1fr}.account-identity h2{font-size:19px}.mobile-dock .dock-item small{font-size:9px}.mobile-dock .dock-item span{font-size:22px}}


/* FANIVO v7 – account tab in the fixed mobile dock */
.account-panel{max-width:760px;padding:22px;border:1px solid #293b5b;border-radius:20px;background:linear-gradient(145deg,#141f34,#0d1423);box-shadow:0 20px 55px #0003}
.account-identity{display:flex;align-items:center;gap:16px;padding-bottom:20px;border-bottom:1px solid #293852}
.account-avatar{width:64px;height:64px;flex:0 0 64px;display:grid;place-items:center;border-radius:20px;background:linear-gradient(135deg,#168cff,#8051f6);font-size:23px;font-weight:900;box-shadow:0 10px 28px #327dff40}
.account-identity h2{margin:0 0 4px;font-size:22px}.account-identity p{margin:0 0 8px;color:#9aabc9;font-size:13px}
.account-status{display:inline-flex;align-items:center;gap:7px;color:#7de5bd;font-size:12px;font-weight:750}.account-status i{width:7px;height:7px;border-radius:50%;background:#54d7a6;box-shadow:0 0 12px #54d7a6}
.account-details{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:20px 0}.account-details>div{min-width:0;padding:13px;border:1px solid #263653;border-radius:13px;background:#0b1322}.account-details small,.account-details b{display:block;overflow-wrap:anywhere}.account-details small{margin-bottom:7px;color:#8192b1;font-size:11px}.account-details b{font-size:13px;color:#edf2ff}.account-actions{display:flex;justify-content:flex-end;padding-top:5px}.account-preserve{max-width:760px;align-items:flex-start;text-align:left}.account-preserve>span{color:#6ce0b5}
@media(max-width:760px){.account-panel{padding:16px}.account-details{grid-template-columns:1fr}.account-identity h2{font-size:19px}.mobile-dock .dock-item small{font-size:9px}.mobile-dock .dock-item span{font-size:22px}}


/* FANIVO v8: prevent public-page flash while checking the signed-in session */
body.auth-pending{visibility:hidden}
body.auth-pending:before{content:"";visibility:visible;position:fixed;inset:0;background:#090b14;z-index:9999}
body.auth-pending:after{content:"FANIVO";visibility:visible;position:fixed;z-index:10000;left:50%;top:50%;transform:translate(-50%,-50%);font-weight:950;letter-spacing:.22em;color:#eef3ff;font-size:20px}

/* Personal account – CapCut-inspired information architecture */
.cap-account{max-width:820px;padding:20px;border:1px solid #263653;border-radius:22px;background:linear-gradient(145deg,#141f34,#0c1322);box-shadow:0 18px 50px #0003}
.cap-topline{display:flex;align-items:center;justify-content:space-between;padding:0 0 18px;border-bottom:1px solid #293852;color:#b8caff;font-size:12px;font-weight:900;letter-spacing:.12em}
.cap-offer{border:0;border-radius:10px;background:#172a46;color:#8ddfff;padding:10px 13px;font-weight:800}
.cap-profile{display:flex;align-items:center;gap:15px;padding:22px 0 18px}
.cap-avatar{width:76px;height:76px;flex:0 0 76px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:linear-gradient(135deg,#168cff,#8051f6);font-size:25px;font-weight:900}
.cap-avatar img{width:100%;height:100%;object-fit:cover}
.cap-profile-text{min-width:0;flex:1}.cap-profile-text h2{font-size:20px;margin:0 0 5px}.cap-profile-text p{font-size:13px;color:#9aabc9;margin:0 0 7px}
.cap-edit{border:1px solid #344b70;background:#111c30;color:#dceaff;border-radius:11px;padding:10px 14px;font-weight:800}
.cap-stats{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #293852;padding-top:16px}
.cap-stats div{display:grid;gap:4px;text-align:center}.cap-stats b{font-size:20px}.cap-stats span{font-size:11px;color:#8e9fbd}
.cap-section-title{max-width:820px;font-size:15px;margin:25px 0 10px;color:#9eafd0}
.cap-menu{max-width:820px;border:1px solid #263653;border-radius:17px;background:#10192a;overflow:hidden}
.cap-menu button{width:100%;min-height:72px;display:flex;align-items:center;gap:13px;padding:12px 16px;text-align:left;border:0;border-bottom:1px solid #25334b;background:transparent;color:#f2f5ff;cursor:pointer}
.cap-menu button:last-child{border-bottom:0}.cap-menu button:active{background:#192943}
.cap-menu-icon{width:40px;height:40px;flex:0 0 40px;border-radius:12px;display:grid;place-items:center;background:#192c49;color:#59cfff;font-size:21px}
.cap-menu button>span:nth-child(2){flex:1;min-width:0}.cap-menu b,.cap-menu small{display:block}.cap-menu b{font-size:14px}.cap-menu small{font-size:11px;color:#8e9fbd;margin-top:5px;overflow-wrap:anywhere}.cap-menu i{font-style:normal;color:#8294b3;font-size:24px}
.cap-logout{max-width:820px;display:flex;justify-content:flex-end;padding:20px 0}
@media(max-width:760px){.cap-account{padding:15px;border-radius:18px}.cap-profile{gap:12px}.cap-avatar{width:62px;height:62px;flex-basis:62px;border-radius:50%}.cap-profile-text h2{font-size:17px}.cap-edit{padding:9px 11px}.cap-menu button{min-height:68px;padding:10px 12px}.cap-menu-icon{width:36px;height:36px;flex-basis:36px}.cap-menu b{font-size:13px}.cap-menu small{font-size:10px}}


/* FANIVO social profile module */
.social-profile-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.profile-settings-card{max-width:760px;margin:18px 0;padding:20px;border:1px solid #293b5b;border-radius:18px;background:linear-gradient(145deg,#131e32,#0c1423)}
.profile-settings-card h2{margin:0 0 15px;font-size:18px}
.profile-action-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.profile-action-grid button{min-height:54px;display:flex;align-items:center;gap:12px;text-align:left;padding:12px;border:1px solid #293b5b;border-radius:12px;background:#101a2c;color:#eaf1ff;font-weight:750;cursor:pointer}
.profile-action-grid button:first-letter{color:#40caff}
.profile-api-note{color:#9aabc8;font-size:12px;line-height:1.55;margin:15px 0 0}
.profile-api-note.error{color:#ff9ba7}
.profile-back{margin-top:20px}
.public-profile-card{max-width:680px;overflow:hidden;border:1px solid #2b3c5c;border-radius:20px;background:#111a2b}
.public-cover{height:150px;background:linear-gradient(120deg,#0c4a79,#31318b 55%,#763c9c)}
.public-profile-body{padding:0 22px 22px}
.public-avatar{width:76px;height:76px;margin-top:-38px;position:relative;display:grid;place-items:center;border:4px solid #111a2b;border-radius:50%;background:linear-gradient(135deg,#168cff,#8051f6);font-size:24px;font-weight:900}
.public-profile-body h2{margin:12px 0 3px}.public-profile-body p{color:#9baac4;line-height:1.5}
.privacy-check{display:flex!important;align-items:center;gap:10px!important;color:#dbe3f6!important}.privacy-check input{width:18px!important;height:18px!important}
#fanivo-profile-form input[type=file]{height:auto;padding:12px}
@media(max-width:760px){.profile-settings-card{padding:15px}.profile-action-grid{grid-template-columns:1fr}.social-profile-actions .button{flex:1}.public-cover{height:115px}}

/* FANIVO diagnostic dock – fixed right edge, collapsible and mobile-safe */
.fanivo-diagnostic-dock{position:fixed;z-index:10050;right:0;top:38%;display:flex;align-items:flex-start;gap:0;font-family:inherit;color:#edf4ff}
.fanivo-diagnostic-toggle{writing-mode:vertical-rl;transform:rotate(180deg);display:flex;align-items:center;gap:9px;border:1px solid #315078;border-right:0;border-radius:12px 0 0 12px;background:linear-gradient(180deg,#172a48,#101827);color:#dcecff;padding:13px 9px;box-shadow:0 8px 28px #0008;font-size:10px;font-weight:900;letter-spacing:1.2px;cursor:pointer}
.fanivo-diagnostic-toggle b{background:#e34b65;color:white;border-radius:20px;min-width:19px;min-height:19px;display:inline-grid;place-items:center;font-size:11px}
.fanivo-diagnostic-toggle i{font-style:normal;font-size:18px;color:#54d7ff}
.fanivo-diagnostic-panel{width:min(390px,calc(100vw - 48px));max-height:68vh;overflow:hidden;border:1px solid #315078;border-right:0;border-radius:16px 0 0 16px;background:#0b1220;box-shadow:0 12px 44px #000b}
.fanivo-diagnostic-panel[hidden]{display:none}
.fanivo-diagnostic-panel header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;border-bottom:1px solid #263c5d}
.fanivo-diagnostic-panel header strong{display:block;font-size:14px}
.fanivo-diagnostic-panel header small{display:block;color:#91a6c7;font-size:11px;margin-top:4px}
.fanivo-diagnostic-panel header button{border:1px solid #345174;border-radius:8px;background:#17243a;color:#b9d9ff;padding:7px 9px;font-size:11px}
.fanivo-diagnostic-summary{padding:10px 14px;color:#91a6c7;font-size:11px;line-height:1.45;background:#101b2d}
.fanivo-diagnostic-list{padding:8px 10px;overflow:auto;max-height:calc(68vh - 105px)}
.fanivo-log-entry{padding:10px;margin:5px 0;border:1px solid #263c5d;border-radius:9px;background:#111d30}
.fanivo-log-entry>div{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}
.fanivo-log-entry b{font-size:12px;overflow-wrap:anywhere}
.fanivo-log-entry time{font-size:10px;color:#91a6c7;white-space:nowrap}
.fanivo-log-entry small{display:block;color:#a9bad4;font-size:11px;line-height:1.45;margin-top:6px;overflow-wrap:anywhere}
.fanivo-log-entry.error{border-left:3px solid #ff657d}
.fanivo-log-entry.ok{border-left:3px solid #35c99a}
.fanivo-log-entry.info{border-left:3px solid #4cbfff}
.fanivo-log-empty{color:#91a6c7;font-size:12px;padding:12px}
@media(max-width:640px){.fanivo-diagnostic-dock{top:34%;}.fanivo-diagnostic-panel{width:min(330px,calc(100vw - 44px));max-height:58vh}.fanivo-diagnostic-list{max-height:calc(58vh - 105px)}.fanivo-diagnostic-toggle{padding:11px 7px}}


/* FANIVO V11 – rozšířený kopírovatelný technický protokol */
.fanivo-diagnostic-panel{width:min( min(760px, calc(100vw - 74px)), 760px)!important;max-height:min(78vh,820px)!important;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 22px 70px #000b}
.fanivo-diagnostic-panel[hidden]{display:none!important}
.fanivo-diagnostic-panel>header{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.fanivo-log-actions{display:flex;gap:8px;flex-wrap:wrap}
.fanivo-log-actions button{border:1px solid #355477;background:#15233a;color:#dceaff;border-radius:10px;padding:10px 13px;font-weight:800}
#fanivo-diagnostic-copy{background:linear-gradient(110deg,#168dff,#7952f5);border:0;color:white}
.fanivo-diagnostic-list{overflow:auto;min-height:90px;max-height:calc(78vh - 190px);padding:12px}
.fanivo-log-entry{overflow-wrap:anywhere;word-break:break-word}
.fanivo-log-entry pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:220px;overflow:auto;background:#080e1b;border:1px solid #263d5d;border-radius:9px;padding:10px;color:#cfe0ff;font:12px/1.5 ui-monospace,SFMono-Regular,monospace}
.fanivo-log-entry details{margin-top:8px;color:#9db4d5}
.fanivo-log-entry summary{cursor:pointer;font-weight:800}
@media(max-width:600px){
 .fanivo-diagnostic-panel{width:calc(100vw - 58px)!important;max-height:72vh!important}
 .fanivo-diagnostic-panel>header{align-items:flex-start}
 .fanivo-log-actions{width:100%}
 .fanivo-log-actions button{flex:1}
 .fanivo-diagnostic-list{max-height:calc(72vh - 225px)}
}

/* V1.2: profile media rendered from authenticated API responses. */
.public-cover.has-image { background-size: cover; background-position: center; background-repeat: no-repeat; }
.public-avatar.has-image { background-size: cover; background-position: center; background-repeat: no-repeat; color: transparent; }

/* FANIVO Social / Community v1.3 */
.community-page{max-width:900px;margin:0 auto;padding-bottom:100px}.community-tabs{display:flex;gap:8px;margin:18px 0;flex-wrap:wrap}.community-tabs button,.community-post-actions button,.community-comment button{border:1px solid var(--line,#273342);background:var(--panel,#111b29);color:var(--text,#eef4fa);border-radius:999px;padding:9px 13px;cursor:pointer}.community-tabs button.active{background:#123d50;border-color:#27c8e8;color:#fff}.community-search{display:flex;gap:8px;margin:12px 0 18px}.community-search input,.community-collection-form input,.community-comment-area input,.community-compose-row input{flex:1;min-width:0;background:#0d1724;border:1px solid #2a3a4c;border-radius:12px;color:#fff;padding:12px}.community-stories,.community-composer,.community-post{background:linear-gradient(145deg,#111d2c,#0c1521);border:1px solid #26364a;border-radius:18px;padding:16px;margin:14px 0;color:#eef4fa}.community-story-list{display:flex;gap:12px;overflow:auto;margin-top:12px}.community-story{border:0;background:transparent;color:inherit;display:grid;justify-items:center;gap:5px;min-width:68px}.community-story span,.community-user-avatar{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#13b9d6,#6957df);font-weight:800}.community-story small,.community-post-head small{color:#91a4b9;font-size:11px}.community-composer h2{font-size:17px;margin:0 0 12px}.community-composer textarea{width:100%;min-height:82px;resize:vertical;background:#0a1420;border:1px solid #2a3a4c;border-radius:12px;padding:12px;color:#fff}.community-compose-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:10px}.community-compose-row select{background:#0d1724;border:1px solid #2a3a4c;color:#eef4fa;border-radius:10px;padding:10px}.community-file{position:relative;overflow:hidden;border:1px dashed #3d6077;border-radius:10px;padding:10px;color:#a8e9f5;font-size:13px}.community-file input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.community-form-note,.community-muted{color:#93a6bb;font-size:13px}.community-error{color:#ff9b9b}.community-post-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}.community-post-head>div:nth-child(2){display:grid;gap:3px}.community-pin-label{margin-left:auto;color:#6ed7ed;font-size:10px;letter-spacing:.12em}.community-media{display:block;width:100%;max-height:620px;object-fit:contain;background:#05090e;border-radius:12px}.community-post-copy{white-space:pre-wrap;line-height:1.5;margin:12px 0}.community-tag{border:0;background:transparent;color:#5ed8f1;padding:0;cursor:pointer;font:inherit}.community-post-stats{display:flex;gap:16px;color:#91a4b9;font-size:12px;border-bottom:1px solid #26364a;padding:9px 0}.community-post-actions{display:flex;gap:7px;flex-wrap:wrap;padding-top:10px}.community-post-actions button{font-size:12px;padding:8px 10px}.community-comment-area{border-top:1px solid #26364a;margin-top:12px;padding-top:12px}.community-comment-area form{display:flex;gap:7px;margin:8px 0}.community-comment{padding:10px 0;border-bottom:1px solid #1d2b3b;font-size:13px}.community-comment>button{margin-left:8px;font-size:11px;padding:5px 9px}.community-reply{margin:8px 0 0 18px;padding-left:10px;border-left:2px solid #2d7188;color:#c3d2df}.community-collection{display:flex;justify-content:space-between;width:100%;padding:16px;margin:8px 0;background:#111d2c;color:#fff;border:1px solid #26364a;border-radius:12px}.community-collection span{color:#91a4b9}.mobile-dock .dock-item[data-module="Komunita"]{min-width:56px}
@media(max-width:600px){.community-page{padding-left:12px;padding-right:12px}.community-compose-row>*{max-width:100%}.community-post-actions button{padding:8px}.community-post{padding:12px}.community-search{flex-wrap:wrap}}
.community-story-viewer{position:fixed;z-index:99999;inset:0;background:rgba(0,0,0,.94);display:flex;align-items:center;justify-content:center;flex-direction:column;padding:24px}.community-story-viewer img,.community-story-viewer video{max-width:min(92vw,520px);max-height:82vh;object-fit:contain;border-radius:16px}.community-story-viewer p{color:#fff;max-width:520px}.community-story-close{position:absolute;right:20px;top:20px;border:0;border-radius:50%;width:42px;height:42px;background:#24364a;color:white;font-size:20px}
.community-pinned-profile{max-width:900px;margin:16px auto;padding:16px;background:#111d2c;border:1px solid #26364a;border-radius:16px;color:#eef4fa}.community-pinned-profile article{padding:10px 0;border-top:1px solid #26364a}.community-pinned-profile p{color:#a8b9ca;white-space:pre-wrap}


/* FANIVO Social V1.4 – integrated home feed and story bubbles */
.home-social{width:min(100% - 28px,980px);margin:0 auto 30px;position:relative;z-index:2}
.home-social-heading,.home-feed-heading{display:flex;align-items:center;justify-content:space-between;margin:8px 0 14px}
.home-social-heading h2,.home-feed-heading h2{font-size:1.35rem;margin:4px 0 0;color:#f4f7ff}
.home-stories{display:flex;align-items:flex-start;gap:12px;overflow-x:auto;padding:12px 4px 18px;margin-bottom:12px;scrollbar-width:none}
.home-stories::-webkit-scrollbar{display:none}
.home-story-add,.home-story-bubble{flex:0 0 78px;text-align:center}
.home-story-add button,.home-story-bubble{border:0;background:transparent;color:#edf4ff;display:flex;flex-direction:column;align-items:center;gap:7px;padding:0;cursor:pointer}
.home-story-add button>span{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#17243a,#101827);border:2px dashed #45c8f5;color:#55d8ff;font-size:30px}
.home-story-add small,.home-story-bubble small{font-size:11px;max-width:78px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#b8c8df}
.home-story-ring{width:62px;height:62px;border-radius:50%;padding:3px;background:linear-gradient(135deg,#20c8ff,#7950ff);display:grid;place-items:center;font-size:23px;font-weight:800;color:white;position:relative}
.home-story-ring:before{content:"";position:absolute;inset:3px;border-radius:50%;border:2px solid #080d18}
.home-story-ring img{width:100%;height:100%;object-fit:cover;border-radius:50%;position:relative;border:2px solid #080d18}
.home-story-bubble i{font-style:normal;font-size:10px;background:#5d55ef;color:white;border-radius:12px;padding:1px 6px;margin-top:-18px;margin-left:52px;z-index:1}
.home-composer{margin:8px 0 24px}
.home-composer textarea{width:100%;min-height:88px}
.home-composer .community-compose-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.home-composer .community-compose-row select{min-width:130px;max-width:100%}
.home-composer .community-file{display:inline-flex;align-items:center;justify-content:center;min-height:48px}
.home-story-options{display:grid;gap:10px;margin-top:14px;padding:14px;border:1px solid #29415d;border-radius:14px;background:#0a1422}
.home-story-options[hidden]{display:none}
.home-story-options label{display:grid;gap:6px;color:#c5d7ee;font-size:13px}
.home-story-options input:not([type=checkbox]){width:100%;padding:12px;border:1px solid #31465f;border-radius:10px;background:#0a111d;color:#fff}
.home-story-options .home-remember{display:flex;align-items:center;gap:8px}
.home-story-options small{color:#8ea4bd;line-height:1.45}
.home-media-preview{margin-top:12px;border:1px solid #31445d;border-radius:14px;padding:10px;background:#08111e}
.home-media-preview img,.home-media-preview video{display:block;width:100%;max-height:360px;object-fit:contain;border-radius:10px}
.home-media-preview span{display:block;margin-top:8px;color:#a9bfd8;font-size:12px;overflow-wrap:anywhere}
.home-feed-heading{margin-top:22px}
.home-story-viewer{z-index:99999}
.home-story-progress{position:absolute;top:12px;left:12px;right:12px;display:flex;gap:4px;z-index:2}
.home-story-progress i{height:3px;border-radius:4px;background:#ffffff55;flex:1}
.home-story-progress i.done{background:#fff}
.home-story-owner{position:absolute;top:26px;left:18px;z-index:2;color:#fff;font-weight:700;text-shadow:0 1px 5px #000}
.home-story-next{position:absolute;bottom:24px;right:18px;border:1px solid #ffffff80;border-radius:20px;background:#101827cc;color:white;padding:10px 16px}
@media(max-width:600px){.home-social{width:calc(100% - 22px)}.home-composer .community-compose-row>*{flex:1 1 42%}.home-composer .community-file{flex:1 1 48%}.home-composer .community-compose-row .button{flex:1 1 45%}}


/* FANIVO V1.5 – oddělený editor Stories a příspěvků */
.home-story-create[hidden]{display:none!important}
.home-story-create{margin:18px 0 26px;padding:18px;border:1px solid #29415e;border-radius:22px;background:linear-gradient(145deg,#111d30,#0b1422);box-shadow:0 16px 40px #0003}
.home-story-create-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.home-story-create-head h2{margin:0;font-size:1.25rem}
#home-story-form{display:grid;gap:14px}
#home-story-form>label:not(.community-file){display:grid;gap:8px;color:#c4d5ea;font-weight:600}
#home-story-form input:not([type=file]),#home-story-form select{width:100%;min-height:50px;padding:12px 14px;border:1px solid #304660;border-radius:14px;background:#0a1422;color:#f4f7ff;font:inherit}
#home-story-form .home-remember{display:flex;align-items:center;gap:10px}
#home-story-form .home-remember input{width:20px;min-height:20px}
.home-story-file{display:inline-flex;align-items:center;justify-content:center;min-height:54px;padding:12px 16px;border:1px dashed #39c7ef;border-radius:15px;color:#9beafa;cursor:pointer}
.home-story-file input{max-width:100%}
.home-story-create .home-media-preview{display:grid;gap:8px}
.home-story-create .home-media-preview img,.home-story-create .home-media-preview video{display:block;width:100%;max-height:420px;object-fit:contain;border-radius:14px;background:#050912}
.home-composer{margin-top:22px}
.home-composer .community-compose-row select{min-width:0}


/* FANIVO V1.6 – story editor preview and friends mention autocomplete */
.home-story-stage{display:grid;gap:12px}
.home-story-stage-media{position:relative;width:min(100%,430px);margin:0 auto;aspect-ratio:9/16;max-height:68vh;background:#05070d;border-radius:22px;overflow:hidden;display:flex;align-items:center;justify-content:center}
.home-story-stage-media img,.home-story-stage-media video{width:100%;height:100%;object-fit:contain}
.home-story-text-overlay{position:absolute;left:8%;right:8%;top:50%;transform:translateY(-50%);text-align:center;color:#fff;font-size:clamp(20px,5vw,34px);font-weight:800;text-shadow:0 2px 10px #000,0 0 4px #000;white-space:pre-wrap;overflow-wrap:anywhere;pointer-events:none}
.home-story-tool-row{display:flex;gap:8px;overflow-x:auto;padding:4px 0}
.home-story-tool-row button{flex:0 0 auto;border:1px solid #34465e;background:#172235;color:#eaf3ff;border-radius:999px;padding:10px 14px;font-weight:700}
.story-friend-suggestions{display:grid;gap:5px;padding:8px;margin-top:5px;border:1px solid #34465e;border-radius:14px;background:#101a2a}
.story-friend-suggestions button{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px;border:0;border-radius:10px;background:#1a2940;color:#fff;text-align:left}
.story-friend-suggestions small{color:#79d8ff}


/* FANIVO V1.7 – clean Instagram-like story rail and full-screen story composer */
.home-social{display:flex;flex-direction:column;gap:22px}
.home-social-heading{margin-bottom:0}
.home-stories{display:flex;align-items:flex-start;gap:16px;overflow-x:auto;padding:8px 2px 14px;scrollbar-width:none}
.home-stories::-webkit-scrollbar{display:none}
.home-story-add,.home-story-bubble{flex:0 0 76px;width:76px}
.home-story-add button,.home-story-bubble{display:flex;flex-direction:column;align-items:center;gap:8px;background:none;border:0;color:inherit;padding:0;cursor:pointer}
.home-story-add button>span,.home-story-ring{width:68px;height:68px;border-radius:50%;display:grid;place-items:center;overflow:hidden;font-size:30px;font-weight:800;color:#fff;background:linear-gradient(145deg,#287cff,#874bff);border:3px solid transparent;box-shadow:0 0 0 2px #25c9f4}
.home-story-ring img{width:100%;height:100%;object-fit:cover}
.home-story-add small,.home-story-bubble small{font-size:11px;line-height:1.25;text-align:center;color:#dce6f7;max-width:76px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.home-story-bubble .home-story-ring{background:linear-gradient(145deg,#1b263a,#263d59);padding:3px}
.home-story-bubble i{display:none}
.home-story-create[hidden]{display:none!important}
.home-story-create{position:fixed!important;inset:0!important;z-index:10000!important;margin:0!important;padding:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;overflow:auto!important;background:#05070d!important;border:0!important;border-radius:0!important;display:flex;justify-content:center;align-items:stretch}
.story-editor-shell{width:100%;max-width:560px;min-height:100%;display:flex;flex-direction:column;background:radial-gradient(ellipse at 50% 0%,#17263d 0%,#080b14 48%)}
.story-editor-top{height:62px;flex:0 0 62px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;border-bottom:1px solid #1b2b42;color:#f5f8ff}
.story-editor-top strong{font-size:17px}.story-editor-top span{font-size:11px;letter-spacing:2px;color:#38c9f5;font-weight:800}
.story-editor-close{width:40px;height:40px;border:0;border-radius:50%;background:#1a2434;color:#fff;font-size:28px}
.story-editor-form{display:flex;flex:1;flex-direction:column;gap:14px;padding:16px 18px calc(22px + env(safe-area-inset-bottom))}
.story-editor-picker{min-height:52px;display:grid;place-items:center;border:1px dashed #32c8ef;border-radius:15px;color:#a8edff;font-weight:750;background:#0d1929}
.story-editor-picker input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.story-editor-preview{display:flex!important;flex-direction:column;align-items:center;gap:10px;margin:0!important;padding:10px!important;background:#05070d;border:1px solid #263a55;border-radius:18px}
.story-editor-preview[hidden]{display:none!important}
.story-editor-preview .home-story-stage-media{position:relative;width:min(100%,390px);height:min(53vh,560px);min-height:260px;background:#080a10;border-radius:14px;overflow:hidden}
.story-editor-preview .home-story-stage-media img,.story-editor-preview .home-story-stage-media video{width:100%;height:100%;object-fit:contain}
.story-editor-text-overlay,.home-story-text-overlay{position:absolute;left:8%;right:8%;top:45%;text-align:center;color:white;font-size:25px;font-weight:800;text-shadow:0 2px 8px #000;overflow-wrap:anywhere;pointer-events:none}
.story-editor-preview>small{color:#9eafc6}
.story-editor-tools{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}
.story-editor-tools button{min-height:58px;border:1px solid #263b57;border-radius:13px;background:#111c2d;color:#f4f7ff;font-size:21px;font-weight:800}
.story-editor-tools small{display:block;font-size:11px;color:#a9bed8;font-weight:600}
.story-editor-field{display:flex;flex-direction:column;gap:7px;color:#c5d5e9;font-size:13px;font-weight:700}
.story-editor-field input,.story-editor-field select{width:100%;min-height:48px;border:1px solid #2a405d;border-radius:13px;background:#0b1422;color:#f4f7ff;padding:0 14px;font:inherit;font-size:15px}
.story-editor-remember{display:flex;align-items:center;gap:10px;color:#b9c9df;font-size:13px}
.story-editor-remember input{width:19px;height:19px;accent-color:#427cff}
.story-editor-publish{width:100%;min-height:54px;border:0;border-radius:15px;background:linear-gradient(100deg,#347dff,#8a48f5);color:white;font-size:17px;font-weight:850}
.home-composer{margin-top:4px;padding:20px;border:1px solid #253b56;border-radius:22px;background:linear-gradient(145deg,#121e30,#0b1220);box-shadow:0 12px 35px #0003}
.home-composer h2{margin:0 0 14px;font-size:20px}
.home-composer textarea{width:100%;min-height:110px;resize:vertical;border:1px solid #293e59;border-radius:15px;background:#091321;color:#fff;padding:14px;font:inherit}
.home-composer .community-compose-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.home-composer .community-compose-row>*{flex:1 1 135px;min-width:0}
.home-composer select,.home-composer .community-file{min-height:48px;border:1px solid #293e59;border-radius:13px;background:#0d1828;color:#dce8f8;padding:12px}
.story-friend-suggestions{position:relative;z-index:5;display:flex;flex-direction:column;gap:5px;padding:8px;border:1px solid #29415e;border-radius:12px;background:#111c2d}
.story-friend-suggestions button{display:flex;flex-direction:column;text-align:left;padding:9px;border:0;border-radius:8px;background:#1a2b42;color:#fff}
.story-friend-suggestions small{color:#9db2cc}
@media(min-width:700px){.home-stories{gap:20px}.story-editor-shell{border-left:1px solid #1b2b42;border-right:1px solid #1b2b42}.story-editor-form{padding-left:28px;padding-right:28px}}


/* V1.8 – true viewport editor, isolated scrolling, draggable text and picker pages */
body.story-editor-open{overflow:hidden!important;position:fixed!important;width:100%!important}
body.story-editor-open>header,body.story-editor-open>.topbar,body.story-editor-open>.mobile-dock,body.story-editor-open>footer,body.story-editor-open>.tech-log,body.story-editor-open .tech-log{display:none!important}
.home-story-create{z-index:30000!important;position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-height:100dvh!important;overflow:hidden!important;background:#05070d!important;display:flex!important;align-items:stretch!important}
.home-story-create[hidden]{display:none!important}
.story-editor-shell{height:100dvh;min-height:0;width:100%;max-width:560px;overflow:hidden;display:flex;flex-direction:column}
.story-editor-top{flex:0 0 calc(58px + env(safe-area-inset-top));height:calc(58px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top)}
.story-editor-form{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:calc(24px + env(safe-area-inset-bottom))}
.story-editor-publish{position:sticky;bottom:0;z-index:4;flex:0 0 auto;margin-top:8px;box-shadow:0 -10px 24px #05070d}
.story-editor-preview .home-story-stage-media{touch-action:pan-y}
.home-story-text-overlay{left:5%;right:5%;top:45%;transform:translateY(-50%);touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none;z-index:2}
.home-story-text-overlay:active{cursor:grabbing}
.story-picker-launch{display:flex;align-items:center;gap:13px;width:100%;min-height:66px;padding:12px 14px;text-align:left;border:1px solid #2a405d;border-radius:14px;background:#101c2d;color:#f3f7ff}
.story-picker-launch>span:first-child{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#243c60;color:#5edbff;font-size:23px;font-weight:800}
.story-picker-launch>span:nth-child(2){display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.story-picker-launch small{color:#9eb2cc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.story-picker-launch i{font-size:24px;color:#75dfff;font-style:normal}
.story-friends-page{position:absolute;inset:0;z-index:8;background:#080d17;display:flex;flex-direction:column;padding:calc(14px + env(safe-area-inset-top)) 18px calc(18px + env(safe-area-inset-bottom));overflow:hidden}
.story-friends-page[hidden]{display:none!important}
.story-friends-page header{display:flex;align-items:center;gap:15px;min-height:48px;color:#fff}
.story-friends-page header button{border:0;background:transparent;color:#65d8ff;font-weight:800;font-size:15px}
.story-friends-page header strong{font-size:18px}
.story-friends-page>p{color:#9eb2cc;font-size:13px}
.story-friends-page>input{width:100%;height:50px;flex:0 0 50px;border:1px solid #2b4260;border-radius:13px;background:#101b2c;color:#fff;padding:0 14px;font:inherit}
.story-picker-selected{display:flex;flex-wrap:wrap;gap:7px;padding:12px 0;max-height:100px;overflow:auto}
.story-picker-selected button{border:1px solid #236b91;border-radius:20px;padding:7px 10px;background:#112b42;color:#a8ecff}
.story-picker-results{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding-bottom:12px}
.story-picker-results>p{color:#a9bad0}
.story-picker-result{display:flex;align-items:center;gap:12px;width:100%;padding:10px;margin:5px 0;border:1px solid #233852;border-radius:13px;background:#111d2e;color:#f6f8fc;text-align:left}
.story-picker-result img,.story-picker-avatar{width:42px;height:42px;border-radius:50%;object-fit:cover;display:grid;place-items:center;background:#3155a0;color:white;font-weight:800}
.story-picker-result>span:nth-child(2){display:flex;flex:1;flex-direction:column;gap:3px}
.story-picker-result small{color:#9eb2cc}
.story-picker-result i{font-style:normal;color:#54d4ff;font-size:20px}
.story-picker-done{flex:0 0 52px;margin-top:8px}

.home-story-viewer .home-story-view-media{position:absolute;inset:0;display:grid;place-items:center}
.home-story-viewer .home-story-view-media img,.home-story-viewer .home-story-view-media video{width:100%;height:100%;object-fit:contain}
.home-story-published-text{position:absolute;transform:translate(-50%,-50%);max-width:88%;color:#fff;font-size:clamp(20px,5vw,30px);font-weight:850;text-align:center;overflow-wrap:anywhere;text-shadow:0 2px 8px #000,0 0 3px #000;pointer-events:none}
.story-editor-open .mobile-dock{display:none!important}

/* FANIVO V1.8.1 – oprava ovládání editoru Stories na dotykových displejích */
.story-editor-shell{position:relative}
.story-editor-form[hidden]{display:none!important}
.story-friends-page[hidden]{display:none!important}
.home-story-text-overlay{pointer-events:auto!important;touch-action:none!important;left:50%;right:auto;top:45%;width:max-content;max-width:90%;transform:translate(-50%,-50%);padding:5px 9px;border:1px dashed #8bdfff;border-radius:8px;cursor:move;z-index:5}
.home-story-text-overlay:empty{min-width:80px;min-height:32px}
.story-text-controls{display:grid;grid-template-columns:1.2fr .7fr 1fr;gap:10px;padding:12px;border:1px solid #29415d;border-radius:14px;background:#0c1727}
.story-text-controls label{display:flex;flex-direction:column;gap:7px;color:#b9cce3;font-size:12px;font-weight:750;min-width:0}
.story-text-controls input[type=range]{width:100%;min-width:0;accent-color:#27bfff}
.story-text-controls input[type=color]{width:100%;height:42px;padding:3px;border:1px solid #304660;border-radius:9px;background:#0a1422}
.story-text-controls select{width:100%;min-width:0;min-height:42px;padding:8px;border:1px solid #304660;border-radius:9px;background:#0a1422;color:#f4f7ff}
.story-text-controls output{color:#72dcff;font-size:11px}
.story-editor-publish{position:sticky!important;bottom:0!important;margin-bottom:calc(12px + env(safe-area-inset-bottom))!important}
body.story-editor-open .mobile-dock{display:none!important}
@media(max-width:480px){.story-text-controls{grid-template-columns:1fr 76px 1fr;gap:7px;padding:9px}.story-editor-form{padding-left:14px;padding-right:14px}}

/* V1.8.1 hotfix: keep story composer above every home-page layer. */
.home-story-create{z-index:2147483000!important;isolation:isolate!important;background:#05070d!important}
.home-story-create .story-editor-shell{position:relative;z-index:1;background:#080b14!important}
.story-editor-form,.story-friends-page{position:relative;z-index:2}
body:has(.home-story-create:not([hidden])){overflow:hidden!important}
/* FANIVO Chat UI */
.fanivo-chat-launch{position:fixed;right:16px;bottom:calc(94px + env(safe-area-inset-bottom));z-index:9000;border:1px solid #2d6cff;border-radius:999px;background:linear-gradient(135deg,#168cff,#584bff);color:#fff;padding:13px 18px;font-weight:900;box-shadow:0 8px 30px #0008;display:flex;gap:9px;align-items:center}
.fanivo-chat-panel{position:fixed;inset:12px 12px calc(82px + env(safe-area-inset-bottom));z-index:12000;background:#080d18;border:1px solid #263b58;border-radius:20px;color:#edf4ff;box-shadow:0 20px 80px #000b;overflow:hidden;display:flex;flex-direction:column}
.fanivo-chat-panel[hidden]{display:none!important}
.fchat-head{height:62px;flex:0 0 62px;display:flex;justify-content:space-between;align-items:center;padding:0 16px;border-bottom:1px solid #26364e;background:#0d1728}
.fchat-head b{display:block;font-size:16px}.fchat-head small{display:block;color:#9db0ca;font-size:11px}
.fchat-head button{border:0;background:#1c2b42;color:white;border-radius:50%;width:38px;height:38px;font-size:26px}
.fchat-layout{display:grid;grid-template-columns:minmax(130px,34%) 1fr;min-height:0;flex:1}
.fchat-sidebar{border-right:1px solid #253650;overflow:auto;padding:9px}
.fchat-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.fchat-actions button,.fchat-compose-tools button,.fchat-compose-tools label{border:1px solid #2c4261;background:#142239;color:#e9f2ff;border-radius:10px;padding:9px 7px;font-size:11px;font-weight:800}
#fchat-search{width:100%;margin:9px 0;padding:10px;border-radius:10px;border:1px solid #2a405f;background:#0d1728;color:#fff}
.fchat-row{display:block;width:100%;text-align:left;padding:11px 8px;margin:4px 0;border:1px solid transparent;border-radius:11px;background:#101d30;color:#fff}
.fchat-row.active{border-color:#28bce9;background:#142c45}
.fchat-row b,.fchat-row small,.fchat-row i{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fchat-row small,.fchat-row i,.fchat-muted{color:#9fb0c8;font-size:11px;margin-top:4px}
.fchat-main{min-width:0;display:flex;flex-direction:column;overflow:hidden}
#fchat-empty{margin:auto;text-align:center;color:#9fb0c8;padding:20px}
#fchat-thread{display:flex;flex-direction:column;min-height:0;flex:1}
#fchat-messages{overflow:auto;flex:1;padding:10px}
.fchat-message{max-width:92%;margin:8px 0;padding:10px;border-radius:13px;background:#142238;border:1px solid #273d5b;overflow-wrap:anywhere}
.fchat-message.mine{margin-left:auto;background:#17365b;border-color:#2462a0}
.fchat-message small{color:#a9bad0;font-size:10px}
.fchat-message p{margin:6px 0;white-space:pre-wrap}
.fchat-message img,.fchat-message video{max-width:100%;max-height:220px;border-radius:9px;display:block}
.fchat-message audio{width:100%;max-width:260px}
.fchat-message button{border:0;border-radius:8px;background:#263c59;color:white;padding:4px 7px;margin:5px 3px 0 0}
.fchat-compose{padding:9px;border-top:1px solid #253650;background:#0d1728}
#fchat-text{width:100%;min-height:54px;max-height:110px;resize:vertical;border:1px solid #2a405f;border-radius:11px;background:#08111f;color:#fff;padding:10px}
.fchat-compose-tools{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}
.fchat-compose-tools label{cursor:pointer}
.fchat-error{color:#ff8798}
@media(max-width:520px){.fanivo-chat-panel{inset:6px 5px calc(76px + env(safe-area-inset-bottom));border-radius:14px}.fchat-layout{grid-template-columns: minmax(112px,34%) 1fr}.fchat-actions button{font-size:10px;padding:7px 3px}.fchat-row{padding:8px 5px}.fchat-compose-tools button,.fchat-compose-tools label{font-size:10px;padding:7px 5px}}


/* FANIVO People and friendship UI */
.people-page .people-toolbar{display:flex;gap:12px;align-items:center;margin:22px 0;flex-wrap:wrap}
.people-toolbar input{flex:1;min-width:180px;padding:15px 18px;border:1px solid #263c5a;border-radius:18px;background:#0b1423;color:#edf4ff;font:inherit}
.people-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:14px}
.person-card{display:flex;align-items:center;gap:13px;padding:15px;border:1px solid #263c5a;border-radius:20px;background:linear-gradient(145deg,#111e31,#0b1321);min-width:0}
.person-avatar,.person-profile-avatar{width:54px;height:54px;flex:0 0 54px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:linear-gradient(135deg,#277dff,#7047e8);color:white;font-weight:800;border:2px solid #35c8f5}
.person-avatar{padding:0;cursor:pointer}
.person-avatar img,.person-profile-avatar img{width:100%;height:100%;object-fit:cover}
.person-avatar span{font-size:17px}
.person-info{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.person-info small{color:#91a6c2}
.person-name{padding:0;border:0;background:none;color:#f4f7ff;text-align:left;font:inherit;font-weight:750;cursor:pointer}
.person-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.people-friends-label{color:#46d5bd;font-size:13px;font-weight:700}
.people-requests{margin:18px 0 26px;padding:18px;border:1px solid #263c5a;border-radius:20px;background:#0d1727}
.people-requests h2{font-size:18px;margin:8px 0 14px}
.people-requests h2:not(:first-child){margin-top:26px}
.people-requests .person-card{margin:9px 0;background:#101d30}
.person-profile-page .person-profile-head{display:flex;align-items:center;gap:18px;margin:24px 0;padding:22px;border:1px solid #263c5a;border-radius:22px;background:#101c2e}
.person-profile-avatar{width:92px;height:92px;flex-basis:92px;font-size:26px}
.person-profile-head h1{margin:0 0 5px;font-size:clamp(24px,5vw,34px)}
.person-profile-head p{color:#9bb0ca;margin:5px 0}
.person-profile-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:16px 0}
.person-profile-stats>div{padding:16px 8px;text-align:center;border:1px solid #263c5a;border-radius:16px;background:#101c2e}
.person-profile-stats b,.person-profile-stats small{display:block}
.person-profile-stats b{font-size:23px}
.person-profile-stats small{color:#9bb0ca;margin-top:4px}
.person-profile-details{padding:16px 0;color:#c5d4e8}
.person-profile-details a{color:#43c9f2}
.person-post-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:14px}
.person-post-card{padding:12px;border:1px solid #263c5a;border-radius:18px;background:#101c2e;overflow:hidden}
.person-post-card .community-media{width:100%;max-height:320px;object-fit:cover;border-radius:12px}
.person-post-card p{white-space:pre-wrap;overflow-wrap:anywhere}
.person-post-card small{color:#9bb0ca}
.people-top-link{font-size:20px}
.dock-create{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.dock-create small{font-size:11px;font-weight:700;color:#dce8ff}
@media(max-width:520px){.person-card{gap:10px;padding:12px}.person-actions{max-width:45%}.person-actions .button,.person-actions .connect-button{font-size:12px;padding:9px 10px}.person-profile-head{align-items:flex-start!important}.person-profile-avatar{width:72px;height:72px;flex-basis:72px}}


/* V1.9.4 mobile chat: full-width Instagram-style conversation view */
.fanivo-chat-launch{display:none!important}
#fchat-back{display:none}
@media(max-width:640px){
 .fanivo-chat-panel{inset:0!important;bottom:calc(58px + env(safe-area-inset-bottom))!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#080b14!important}
 .fchat-head{height:64px;flex-basis:64px;padding:0 12px;gap:10px}
 .fchat-head>div{flex:1;min-width:0}
 .fchat-head b{font-size:18px}
 .fchat-head small{font-size:11px}
 #fchat-back{display:none;border:0;background:transparent;color:#f5f7ff;font-size:30px;width:34px;height:42px;padding:0}
 .fchat-layout{display:flex;min-height:0;flex:1;width:100%}
 .fchat-sidebar{width:100%;flex:1;border:0;padding:12px 14px;overflow:auto}
 .fchat-actions{grid-template-columns:1fr 1fr;gap:8px}
 .fchat-actions button{font-size:13px;padding:12px 8px;border-radius:13px}
 #fchat-search{font-size:15px;padding:13px 15px;border-radius:14px}
 .fchat-row{padding:14px 12px;margin:7px 0;border-radius:14px;font-size:15px}
 .fchat-row small{font-size:13px}
 .fchat-main{display:none;width:100%;min-width:0;flex:1}
 .fanivo-chat-panel.fchat-thread-open .fchat-sidebar{display:none}
 .fanivo-chat-panel.fchat-thread-open .fchat-main{display:flex}
 .fanivo-chat-panel.fchat-thread-open #fchat-back{display:block}
 #fchat-thread{width:100%;min-width:0}
 #fchat-messages{padding:12px 14px;overscroll-behavior:contain}
 .fchat-message{max-width:86%;padding:11px 13px;border-radius:17px;font-size:15px}
 .fchat-compose{padding:10px 12px calc(10px + env(safe-area-inset-bottom));}
 #fchat-text{min-height:48px;max-height:120px;font-size:16px;border-radius:20px;padding:12px 14px}
 .fchat-compose-tools{gap:7px;flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px}
 .fchat-compose-tools button,.fchat-compose-tools label{font-size:12px;padding:10px 11px;white-space:nowrap;border-radius:18px}
 .fchat-compose-tools button[type=submit]{background:#168cff;border-color:#168cff;color:#fff}
}


/* FANIVO 1.9.6 – Instagram-inspired inbox and profile messaging */
.person-profile-actions{display:flex;gap:10px;margin:18px 0 24px}
.person-profile-actions .button{min-height:48px;padding:0 22px}
.fchat-thread-head{display:none;padding:14px 18px;border-bottom:1px solid rgba(120,160,210,.18);font-weight:800}
.fchat-row{display:flex!important;align-items:center;gap:12px;text-align:left}
.fchat-avatar{width:46px;height:46px;min-width:46px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#248bff,#7650f5);color:white;font-weight:900}
.fchat-row-copy{display:flex;min-width:0;flex:1;flex-direction:column;gap:4px}
.fchat-row-copy b,.fchat-row-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fchat-row-copy small{color:#9aacc5}
.fchat-message{max-width:min(78%,620px);border-radius:20px;padding:12px 15px;margin:10px 0;background:#14253b}
.fchat-message.mine{margin-left:auto;background:linear-gradient(135deg,#247cf4,#7149e8)}
.fchat-message p{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:700px){
 .fanivo-chat-panel{inset:0!important;width:100%!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important}
 .fchat-layout{display:grid!important;grid-template-columns:1fr!important;height:calc(100dvh - 76px)!important}
 .fchat-sidebar{width:100%!important;max-width:none!important;border-right:0!important}
 .fchat-main{display:none!important;width:100%!important}
 .fanivo-chat-panel.fchat-thread-open .fchat-sidebar{display:none!important}
 .fanivo-chat-panel.fchat-thread-open .fchat-main{display:flex!important}
 .fanivo-chat-panel.fchat-thread-open .fchat-thread-head{display:block}
 .fchat-thread{display:flex;flex-direction:column;min-height:0;flex:1}
 #fchat-messages{flex:1;overflow:auto;padding:12px}
 #fchat-compose{position:sticky;bottom:0;background:#080d18;padding:10px}
 .fchat-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
}

/* FANIVO chat personalization patch 1.9.7 */
.fchat-avatar img,.fchat-user-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
.fchat-message-user{display:flex;align-items:center;gap:9px;margin-bottom:7px}
.fchat-user-avatar{width:34px;height:34px;min-width:34px;border:0;border-radius:50%;padding:0;overflow:hidden;background:#263d5b;color:#fff;font-weight:800}
.fchat-thread-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.fchat-thread-head button{border:1px solid #294565;border-radius:12px;background:#14243a;color:#dceaff;padding:8px 13px}
.fchat-modal{position:fixed;inset:0;z-index:100000;background:#000b;display:flex;align-items:center;justify-content:center;padding:18px}
.fchat-modal>section{width:min(520px,100%);max-height:85vh;overflow:auto;background:#101e31;border:1px solid #294565;border-radius:22px;padding:22px;color:#f4f7ff;box-shadow:0 20px 70px #0009}
.fchat-modal-close{float:right;border:0;border-radius:50%;width:38px;height:38px;background:#21334d;color:#fff;font-size:24px}
.fchat-modal label{display:block;margin:15px 0;color:#dce8f8}
.fchat-modal select{display:block;width:100%;margin-top:8px;padding:13px;border-radius:12px;background:#081321;color:#fff;border:1px solid #34516f}
.fchat-modal input[type=checkbox]{margin-right:9px}
.fchat-modal button:not(.fchat-modal-close){cursor:pointer}
.fchat-profile{text-align:center;padding:18px 0}
.fchat-profile>img,.fchat-profile>b{width:92px;height:92px;border-radius:50%;object-fit:cover;display:inline-flex;align-items:center;justify-content:center;background:#3154a4;color:white;font-size:38px}
.fchat-stats{display:flex;justify-content:space-around;gap:8px;margin:22px 0}
.fchat-stats span{display:flex;flex-direction:column;color:#aabbd2}
.fchat-stats b{color:#fff;font-size:20px}

.fchat-head-avatar{width:38px;height:38px;border-radius:50%;object-fit:cover;vertical-align:middle;margin-right:10px}


/* FANIVO 1.9.9 – polished chat controls */
.fchat-avatar img,.fchat-user-avatar img,.fchat-head-avatar{width:100%;height:100%;display:block;object-fit:cover;border-radius:50%;aspect-ratio:1/1}
.fchat-row{display:flex;align-items:center;gap:12px;min-height:76px}
.fchat-row-copy{flex:1;text-align:left}
.fchat-row i{font-size:11px;color:#62d8b0;font-style:normal}
.fchat-pro-modal{backdrop-filter:blur(12px);background:rgba(3,8,18,.78)}
.fchat-pro-modal>section{width:min(560px,100%);max-height:min(88vh,820px);padding:22px;background:linear-gradient(155deg,#14243a,#091321 72%);border-color:#294c70;border-radius:26px}
.fchat-modal-content{clear:both;padding-top:8px}
.fchat-modal-content h2{font-size:23px;margin:4px 0 18px;letter-spacing:-.4px}
.fchat-person-card{display:flex;align-items:center;gap:14px;padding:14px;margin:0 0 18px;border:1px solid #2b4666;border-radius:18px;background:#0b1728}
.fchat-person-card img,.fchat-person-card>b{width:58px;height:58px;min-width:58px;border-radius:50%;object-fit:cover;display:grid;place-items:center;background:#3154a4;color:white;font-size:22px}
.fchat-person-card div{display:flex;flex-direction:column;gap:4px}.fchat-person-card small{color:#9aacc5}
.fchat-menu-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.fchat-menu-grid button{display:flex;flex-direction:column;align-items:flex-start;gap:5px;text-align:left;padding:14px!important;border:1px solid #2b4666!important;border-radius:16px!important;background:#101e31!important;color:#f4f7ff}
.fchat-menu-grid button span{font-size:22px}.fchat-menu-grid button b{font-size:14px}.fchat-menu-grid button small{font-size:11px;color:#9aacc5;line-height:1.35}
.fchat-danger-actions{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap}
.fchat-danger-actions button{flex:1;border:1px solid #633b4b!important;background:#291b2a!important;color:#ffb4c0!important;border-radius:12px!important;padding:11px!important}
.fchat-field{display:block;margin:14px 0!important;font-weight:700}
.fchat-field input,.fchat-field select{box-sizing:border-box;width:100%;padding:14px!important;border-radius:13px!important;border:1px solid #34516f!important;background:#081321!important;color:#fff!important;margin-top:7px}
.fchat-primary{width:100%;padding:15px!important;border:0!important;border-radius:14px!important;background:linear-gradient(100deg,#278cff,#7950f4)!important;color:white!important;font-weight:900!important;margin-top:14px}
.fchat-primary:disabled{opacity:.45;cursor:not-allowed}
.fchat-modal-lead{color:#a9bad2;line-height:1.5}
.fchat-group-results{max-height:230px;overflow:auto;border:1px solid #263e5e;border-radius:14px;padding:7px;background:#0a1525}
.fchat-group-results>p{color:#91a6c2;padding:8px}
.fchat-group-user{width:100%;display:flex;align-items:center;gap:11px;padding:10px!important;background:transparent!important;border:0!important;border-bottom:1px solid #1e3049!important;color:white!important;text-align:left}
.fchat-group-user img,.fchat-group-user>b{width:42px;height:42px;min-width:42px;border-radius:50%;object-fit:cover;display:grid;place-items:center;background:#3154a4}
.fchat-group-user span{display:flex;flex:1;flex-direction:column;gap:3px}.fchat-group-user small{color:#91a6c2}.fchat-group-user i{font-size:22px;color:#51cafa;font-style:normal}
.fchat-selected-wrap{margin-top:16px}.fchat-selected{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}
.fchat-selected button{border:1px solid #315b83!important;border-radius:20px!important;background:#17314c!important;color:#8fe0ff!important;padding:8px 11px!important}
.fchat-theme-options{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.fchat-theme-options button{display:flex;align-items:center;gap:7px;padding:10px!important;border:1px solid #304766!important;border-radius:13px!important;background:#0b1728!important;color:#fff!important}
.fchat-theme-options i{width:22px;height:22px;border-radius:50%;background:var(--theme);border:2px solid #fff5}
.fchat-theme-options button.selected{border-color:#42cfff!important;box-shadow:0 0 0 2px #42cfff55}
.fchat-settings-list{display:grid;gap:8px}.fchat-settings-list button{padding:13px!important;border:1px solid #2d4665!important;border-radius:12px!important;background:#102039!important;color:#fff!important;text-align:left}
@media(max-width:700px){.fchat-menu-grid{grid-template-columns:1fr 1fr}.fchat-pro-modal>section{padding:17px}.fchat-theme-options{grid-template-columns:repeat(2,1fr)}}


/* FANIVO SOCIAL 2.0.0 – compact Instagram-inspired conversation header */
.fchat-head{gap:10px}
.fchat-head-person{display:flex;align-items:center;gap:10px;min-width:0;flex:1}
.fchat-head-person>span{display:flex;flex-direction:column;min-width:0}
.fchat-head-person b{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fchat-head-person small{font-size:10px;color:#9db0ca}
.fchat-head-avatar{width:38px;height:38px;min-width:38px;border-radius:50%;object-fit:cover}
.fchat-head-initial{width:38px;height:38px;min-width:38px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#268cff,#7450ef);color:#fff}
.fchat-head #fchat-more{width:40px;height:38px;border-radius:12px;font-size:18px;background:#17263d;border:1px solid #294565}
.fchat-thread-head{display:none!important}
.fchat-theme-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}
.fchat-theme-card{display:flex;flex-direction:column;gap:8px;text-align:left;padding:10px;border:2px solid #2c4261;border-radius:15px;background:#0b1525;color:#eaf2ff}
.fchat-theme-card.selected,.fchat-font-options button.selected{border-color:#39c7f2;box-shadow:0 0 0 2px #39c7f233}
.fchat-theme-card>i{height:68px;border-radius:10px;background:var(--theme);display:flex;align-items:flex-end;gap:5px;padding:8px}
.fchat-theme-card>i em{height:12px;width:34%;border-radius:8px;background:#ffffff35}
.fchat-theme-card>i em:nth-child(2){height:20px;background:#ffffff70}
.fchat-theme-card b{font-size:12px}
.fchat-font-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.fchat-font-options button,.fchat-choice-grid button{border:1px solid #2c4261;background:#142239;color:#edf4ff;border-radius:12px;padding:12px;font-weight:800}
.fchat-font-options button{font-size:22px}
.fchat-font-options small{display:block;font-size:11px;color:#a8bad2}
.font-serif{font-family:Georgia,serif!important}.font-rounded{font-family:ui-rounded,system-ui,sans-serif!important}.font-mono{font-family:ui-monospace,monospace!important}
.fchat-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:16px 0}
.fchat-secondary{width:100%;border:1px solid #36516f;background:transparent;color:#b9c9df;border-radius:12px;padding:12px}
.dock-account-avatar{width:27px;height:27px;display:grid;place-items:center;overflow:hidden;border-radius:50%;background:linear-gradient(135deg,#258bff,#7650f5);color:#fff;font-size:12px;font-weight:900}
.dock-account-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
@media(max-width:700px){
 .fanivo-chat-panel.fchat-thread-open .fchat-head{height:66px;flex-basis:66px;position:relative;z-index:2}
 .fanivo-chat-panel.fchat-thread-open .fchat-head-person b{font-size:15px}
 .fanivo-chat-panel.fchat-thread-open .fchat-head-person small{display:none}
 .fanivo-chat-panel.fchat-thread-open .fchat-layout{height:calc(100dvh - 66px)!important}
}


/* FANIVO SOCIAL 2.0.2 – mobile DM inbox visual refresh (Instagram-inspired, FANIVO identity) */
.fanivo-chat-panel{
  background:#080a10;
  border:0;
  border-radius:0;
  box-shadow:0 18px 70px #0009;
}
.fchat-head{
  min-height:66px;height:66px;flex:0 0 66px;
  padding:0 16px;background:#0b101b;
  border-bottom:1px solid #202735;gap:12px;
}
.fchat-head-person b{font-size:20px;font-weight:850;letter-spacing:-.35px}
.fchat-head-person small{font-size:12px;color:#9ca8ba}
.fchat-head button{
  width:42px;height:42px;flex:0 0 42px;border-radius:50%;
  background:#172236;border:0;color:#f6f7fb;font-size:25px;
}
.fchat-head button#fchat-more{border-radius:15px;border:1px solid #293c57;background:#111d30;font-size:20px;letter-spacing:2px}
.fchat-layout{display:flex;min-height:0;flex:1;background:#080a10}
.fchat-sidebar{width:100%;flex:1;border:0;overflow:auto;padding:14px 16px 18px;background:#080a10}
.fchat-actions{display:flex;gap:9px;overflow-x:auto;padding:2px 0 12px}
.fchat-actions button{
  flex:0 0 auto;border:1px solid #29384e;background:#121c2d;color:#f4f6fb;
  border-radius:24px;padding:10px 15px;font-size:13px;font-weight:750;white-space:nowrap
}
#fchat-search{
  box-sizing:border-box;width:100%;height:46px;margin:2px 0 13px;padding:0 17px;
  border:0;border-radius:14px;background:#20232b;color:#f7f7fa;font-size:15px;
}
#fchat-search::placeholder{color:#a7aab2}
#fchat-list{display:flex;flex-direction:column;gap:0}
.fchat-row{
  position:relative;display:flex;align-items:center;gap:13px;width:100%;min-height:78px;
  margin:0;padding:10px 4px;border:0;border-bottom:1px solid #151a23;border-radius:0;
  background:transparent;color:#f7f7fa;text-align:left;
}
.fchat-row.active{border:0;background:#111a28}
.fchat-avatar{
  display:flex;align-items:center;justify-content:center;flex:0 0 58px;
  width:58px;height:58px;border-radius:50%;overflow:hidden;
  background:linear-gradient(135deg,#278cff,#7950f4);color:#fff;font-size:22px;font-weight:800;
}
.fchat-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.fchat-row-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:5px;text-align:left}
.fchat-row-copy b{font-size:15px;font-weight:650;color:#f7f7fa}
.fchat-row-copy small{font-size:13px;color:#9da4b1;font-weight:450}
.fchat-row i{max-width:100px;font-size:11px;color:#52c8ef;font-style:normal}
.fchat-main{display:none;min-width:0;background:#080a10}
.fchat-thread-open .fchat-sidebar{display:none}
.fchat-thread-open .fchat-main{display:flex;flex:1}
.fchat-thread-head{display:none}
#fchat-thread{background:#080a10}
#fchat-messages{padding:14px 13px 18px;scroll-behavior:smooth}
.fchat-message{
  max-width:min(82%,520px);padding:11px 14px;margin:8px 0;
  border:0;border-radius:21px;background:#242731;color:#f7f7fa;
}
.fchat-message.mine{
  background:linear-gradient(135deg,#286fe8,#7650e9);border:0;color:#fff;
}
.fchat-message-user{display:flex;align-items:center;gap:8px;margin-bottom:7px}
.fchat-user-avatar{width:30px;height:30px;min-width:30px;padding:0;overflow:hidden;border-radius:50%;background:#26354d}
.fchat-message small{font-size:11px;color:#c2c8d2}
.fchat-message p{font-size:15px;line-height:1.42;margin:5px 0}
.fchat-compose{
  padding:10px 12px calc(10px + env(safe-area-inset-bottom));
  background:#080a10;border-top:1px solid #202530;
}
#fchat-text{
  box-sizing:border-box;min-height:52px;max-height:130px;padding:14px 17px;
  border:1px solid #343b49;border-radius:25px;background:#151922;color:#fff;font-size:15px;
}
.fchat-compose-tools{display:flex;gap:7px;flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px}
.fchat-compose-tools button,.fchat-compose-tools label{
  flex:0 0 auto;border:1px solid #29384e;border-radius:22px;background:#121d30;
  color:#eef4ff;padding:10px 13px;font-size:12px;font-weight:750;white-space:nowrap;
}
.fchat-compose-tools button[type=submit],#fchat-compose button[type=submit]{
  background:#1687f8;border-color:#1687f8;color:white;
}
.fchat-modal{background:#000b;backdrop-filter:blur(10px)}
.fchat-pro-modal>section{background:#111722;border:1px solid #29384d;border-radius:24px}
.fchat-menu-grid button{background:#171e2a!important;border-color:#2b3545!important}
@media(max-width:700px){
  .fanivo-chat-panel{
    inset:env(safe-area-inset-top) 0 calc(70px + env(safe-area-inset-bottom));
    border-radius:0;border:0;
  }
  .fchat-head{padding:0 14px}
  .fchat-head-person b{font-size:19px}
  .fchat-sidebar{padding:12px 15px 18px}
  .fchat-row{min-height:76px;padding:9px 2px}
  .fchat-avatar{width:58px;height:58px;flex-basis:58px}
  .fchat-actions button{font-size:12px;padding:9px 13px}
  .fchat-menu-grid{grid-template-columns:1fr 1fr}
  .fchat-pro-modal>section{padding:17px}
  .fchat-compose-tools button,.fchat-compose-tools label{font-size:11px;padding:9px 11px}
}
@media(min-width:701px){
  .fanivo-chat-panel{inset:20px 24px 100px;border-radius:22px;border:1px solid #263b58}
  .fchat-layout{display:grid;grid-template-columns:minmax(270px,34%) 1fr}
  .fchat-sidebar{width:auto;border-right:1px solid #202735;padding:16px}
  .fchat-main{display:flex}
  .fchat-thread-open .fchat-sidebar{display:block}
}


/* FANIVO SOCIAL 2.0.3 – persistent app chrome and group-chat polish */
@media(max-width:700px){
  .fanivo-chat-panel{
    inset:auto!important;
    top:var(--fchat-shell-top,0px)!important;
    bottom:var(--fchat-shell-bottom,0px)!important;
    height:auto!important;
    max-height:none!important;
    width:100%!important;
    border-radius:0!important;
    z-index:1100!important;
  }
  .fanivo-chat-panel .fchat-head{flex-shrink:0}
  .fanivo-chat-panel .fchat-layout{height:auto!important;min-height:0!important;flex:1!important}
  .fanivo-chat-panel .fchat-compose{padding-bottom:10px!important}
}
.fchat-head-group-emoji{
  width:38px;height:38px;min-width:38px;border-radius:50%;
  display:inline-grid;place-items:center;background:#202b40;font-size:22px;
}
.fchat-group-create-hero,.fchat-group-details-hero{
  display:flex;flex-direction:column;align-items:center;gap:10px;padding:8px 0 18px;text-align:center
}
.fchat-group-avatar-preview,.fchat-group-details-hero>span,.fchat-group-details-hero>img{
  width:104px;height:104px;border-radius:50%;display:grid;place-items:center;
  background:linear-gradient(135deg,#278bff,#7850ef);font-size:48px;object-fit:cover
}
.fchat-group-photo{
  display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;
  border:1px solid #344d70;border-radius:999px;color:#75d9ff;cursor:pointer;font-weight:800
}
.fchat-group-emoji-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:12px 0 18px}
.fchat-group-emoji-grid button{
  min-height:48px;border:1px solid #293d5b;border-radius:14px;background:#101b2d;font-size:24px
}
.fchat-group-emoji-grid button.selected{border:2px solid #28c8ff;background:#1b3150}
.fchat-group-user{display:flex;align-items:center;gap:10px;width:100%;padding:10px;border:0;border-bottom:1px solid #26364e;background:transparent;color:#eef4ff;text-align:left}
.fchat-group-user img,.fchat-group-user>b,.fchat-selected img,.fchat-group-member img,.fchat-group-member>b{
  width:42px;height:42px;min-width:42px;border-radius:50%;object-fit:cover;display:grid;place-items:center;background:#243754
}
.fchat-group-user span,.fchat-group-member span{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.fchat-group-user small,.fchat-group-member small{color:#9badc7}
.fchat-group-user i{font-style:normal;color:#65d8ff;font-size:22px}
.fchat-selected{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 16px}
.fchat-selected button{display:flex;align-items:center;gap:6px;border:1px solid #365277;border-radius:999px;padding:6px 10px;background:#16263d;color:#eef4ff}
.fchat-selected img{width:24px;height:24px;min-width:24px}
.fchat-group-details-hero h2{margin:4px 0 0}
.fchat-group-details-hero small{color:#9badc7}
.fchat-group-member-list{display:flex;flex-direction:column;gap:4px;margin:12px 0 18px}
.fchat-group-member{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid #25354d}
.fchat-group-member i{font-style:normal;color:#69d9ff;font-size:12px}
.fchat-group-details-hero>img{padding:0}

/* FANIVO 2.0.4 – group details and invite link */
.fchat-group-invite-panel{background:rgba(35,53,78,.55);border:1px solid #2b4567;border-radius:18px;padding:16px;margin:16px 0}
.fchat-group-invite-panel>b{display:block;font-size:16px;margin-bottom:6px}
.fchat-group-invite-panel p{color:#9eabc0;font-size:13px;margin:4px 0 12px}
.fchat-group-invite-panel input{width:100%;box-sizing:border-box;background:#0a1220;color:#eaf1ff;border:1px solid #2b4567;border-radius:12px;padding:12px;font-size:13px}
.fchat-group-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:12px}
.fchat-group-action-grid button{border:1px solid #2b4567;border-radius:13px;background:#17263c;color:#eaf1ff;padding:12px 10px;font-weight:700;font-size:13px}
.fchat-group-action-grid button:disabled{opacity:.4}
.fchat-group-action-grid button.danger{color:#ff8293;border-color:#744052}
.fchat-group-details-hero{text-align:center;padding:10px 0 16px}
.fchat-group-details-hero img,.fchat-group-details-hero>span{width:86px;height:86px;border-radius:50%;object-fit:cover;display:inline-flex;align-items:center;justify-content:center;background:#243a58;font-size:42px}
.fchat-group-details-hero h2{margin:10px 0 4px}
.fchat-group-details-hero small{color:#9eabc0}
@media(max-width:480px){.fchat-group-action-grid{grid-template-columns:1fr 1fr}.fchat-group-invite-panel{padding:12px}}

.fchat-group-media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.fchat-group-media-grid a{min-width:0;color:#eaf1ff;text-decoration:none;background:#142238;border-radius:12px;overflow:hidden;padding:5px}
.fchat-group-media-grid img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px}
.fchat-group-media-grid small{display:block;overflow-wrap:anywhere;color:#aab8ce;font-size:11px;padding:4px}
.fchat-group-media-grid .fchat-group-file{grid-column:span 3;padding:12px}
.fchat-search-result{padding:12px;border-bottom:1px solid #2b4567}
.fchat-search-result small{display:block;color:#9eabc0}
.fchat-search-result p{margin:7px 0 0;overflow-wrap:anywhere}
.fchat-group-member button{margin-left:auto;border:0;background:transparent;color:#ff8293;font-weight:700}

/* FANIVO Shop V2.0.6 */
.membership-top-link{border:1px solid #ff5364;background:linear-gradient(135deg,#7d172b,#c51e3b);color:#fff;border-radius:999px;padding:9px 13px;font-weight:950;font-size:11px;letter-spacing:.08em;box-shadow:0 0 18px #ff334433;cursor:pointer}
.fanivo-shop .shop-membership{display:flex;flex-direction:column;gap:7px;padding:22px;border:1px solid #a52b42;border-radius:22px;background:linear-gradient(120deg,#27111c,#141827 72%);margin:20px 0}
.shop-membership span,.shop-wallet small{font-size:10px;letter-spacing:.16em;font-weight:900;color:#ff8795}
.shop-membership strong{font-size:30px;color:#ff5268;letter-spacing:.04em}
.shop-membership small{color:#aeb8ce}
.shop-wallet{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px;border:1px solid #293a59;border-radius:18px;background:#111a2b;margin:16px 0 28px}
.shop-wallet strong{display:block;font-size:24px;margin-top:5px}
.shop-product-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.shop-product{display:flex;flex-direction:column;gap:10px;padding:20px;border:1px solid #2a3c5b;border-radius:20px;background:linear-gradient(145deg,#152139,#0f1523)}
.shop-product h3{margin:0;font-size:19px}.shop-product p{color:#9eabc4;line-height:1.5;min-height:42px;margin:0}
.shop-product>strong{font-size:21px;color:#b8c8ff}.shop-product>small{color:#8e9ab2}
.shop-product .button{margin-top:auto}
.shop-product-type{align-self:flex-start;padding:5px 9px;border-radius:999px;background:#25385a;color:#b8c9ff;font-size:10px;font-weight:900;text-transform:uppercase}
.shop-roadmap{margin-top:28px;padding:18px;border:1px solid #35415a;border-radius:16px;color:#aab5ca;background:#101827;line-height:1.6}
.shop-roadmap b{color:#fff}.shop-loading{padding:25px;color:#aab5ca}
@media(max-width:520px){.membership-top-link{padding:8px 9px;font-size:9px}.shop-wallet{align-items:flex-start;flex-direction:column}}

/* FANIVO SHOP V2.0.7 — Coins-only seasonal storefront */
.shop-season-sale{margin:18px 0;padding:15px 18px;border:1px solid #ff5364;border-radius:16px;background:linear-gradient(110deg,#571426,#211321);color:#fff;font-weight:1000;letter-spacing:.04em;text-align:center;box-shadow:0 8px 28px #ff334422}
.shop-sale-tag{display:inline-flex;align-self:flex-start;padding:6px 9px;border-radius:999px;background:#c51e3b;color:#fff;font-size:10px;font-weight:1000;letter-spacing:.04em}
.shop-product strong del{display:inline-block;margin-left:7px;color:#8792a8;font-size:13px;font-weight:700}
.shop-product .shop-sale-tag{margin-top:2px}
.shop-product .button{width:100%}
.saved-card [data-shop-toggle]{margin-left:auto;white-space:nowrap}
@media(max-width:520px){.shop-season-sale{font-size:12px}.saved-card [data-shop-toggle]{font-size:11px;padding:8px}}
.shop-storage-card{margin:14px 0;padding:16px;border:1px solid rgba(120,150,190,.22);border-radius:16px;background:linear-gradient(135deg,rgba(40,90,150,.12),rgba(110,60,160,.10));display:grid;gap:10px}.shop-storage-card>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px}.shop-storage-card>div:first-child strong{font-size:1.2rem;color:var(--accent,#65aaff)}.shop-storage-track{height:9px;border-radius:99px;background:rgba(130,145,170,.2);overflow:hidden}.shop-storage-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#398cff,#8b5cf6)}.shop-storage-card small,.shop-plan-note{color:var(--muted,#8994a7);font-size:.82rem}.shop-plan-note{margin:0 0 14px}


/* FANIVO SHOP V2.0.9 — kompaktní dvousloupcový katalog i na mobilu */
.fanivo-shop .shop-product-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  align-items:stretch;
}
.fanivo-shop .shop-product{
  min-width:0;
  padding:12px;
  gap:7px;
  border-radius:15px;
}
.fanivo-shop .shop-product h3{font-size:15px;line-height:1.25;overflow-wrap:anywhere}
.fanivo-shop .shop-product p{font-size:12px;line-height:1.4;min-height:0}
.fanivo-shop .shop-product>strong{font-size:16px;line-height:1.25}
.fanivo-shop .shop-product>small{font-size:11px;line-height:1.35}
.fanivo-shop .shop-product .button{min-height:38px;padding:9px 8px;font-size:12px}
.fanivo-shop .shop-product-type,.fanivo-shop .shop-sale-tag{font-size:9px;padding:4px 7px}
@media(min-width:760px){
  .fanivo-shop .shop-product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
  .fanivo-shop .shop-product{padding:16px}
}


/* FANIVO 2.1.1 — account, wallet, stories and shop refinement */
.dash-head-actions{gap:8px}
.coins-top-link{display:inline-flex;align-items:center;gap:5px;min-height:42px;padding:0 11px;border:1px solid rgba(73,157,255,.42);border-radius:999px;background:linear-gradient(135deg,#142b4b,#18213d);color:#dceaff;font-weight:850;cursor:pointer;white-space:nowrap}
.coins-top-link span{color:#ffd66e;font-size:18px}
.coins-top-link b{font-size:12px;font-variant-numeric:tabular-nums}
.profile-settings-card{display:none!important}
.profile-settings-hub{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}
.profile-settings-hub button{position:relative;display:grid;grid-template-columns:42px 1fr 16px;grid-template-rows:auto auto;align-items:center;gap:3px 12px;min-height:76px;padding:14px;border:1px solid #293d5e;border-radius:16px;background:linear-gradient(145deg,#15233a,#0e1728);color:#edf4ff;text-align:left}
.profile-settings-hub button>span{grid-row:1/3;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#1b3151;color:#59cfff;font-size:19px}
.profile-settings-hub button b{font-size:13px}.profile-settings-hub button small{font-size:10px;color:#91a5c5}.profile-settings-hub button i{grid-column:3;grid-row:1/3;color:#69cfff;font-style:normal;font-size:22px}
.home-story-ring,.cap-avatar,.profile-avatar,.profile-avatar img,.cap-avatar img,.home-story-add button>span{overflow:hidden;box-sizing:border-box}
.home-story-ring img{display:block;width:100%;height:100%;min-width:100%;min-height:100%;object-fit:cover;object-position:center;border-radius:50%;clip-path:circle(50% at 50% 50%);border:0!important}
.home-story-ring:before{pointer-events:none;z-index:2}
.home-story-bubble img,.home-stories img{max-width:none}
.cap-avatar{border-radius:50%;padding:0;overflow:hidden;aspect-ratio:1/1}
.cap-avatar img{width:100%;height:100%;object-fit:cover;object-position:center;border-radius:50%;display:block}
.profile-avatar{width:44px;height:44px;min-width:44px;border-radius:50%;overflow:hidden;display:grid;place-items:center}
.profile-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.shop-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.shop-product{min-width:0;padding:14px;border-radius:16px;display:flex;flex-direction:column;gap:8px}
.shop-product h3{font-size:15px;line-height:1.25;margin:3px 0}
.shop-product p{font-size:12px;line-height:1.45;margin:0;color:#9eafca}
.shop-product>strong{font-size:16px;margin-top:auto}
.shop-product>small{font-size:10px}
.shop-product .button{width:100%;padding:10px 8px;font-size:12px;min-height:42px}
.shop-buy-feedback{font-size:11px;line-height:1.4;padding:9px 10px;border-radius:10px;background:#17243a;color:#c8d7ed}
.shop-buy-feedback.is-success{color:#8ce5bd;background:rgba(39,151,105,.13)}
.shop-buy-feedback.is-error{color:#ffb5bd;background:rgba(212,58,82,.13)}
.shop-product .button.is-loading{opacity:.7}
.shop-wallet{align-items:center}
.blocked-users-list,.profile-activity-list{display:grid;gap:12px;margin-top:16px}
.blocked-user-card{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid #293d5e;border-radius:16px;background:linear-gradient(145deg,#142139,#0e1728)}
.blocked-user-avatar{width:44px;height:44px;flex:0 0 44px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#287df5,#7c4df4);font-weight:900;color:white}
.blocked-user-info{min-width:0;display:flex;flex:1;flex-direction:column;gap:3px}
.blocked-user-info b{font-size:14px}.blocked-user-info small,.blocked-user-info span{font-size:10px;color:#91a4c4}.blocked-user-card .connect-button{flex:0 0 auto}
.profile-info-banner{padding:13px 15px;border:1px solid #31527b;border-radius:14px;background:#13233a;color:#bcd0ed;font-size:12px;line-height:1.5}
.profile-activity-item{display:flex;align-items:flex-start;gap:13px;padding:15px;border:1px solid #293d5e;border-radius:15px;background:linear-gradient(145deg,#142139,#0e1728)}
.profile-activity-icon{width:38px;height:38px;flex:0 0 38px;border-radius:12px;display:grid;place-items:center;background:#1b3151;color:#5bd1ff;font-size:19px}
.profile-activity-item div{display:flex;flex-direction:column;gap:5px;min-width:0}
.profile-activity-item b{font-size:13px;color:#edf4ff}.profile-activity-item small{font-size:10px;color:#8fa4c4}.profile-activity-item p{margin:0;font-size:12px;color:#aabbd4}
@media(min-width:900px){.shop-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:520px){.dash-head-actions{gap:5px}.coins-top-link{min-height:38px;padding:0 8px}.coins-top-link b{font-size:10px}.coins-top-link span{font-size:15px}.profile-settings-hub{grid-template-columns:1fr}.shop-product{padding:11px}.shop-product h3{font-size:13px}.shop-product>strong{font-size:14px}.blocked-user-card{gap:9px;padding:11px}.blocked-user-card .connect-button{padding:8px 10px;font-size:11px}}
