/* V17.00 Community complete redesign — public */
.community-page{
  --cm-bg:#06111e;
  --cm-bg2:#09182a;
  --cm-card:#0d1a2d;
  --cm-card2:#111f37;
  --cm-line:#294766;
  --cm-text:#f7fbff;
  --cm-muted:#9fb1c8;
  --cm-cyan:#36d7ff;
  --cm-blue:#4f8cff;
  --cm-violet:#8b5cf6;
  --cm-pink:#d946ef;
  background:
    radial-gradient(circle at 10% 5%,rgba(139,92,246,.16),transparent 28%),
    radial-gradient(circle at 92% 18%,rgba(54,215,255,.12),transparent 30%),
    linear-gradient(180deg,#06111e 0%,#071321 48%,#08111d 100%)!important;
  color:var(--cm-text);
  min-height:100vh;
}
.community-page *{box-sizing:border-box}
.community-page .community-shell{padding:42px 0 90px;position:relative;overflow:hidden}
.community-page .community-shell:before,
.community-page .community-shell:after{content:"";position:fixed;pointer-events:none;border-radius:50%;filter:blur(80px);opacity:.25;z-index:0}
.community-page .community-shell:before{width:320px;height:320px;background:#6d28d9;left:-110px;top:120px}
.community-page .community-shell:after{width:360px;height:360px;background:#0891b2;right:-150px;top:320px}
.community-page .wrap{width:min(1180px,calc(100% - 36px));margin:auto;position:relative;z-index:1}

/* Hero */
.community-page .community-hero-grid{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(330px,.88fr);gap:24px;align-items:stretch;margin-bottom:22px}
.community-page .community-copy,.community-page .community-privacy-panel{
  border:1px solid rgba(84,129,177,.46);
  border-radius:28px;
  background:linear-gradient(145deg,rgba(12,27,48,.96),rgba(8,19,34,.96));
  box-shadow:0 26px 80px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.03);
  position:relative;overflow:hidden;
}
.community-page .community-copy{padding:42px 44px 38px}
.community-page .community-copy:before{content:"";position:absolute;inset:0;background:linear-gradient(120deg,rgba(139,92,246,.15),transparent 34%,transparent 66%,rgba(54,215,255,.1));pointer-events:none}
.community-page .community-copy:after{content:"COMMUNITY";position:absolute;right:-6px;top:18px;font-size:clamp(60px,9vw,120px);font-weight:1000;letter-spacing:-.06em;color:rgba(255,255,255,.025);line-height:1;pointer-events:none}
.community-page .eyebrow{color:#a987ff!important;font-size:12px!important;letter-spacing:.18em!important;font-weight:900!important;margin:0 0 14px!important}
.community-page .community-copy h1{font-size:clamp(46px,6vw,82px)!important;line-height:.93!important;letter-spacing:-.055em!important;margin:0 0 22px!important;max-width:760px}
.community-page .community-copy h1 span{background:linear-gradient(90deg,#c34dff,#6c72ff 55%,#37d5ff);-webkit-background-clip:text;background-clip:text;color:transparent}
.community-page .community-copy>p:not(.eyebrow){font-size:17px;line-height:1.7;color:#c7d6e8;max-width:610px;margin-bottom:26px}
.community-page .community-stats{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;margin:0 0 24px!important}
.community-page .community-stats>div{padding:14px 13px!important;border-radius:16px!important;background:rgba(15,33,57,.86)!important;border:1px solid #2c4968!important;min-width:0!important;text-align:left!important}
.community-page .community-stats b{font-size:15px!important;color:#fff!important;display:block!important;margin-bottom:4px!important}
.community-page .community-stats small{font-size:10px!important;color:#8fa7c2!important;line-height:1.35!important;display:block!important}
.community-page .home-actions{display:flex!important;gap:10px!important;flex-wrap:wrap!important}
.community-page .home-actions .btn{border-radius:14px!important;padding:13px 18px!important;font-size:12px!important;font-weight:900!important;letter-spacing:.04em!important;text-decoration:none!important;min-height:46px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
.community-page .home-actions .primary{background:linear-gradient(135deg,#13c8f2,#5669ff)!important;color:white!important;border:0!important;box-shadow:0 12px 30px rgba(45,160,255,.24)}
.community-page .home-actions .ghost{background:#0a1728!important;border:1px solid #6f53db!important;color:#d8d6ff!important}

.community-page .community-privacy-panel{padding:26px!important;display:flex;flex-direction:column;justify-content:center;min-height:100%}
.community-page .community-privacy-panel:before{content:"";position:absolute;width:190px;height:190px;border-radius:50%;right:-80px;top:-70px;background:radial-gradient(circle,rgba(217,70,239,.25),transparent 70%)}
.community-page .community-privacy-panel .panel-head{display:flex!important;justify-content:space-between!important;gap:12px!important;align-items:flex-start!important;border-bottom:1px solid #243b58!important;padding-bottom:18px!important;margin-bottom:18px!important}
.community-page .community-privacy-panel .panel-head b{font-size:20px!important}
.community-page .community-privacy-panel .panel-head small{display:block!important;color:#91a8c4!important;margin-top:5px!important}
.community-page .community-privacy-panel .panel-head>span{padding:6px 10px!important;border-radius:999px!important;background:#291540!important;border:1px solid #7441a8!important;color:#efb7ff!important;font-size:10px!important;font-weight:900!important}
.community-page .community-privacy-copy p{color:#d3deeb!important;line-height:1.65!important}
.community-page .community-privacy-copy ul{display:grid!important;gap:11px!important;padding-left:18px!important;color:#9db0c7!important}

/* Metrics */
.community-page .community-live-overview{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;margin:0 0 18px!important}
.community-page .community-metric{display:flex!important;align-items:center!important;gap:13px!important;padding:17px 18px!important;border:1px solid #294967!important;border-radius:18px!important;background:linear-gradient(160deg,#0d1d33,#0b1728)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important}
.community-page .community-metric>span{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(145deg,#1a3861,#322168);font-size:18px}
.community-page .community-metric strong{font-size:26px!important;line-height:1!important;display:block!important;color:#fff!important}
.community-page .community-metric small{color:#91a7c1!important;font-size:11px!important;display:block!important;margin-top:5px!important}

/* Categories */
.community-page .community-categories{padding:24px!important;border:1px solid #294867!important;border-radius:22px!important;background:linear-gradient(145deg,#0b192b,#0a1627)!important;margin-bottom:18px!important}
.community-page .community-categories>.panel-head{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:14px!important;margin-bottom:16px!important}
.community-page .community-categories>.panel-head b{font-size:22px!important}
.community-page .community-categories>.panel-head small{display:block;color:#8ea5bf!important;margin-top:4px!important}
.community-page .community-categories>.panel-head>span{color:#58e7c0!important;font-size:10px!important;letter-spacing:.12em!important;text-transform:uppercase!important}
.community-page .category-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}
.community-page .category-card{appearance:none!important;text-align:left!important;padding:18px!important;border-radius:17px!important;border:1px solid #304d6d!important;background:linear-gradient(150deg,#13243e,#0d1a2e)!important;color:#fff!important;display:grid!important;gap:8px!important;min-height:132px!important;transition:.22s ease!important;cursor:pointer!important}
.community-page .category-card:hover{transform:translateY(-3px)!important;border-color:#6e72ff!important;box-shadow:0 14px 35px rgba(34,91,160,.18)!important}
.community-page .category-card>span{font-size:22px!important}
.community-page .category-card b{font-size:15px!important;line-height:1.25!important}
.community-page .category-card small{color:#8fa5bf!important;margin-top:auto!important}
.community-page .category-card small strong{color:#64dbff!important}

/* Workspace */
.community-page .community-workspace{display:grid!important;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)!important;gap:18px!important;align-items:start!important}
.community-page .community-panel{border:1px solid #2b4968!important;border-radius:22px!important;background:linear-gradient(160deg,#0c1a2e,#091522)!important;padding:26px!important;box-shadow:0 18px 45px rgba(0,0,0,.18)!important;min-width:0!important}
.community-page .community-panel h2{font-size:28px!important;margin:0 0 16px!important;letter-spacing:-.03em!important}
.community-page .community-auth-tabs{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;padding:5px!important;border-radius:14px!important;background:#071321!important;border:1px solid #263f5c!important;margin-bottom:18px!important}
.community-page .community-auth-tabs button{border:0!important;border-radius:10px!important;background:transparent!important;color:#9fb3ca!important;font-weight:800!important;padding:11px 12px!important}
.community-page .community-auth-tabs button.active{background:linear-gradient(135deg,#3859d8,#8049e8)!important;color:white!important;box-shadow:0 8px 22px rgba(92,75,220,.22)!important}
.community-page .community-panel label{display:block!important;color:#cbd8e8!important;font-size:11px!important;font-weight:800!important;margin:13px 0 7px!important}
.community-page .community-panel input,.community-page .community-panel select,.community-page .community-panel textarea{width:100%!important;border:1px solid #355472!important;background:#f7fbff!important;color:#0b1420!important;border-radius:13px!important;padding:13px 14px!important;font:inherit!important;outline:none!important;transition:.2s ease!important}
.community-page .community-panel input:focus,.community-page .community-panel select:focus,.community-page .community-panel textarea:focus{border-color:#5bcfff!important;box-shadow:0 0 0 3px rgba(54,215,255,.13)!important}
.community-page .community-panel textarea{min-height:185px!important;resize:vertical!important;line-height:1.55!important}
.community-page .community-panel button.primary,.community-page .community-panel .primary{background:linear-gradient(135deg,#11c5ec,#5964f2)!important;color:#fff!important;border:0!important;border-radius:12px!important;font-weight:900!important;padding:12px 16px!important;min-height:44px!important}
.community-page .community-panel button:not(.primary):not(.text-link-btn){border:1px solid #36506e!important;background:#0b1a2e!important;color:#dbe8f7!important;border-radius:12px!important;padding:11px 14px!important}
.community-page .form-actions{display:flex!important;gap:9px!important;flex-wrap:wrap!important;margin-top:16px!important}
.community-page .community-account-links{display:flex!important;gap:12px!important;flex-wrap:wrap!important;margin-top:13px!important}
.community-page .text-link-btn{background:transparent!important;border:0!important;color:#70d9ff!important;padding:0!important;text-decoration:none!important;font-size:11px!important}
.community-page .signed-in-card{display:flex!important;gap:12px!important;align-items:center!important;padding:14px!important;border:1px solid #2d4a68!important;background:#081625!important;border-radius:15px!important}
.community-page .online-dot{width:10px!important;height:10px!important;border-radius:50%!important;background:#52e3ad!important;box-shadow:0 0 14px #52e3ad!important}
.community-page .inline-account-edit{display:grid!important;grid-template-columns:1fr auto!important;gap:8px!important}
.community-page .account-security-btn{width:100%!important;text-align:left!important;display:grid!important;gap:4px!important}
.community-page .account-security-btn small{color:#91a8c4!important}
.community-page .community-signin-required,.community-page .community-text-only-note,.community-page .muted{color:#8fa4bd!important}
.community-page #postForm{position:relative;overflow:hidden}
.community-page #postForm:before{content:"";position:absolute;right:-90px;top:-80px;width:210px;height:210px;border-radius:50%;background:radial-gradient(circle,rgba(54,215,255,.15),transparent 68%);pointer-events:none}
.community-page .community-feed-hidden{display:none!important}

/* Global menu safety */
.community-page nav.nav,.community-page nav.pro-nav,.community-page nav.journalism-nav,.community-page nav.love-nav{display:none!important}

@media(max-width:980px){
  .community-page .community-hero-grid{grid-template-columns:1fr}
  .community-page .community-workspace{grid-template-columns:1fr}
  .community-page .community-live-overview,.community-page .category-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:640px){
  .community-page .community-shell{padding:22px 0 72px}
  .community-page .wrap{width:min(100% - 22px,1180px)}
  .community-page .community-copy{padding:28px 22px 24px;border-radius:22px}
  .community-page .community-copy h1{font-size:clamp(43px,14vw,64px)!important;line-height:.95!important}
  .community-page .community-copy>p:not(.eyebrow){font-size:15px}
  .community-page .community-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .community-page .community-privacy-panel{padding:22px!important;border-radius:22px!important}
  .community-page .community-live-overview{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  .community-page .community-metric{padding:13px!important}
  .community-page .community-metric>span{width:37px;height:37px}
  .community-page .community-metric strong{font-size:22px!important}
  .community-page .community-categories{padding:18px!important}
  .community-page .category-grid{grid-template-columns:1fr 1fr!important;gap:9px!important}
  .community-page .category-card{padding:14px!important;min-height:122px!important}
  .community-page .community-panel{padding:20px!important;border-radius:19px!important}
  .community-page .inline-account-edit{grid-template-columns:1fr}
  .community-page .home-actions>*{flex:1 1 100%}
}
@media(max-width:390px){
  .community-page .community-stats,.community-page .community-live-overview,.community-page .category-grid{grid-template-columns:1fr!important}
}

/* V17.00 public Community privacy-copy cleanup */
.community-page .community-hero-grid.community-hero-public-clean{grid-template-columns:1fr!important}
.community-page .community-hero-public-clean .community-copy{max-width:none!important}
