:root{--gold:#dcc67e;--wine:#6b1913;--black:#000;--white:#fff;--ink:#171412;--muted:#6e6763;--line:#e8e2d7;--soft:#f6f2e8;--radius:18px;--shadow:0 14px 40px rgba(0,0,0,.08);--sidebar:220px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#fbfaf7;line-height:1.55}a{color:inherit;text-decoration:none}img{max-width:100%;display:block}button,input,select,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!important}.muted{color:var(--muted)}code{background:#eee8dc;padding:.1rem .35rem;border-radius:6px}.site-shell{min-height:100vh}.sidebar{position:fixed;left:0;top:0;bottom:0;width:var(--sidebar);background:#070707;color:#fff;padding:28px 20px;z-index:60;display:flex;flex-direction:column}.brand{display:inline-flex;align-items:center;gap:10px;font-weight:900;letter-spacing:-.02em}.logo-mark{width:40px;height:40px;flex:none}.sidebar-brand{font-size:18px;line-height:1.05;margin-bottom:42px}.sidebar nav{display:grid;gap:8px}.sidebar nav a{display:flex;align-items:center;gap:12px;padding:12px 13px;border-radius:12px;color:#cfcfcf;font-weight:750}.sidebar nav a:hover,.sidebar nav a.active{background:#191919;color:var(--gold)}.side-bottom{margin-top:auto;color:#8f8f8f;font-size:12px;text-transform:uppercase;letter-spacing:.08em}.lang-switch{display:flex;gap:8px;margin-top:10px}.lang-switch a{padding:6px 9px;border:1px solid #303030;border-radius:8px}.lang-switch a.active{color:#000;background:var(--gold);border-color:var(--gold)}.page{margin-left:var(--sidebar);min-height:100vh;display:flex;flex-direction:column}.topbar{height:82px;padding:0 clamp(20px,4vw,58px);display:flex;align-items:center;justify-content:flex-end;border-bottom:1px solid rgba(0,0,0,.06);background:rgba(251,250,247,.92);backdrop-filter:blur(15px);position:sticky;top:0;z-index:45}.mobile-brand,.menu-toggle{display:none}.top-actions{display:flex;gap:8px;align-items:center}main{flex:1;padding:0 clamp(20px,4vw,58px) 70px;max-width:1480px;width:100%;margin:auto}.hero{padding:76px 0 55px;display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:50px;align-items:end}.hero.compact{grid-template-columns:minmax(0,850px);padding-bottom:38px}.hero h1,.profile-hero h1{font-size:clamp(44px,6vw,84px);line-height:.95;letter-spacing:-.065em;margin:12px 0 22px;color:#0b0a09}.hero.compact h1{font-size:clamp(42px,5vw,68px)}.hero p{font-size:clamp(17px,1.8vw,22px);max-width:760px;color:var(--muted);margin:0}.eyebrow{font-size:12px;font-weight:900;letter-spacing:.16em;text-transform:uppercase;color:var(--wine)}.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:30px}.btn{border:1px solid transparent;border-radius:12px;padding:12px 17px;font-weight:850;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:.18s ease}.btn:hover{transform:translateY(-1px)}.btn.primary{background:var(--wine);color:#fff}.btn.dark{background:#000;color:var(--gold)}.btn.ghost{border-color:#d7d0c5;background:transparent;color:var(--ink)}.btn.small{padding:8px 12px;border-radius:10px;font-size:13px}.btn.full{width:100%}.hero-stat{background:var(--gold);border-radius:20px;padding:28px;min-height:185px;display:flex;flex-direction:column;justify-content:flex-end}.hero-stat strong{font-size:72px;line-height:.85;letter-spacing:-.08em;color:#000}.hero-stat span{font-weight:800;margin-top:12px}.section{padding:32px 0}.section-head{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:22px}.section-head h2,.panel h2{font-size:clamp(28px,3vw,42px);letter-spacing:-.045em;margin:5px 0 0;line-height:1}.section-head>a{font-weight:800;color:var(--wine)}.creator-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.creator-card{border:1px solid var(--line);background:#fff;border-radius:var(--radius);overflow:hidden;min-width:0}.creator-media{aspect-ratio:16/9;background:#141414;display:block;position:relative;overflow:hidden}.creator-media>img{width:100%;height:100%;object-fit:cover}.placeholder-art{width:100%;height:100%;display:grid;place-items:center;background:linear-gradient(135deg,#0b0b0b,#25100e)}.placeholder-art span{font-weight:950;font-size:48px;color:var(--gold);letter-spacing:-.08em}.live-badge{display:inline-flex;padding:5px 8px;border-radius:7px;font-size:11px;font-weight:950;letter-spacing:.08em}.creator-media .live-badge{position:absolute;top:12px;left:12px}.live-badge.is-live{background:#e91c42;color:#fff}.live-badge.is-off{background:#242424;color:#c9c9c9}.creator-body{padding:16px}.creator-identity{display:flex;align-items:center;gap:10px}.avatar{width:42px;height:42px;border-radius:12px;object-fit:cover}.initials{display:grid;place-items:center;background:var(--wine);color:var(--gold);font-weight:900}.creator-identity h3{font-size:18px;line-height:1.1;margin:0}.creator-identity small,.stream-meta,small{color:var(--muted)}.stream-title{margin:14px 0 8px;font-size:14px;font-weight:720;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.stream-meta{display:flex;justify-content:space-between;font-size:12px}.chips{display:flex;gap:7px;flex-wrap:wrap;margin-top:13px}.chips span{background:var(--soft);padding:6px 9px;border-radius:8px;font-size:12px;font-weight:750}.game-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.game-card{display:flex;gap:12px;align-items:center;background:#fff;border:1px solid var(--line);padding:11px;border-radius:14px}.game-art{width:62px;height:62px;border-radius:10px;overflow:hidden;background:#000;display:grid;place-items:center;flex:none}.game-art img{width:100%;height:100%;object-fit:cover}.game-art span{color:var(--gold);font-size:20px;font-weight:950}.game-card strong,.game-card small{display:block}.split{display:grid;grid-template-columns:1fr 1fr;gap:18px}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:clamp(20px,3vw,32px)}.panel.accent{background:var(--gold);border-color:var(--gold)}.schedule-list{display:grid;gap:0;margin-top:18px}.schedule-list>div{display:flex;justify-content:space-between;gap:16px;padding:11px 0;border-bottom:1px solid var(--line)}.schedule-list a{font-weight:850;color:var(--wine)}.empty{border:1px dashed #c7bdac;background:#f7f3ea;border-radius:16px;padding:30px;text-align:center;display:grid;gap:5px}.tier-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.tier-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:23px}.tier-card:nth-child(4){background:#0a0a0a;color:#fff;border-color:#0a0a0a}.tier-top span{font-size:11px;font-weight:900;color:var(--wine);letter-spacing:.1em;text-transform:uppercase}.tier-card:nth-child(4) .tier-top span{color:var(--gold)}.tier-card h3{font-size:26px;margin:3px 0 12px;letter-spacing:-.04em}.tier-card p{color:var(--muted);font-size:14px}.tier-card:nth-child(4) p{color:#aaa}.tier-card ul{padding-left:18px;margin:18px 0 0}.tier-card li{margin:8px 0;font-size:13px}.requirements .tier-card{min-height:0}.panel details{border-bottom:1px solid var(--line);padding:12px 0}.panel summary{font-weight:850;cursor:pointer}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-grid .full{grid-column:1/-1}.stack{display:grid;gap:14px}label{display:grid;gap:6px}label>span{font-size:12px;font-weight:850;color:#514c47}input,select,textarea{width:100%;border:1px solid #d8d1c6;background:#fff;color:#111;border-radius:11px;padding:11px 12px;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--wine);box-shadow:0 0 0 3px rgba(107,25,19,.08)}textarea{resize:vertical}.check{display:flex;align-items:center;gap:8px;font-size:13px}.check input{width:auto}.filters{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px;margin-bottom:18px}.profile-hero{margin-top:34px;min-height:360px;border-radius:24px;background:linear-gradient(135deg,#12100f,#3d1914);position:relative;overflow:hidden}.profile-cover{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.6}.profile-overlay{position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.82),transparent 65%);display:flex;align-items:flex-end;padding:34px}.profile-title{display:flex;align-items:end;gap:18px;color:#fff}.profile-title h1{color:#fff;margin:8px 0 3px;font-size:clamp(42px,6vw,78px)}.profile-title p{margin:0;color:#ddd}.profile-avatar{width:110px;height:110px;border-radius:22px;border:4px solid #fff;object-fit:cover}.profile-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:18px}.profile-main,.profile-side{display:grid;gap:18px;align-content:start}.facts{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:24px 0}.facts>div{background:var(--soft);border-radius:12px;padding:14px}.facts span,.facts strong{display:block}.facts span{font-size:11px;text-transform:uppercase;color:var(--muted);font-weight:800}.twitch-frame{aspect-ratio:16/9;min-height:300px;border-radius:13px;overflow:hidden;background:#000}.twitch-frame iframe{border:0;width:100%;height:100%;min-width:400px;min-height:300px}.chips.vertical{display:grid}.social-links{display:grid;gap:8px;margin:14px 0}.social-links a{background:var(--soft);padding:10px;border-radius:10px;font-weight:800}.flash{max-width:1200px;margin:16px auto;padding:12px 15px;border-radius:11px;font-weight:780}.flash.success{background:#eaf6ed;color:#1d5b2c}.flash.error{background:#fae9e9;color:#7b1717}footer{margin-top:auto;border-top:1px solid var(--line);padding:42px clamp(20px,4vw,58px);display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:30px;background:#fff}footer p{color:var(--muted);max-width:420px}footer nav{display:grid;align-content:start;gap:8px;font-weight:750}.footer-meta{display:grid;align-content:start;gap:8px;color:var(--muted);font-size:13px}.footer-meta a{color:var(--wine);font-weight:800}.overlay{display:none}
/* Auth + Admin */.auth-page{min-height:100vh;background:#f4efe5}.auth-card{width:min(500px,calc(100% - 32px));margin:7vh auto;background:#fff;border:1px solid var(--line);border-radius:22px;padding:clamp(24px,5vw,42px);box-shadow:var(--shadow)}.auth-brand{margin-bottom:28px}.auth-card h1{font-size:42px;letter-spacing:-.05em;margin:7px 0 10px}.install-card{width:min(620px,calc(100% - 32px))}.account-shell{width:min(1200px,calc(100% - 32px));margin:5vh auto}.account-head{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:25px}.account-head h1{font-size:48px;letter-spacing:-.055em;margin:3px 0}.admin-shell{min-height:100vh;display:grid;grid-template-columns:230px 1fr}.admin-nav{background:#080808;color:#fff;padding:24px 16px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;gap:5px}.admin-nav .brand{margin:0 8px 22px}.admin-nav>a:not(.brand){padding:9px 11px;border-radius:9px;color:#bbb;font-weight:760}.admin-nav>a.active,.admin-nav>a:hover{background:#181818;color:var(--gold)}.admin-nav>a:nth-last-child(2){margin-top:auto}.admin-main{padding:38px;min-width:0}.admin-title{margin-bottom:25px}.admin-title h1{font-size:50px;letter-spacing:-.055em;margin:6px 0}.admin-title p{color:var(--muted);margin:0}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px}.stat-card strong{display:block;font-size:42px;letter-spacing:-.06em}.stat-card span{color:var(--muted);font-weight:750}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}.admin-grid.wide-left{grid-template-columns:minmax(420px,.9fr) minmax(520px,1.1fr)}.simple-list{display:grid}.simple-list>a,.simple-list>div{padding:12px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:14px}.simple-list small{display:block}.timeline{display:grid;gap:15px}.timeline article{border-left:3px solid var(--gold);padding-left:14px}.timeline article span{font-size:11px;font-weight:900;color:var(--wine)}.timeline article h3{margin:3px 0}.timeline article p{margin:0;color:var(--muted)}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:13px}th,td{text-align:left;padding:11px;border-bottom:1px solid var(--line);vertical-align:top}th{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}td strong,td small{display:block}.inline{display:inline}.link{border:0;background:none;padding:0;margin-left:7px;color:var(--wine);font-weight:800}.danger{color:#9c2020}.check-grid{display:flex;gap:8px;flex-wrap:wrap}.check-grid .check{padding:7px 9px;background:var(--soft);border-radius:8px}fieldset{border:1px solid var(--line);border-radius:14px;padding:18px}legend{font-weight:900;padding:0 7px}hr{border:0;border-top:1px solid var(--line);margin:25px 0}
@media(max-width:1180px){.creator-grid,.tier-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.game-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-grid.wide-left{grid-template-columns:1fr}.stats-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:820px){:root{--sidebar:0px}.sidebar{transform:translateX(-105%);transition:.22s ease;width:240px}.sidebar.open{transform:translateX(0)}.page{margin-left:0}.topbar{height:68px;justify-content:space-between;padding:0 16px}.mobile-brand,.menu-toggle{display:flex}.mobile-brand{font-size:14px}.mobile-brand .logo-mark{width:34px;height:34px}.menu-toggle{border:0;background:transparent;font-size:23px}.overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:55}.overlay.show{display:block}main{padding:0 16px 50px}.hero{grid-template-columns:1fr;padding:48px 0 32px;gap:25px}.hero-stat{min-height:130px}.hero-stat strong{font-size:52px}.split,.profile-grid,.admin-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.facts{grid-template-columns:1fr}.profile-hero{min-height:320px}.profile-overlay{padding:22px}.profile-title{align-items:flex-end}.profile-avatar{width:82px;height:82px}.twitch-frame{overflow:hidden}.twitch-frame iframe{min-width:0;width:100%}.filters{grid-template-columns:1fr}.admin-shell{display:block}.admin-nav{height:auto;position:relative;display:flex;flex-direction:row;overflow:auto;align-items:center;padding:12px}.admin-nav .brand{margin:0 10px 0 0}.admin-nav>a:nth-last-child(2){margin-top:0}.admin-nav>a{white-space:nowrap}.admin-main{padding:22px 14px}.admin-title h1{font-size:38px}footer{grid-template-columns:1fr}.account-head{display:block}.account-head>div:last-child{margin-top:15px}}
@media(max-width:560px){.creator-grid,.tier-grid,.game-grid,.stats-grid{grid-template-columns:1fr}.hero h1{font-size:46px}.section{padding:24px 0}.profile-title{display:block}.profile-avatar{margin-bottom:12px}.profile-title h1{font-size:46px}.profile-overlay{align-items:flex-end}.top-actions .btn.ghost{display:none}.panel{padding:19px}.account-head h1{font-size:40px}}

/* Reghium Network v0.0.1 */
:root{--sidebar:248px}
.sidebar{padding:24px 16px}.sidebar-brand{margin:0 8px 34px;font-size:17px;white-space:nowrap}.sidebar-brand span{white-space:nowrap}.sidebar nav{gap:6px}.sidebar nav a{min-height:46px;padding:11px 12px;gap:12px;border-radius:11px;white-space:nowrap;overflow:hidden}.sidebar nav a span{min-width:0;white-space:nowrap}.nav-icon{width:20px;height:20px;flex:0 0 20px;display:block}.sidebar nav a .nav-icon{color:var(--gold)}.sidebar nav a:not(.active) .nav-icon{color:#aaa}.sidebar nav a:hover .nav-icon,.sidebar nav a.active .nav-icon{color:var(--gold)}
.side-bottom{padding:0 6px}.lang-switch{display:grid;grid-template-columns:1fr 1fr;gap:7px}.lang-switch a{display:flex;align-items:center;justify-content:center;gap:7px;padding:7px 8px;text-transform:none;font-weight:850;letter-spacing:0}.flag-icon{width:22px;height:15px;border-radius:2px;box-shadow:0 0 0 1px rgba(255,255,255,.18);flex:none}
.menu-toggle{align-items:center;justify-content:center;width:38px;height:38px;border-radius:10px!important}.menu-toggle .nav-icon{width:22px;height:22px}

/* Home games: image-only cards with overlay */
.visual-games{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.visual-game{position:relative;display:block;padding:0;aspect-ratio:16/10;overflow:hidden;border:0;background:#111}.visual-game>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .25s ease}.visual-game:hover>img{transform:scale(1.035)}.game-overlay{position:absolute;inset:auto 0 0;padding:34px 15px 14px;background:linear-gradient(0deg,rgba(0,0,0,.92),rgba(0,0,0,0));color:#fff}.game-overlay strong{font-size:18px;line-height:1.1}.game-overlay span{display:block;margin-top:4px;font-size:12px;color:#e8dfc2;font-weight:750}.home-network-cta{display:flex;align-items:end;justify-content:space-between;gap:30px}.home-network-cta>div{max-width:780px}.home-network-cta h2{margin-bottom:12px}

/* Creator preview: banner + streamer logo */
.creator-preview{overflow:visible;margin-bottom:27px;background:#111}.creator-preview .creator-banner{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:0}.creator-preview::after{content:"";position:absolute;inset:auto 0 0;height:45%;background:linear-gradient(0deg,rgba(0,0,0,.36),transparent);pointer-events:none}.creator-logo{position:absolute!important;left:16px!important;bottom:-28px!important;width:68px!important;height:68px!important;object-fit:cover!important;border-radius:16px!important;border:4px solid #fff!important;background:#fff!important;z-index:3;box-shadow:0 8px 24px rgba(0,0,0,.18)}.creator-preview .live-badge{z-index:4}.creator-body-preview{padding-top:13px}.creator-body-preview h3{margin:0;font-size:19px;line-height:1.15}.creator-body-preview small{display:block;margin-top:3px}

/* Admin navigation and granular permissions */
.admin-nav{width:100%;gap:4px}.admin-nav .brand{white-space:nowrap}.admin-nav>a:not(.brand){display:flex;align-items:center;gap:10px;padding:9px 10px;white-space:nowrap}.admin-nav>a:not(.brand) span{flex:1;white-space:nowrap}.admin-nav>a:not(.brand) small{font-size:9px;text-transform:uppercase;letter-spacing:.08em;padding:2px 5px;border-radius:5px;background:#252525;color:#a99a65}.admin-nav .nav-icon{width:18px;height:18px;flex-basis:18px}.admin-version{margin:-12px 8px 14px;color:#7e7e7e;font-size:10px;text-transform:uppercase;letter-spacing:.08em}.admin-version strong{color:var(--gold)}.readonly-notice{margin:0 0 18px;padding:10px 13px;border-radius:10px;background:#fff2c9;border:1px solid #e7d188;color:#5f4b0f;font-size:13px;font-weight:800}.admin-main.is-readonly form{opacity:.55;pointer-events:none}.admin-main.is-readonly .link,.admin-main.is-readonly a[href*="?edit="]{pointer-events:none;opacity:.45}.admin-main.is-readonly input,.admin-main.is-readonly select,.admin-main.is-readonly textarea,.admin-main.is-readonly button{cursor:not-allowed}
.permission-grid{display:grid;border:1px solid var(--line);border-radius:12px;overflow:hidden}.permission-head,.permission-row{display:grid;grid-template-columns:minmax(120px,1fr) 92px 92px;align-items:center;gap:8px;padding:9px 11px}.permission-head{background:#111;color:#fff;font-size:11px;text-transform:uppercase;letter-spacing:.04em}.permission-row{border-top:1px solid var(--line)}.permission-row label{display:flex;align-items:center;gap:6px;font-size:11px}.permission-row input{width:auto}.user-admin-list{display:grid;gap:12px}.user-admin-card{border:1px solid var(--line);border-radius:14px;padding:16px}.user-summary{display:flex;align-items:center;justify-content:space-between;gap:12px}.user-summary small{display:block}.role-pill{font-size:10px;font-weight:950;letter-spacing:.07em;background:var(--soft);padding:5px 8px;border-radius:7px}.inline-form{display:flex;align-items:end;gap:10px;margin-top:12px}.inline-form label{min-width:180px}.permissions-details{margin-top:12px;border-top:1px solid var(--line);padding-top:10px}.permissions-details summary{font-weight:850;cursor:pointer}.permissions-details form{margin-top:12px}.version-banner{display:flex;align-items:center;gap:16px;background:#090909;color:#fff;border-radius:16px;padding:18px 22px;margin-bottom:18px}.version-banner span{font-size:10px;color:#999;letter-spacing:.12em;font-weight:900}.version-banner strong{font-size:30px;color:var(--gold)}.version-banner small{margin-left:auto;color:#bbb}.streamer-editor{margin-bottom:18px}.facts.stacked{grid-template-columns:1fr;margin:0}.facts.stacked>div{display:flex;justify-content:space-between;gap:12px}.facts.stacked span,.facts.stacked strong{display:inline}

@media(max-width:1180px){.visual-games{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){:root{--sidebar:0px}.sidebar{width:270px}.admin-nav{width:auto}.admin-version{display:none}.admin-nav>a:not(.brand){flex:none}.admin-nav>a:not(.brand) small{display:none}.home-network-cta{align-items:start;flex-direction:column}.permission-head,.permission-row{grid-template-columns:minmax(110px,1fr) 78px 78px}.inline-form{align-items:stretch;flex-direction:column}.inline-form label{min-width:0}}
@media(max-width:560px){.visual-games{grid-template-columns:1fr}.visual-game{aspect-ratio:16/9}.creator-logo{width:62px!important;height:62px!important;bottom:-25px!important}.permission-grid{overflow:auto}.permission-head,.permission-row{min-width:360px}.version-banner{align-items:flex-start;flex-direction:column;gap:5px}.version-banner small{margin-left:0}}

/* Reghium Network v0.0.3 */
:root{--header:#000;--surface:#f7f5ef}.top-menu-layout{min-height:100vh;background:var(--bg)}.top-menu-layout .page{margin-left:0;min-height:calc(100vh - 76px)}body{color:var(--text);background:var(--bg)}.top-menu-layout main{padding-top:0}.site-header{position:sticky;top:0;z-index:80;background:var(--header);color:#fff;border-bottom:1px solid rgba(255,255,255,.09);box-shadow:0 7px 24px rgba(0,0,0,.10)}.site-header-inner{height:76px;max-width:1480px;margin:0 auto;padding:0 clamp(18px,4vw,58px);display:flex;align-items:center;gap:26px}.public-brand{flex:none;color:#fff;font-size:17px;white-space:nowrap}.public-brand .logo-mark{width:40px;height:40px}.custom-logo{object-fit:contain}.top-nav{display:flex;align-items:center;gap:5px;min-width:0}.top-nav a{padding:10px 12px;border-radius:9px;color:#cfcfcf;font-size:14px;font-weight:800;white-space:nowrap}.top-nav a:hover,.top-nav a.active{background:rgba(220,198,126,.12);color:var(--gold)}.header-tools{margin-left:auto;display:flex;align-items:center;gap:9px}.site-header .menu-toggle{display:none;color:#fff;border:1px solid #323232;background:#151515}.site-header .lang-switch{margin:0;display:flex;grid-template-columns:none;gap:5px}.site-header .lang-switch a{display:flex;align-items:center;gap:6px;padding:6px 7px;border:1px solid #333;border-radius:8px;color:#ddd;font-size:11px;font-weight:900}.site-header .lang-switch a.active{background:var(--gold);border-color:var(--gold);color:#000}.site-header .flag-icon{width:21px;height:14px}.site-header .btn.ghost{border-color:#444;color:#fff}.top-menu-layout footer{padding-left:clamp(20px,4vw,58px);padding-right:clamp(20px,4vw,58px)}

/* Live preview home cards */
.live-preview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.live-preview-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;min-width:0}.live-preview-media{display:block;position:relative;aspect-ratio:16/9;background:#111;overflow:hidden}.live-preview-media>img{width:100%;height:100%;object-fit:cover;transition:transform .22s ease}.live-preview-card:hover .live-preview-media>img{transform:scale(1.025)}.live-preview-media .live-badge{position:absolute;left:12px;top:12px}.live-viewers{position:absolute;right:12px;bottom:12px;background:rgba(0,0,0,.78);color:#fff;padding:5px 8px;border-radius:7px;font-size:11px;font-weight:850}.live-preview-body{display:grid;grid-template-columns:52px minmax(0,1fr);gap:12px;padding:14px 15px 16px}.live-preview-avatar{width:52px;height:52px;border-radius:13px;object-fit:cover;border:2px solid var(--gold)}.live-preview-body h3{margin:1px 0 4px;font-size:18px;line-height:1.1}.live-preview-body p{margin:0;font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.live-preview-body small{display:block;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Content Creator directory: banner + logo + group */
.creator-directory-card{overflow:visible;margin-bottom:10px}.creator-directory-card .creator-preview{border-radius:var(--radius) var(--radius) 0 0;overflow:visible}.creator-directory-card .creator-preview::after{border-radius:var(--radius) var(--radius) 0 0}.creator-directory-card .live-badge{left:auto;right:12px;top:12px}.creator-group-badge{position:absolute;left:12px;top:12px;z-index:4;background:rgba(0,0,0,.78);backdrop-filter:blur(7px);color:#fff;border:1px solid rgba(255,255,255,.16);border-radius:7px;padding:5px 8px;font-size:10px;font-weight:900;letter-spacing:.04em;max-width:calc(100% - 95px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.creator-directory-card .creator-body-preview{padding:16px 16px 18px}.creator-directory-card .creator-body-preview h3{margin-top:0}

/* Admin maintenance / theme */
.maintenance-stats{margin-bottom:18px}.backup-list{display:grid;margin-top:20px}.backup-list>div{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 0;border-bottom:1px solid var(--line)}.backup-list small{display:block}.backup-list a{color:var(--wine);font-weight:850}.cron-field{margin-top:20px}.cron-field input{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px}.danger-zone{margin-top:18px;border-color:#d9a4a4;background:#fffafa}.danger-zone .eyebrow{color:#a91919}.danger-btn{background:#8c1515;color:#fff}.protected-account{margin:12px 0 0;padding:9px 11px;border-radius:9px;background:#f2efe9;color:#68625b;font-size:12px;font-weight:750}.staff-create-panel{margin:18px 0}.theme-form{display:grid;gap:18px}.brand-preview{display:flex;align-items:center;gap:12px;padding:15px;border-radius:12px;background:#111;color:#fff;margin:15px 0 20px}.brand-preview .logo-mark{width:46px;height:46px}.color-settings{display:grid;grid-template-columns:1fr 1fr;gap:14px}.color-input{display:flex;align-items:center;gap:10px}.color-input input[type=color]{width:54px;height:44px;padding:3px;flex:none}.color-input code{font-size:12px}.theme-menu-table input[type=number]{min-width:76px}.theme-menu-table input[type=checkbox]{width:18px;height:18px}.theme-menu-table input{min-width:130px}.theme-savebar{position:sticky;bottom:14px;display:flex;justify-content:flex-end;pointer-events:none}.theme-savebar .btn{pointer-events:auto;box-shadow:0 10px 35px rgba(0,0,0,.18)}

/* Theme color application */
.panel,.creator-card,.live-preview-card,.game-card,.tier-card,footer,.auth-card{border-color:color-mix(in srgb,var(--text) 13%,transparent)}.panel,.creator-card,.live-preview-card,.game-card,footer{background:var(--surface)}.facts>div,.chips span,.social-links a,.role-pill{background:var(--soft)}.admin-nav{background:var(--header)}.eyebrow,.section-head>a,.footer-meta a,.backup-list a{color:var(--wine)}

@media(max-width:1060px){.site-header-inner{gap:14px}.top-nav a{padding:9px 8px;font-size:13px}.public-brand span{display:none}.live-preview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){.top-menu-layout .page{margin-left:0}.site-header-inner{height:68px;padding:0 15px}.site-header .menu-toggle{display:flex;order:2;margin-left:auto}.public-brand{order:1}.public-brand span{display:inline}.top-nav{display:none;position:absolute;left:0;right:0;top:68px;background:var(--header);padding:10px 15px 14px;border-top:1px solid #292929;box-shadow:0 12px 24px rgba(0,0,0,.22)}.top-nav.open{display:grid}.top-nav a{padding:11px 12px}.header-tools{order:3;margin-left:0}.header-tools .admin-link{display:none}.site-header .lang-switch a span{display:none}.site-header .lang-switch a{padding:6px}.top-menu-layout main{padding-left:16px;padding-right:16px}.live-preview-grid{grid-template-columns:1fr 1fr}.color-settings{grid-template-columns:1fr}.theme-menu-table{min-width:720px}}
@media(max-width:600px){.public-brand span{display:none}.header-tools .btn.primary{padding:8px 10px}.site-header .lang-switch{display:none}.live-preview-grid{grid-template-columns:1fr}.live-preview-body{grid-template-columns:46px minmax(0,1fr)}.live-preview-avatar{width:46px;height:46px}.creator-group-badge{max-width:calc(100% - 86px)}.backup-list>div{align-items:flex-start;flex-direction:column}.theme-savebar{bottom:8px}}

/* Theme text compatibility */
.top-menu-layout .hero h1,.top-menu-layout .profile-hero h1{color:var(--text)}
.permission-readonly{display:flex;align-items:center;font-size:12px;font-weight:850;color:var(--muted)}

/* Reghium Network v0.0.3 — visual language aligned to Reghium CRM */
:root{--radius:14px;--shadow:0 12px 28px rgba(0,0,0,.08)}
body{background:var(--bg);color:var(--text)}
.top-menu-layout main{max-width:1380px;padding-bottom:46px}
.site-header{background:var(--surface);color:var(--text);border-bottom:1px solid var(--line);box-shadow:0 4px 16px rgba(0,0,0,.035)}
.site-header-inner{height:72px}
.public-brand{color:var(--text)}
.top-nav a{color:var(--muted);border-radius:9px}
.top-nav a:hover,.top-nav a.active{background:#efe9d4;color:var(--wine)}
.site-header .menu-toggle{color:var(--text);border-color:var(--line);background:#faf9f5}
.site-header .lang-switch a{border-color:var(--line);color:var(--muted);background:#faf9f5}
.site-header .lang-switch a.active{background:var(--gold);border-color:var(--gold);color:#2b1708}
.site-header .btn.ghost{border-color:var(--line);color:var(--text);background:#faf9f5}
.hero{padding:54px 0 38px;gap:32px}.hero.compact{padding:48px 0 28px}
.hero h1,.profile-hero h1{letter-spacing:-.045em}.hero h1{font-size:clamp(42px,5.2vw,70px)}.hero.compact h1{font-size:clamp(38px,4.6vw,58px)}
.hero p{font-size:clamp(16px,1.4vw,19px)}
.section{padding:24px 0}.section-head{margin-bottom:16px}.section-head h2,.panel h2{font-size:clamp(24px,2.5vw,34px);letter-spacing:-.035em}
.btn{border-radius:9px;padding:11px 16px;font-weight:750;transform:none}.btn:hover{transform:none;filter:brightness(.98)}.btn.small{border-radius:9px}
input,select,textarea{border-radius:9px;border-color:#d7d3c8;padding:11px 12px}.panel,.creator-card,.live-preview-card,.tier-card,.game-card{border-radius:14px;box-shadow:0 4px 16px rgba(0,0,0,.025)}
.panel{padding:20px}.creator-card,.live-preview-card{background:var(--surface)}
.hero-stat{border-radius:14px;min-height:160px;padding:22px}.hero-stat strong{font-size:60px}
.profile-hero{border-radius:14px;min-height:330px;box-shadow:0 8px 28px rgba(0,0,0,.08)}.profile-overlay{padding:28px}.profile-avatar{border-radius:14px}.twitch-frame{border-radius:10px}
.creator-directory-card .creator-preview,.creator-directory-card .creator-preview::after{border-radius:14px 14px 0 0}
.creator-group-badge,.live-badge,.live-viewers{border-radius:999px}
.live-preview-body{padding:13px 14px 15px}.live-preview-avatar{border-radius:11px}
.filters{padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:0 4px 16px rgba(0,0,0,.025)}
.profile-game-list{display:grid;gap:8px;margin-top:14px}.profile-game-card{display:grid;grid-template-columns:70px minmax(0,1fr);align-items:center;gap:11px;padding:8px;border:1px solid var(--line);border-radius:10px;background:#faf9f5}.profile-game-card img{width:70px;height:46px;object-fit:cover;border-radius:7px;background:#111}.profile-game-card strong{font-size:13px;line-height:1.25}
.site-footer{padding:18px clamp(18px,4vw,58px);grid-template-columns:minmax(240px,1.25fr) minmax(260px,1fr) auto;align-items:center;gap:22px;background:var(--surface);border-top:1px solid var(--line);box-shadow:none}.site-footer .footer-brand{min-width:0}.site-footer .footer-brand .logo-mark{width:32px;height:32px}.site-footer .footer-brand p{margin:3px 0 0;font-size:12px;line-height:1.35;max-width:520px}.footer-nav{display:flex!important;flex-wrap:wrap;justify-content:center;gap:6px 14px!important;font-size:12px}.footer-nav a{color:var(--muted)}.footer-nav a:hover{color:var(--wine)}.site-footer .footer-meta{justify-items:end;gap:2px;font-size:11px;white-space:nowrap}.site-footer .footer-meta a{font-size:12px}
.auth-page{background:linear-gradient(135deg,var(--wine),#2f0907)}.auth-card{border-radius:18px;padding:34px;box-shadow:var(--shadow)}.crm-auth-card{width:min(440px,calc(100% - 32px))}.auth-card h1{font-size:38px;letter-spacing:-.035em}.auth-intro{margin:0 0 4px;color:var(--muted)}
.password-wrap{position:relative}.password-wrap input{padding-right:88px}.password-toggle{position:absolute;right:6px;top:6px;height:34px;padding:0 10px;border:0;border-radius:7px;background:#efede7;color:#222;font-size:12px;font-weight:800}.password-toggle:hover{background:#e6e2d8}.remember-check{font-weight:650;color:var(--muted)}
.single-account-panel{grid-template-columns:minmax(0,620px)}
.admin-main{background:var(--bg);padding:26px}.admin-nav{background:var(--header);padding:18px 14px}.admin-nav .brand{margin:0 6px 18px}.admin-nav>a:not(.brand){padding:9px 10px;border-radius:9px;font-size:13px}.admin-title{margin-bottom:18px}.admin-title h1{font-size:36px;letter-spacing:-.035em;margin:4px 0}.stats-grid{gap:14px}.stat-card{border-radius:14px;padding:18px;box-shadow:0 4px 16px rgba(0,0,0,.025)}.stat-card strong{font-size:30px;letter-spacing:-.035em}.admin-grid{gap:14px}.brand-preview{border-radius:14px}
@media(max-width:820px){.site-header-inner{height:68px}.top-nav{top:68px;background:var(--surface);border-top:1px solid var(--line);box-shadow:0 12px 24px rgba(0,0,0,.12)}.top-nav a{color:var(--muted)}.site-footer{grid-template-columns:1fr;gap:12px;padding-block:16px}.footer-nav{justify-content:flex-start!important}.site-footer .footer-meta{justify-items:start;white-space:normal}.admin-main{padding:16px 13px}.admin-title h1{font-size:30px}}
@media(max-width:560px){.hero{padding-top:38px}.site-footer .footer-brand p{font-size:11px}.password-wrap input{padding-right:80px}.password-toggle{font-size:11px}.profile-game-card{grid-template-columns:62px minmax(0,1fr)}.profile-game-card img{width:62px;height:42px}}

/* Reghium Network v0.0.4 — CRM visual parity + Twitch-first creator directory */
body{background:#f5f3ed}
.top-menu-layout main{max-width:1360px;padding-top:22px}
.site-header{background:#000!important;color:#fff!important;border-bottom:1px solid #292929!important;box-shadow:0 7px 24px rgba(0,0,0,.12)!important}
.site-header-inner{height:72px}
.public-brand{color:#fff!important;min-width:0}
.public-brand.has-custom-logo{max-width:210px}
.public-brand.has-custom-logo .logo-mark{width:auto!important;height:46px!important;max-width:200px!important;object-fit:contain!important;border-radius:0!important;background:transparent!important;padding:0!important}
.top-nav a{color:#d8d8d8!important;border-radius:9px}
.top-nav a:hover,.top-nav a.active{background:var(--wine)!important;color:#fff!important}
.site-header .menu-toggle{color:#fff!important;border-color:#333!important;background:#151515!important}
.site-header .lang-switch a{border-color:#333!important;color:#ddd!important;background:#151515!important}
.site-header .lang-switch a.active{background:var(--gold)!important;border-color:var(--gold)!important;color:#2b1708!important}
.site-header .btn.ghost{border-color:#3b3b3b!important;color:#fff!important;background:#151515!important}
.site-header .btn.primary{background:var(--wine);color:#fff}

/* Le pagine pubbliche usano la stessa grammatica visiva del CRM: superfici bianche, bordi sottili, raggio 14px e ombre leggere. */
.hero,.hero.compact{margin:0 0 18px;padding:26px 28px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:0 4px 16px rgba(0,0,0,.025);align-items:center}
.hero h1{font-size:clamp(36px,4.2vw,58px);line-height:1;letter-spacing:-.04em;margin:8px 0 14px}.hero.compact h1{font-size:clamp(34px,4vw,52px)}
.hero p{font-size:16px;line-height:1.6}.hero-stat{min-height:132px;border-radius:11px;padding:18px}.hero-stat strong{font-size:52px}
.section{padding:10px 0 18px}.section-head{align-items:center;margin-bottom:13px}.section-head h2,.panel h2{font-size:22px;letter-spacing:-.025em}.section-head>a{font-size:13px}
.panel,.creator-card,.live-preview-card,.tier-card,.game-card,.filters{border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:0 4px 16px rgba(0,0,0,.025)}
.panel{padding:20px}.tier-card{padding:20px}.tier-card h3{font-size:23px}.tier-card:nth-child(4){background:#0c0c0c;border-color:#0c0c0c}
.split,.profile-grid,.admin-grid{gap:14px}.facts>div,.profile-game-card,.social-links a{border:1px solid var(--line);background:#faf9f5}
.home-network-cta{border-radius:14px}

/* Directory creator: Twitch-first imagery, anteprima live e identità sovrapposta. */
.creator-grid{gap:14px}
.creator-directory-card{overflow:hidden!important;margin-bottom:0!important}
.creator-directory-card .creator-preview{margin-bottom:0!important;overflow:hidden!important;border-radius:14px 14px 0 0!important;isolation:isolate}
.creator-directory-card .creator-preview::after{display:none}
.creator-directory-card .creator-banner{transition:transform .22s ease;z-index:0}.creator-directory-card:hover .creator-banner{transform:scale(1.018)}
.creator-media-scrim{position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(0,0,0,.12) 28%,rgba(0,0,0,.82) 100%);pointer-events:none}
.creator-directory-card .live-badge{z-index:5;top:12px;right:12px;left:auto}
.creator-overlay-identity{position:absolute;z-index:4;left:14px;right:14px;bottom:13px;display:flex;align-items:flex-end;gap:11px;min-width:0}
.creator-directory-card .creator-logo{position:static!important;left:auto!important;bottom:auto!important;width:58px!important;height:58px!important;border-radius:12px!important;border:3px solid #fff!important;box-shadow:0 5px 18px rgba(0,0,0,.28);flex:0 0 auto}
.creator-overlay-copy{min-width:0;display:grid;gap:5px}
.creator-card-name{margin:0!important;font-size:20px!important;line-height:1.05!important;font-weight:850!important;color:#fff!important;mix-blend-mode:difference;text-shadow:0 1px 1px rgba(0,0,0,.18);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.creator-group-badge{position:static!important;left:auto!important;top:auto!important;display:inline-flex!important;justify-self:start;max-width:100%!important;padding:4px 8px!important;border-radius:999px!important;background:rgba(0,0,0,.62)!important;border:1px solid rgba(255,255,255,.18)!important;color:#fff!important;backdrop-filter:blur(6px);font-size:10px!important;line-height:1.2}
.creator-directory-card .creator-body-preview{padding:13px 14px 15px!important;min-height:74px}.creator-directory-card .stream-title{margin:0 0 7px}.creator-directory-card .chips{margin-top:0}

/* Profilo creator coerente con le card CRM. */
.profile-hero{margin-top:0;border-radius:14px;min-height:330px;border:1px solid var(--line)}
.profile-overlay{padding:24px;background:linear-gradient(0deg,rgba(0,0,0,.84),rgba(0,0,0,.08) 72%)}
.profile-title h1{color:#fff!important;font-size:clamp(38px,5vw,62px)}.profile-title p{color:#eee}.profile-avatar{width:94px;height:94px;border-radius:14px}

/* Dashboard CRM-like, più informativa. */
.dashboard-welcome{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:14px;background:linear-gradient(135deg,#fff,#f1ead1)}
.dashboard-welcome h2{margin:4px 0 7px;font-size:25px}.dashboard-welcome p{margin:0;color:var(--muted);max-width:720px}.dashboard-version{display:grid;justify-items:end;flex:none}.dashboard-version small{font-size:10px;font-weight:850;color:var(--muted);letter-spacing:.09em}.dashboard-version strong{font-size:24px;color:var(--wine)}
.dashboard-stats{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}.dashboard-stat{display:flex;align-items:center;gap:13px}.dashboard-stat-icon{width:40px;height:40px;border-radius:10px;background:#efe9d4;color:var(--wine);display:grid;place-items:center;flex:none}.dashboard-stat-icon .nav-icon{width:20px;height:20px}.dashboard-stat>div{min-width:0}.dashboard-stat strong{font-size:27px;margin:0}.dashboard-stat span:not(.dashboard-stat-icon){display:block;font-size:13px;color:var(--text);font-weight:750}.dashboard-stat small{display:block;margin-top:2px;color:var(--muted);font-size:11px}
.dashboard-grid{grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);margin-bottom:14px}.dashboard-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.dashboard-actions>a{display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:10px;background:#faf9f5}.dashboard-actions>a:hover{background:#f4efe0;border-color:#d8cfb8}.dashboard-actions .nav-icon{width:21px;height:21px;color:var(--wine)}.dashboard-actions strong,.dashboard-actions small{display:block}.dashboard-actions strong{font-size:13px}.dashboard-actions small{margin-top:2px;color:var(--muted);font-size:11px}.system-status-list{display:grid}.system-status-list>div{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 0;border-bottom:1px solid var(--line);font-size:13px}.system-status-list>div:last-child{border-bottom:0}.status-dot{display:inline-flex;align-items:center;gap:6px;font-size:12px}.status-dot::before{content:"";width:8px;height:8px;border-radius:50%;background:#9b9488}.status-dot.ok::before{background:#2f7548}.status-dot.warn::before{background:#b07d1b}.dashboard-latest{margin-top:14px}.dashboard-latest .section-head h2{margin-top:3px}

.auth-access-note{margin-bottom:0;font-size:12px}

@media(max-width:980px){.public-brand.has-custom-logo{max-width:170px}.public-brand.has-custom-logo .logo-mark{max-width:165px!important}.dashboard-grid{grid-template-columns:1fr}.hero{grid-template-columns:1fr}.hero-stat{min-height:auto}}
@media(max-width:820px){.top-nav{background:#000!important;border-top:1px solid #292929!important}.top-nav a{color:#d8d8d8!important}.public-brand.has-custom-logo .logo-mark{height:40px!important;max-width:150px!important}.hero,.hero.compact{padding:20px}.dashboard-welcome{align-items:flex-start}.dashboard-actions{grid-template-columns:1fr}}
@media(max-width:560px){.top-menu-layout main{padding-top:13px}.public-brand.has-custom-logo{max-width:130px}.public-brand.has-custom-logo .logo-mark{height:36px!important;max-width:125px!important}.hero,.hero.compact{padding:17px}.hero h1,.hero.compact h1{font-size:34px}.dashboard-welcome{display:grid}.dashboard-version{justify-items:start}.creator-overlay-identity{left:11px;right:11px;bottom:11px}.creator-directory-card .creator-logo{width:52px!important;height:52px!important}.creator-card-name{font-size:18px!important}}
