*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;background:#07090d;color:#f7f8fb;min-height:100vh}.bg{position:fixed;inset:0;z-index:-1;background:radial-gradient(circle at 15% 0,#0d2940 0,transparent 34%),radial-gradient(circle at 95% 10%,#0d1d2c 0,transparent 30%),#07090d}header{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 4vw;border-bottom:1px solid #ffffff12;background:#07090de8;backdrop-filter:blur(15px);position:sticky;top:0;z-index:20}.brand{display:flex;gap:14px;align-items:center}.brand-logo{width:170px;max-height:54px;object-fit:contain;object-position:left center}.brand span{font-size:10px;color:#8fa0ad;letter-spacing:2px;border-left:1px solid #ffffff20;padding-left:14px}.hero-logo{width:min(520px,90%);height:auto;display:block;margin:0 0 26px;background:#fff;border-radius:18px;padding:14px 20px}main{padding:0}.auth-wrap{display:grid;grid-template-columns:1.1fr .9fr;gap:7vw;align-items:center;min-height:calc(100vh - 76px);padding:6vh 6vw}.hero h1{font-size:clamp(44px,6vw,88px);line-height:.95;margin:10px 0 22px}.hero h1 span{color:#1597dc}.hero p{max-width:600px;color:#9ba9b5;font-size:18px;line-height:1.6}.eyebrow{font-size:12px!important;font-weight:800;letter-spacing:3px;color:#1597dc!important}.card,.panel{background:#0e1217;border:1px solid #ffffff12;border-radius:24px;padding:28px;box-shadow:0 25px 80px #0006}.tabs{display:flex;background:#080b0f;padding:5px;border-radius:12px;margin-bottom:22px}.tab{flex:1;border:0;background:transparent;color:#85919d;padding:12px;border-radius:9px;cursor:pointer;font-weight:700}.tab.active{background:#10283a;color:#36aff0}label{display:block;color:#9eaaa6;font-size:13px;margin:15px 0 7px}input,textarea,select{width:100%;padding:14px;border-radius:11px;border:1px solid #ffffff14;background:#090c10;color:#fff;outline:none}input:focus,textarea:focus,select:focus{border-color:#1597dc}.primary{width:100%;margin-top:20px;background:linear-gradient(135deg,#29a8eb,#0f78b5);color:#03131d;border:0;border-radius:11px;padding:14px;font-weight:900;cursor:pointer}.primary.compact{width:auto;padding:12px 18px}.ghost{border:1px solid #ffffff22;background:#ffffff08;color:#fff;padding:10px 15px;border-radius:10px;cursor:pointer}.msg{min-height:20px;color:#ff8d8d}.hidden{display:none!important}
.app-shell{display:grid;grid-template-columns:250px 1fr;min-height:calc(100vh - 76px)}.sidebar{border-right:1px solid #ffffff10;background:#090c11;padding:24px 16px;display:flex;flex-direction:column;position:sticky;top:76px;height:calc(100vh - 76px)}.side-brand{padding:8px 8px 26px;border-bottom:1px solid #ffffff0e;margin-bottom:20px}.side-brand img{width:180px;background:#fff;border-radius:12px;padding:8px}.sidebar nav{display:flex;flex-direction:column;gap:8px}.nav-btn{display:flex;align-items:center;gap:12px;width:100%;border:0;background:transparent;color:#93a0ab;padding:13px 14px;border-radius:12px;text-align:left;font-weight:700;cursor:pointer}.nav-btn span{width:20px;text-align:center}.nav-btn:hover,.nav-btn.active{background:#10283a;color:#41b8f7}.side-user{margin-top:auto;display:flex;align-items:center;gap:10px;padding:14px;border-top:1px solid #ffffff0e}.side-user small{display:block;color:#74818c;max-width:145px;overflow:hidden;text-overflow:ellipsis}.avatar,.profile-avatar{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#1597dc;color:#041018;font-weight:900}.content{padding:40px clamp(24px,4vw,64px);max-width:1500px;width:100%}.page{display:none}.active-page{display:block}.welcome,.page-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:24px}.welcome h2,.page-head h2{font-size:38px;margin:5px 0}.welcome h2 span{color:#1597dc}.muted{color:#82919d}.pill{border:1px solid #1597dc55;background:#0e2636;padding:10px 14px;border-radius:999px;color:#42b7f5;font-size:13px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:20px}.stat{background:#0e1217;border:1px solid #ffffff12;border-radius:20px;padding:22px}.stat span,.stat small{display:block;color:#84919b}.stat strong{display:block;font-size:38px;color:#2facef;margin:8px 0}.notice{padding:16px 18px;border:1px solid #d4a94c44;background:#2a2111;border-radius:14px;color:#e7ca8a;margin:20px 0 28px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.platform{background:#0e1217;border:1px solid #ffffff12;border-radius:20px;padding:22px}.platform-top{display:flex;justify-content:space-between;align-items:center}.platform h3{margin:2px 0 0;font-size:22px}.platform-label{color:#657683;font-size:10px;letter-spacing:1.5px}.badge{font-size:11px;padding:6px 9px;border-radius:999px;background:#242a2f;color:#adb6b2;text-transform:capitalize}.badge.connected{background:#0e2b3d;color:#42b7f5}.badge.pending{background:#332814;color:#e4bc61}.platform textarea{min-height:90px;resize:vertical}.save{margin-top:12px;width:100%;padding:11px;border-radius:10px;border:1px solid #1597dc55;background:#0f2330;color:#42b7f5;font-weight:800;cursor:pointer}.small{font-size:11px;color:#76857f;margin-top:10px}.profile-panel{display:grid;grid-template-columns:90px 1fr;gap:24px;align-items:start;max-width:760px}.profile-avatar{width:78px;height:78px;font-size:28px}.security-row{display:flex;justify-content:space-between;padding:16px 0;border-bottom:1px solid #ffffff0e}.security-row strong{color:#42b7f5}@media(max-width:980px){.app-shell{grid-template-columns:82px 1fr}.sidebar{padding:20px 10px}.side-brand img{width:58px}.nav-btn{font-size:0;justify-content:center}.nav-btn span{font-size:18px}.side-user div:not(.avatar){display:none}.grid{grid-template-columns:1fr}}@media(max-width:700px){header{padding:0 16px}.brand span{display:none}.brand-logo{width:140px}.auth-wrap{grid-template-columns:1fr;padding:30px 18px}.hero{padding-top:2vh}.app-shell{display:block}.sidebar{position:static;height:auto;display:block;border-right:0;border-bottom:1px solid #ffffff10;padding:10px}.side-brand,.side-user{display:none}.sidebar nav{flex-direction:row;overflow:auto}.nav-btn{font-size:0;min-width:56px}.content{padding:24px 16px}.stats{grid-template-columns:1fr}.welcome{align-items:flex-start;gap:14px;flex-direction:column}.profile-panel{grid-template-columns:1fr}}

/* Fan House colour refresh */
.hero-logo{background:transparent!important;border-radius:0!important;padding:0!important;filter:drop-shadow(0 14px 26px #0008)}
.side-brand img{background:transparent!important;border-radius:0!important;padding:0!important;filter:drop-shadow(0 8px 18px #0007)}

/* Different colours for key dashboard blocks */
.stat:nth-child(1){background:linear-gradient(145deg,#0b2522,#0e1718);border-color:#20c99755}
.stat:nth-child(1) strong{color:#39d9ae}
.stat:nth-child(2){background:linear-gradient(145deg,#2b2110,#121316);border-color:#f0b42955}
.stat:nth-child(2) strong{color:#ffc857}
.stat:nth-child(3){background:linear-gradient(145deg,#11203a,#10141a);border-color:#6f8cff55}
.stat:nth-child(3) strong{color:#7f9cff}

.platform{position:relative;overflow:hidden;transition:.2s transform,.2s border-color}
.platform:hover{transform:translateY(-2px)}
.platform:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#1597dc}
.platform:nth-child(1){background:linear-gradient(145deg,#15151a,#0d1015);border-color:#67c7ff38}.platform:nth-child(1):before{background:#39b9ff}
.platform:nth-child(2){background:linear-gradient(145deg,#24131d,#101116);border-color:#f05b9d44}.platform:nth-child(2):before{background:linear-gradient(#f9ce34,#ee2a7b,#6228d7)}
.platform:nth-child(3){background:linear-gradient(145deg,#1a1a1a,#0c0f13);border-color:#dedede32}.platform:nth-child(3):before{background:#e8e8e8}
.platform:nth-child(4){background:linear-gradient(145deg,#26240c,#111216);border-color:#fffc0044}.platform:nth-child(4):before{background:#fffc00}
.platform:nth-child(5){background:linear-gradient(145deg,#102239,#0d1117);border-color:#2aabee55}.platform:nth-child(5):before{background:#2aabee}

.notice{background:linear-gradient(90deg,#33250f,#1c160d);border-color:#d4a94c77;color:#ffe09a}
.profile-panel{background:linear-gradient(145deg,#111a2b,#0e1217);border-color:#5578ff33}
#page-security .panel{background:linear-gradient(145deg,#10251d,#0e1217);border-color:#3ad49a33}
.nav-btn[data-page="home"].active{background:#0e2f45;color:#4cc4ff}
.nav-btn[data-page="accounts"].active{background:#25183c;color:#aa86ff}
.nav-btn[data-page="profile"].active{background:#15312b;color:#57dab5}
.nav-btn[data-page="security"].active{background:#332911;color:#ffd166}
.profile-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(340px,.85fr);gap:20px;align-items:start}.profile-card{background:linear-gradient(145deg,#10192a,#0c121b);border-color:#1d76c955}.profile-side{display:grid;gap:20px}.section-title{display:flex;align-items:center;gap:12px;padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid #ffffff0c}.section-title h3{margin:0 0 3px}.section-title p{margin:0;font-size:12px}.section-icon{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;font-weight:900}.section-icon.blue{background:#082e4b;color:#25a9f2;border:1px solid #1689cb}.section-icon.purple{background:#2b1547;color:#cf73ff;border:1px solid #6d3397}.section-icon.green{background:#073d31;color:#31e4a5;border:1px solid #087c5d}.profile-picture-row{display:flex;align-items:center;gap:16px;padding:0 0 18px}.profile-card .profile-avatar{width:70px;height:70px;font-size:27px}.profile-card textarea{min-height:90px;resize:vertical}.profile-save{margin-top:18px;width:auto}.pref-card{background:linear-gradient(145deg,#10192a,#0b1320);border-color:#6938a944}.overview-card{background:linear-gradient(145deg,#0d2024,#0c151a);border-color:#0f7d6244}.toggle-row{display:flex;align-items:center;justify-content:space-between;padding:14px 0;border-bottom:1px solid #ffffff0c}.toggle-row input{width:20px;height:20px;accent-color:#1597dc}.overview-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.overview-grid small,.overview-grid strong{display:block}.overview-grid small{color:#7f8d98;margin-bottom:6px}.active-status{color:#2bd99a}.profile-card small{display:block;margin-top:6px}.profile-card label,.pref-card label{margin-top:13px}@media(max-width:1050px){.profile-grid{grid-template-columns:1fr}}@media(max-width:600px){.overview-grid{grid-template-columns:1fr}.page-head{align-items:flex-start;gap:12px;flex-direction:column}}

/* FanHouse admin dashboard */
.admin-head{align-items:center}.admin-chip{font-size:11px;font-weight:800;letter-spacing:.14em;color:#74d6ff;border:1px solid rgba(50,173,255,.35);background:rgba(20,144,220,.1);padding:9px 12px;border-radius:999px}.admin-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:18px 0}.admin-stat{position:relative;overflow:hidden;background:#10151c;border:1px solid #222c38;border-radius:20px;padding:20px;min-height:126px}.admin-stat:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--accent)}.admin-stat span{display:block;color:#a9b4c0;font-size:13px;margin-bottom:8px}.admin-stat strong{display:block;font-size:36px;line-height:1;color:#fff}.admin-stat small{display:block;color:#72808d;margin-top:9px}.blue-card{--accent:#18a7ff}.green-card{--accent:#29d391}.amber-card{--accent:#ffb347}.purple-card{--accent:#a96cff}.admin-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(320px,.8fr);gap:18px}.admin-panel,.activity-panel{padding:0;overflow:hidden}.panel-heading{padding:20px 22px;border-bottom:1px solid #202b36}.panel-heading h3{margin:0 0 4px}.table-wrap{overflow:auto}.admin-table{width:100%;border-collapse:collapse;min-width:680px}.admin-table th,.admin-table td{text-align:left;padding:14px 18px;border-bottom:1px solid #1e2731;font-size:13px}.admin-table th{color:#7f8d99;font-size:11px;text-transform:uppercase;letter-spacing:.08em}.admin-table td{color:#dbe4eb}.admin-user-name{font-weight:700;color:#fff}.admin-user-email{display:block;color:#74818d;font-size:11px;margin-top:3px}.role-select{background:#0a0f14;color:#fff;border:1px solid #2c3945;border-radius:9px;padding:7px 10px}.activity-list{padding:8px 18px 16px}.activity-item{display:grid;grid-template-columns:10px 1fr;gap:10px;padding:13px 0;border-bottom:1px solid #1e2731}.activity-dot{width:8px;height:8px;border-radius:50%;background:#18a7ff;margin-top:6px}.activity-item strong{font-size:13px;color:#fff}.activity-item p{margin:3px 0;color:#81909d;font-size:12px}.activity-item small{color:#65727d;font-size:10px}.admin-only.hidden{display:none!important}
@media(max-width:1100px){.admin-stats{grid-template-columns:repeat(2,1fr)}.admin-layout{grid-template-columns:1fr}}@media(max-width:700px){.admin-stats{grid-template-columns:1fr}}

.management-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:22px;align-items:start}
.manager-create{border-color:rgba(157,92,255,.28);background:linear-gradient(145deg,rgba(40,25,68,.48),rgba(12,18,28,.92))}
.form-grid,.account-assign-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.manager-accounts{margin-top:22px;padding-top:18px;border-top:1px solid rgba(255,255,255,.08)}
.manager-accounts h4{margin:0 0 4px;color:#fff}.manager-save{margin-top:20px;background:linear-gradient(90deg,#8b5cf6,#159fe0);border:0}
.manager-list{display:grid;gap:12px}.manager-card{display:grid;grid-template-columns:48px 1fr auto;gap:12px;align-items:center;padding:14px;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(4,10,18,.55)}
.manager-avatar{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;font-weight:900;background:linear-gradient(145deg,#8b5cf6,#159fe0);color:#fff}
.manager-info{display:grid;gap:3px;min-width:0}.manager-info strong{color:#fff}.manager-info span,.manager-info small{color:#91a4b4;overflow-wrap:anywhere}.manager-role{font-size:11px;font-weight:800;color:#c6a8ff;background:rgba(139,92,246,.14);border:1px solid rgba(139,92,246,.35);padding:6px 8px;border-radius:999px}
.empty-manager{text-align:center;padding:38px 15px;color:#91a4b4}.empty-manager strong{color:#fff}
@media(max-width:980px){.management-grid,.form-grid,.account-assign-grid{grid-template-columns:1fr}}

.management-lock-notice{
  margin:0 0 18px;
  padding:14px 16px;
  border:1px solid rgba(168,85,247,.38);
  border-left:4px solid #a855f7;
  border-radius:12px;
  background:rgba(88,28,135,.16);
  color:#d8c6ee;
}
.management-lock-notice strong{color:#c084fc}
#page-accounts input:disabled,
#page-accounts select:disabled,
#page-accounts textarea:disabled{
  opacity:.68;
  cursor:not-allowed;
  background:#090d12;
}
.management-locked-btn,
#page-accounts button:disabled{
  opacity:.55;
  cursor:not-allowed;
  border-color:rgba(168,85,247,.25)!important;
  color:#b8a8c8!important;
}

.admin-user-switcher{
  margin:0 0 20px;
  padding:18px 20px;
  border:1px solid rgba(56,189,248,.35);
  border-left:4px solid #38bdf8;
  border-radius:16px;
  background:linear-gradient(135deg,rgba(14,116,144,.16),rgba(30,41,59,.72));
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:end;
}
.admin-user-switcher.hidden{display:none!important}
.admin-user-switcher h3{margin:2px 0 5px;color:#fff}
.admin-user-picker-row{display:flex;gap:10px;align-items:center;min-width:420px}
#adminUserPicker{
  min-width:280px;
  padding:12px 14px;
  border-radius:10px;
  border:1px solid rgba(56,189,248,.35);
  background:#071018;
  color:#fff;
}
.viewing-chip{
  white-space:nowrap;
  border:1px solid rgba(34,197,94,.35);
  background:rgba(34,197,94,.12);
  color:#86efac;
  padding:8px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
}
@media(max-width:900px){
  .admin-user-switcher{display:block}
  .admin-user-picker-row{min-width:0;margin-top:14px;display:grid}
  #adminUserPicker{min-width:0;width:100%}
}

.platform-login-row{
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0 16px;
}
.official-login-btn{
  display:inline-flex;align-items:center;justify-content:center;min-height:40px;
  padding:0 14px;border:1px solid rgba(39,171,240,.5);border-radius:10px;
  background:rgba(25,156,224,.11);color:#40bfff;font-weight:800;text-decoration:none;
  transition:.18s ease;
}
.official-login-btn:hover{transform:translateY(-1px);background:rgba(25,156,224,.18);border-color:rgba(39,171,240,.78)}
.safe-login-note{color:#82909a;font-size:12px}
.account-login-email{border-color:rgba(255,255,255,.11)!important}

.password-display-row{display:flex;gap:10px;align-items:center;margin-bottom:12px}
.masked-platform-password{flex:1;letter-spacing:3px;color:#71808b!important;background:#080d12!important;border:1px solid rgba(255,255,255,.08)!important;cursor:not-allowed;opacity:.8!important}
.password-not-stored{flex:0 0 auto;padding:7px 10px;border-radius:999px;background:rgba(34,197,94,.10);border:1px solid rgba(34,197,94,.28);color:#86efac;font-size:11px;font-weight:800;white-space:nowrap}
@media(max-width:650px){.password-display-row{display:grid}.password-not-stored{justify-self:start}}

.profiles-search{min-width:280px;padding:12px 14px;border-radius:12px}
.profiles-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.person-profile-card{padding:0;text-align:left;border:1px solid rgba(68,170,220,.22);border-radius:18px;background:linear-gradient(145deg,rgba(12,21,33,.96),rgba(8,13,20,.98));color:inherit;cursor:pointer;overflow:hidden}
.person-card-top{display:flex;justify-content:space-between;align-items:flex-start;padding:20px 20px 8px}
.person-avatar,.profile-view-avatar{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;font-size:22px;font-weight:900;background:linear-gradient(145deg,#20b9ff,#6c5cff);color:#06111a}
.person-card-body{padding:8px 20px 18px}.person-card-body h3{margin:0 0 5px;color:#fff}.person-card-body p{margin:0;color:#8ea0ae}
.person-meta{display:flex;gap:10px;margin-top:18px}.person-meta span{padding:8px 10px;border-radius:10px;background:rgba(255,255,255,.04);color:#8fa0ad;font-size:12px}.person-meta strong{color:#fff}
.person-open{display:flex;justify-content:space-between;padding:13px 20px;border-top:1px solid rgba(255,255,255,.06);color:#36bdfb;font-weight:800}
.person-role{padding:6px 9px;border-radius:999px;font-size:10px;font-weight:900;text-transform:uppercase}.role-admin{color:#ff7d96;background:rgba(245,73,106,.12)}.role-manager{color:#c39aff;background:rgba(154,92,255,.14)}.role-user{color:#6bd0ff;background:rgba(32,185,255,.11)}
.profile-loading{grid-column:1/-1;padding:44px;text-align:center;color:#8da0ae;border:1px dashed rgba(255,255,255,.1);border-radius:16px}
.profile-viewer{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:28px}.profile-viewer.hidden{display:none}.profile-viewer-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.7)}
.profile-viewer-panel{position:relative;z-index:1;width:min(760px,96vw);max-height:88vh;overflow:auto;border:1px solid rgba(61,178,232,.28);border-radius:22px;background:linear-gradient(150deg,#101b29,#070c12);padding:26px}
.profile-viewer-close{position:absolute;right:18px;top:14px;width:36px;height:36px;border-radius:50%;border:1px solid rgba(255,255,255,.12);background:#0a1018;color:#fff;font-size:24px}
.profile-view-header{display:grid;grid-template-columns:72px 1fr;gap:16px;align-items:center}.profile-view-header h2{margin:2px 0 4px;color:#fff}
.profile-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:24px 0}.profile-detail,.profile-bio-block{padding:14px;border:1px solid rgba(255,255,255,.07);border-radius:13px;background:rgba(255,255,255,.025)}
.profile-detail span,.profile-bio-block span{display:block;color:#7e91a0;font-size:11px;text-transform:uppercase;margin-bottom:5px}.profile-detail strong{color:#fff}.profile-bio-block p{margin:0;color:#c4ced6}
.profile-account-list{display:grid;gap:8px}.profile-account-row{display:flex;justify-content:space-between;padding:12px;border:1px solid rgba(255,255,255,.06);border-radius:12px}.profile-account-row strong{display:block;color:#fff}.profile-account-row small{color:#82929e}
.open-selected-accounts{width:100%;margin-top:20px;padding:13px;border:1px solid rgba(32,185,255,.45);border-radius:12px;background:rgba(32,185,255,.12);color:#4cc8ff;font-weight:900}
@media(max-width:1000px){.profiles-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.profiles-grid{grid-template-columns:1fr}.profiles-search{min-width:0;width:100%}.profile-detail-grid{grid-template-columns:1fr}}

/* FanHouse redesigned Profiles page */
.profiles-redesign{padding-bottom:40px}
.profiles-titlebar{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}
.profiles-titlebar h2{font-size:34px;margin:0 0 4px;color:#fff}
.profiles-toolbar{display:grid;grid-template-columns:1fr 145px auto;gap:14px;align-items:center;margin-bottom:22px}
.profiles-search-box{display:flex;align-items:center;gap:10px;border:1px solid rgba(255,255,255,.12);border-radius:12px;background:#0a1017;padding:0 14px}
.profiles-search-box span{color:#91a0ad;font-size:22px}
.profiles-search-box input{width:100%;border:0!important;background:transparent!important;padding:14px 0!important;outline:none}
.profiles-role-filter{height:48px}
.add-profile-btn{height:48px;padding:0 18px;border:0;border-radius:10px;background:linear-gradient(135deg,#189dff,#7857ff);color:#fff;font-weight:900;cursor:pointer}
.featured-profiles{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:24px}
.featured-profile-card{border:1px solid rgba(33,177,242,.38);border-radius:16px;background:linear-gradient(145deg,rgba(11,24,36,.97),rgba(6,13,21,.98));overflow:hidden}
.featured-profile-main{display:grid;grid-template-columns:180px 1fr;gap:22px;padding:26px}
.featured-photo-wrap{position:relative;width:180px;height:180px}
.profile-photo-large,.featured-photo-wrap .profile-view-avatar{width:180px;height:180px;border-radius:16px;object-fit:cover}
.featured-photo-wrap .profile-view-avatar{display:grid;place-items:center;font-size:56px}
.photo-mini-btn{position:absolute;right:8px;bottom:8px;width:38px;height:38px;border-radius:50%;border:2px solid #fff;background:#128fff;color:#fff;cursor:pointer}
.featured-profile-info{min-width:0}
.featured-name-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.featured-name-row h3{font-size:28px;margin:0;color:#fff}
.featured-profile-info>p{margin:5px 0 18px;color:#a6b4c0;font-size:16px}
.featured-detail-line{color:#a8b5c1;margin:10px 0}
.featured-stats{display:flex;gap:12px;margin-top:20px}
.featured-stats span{display:inline-flex;align-items:center;gap:7px;background:#121d29;border-radius:999px;padding:8px 12px;color:#aebac5;font-size:13px}
.dot{width:8px;height:8px;border-radius:50%;display:inline-block}.dot.green{background:#19cf89}.dot.blue{background:#1da8ff}
.featured-open{width:100%;display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border:0;border-top:1px solid rgba(255,255,255,.07);background:transparent;color:#35bfff;font-weight:900;font-size:15px;cursor:pointer}
.profiles-table-panel{border:1px solid rgba(255,255,255,.09);border-radius:16px;background:linear-gradient(145deg,#0a141f,#081019);overflow:hidden}
.profiles-table-head{padding:22px 20px 10px}.profiles-table-head h3{margin:0;color:#fff}
.profiles-table-wrap{overflow-x:auto}
.profiles-table{width:100%;border-collapse:collapse;min-width:950px}
.profiles-table th{padding:14px 18px;text-align:left;color:#7f91a0;font-size:11px;text-transform:uppercase;font-weight:700;border-bottom:1px solid rgba(255,255,255,.07)}
.profiles-table td{padding:14px 18px;border-bottom:1px solid rgba(255,255,255,.06);color:#b5c0c9}
.table-user-cell{display:flex;align-items:center;gap:12px;color:#fff}
.profile-photo,.table-user-cell .person-avatar{width:38px;height:38px;border-radius:50%;object-fit:cover;flex:0 0 38px}
.table-user-cell .person-avatar{display:grid;place-items:center;font-size:14px}
.profile-actions{display:flex;gap:8px}
.profile-action{width:36px;height:36px;border-radius:8px;border:1px solid rgba(255,255,255,.08);background:#0e1924;color:#31baff;cursor:pointer}
.profile-action.delete{color:#ff505d;background:rgba(255,48,69,.08)}
.profiles-table-footer{display:flex;justify-content:space-between;padding:14px 18px;color:#8ea0af}
.profile-editor-panel{width:min(760px,96vw)}
.profile-editor-form{display:grid;gap:15px}
.photo-editor-block{display:flex;align-items:center;gap:18px;padding:18px;border:1px solid rgba(255,255,255,.07);border-radius:14px;background:rgba(255,255,255,.025)}
.editor-photo-preview{width:110px;height:110px}
.editor-photo-preview .profile-photo-large,.editor-photo-preview .profile-view-avatar{width:110px;height:110px;border-radius:14px;object-fit:cover}
.upload-photo-btn{display:inline-flex;padding:10px 14px;border-radius:10px;background:#102438;border:1px solid rgba(32,185,255,.35);color:#45c2ff;font-weight:800;cursor:pointer}
.small-text{font-size:12px;margin-top:7px}
.editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.editor-save-btn{margin-top:4px}
.profile-view-header.redesigned{grid-template-columns:190px 1fr auto}
.profile-view-photo-wrap{width:180px;height:180px}
.profile-view-photo-wrap .profile-photo-large,.profile-view-photo-wrap .profile-view-avatar{width:180px;height:180px;border-radius:16px;object-fit:cover}
.profile-view-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px}
.edit-profile-modal-btn{padding:13px;border-radius:12px;border:1px solid rgba(145,91,255,.4);background:rgba(145,91,255,.12);color:#c3a1ff;font-weight:900;cursor:pointer}

@media(max-width:1050px){
  .featured-profiles{grid-template-columns:1fr}
  .profiles-toolbar{grid-template-columns:1fr 150px}
  .add-profile-btn{grid-column:1/-1}
}
@media(max-width:720px){
  .profiles-toolbar{grid-template-columns:1fr}
  .profiles-role-filter,.add-profile-btn{width:100%}
  .featured-profile-main{grid-template-columns:110px 1fr;padding:18px}
  .featured-photo-wrap,.featured-photo-wrap .profile-photo-large,.featured-photo-wrap .profile-view-avatar{width:110px;height:110px}
  .featured-name-row{display:block}.featured-name-row h3{font-size:22px;margin-bottom:8px}
  .editor-grid{grid-template-columns:1fr}
  .profile-view-header.redesigned{grid-template-columns:110px 1fr}
  .profile-view-header.redesigned>.person-role{grid-column:2}
  .profile-view-photo-wrap,.profile-view-photo-wrap .profile-photo-large,.profile-view-photo-wrap .profile-view-avatar{width:110px;height:110px}
  .profile-view-actions{grid-template-columns:1fr}
}


/* FIX: Edit Profile modal sizing / scrolling */
.profile-viewer {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  overflow: hidden !important;
}

.profile-viewer.hidden {
  display: none !important;
}

.profile-viewer-backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(0,0,0,.72) !important;
  backdrop-filter: blur(5px);
}

.profile-viewer-panel {
  position: relative !important;
  z-index: 2 !important;
  width: min(900px, 96vw) !important;
  max-height: calc(100vh - 40px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
  border-radius: 18px !important;
  scrollbar-gutter: stable;
}

.profile-editor-panel {
  width: min(760px, 96vw) !important;
  max-height: calc(100vh - 40px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-bottom: 24px !important;
}

.profile-viewer-close {
  position: sticky !important;
  top: 0 !important;
  float: right !important;
  z-index: 10 !important;
}

body.modal-open {
  overflow: hidden !important;
}

@media (max-width: 700px) {
  .profile-viewer {
    align-items: flex-start !important;
    padding: 10px !important;
  }

  .profile-viewer-panel,
  .profile-editor-panel {
    width: 100% !important;
    max-height: calc(100vh - 20px) !important;
    border-radius: 14px !important;
  }

  .photo-editor-block {
    align-items: flex-start !important;
    flex-direction: column !important;
  }
}
