/* Arena SMS — sign-in, user menu, users, announcements, rankings and landing builder. */
[hidden] { display: none !important; }
.btn-block { width: 100%; }

.auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.auth-brand {
  position: relative; overflow: hidden; padding: 64px 72px; display: flex; flex-direction: column; justify-content: center; color: #b9c1d0;
  background: radial-gradient(90% 70% at 0% 0%, rgba(198, 164, 106, .18), transparent 60%), linear-gradient(150deg, #0e1a2f, #1b2d4d);
}
.auth-brand::after { content: ''; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(198, 164, 106, .18); }
.auth-crest { width: 58px; height: 66px; color: var(--gold-2); margin-bottom: 26px; }
.auth-crest svg { width: 100%; height: 100%; }
.auth-brand .kicker { color: var(--gold-2); }
.auth-brand h1 { font-size: 54px; color: #faf6ee; line-height: 1.05; margin: 6px 0 14px; }
.auth-brand p { max-width: 460px; }
.auth-events { margin-top: 42px; max-width: 460px; position: relative; z-index: 1; }
.auth-event { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-top: 8px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 10px; color: #c9cfdb; }
.auth-event:hover { border-color: rgba(198, 164, 106, .5); color: #fff; }
.auth-event > span { flex: 1; }
.auth-event strong { display: block; color: #faf6ee; font-weight: 500; }
.auth-event small { display: block; color: #8d98ad; font-size: 12px; }
.auth-event .ico { color: var(--gold-2); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: var(--bg); }
.auth-card { width: 100%; max-width: 430px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 38px 36px; box-shadow: var(--shadow); }
.auth-card h2 { font-size: 36px; margin-bottom: 6px; }
.auth-card form { display: flex; flex-direction: column; gap: 15px; margin-top: 24px; }
.auth-error { color: var(--red); font-size: 13px; }
.auth-error:empty { display: none; }
.auth-switch { text-align: center; font-size: 13px; color: var(--muted); }
.auth-switch a { color: var(--gold); font-weight: 600; }
.auth-note { display: flex; gap: 8px; font-size: 12px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line-2); padding: 10px 12px; border-radius: 8px; }
.auth-note .ico { color: var(--gold); margin-top: 1px; }

.user-menu { position: relative; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); background: var(--surface); border-radius: 30px; cursor: pointer; font: inherit; color: var(--ink); text-align: left; }
.user-chip:hover { border-color: var(--gold-2); }
.user-chip > .ico { transform: rotate(90deg); color: var(--muted); }
.uc-text strong { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.2; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-text small { display: block; font-size: 11px; color: var(--muted); }
.user-pop { display: none; position: absolute; right: 0; top: 50px; width: 270px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 50; }
.user-pop.open { display: block; }
.user-pop a, .user-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: transparent; font: inherit; font-size: 13px; color: var(--ink-2); border-radius: 8px; cursor: pointer; text-align: left; }
.user-pop a:hover, .user-pop button:hover { background: var(--surface-2); color: var(--ink); }
.up-head { padding: 10px 10px 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.up-head strong { display: block; }
.up-head small { display: block; color: var(--muted); margin-bottom: 8px; }
.impersonation { display: flex; align-items: center; gap: 12px; padding: 10px 40px; background: var(--gold-soft); border-bottom: 1px solid #e8d8b8; color: #6f5428; font-size: 13px; }
.impersonation .btn { margin-left: auto; }

.role-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.role-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
.role-tile strong { display: block; font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.role-tile span { font-size: 12px; color: var(--muted); }
.role-tile.on, .role-tile:hover { border-color: var(--gold-2); background: var(--gold-soft); }
.perm-table td:first-child { min-width: 280px; }

.ann-list { display: flex; flex-direction: column; gap: 14px; }
.ann { padding: 18px 22px; }
.ann + .ann { border-top: 1px solid var(--line-2); }
.ann.pinned { box-shadow: inset 3px 0 0 var(--gold-2); }
.ann-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ann-meta .ann-del { margin-left: auto; }
.ann h4 { font-size: 21px; margin: 8px 0 4px; }
.ann p { color: var(--ink-2); margin-bottom: 8px; }
.ready { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; align-items: center; justify-content: center; background: var(--line-2); color: var(--muted); }
.ready.ok { background: var(--green-soft); color: var(--green); }
.me-hero-main { display: flex; gap: 20px; align-items: center; padding: 24px; flex-wrap: wrap; }
.me-hero-main h2 { font-size: 32px; }

.lp-builder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 22px; align-items: start; }
.lp-builder > * { min-width: 0; }
.lp-preview-col { position: sticky; top: 96px; }
.lp-preview { overflow-y: auto; max-height: calc(100vh - 190px); }
.lp-sizer { position: relative; overflow: hidden; }
.lp-scale { width: 1280px; transform-origin: top left; }
.lp-url { display: flex; gap: 8px; }
.lp-url input { flex: 1; min-width: 0; }
.tpl-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tpl-swatch { display: flex; flex-direction: column; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; font: 500 11.5px var(--sans); color: var(--ink-2); text-align: left; }
.tpl-swatch:hover { border-color: var(--gold-2); }
.tpl-swatch.on { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); color: var(--ink); }
.tpl-swatch .sw { height: 34px; border-radius: 6px; display: flex; align-items: flex-end; gap: 4px; padding: 5px; }
.tpl-swatch .sw i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.tpl-card { overflow: hidden; display: flex; flex-direction: column; }
.tpl-thumb { height: 230px; overflow: hidden; border-bottom: 1px solid var(--line); position: relative; }
.tpl-thumb .lp-scale { pointer-events: none; }
.tpl-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tpl-body h3 { font-size: 22px; }
.tpl-body .btn-row { margin-top: auto; padding-top: 8px; }

@media (max-width: 1080px) {
  .lp-builder { grid-template-columns: minmax(0, 1fr); }
  .lp-preview-col { position: static; }
  .role-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { padding: 36px 24px; }
  .auth-brand h1 { font-size: 36px; }
  .uc-text, .user-chip > .ico { display: none; }
  .user-chip { padding: 3px; }
  .impersonation { padding: 10px 16px; flex-wrap: wrap; }
  .tpl-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
