:root {
    --wcc-navy: #061d36;
    --wcc-navy-2: #123860;
    --wcc-blue: #0f5fb9;
    --wcc-green: #16833c;
    --wcc-gold: #c9a247;
    --wcc-orange: #e65f18;
    --wcc-purple: #5b2695;
    --wcc-teal: #087c78;
    --wcc-red: #a62f35;
    --wcc-text: #10213b;
    --wcc-muted: #40506a;
    --wcc-border: #dfe5ec;
}

body:has(.wcc-portal-wrap) .entry-title,
body:has(.wcc-portal-wrap) .page-title { display:none; }

.wcc-portal-wrap {
    max-width:100%; margin:0 auto; padding:0;
    font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    color:var(--wcc-text); background:#fff;
    box-shadow:0 14px 48px rgba(7,31,60,.10); overflow:hidden;
}

.wcc-portal-header {
    background:radial-gradient(circle at center top,var(--wcc-navy-2),var(--wcc-navy) 72%);
    border-bottom:4px solid var(--wcc-gold); min-height:190px;
    display:flex; justify-content:center; align-items:center; padding:24px 20px 26px;
}
.wcc-main-logo { width:154px; height:auto; display:block; filter:drop-shadow(0 10px 20px rgba(0,0,0,.32)); }

.wcc-portal-hero { text-align:center; padding:34px 20px 28px; }
.wcc-portal-hero h1 { margin:0; font-size:clamp(38px,5vw,58px); line-height:1.05; color:var(--wcc-navy); font-weight:850; letter-spacing:-.03em; }
.wcc-hero-divider { display:flex; align-items:center; justify-content:center; gap:16px; margin:22px 0 14px; }
.wcc-hero-divider span { width:62px; height:2px; background:var(--wcc-gold); display:block; }
.wcc-hero-divider img { width:42px; height:auto; display:block; }
.wcc-subtitle { margin:0; font-size:20px; color:var(--wcc-muted); }

/* Dynamic grid: no nth-child positioning so adding/removing apps never breaks layout. */
.wcc-module-grid {
    max-width:1220px; margin:0 auto; display:grid;
    grid-template-columns:repeat(auto-fit,minmax(330px,1fr));
    gap:22px; padding:0 28px 34px;
}

