/* ==========================================================================
   Auth & Profile page styles — extends styles.css
   ========================================================================== */

.auth-page {
  min-height: 100vh;
  padding: 140px 24px 60px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, var(--cyan), transparent 50%, var(--purple));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
}

.auth-head {
  text-align: center;
  margin-bottom: 28px;
}
.auth-head .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin-bottom: 8px;
}
.auth-head h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.auth-head p {
  color: var(--text-dim);
  font-size: 14.5px;
  margin-top: 6px;
}

.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.field input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(224, 21, 34, 0.1);
}
.field .hint {
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 6px;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #000;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(224, 21, 34, 0.3);
}
.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-alt {
  text-align: center;
  margin-top: 22px;
  font-size: 14px;
  color: var(--text-dim);
}
.auth-alt a {
  color: var(--cyan);
  font-weight: 600;
}
.auth-alt a:hover { text-decoration: underline; }

.error-msg {
  background: rgba(255, 56, 89, 0.1);
  border: 1px solid rgba(255, 56, 89, 0.3);
  color: var(--red);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  margin-bottom: 18px;
  display: none;
}
.error-msg.visible { display: block; }
.success-msg {
  background: rgba(57, 255, 124, 0.1);
  border: 1px solid rgba(57, 255, 124, 0.3);
  color: var(--green);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  margin-bottom: 18px;
  display: none;
}
.success-msg.visible { display: block; }

/* ==========================================================================
   Profile page
   ========================================================================== */

.profile-page {
  padding: 140px 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
  min-height: 100vh;
}
.profile-header {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  color: #000;
  flex-shrink: 0;
  text-shadow: 0 1px 2px rgba(255,255,255,0.3);
  overflow: hidden;
  position: relative;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-meta { flex: 1; min-width: 240px; }
.profile-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.profile-role {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-right: 8px;
  margin-bottom: 6px;
  background: rgba(180,180,180,0.10);
  color: var(--text-dim);
}
/* Rank badges. The top two carry a glow and a brighter border so standing is
   readable at a glance; the rest step down in weight. */
.profile-role.founder {
  background: linear-gradient(135deg, rgba(255,200,0,0.22), rgba(255,120,0,0.16));
  color: #ffd24a; border: 1px solid rgba(255,200,0,0.55);
  text-shadow: 0 0 10px rgba(255,200,0,0.55);
  box-shadow: 0 0 14px rgba(255,200,0,0.18);
}
.profile-role.owner {
  background: rgba(255,200,0,0.14); color: #ffc800;
  border: 1px solid rgba(255,200,0,0.4);
  text-shadow: 0 0 8px rgba(255,200,0,0.4);
}
.profile-role.co_owner {
  background: rgba(255,51,85,0.14); color: #ff6b80;
  border: 1px solid rgba(255,51,85,0.4);
  text-shadow: 0 0 8px rgba(255,51,85,0.4);
}
.profile-role.manager {
  background: rgba(138,12,22,0.15); color: #ff6b7a;
  border: 1px solid rgba(138,12,22,0.4);
}
.profile-role.head_admin {
  background: rgba(255,120,130,0.14); color: #ff8a92;
  border: 1px solid rgba(255,120,130,0.38);
}
.profile-role.admin {
  background: rgba(224,21,34,0.15); color: var(--electric);
  border: 1px solid rgba(224,21,34,0.38);
}
.profile-role.trial_admin {
  background: rgba(160,175,195,0.10); color: #a8b6c8;
  border: 1px solid rgba(160,175,195,0.3);
}
.profile-role.user { background: rgba(180,180,180,0.10); color: var(--text-dim); }
.profile-joined {
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 12px;
  margin-top: 4px;
  letter-spacing: 0.06em;
}
.profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-block {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: all .25s ease;
  min-width: 0;
  overflow: hidden;
}
.stat-block::before, .stat-block::after {
  content: ''; position: absolute; width: 11px; height: 11px; pointer-events: none;
}
.stat-block::before {
  top: -1px; left: -1px;
  border-top: 1px solid var(--border-strong); border-left: 1px solid var(--border-strong);
}
.stat-block::after {
  bottom: -1px; right: -1px;
  border-bottom: 1px solid var(--border-strong); border-right: 1px solid var(--border-strong);
}
.stat-block:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.stat-block-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 10px;
}
.stat-block-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}
.stat-block-value.cyan   { color: var(--electric); text-shadow: 0 0 16px rgba(224,21,34,0.45); }
.stat-block-value.green  { color: var(--acid);     text-shadow: 0 0 16px rgba(57,255,136,0.40); }
.stat-block-value.yellow { color: var(--amber);    text-shadow: 0 0 16px rgba(255,176,32,0.40); }
.stat-block-value.purple { color: var(--violet);   text-shadow: 0 0 16px rgba(138,12,22,0.45); }
.stat-block-value.red    { color: var(--crimson);  text-shadow: 0 0 16px rgba(255,51,85,0.45); }
/* long string values wrap instead of spilling out of the card */
.stat-block-value.text {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.stat-block-sub {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 6px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}
.panel h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.steam-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.steam-status .linked {
  font-family: var(--font-mono);
  color: var(--green);
}
.steam-status .unlinked {
  color: var(--text-dim);
}
.steam-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.steam-form input {
  flex: 1;
  min-width: 200px;
  padding: 10px 12px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
}
.steam-form input:focus {
  outline: none;
  border-color: var(--cyan);
}
.steam-form button {
  padding: 10px 18px;
  background: var(--cyan);
  color: #000;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.steam-form button:hover { background: #4fffff; }

.bans-list { display: flex; flex-direction: column; gap: 10px; }
.ban-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(0,0,0,0.3);
  border-left: 3px solid var(--red);
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
  gap: 10px;
}
.ban-row.expired { border-left-color: var(--text-mute); opacity: 0.6; }
.ban-row .ban-reason { font-weight: 600; }
.ban-row .ban-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
}

.empty-state {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-dim);
}
.empty-state .icon { font-size: 28px; margin-bottom: 8px; opacity: 0.5; }

/* ==========================================================================
   Notifications panel (on profile page)
   ========================================================================== */

.notif-row {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 8px;
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid var(--cyan);
  border-radius: 6px;
  align-items: flex-start;
}
.notif-row.read {
  border-left-color: var(--border-strong);
  opacity: 0.55;
}
.notif-content { flex: 1; }
.notif-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
.notif-body {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.notif-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  margin-top: 6px;
}
.notif-dismiss {
  background: rgba(224, 21, 34, 0.1);
  border: 1px solid rgba(224, 21, 34, 0.3);
  color: var(--cyan);
  width: 30px;
  height: 30px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  flex-shrink: 0;
}
.notif-dismiss:hover {
  background: var(--cyan);
  color: #000;
}