.wcc-module-card {
    --app-accent:var(--wcc-navy);
    --app-soft:#eef3f8;
    position:relative; background:#fff; border:1px solid var(--wcc-border); border-radius:10px;
    box-shadow:0 9px 24px rgba(7,31,60,.10); padding:26px 24px 22px; min-height:236px;
    display:grid; grid-template-columns:96px 1fr; gap:20px; align-items:start;
    transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.wcc-module-card:hover { transform:translateY(-3px); box-shadow:0 18px 40px rgba(7,31,60,.14); }
.wcc-module-card.coming { box-shadow:0 6px 18px rgba(7,31,60,.07); }

.wcc-accent-purple { --app-accent:var(--wcc-purple); --app-soft:#f4effc; }
.wcc-accent-blue   { --app-accent:var(--wcc-blue);   --app-soft:#eef6ff; }
.wcc-accent-green  { --app-accent:var(--wcc-green);  --app-soft:#eef8f0; }
.wcc-accent-gold   { --app-accent:#a87808;           --app-soft:#fff8e9; }
.wcc-accent-orange { --app-accent:var(--wcc-orange); --app-soft:#fff0e9; }
.wcc-accent-teal   { --app-accent:var(--wcc-teal);   --app-soft:#edf9f8; }
.wcc-accent-navy   { --app-accent:var(--wcc-navy);   --app-soft:#eef3f8; }
.wcc-accent-red    { --app-accent:var(--wcc-red);    --app-soft:#fff0f1; }

.wcc-beta-badge {
    position:absolute; top:14px; right:14px; display:inline-flex; align-items:center; justify-content:center;
    min-width:54px; padding:6px 10px; border-radius:999px; background:#fff3cd; border:1px solid #e4b83e;
    color:#7a5200; font-size:12px; font-weight:850; letter-spacing:.06em; line-height:1; text-transform:uppercase;
    box-shadow:0 4px 10px rgba(122,82,0,.12);
}

.wcc-module-icon {
    width:96px; height:96px; display:grid; place-items:center; border-radius:20px;
    background:linear-gradient(145deg,var(--app-soft),#fff); color:var(--app-accent);
    font-size:48px; font-weight:900; line-height:1;
}
.wcc-module-content h2 { margin:4px 0 12px; font-size:25px; line-height:1.12; color:var(--app-accent); font-weight:800; }
.wcc-module-content p { margin:0; color:var(--wcc-text); font-size:16px; line-height:1.55; }

.wcc-module-button {
    grid-column:1/-1; display:flex; justify-content:center; align-items:center; gap:10px;
    text-decoration:none; border-radius:7px; min-height:52px; background:var(--app-accent); color:#fff!important;
    font-size:16px; font-weight:800; margin-top:4px;
}
.wcc-module-card.active:hover .wcc-module-button { filter:brightness(1.08); }
.wcc-module-button.disabled { cursor:not-allowed; background:var(--app-soft); color:var(--app-accent)!important; }

.wcc-portal-footer {
    border-top:4px solid var(--wcc-gold); background:radial-gradient(circle at center top,var(--wcc-navy-2),var(--wcc-navy) 72%);
    text-align:center; padding:26px 12px 28px; color:#fff; font-size:15px;
}

@media (max-width:760px) {
    .wcc-portal-header { min-height:150px; }
    .wcc-main-logo { width:126px; }
    .wcc-module-grid { grid-template-columns:1fr; padding:0 18px 28px; }
    .wcc-module-card { grid-template-columns:76px 1fr; padding:22px; min-height:auto; }
    .wcc-module-icon { width:76px; height:76px; font-size:38px; border-radius:16px; }
}
@media (max-width:520px) {
    .wcc-portal-hero { padding-top:30px; }
    .wcc-module-card { grid-template-columns:1fr; text-align:center; }
    .wcc-module-icon { margin:0 auto; }
}

/* Licensing state */
.wcc-license-restricted { padding-bottom:70px; }
.wcc-license-status {
    display:inline-block; margin:24px auto 0; padding:12px 18px; border-radius:8px;
    background:#fff0f1; border:1px solid #e1a8ad; color:#7f2028; font-size:15px;
}
.wcc-admin-link {
    display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:0 18px;
    border-radius:7px; background:var(--wcc-navy); color:#fff!important; text-decoration:none; font-weight:800;
}

/* Identity / sign-in */
.wcc-login-hero { padding-bottom:60px; }
.wcc-login-panel { max-width:520px; margin:30px auto 0; padding:26px; text-align:left; border:1px solid var(--wcc-border); border-radius:12px; background:#fff; box-shadow:0 12px 28px rgba(7,31,60,.10); }
.wcc-login-panel label { display:block; font-weight:700; margin-bottom:6px; color:var(--wcc-text); }
.wcc-login-panel input[type="text"], .wcc-login-panel input[type="password"] { width:100%; box-sizing:border-box; min-height:46px; border:1px solid #bac5d3; border-radius:7px; padding:9px 11px; }
.wcc-login-panel .login-submit { margin-bottom:0; }
.wcc-login-panel .button-primary { width:100%; min-height:46px; border:0; border-radius:7px; background:var(--wcc-navy); color:#fff; font-weight:800; cursor:pointer; }
.wcc-login-links { text-align:center; margin:12px 0 0; }
.wcc-login-separator { display:flex; align-items:center; gap:12px; margin:22px 0; color:var(--wcc-muted); }
.wcc-login-separator:before,.wcc-login-separator:after { content:""; height:1px; background:var(--wcc-border); flex:1; }
.wcc-provider-grid { display:grid; gap:10px; }
.wcc-provider-button { min-height:44px; border:1px solid #cbd5df; border-radius:7px; background:#f7f9fb; font-weight:750; color:#5f6b7a; }
.wcc-login-note { font-size:12px; color:var(--wcc-muted); text-align:center; }
.wcc-user-line { margin:14px 0 0; color:var(--wcc-muted); font-size:14px; }
.wcc-user-line a { color:var(--wcc-blue); }
.wcc-provider-button { display:flex; align-items:center; justify-content:center; text-decoration:none; cursor:pointer; }
.wcc-provider-button:hover { background:#eef3f8; color:var(--wcc-navy); }
.wcc-login-error { margin:0 0 18px; padding:12px 14px; border:1px solid #e2a0a6; border-radius:7px; background:#fff0f1; color:#7f2028; font-size:14px; font-weight:650; }
