:root {
  --bg: #07111d;
  --bg-deep: #030811;
  --bg-soft: #0d1827;
  --panel: rgba(10, 19, 34, 0.8);
  --panel-strong: rgba(7, 16, 29, 0.92);
  --panel-border: rgba(131, 182, 226, 0.14);
  --text: #f4f8ff;
  --muted: #93a8c4;
  --muted-strong: #c5d6ec;
  --primary: #43c4ff;
  --primary-strong: #16a3ea;
  --primary-soft: rgba(67, 196, 255, 0.14);
  --success: #3ad58b;
  --warning: #ffbf47;
  --danger: #ff6c75;
  --shadow: 0 28px 80px rgba(2, 9, 18, 0.48);
  --shadow-soft: 0 18px 42px rgba(1, 7, 16, 0.36);
  --radius: 28px;
  --radius-sm: 18px;
  --font: "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(2, 8, 17, 0.3), rgba(2, 8, 17, 0.88)),
    radial-gradient(circle at 12% 18%, rgba(67, 196, 255, 0.18), transparent 26%),
    radial-gradient(circle at 82% 8%, rgba(58, 213, 139, 0.12), transparent 22%),
    radial-gradient(circle at 50% 120%, rgba(22, 163, 234, 0.18), transparent 30%),
    linear-gradient(180deg, #08111c 0%, #050b14 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 12, 21, 0.2), rgba(4, 12, 21, 0.9)),
    url("/images/stadium-panel-bg.png") center/cover no-repeat;
  opacity: 0.2;
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.06), transparent 35%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.014) 0,
      rgba(255, 255, 255, 0.014) 1px,
      transparent 1px,
      transparent 120px
    );
  pointer-events: none;
  z-index: -1;
}

a {
  color: var(--primary);
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

code,
pre,
textarea,
input,
select,
button {
  font: inherit;
}

.auth-body {
  overflow-x: hidden;
}

.auth-body::before {
  opacity: 0.95;
  background:
    linear-gradient(90deg, rgba(5, 12, 22, 0.2), rgba(5, 12, 22, 0.86)),
    url("/images/login-football-hero.png") center/cover no-repeat;
}

.auth-body::after {
  background:
    radial-gradient(circle at 20% 30%, rgba(67, 196, 255, 0.2), transparent 24%),
    radial-gradient(circle at 85% 20%, rgba(58, 213, 139, 0.08), transparent 18%);
}

.auth-shell,
.app-shell {
  width: 100%;
}

.auth-shell {
  min-height: 100vh;
  padding: 28px;
}

.auth-panel {
  max-width: 1440px;
  min-height: calc(100vh - 56px);
  margin: 0 auto;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.18fr) minmax(380px, 0.82fr);
  align-items: stretch;
}

.hero-copy,
.card,
.sidebar,
.topbar {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 32%),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero-copy::before,
.card::before,
.sidebar::before,
.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 30%);
  pointer-events: none;
}

.hero-copy,
.card {
  padding: 28px;
}

.card {
  animation: revealUp 0.45s ease both;
}

.hero-copy h1,
.topbar h1 {
  margin: 0;
  font-size: clamp(2.35rem, 3.8vw, 4.25rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.eyebrow {
  margin: 0 0 12px;
  color: #85d9ff;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.73rem;
  font-weight: 700;
}

.auth-visual {
  min-height: 720px;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(180deg, rgba(6, 12, 21, 0.06), rgba(5, 12, 22, 0.9)),
    url("/images/login-football-hero.png") center/cover no-repeat;
}

.auth-visual-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(67, 196, 255, 0.28), transparent 24%),
    linear-gradient(110deg, rgba(4, 11, 20, 0.2), rgba(4, 11, 20, 0.88) 60%);
}

.auth-visual-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.auth-lead {
  max-width: 580px;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted-strong);
}

.auth-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.auth-feature {
  padding: 18px;
  border-radius: 22px;
  background: rgba(8, 17, 31, 0.52);
  border: 1px solid rgba(151, 201, 243, 0.14);
  box-shadow: var(--shadow-soft);
}

.auth-feature strong,
.auth-feature span {
  display: block;
}

.auth-feature strong {
  margin-bottom: 8px;
  font-size: 1rem;
}

.auth-feature span {
  color: var(--muted);
  line-height: 1.5;
}

.auth-crests {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 30px;
}

.auth-crests img {
  width: 68px;
  height: 68px;
  padding: 8px;
  object-fit: contain;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 30px rgba(5, 14, 24, 0.28);
}

.auth-form,
.form-card,
.stack {
  display: grid;
  gap: 16px;
}

.auth-form-premium {
  justify-content: center;
  align-content: center;
  min-height: 720px;
  padding: 36px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 26%),
    linear-gradient(180deg, rgba(5, 12, 21, 0.92), rgba(6, 12, 22, 0.84));
}

.auth-form-head {
  display: grid;
  gap: 10px;
  margin-bottom: 6px;
}

.auth-form h2 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.auth-footer-note {
  margin-top: 8px;
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 9px;
  color: var(--muted-strong);
  font-size: 0.97rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 15px 18px;
  border-radius: 18px;
  border: 1px solid rgba(143, 188, 231, 0.17);
  background: rgba(6, 14, 25, 0.84);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

input::placeholder,
textarea::placeholder {
  color: #7391b0;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(67, 196, 255, 0.52);
  box-shadow: 0 0 0 4px rgba(67, 196, 255, 0.12);
  transform: translateY(-1px);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
  background: rgba(147, 168, 196, 0.12);
  transition: transform 0.2s ease, box-shadow 0.22s ease, background 0.2s ease, opacity 0.2s ease;
}

button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 24px rgba(5, 15, 27, 0.22);
}

.primary-button,
button[type="submit"] {
  color: #03111b;
  background: linear-gradient(135deg, #61d8ff 0%, #20aef0 58%, #0f88d9 100%);
  box-shadow: 0 18px 36px rgba(15, 136, 217, 0.22);
}

.primary-button:hover,
button[type="submit"]:hover {
  box-shadow: 0 22px 38px rgba(15, 136, 217, 0.3);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.ghost-danger {
  background: rgba(255, 108, 117, 0.12);
  color: #ffd0d4;
}

.danger {
  background: rgba(255, 108, 117, 0.12);
  color: #ffd0d4;
}

button:disabled,
.is-loading {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.muted,
.helper {
  color: var(--muted);
}

.error-text {
  color: #ffb2b8;
}

.password-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.password-field .toggle-secret {
  min-width: 110px;
}

.app-shell {
  position: relative;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  margin: 18px;
  padding: 22px;
  position: sticky;
  top: 18px;
  height: calc(100vh - 36px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 20%),
    linear-gradient(180deg, rgba(4, 11, 20, 0.96), rgba(7, 15, 27, 0.92));
  overflow: hidden;
}

.sidebar-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 12, 22, 0.16), rgba(5, 12, 22, 0.86)),
    url("/images/stadium-panel-bg.png") center/cover no-repeat;
  opacity: 0.15;
  pointer-events: none;
}

.brand,
.sidebar-nav {
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand p {
  margin: 5px 0 0;
  color: var(--muted);
}

.brand-badge {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(97, 216, 255, 0.98), rgba(15, 136, 217, 0.94));
  color: #02101a;
  box-shadow: 0 14px 24px rgba(15, 136, 217, 0.24);
}

.brand-badge svg {
  width: 28px;
  height: 28px;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(97, 216, 255, 0.35) transparent;
}

.sidebar-nav::-webkit-scrollbar {
  width: 8px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(97, 216, 255, 0.28);
}

.nav-link {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px;
  border-radius: 20px;
  color: #cfe2f7;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  transform: translateX(4px);
  color: var(--text);
  background: linear-gradient(135deg, rgba(67, 196, 255, 0.14), rgba(67, 196, 255, 0.04));
  border-color: rgba(67, 196, 255, 0.16);
}

.nav-icon {
  width: 46px;
  height: 40px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
}

.nav-icon svg {
  width: 20px;
  height: 20px;
}

.nav-text {
  font-weight: 600;
}

.live-pill,
.topbar-pill,
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(58, 213, 139, 0.14);
  animation: pulse 1.8s infinite;
}

.content {
  padding: 18px 18px 28px 0;
  display: grid;
  align-content: start;
  gap: 18px;
}

.topbar {
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 35%),
    linear-gradient(180deg, rgba(6, 14, 25, 0.74), rgba(7, 15, 27, 0.86));
}

.topbar-main {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.topbar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.topbar-pill {
  color: #def5ff;
  background: rgba(67, 196, 255, 0.12);
  border: 1px solid rgba(67, 196, 255, 0.12);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mobile-menu-button {
  display: none;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  display: block;
}

.grid {
  display: grid;
  gap: 18px;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stats-grid-dashboard {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.two-columns {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.95fr);
}

.compact-grid,
.filter-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.hero-card {
  min-height: 280px;
  padding: 0;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background:
    linear-gradient(90deg, rgba(4, 11, 20, 0.2), rgba(4, 11, 20, 0.82)),
    url("/images/stadium-panel-bg.png") center/cover no-repeat;
}

.hero-card-media {
  min-height: 280px;
}

.hero-card-content {
  padding: 32px;
  display: grid;
  align-content: center;
  gap: 16px;
  background: linear-gradient(90deg, rgba(6, 13, 23, 0.22), rgba(6, 13, 23, 0.78));
}

.hero-card h2 {
  margin: 0;
  font-size: clamp(1.85rem, 2.4vw, 2.9rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-copy-text {
  margin: 0;
  max-width: 680px;
  color: var(--muted-strong);
  line-height: 1.72;
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-chip {
  background: rgba(255, 255, 255, 0.09);
}

.stat-card {
  min-height: 176px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.stat-card-featured {
  background:
    linear-gradient(180deg, rgba(97, 216, 255, 0.16), rgba(6, 14, 25, 0.2)),
    linear-gradient(180deg, rgba(6, 14, 25, 0.88), rgba(6, 14, 25, 0.8));
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(67, 196, 255, 0.12);
  color: #b3edff;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.stat-card span {
  color: var(--muted);
}

.stat-card strong {
  font-size: 1.38rem;
  line-height: 1.2;
  word-break: break-word;
}

.stat-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.spotlight-card {
  background:
    radial-gradient(circle at 90% 20%, rgba(67, 196, 255, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(6, 14, 25, 0.9), rgba(6, 14, 25, 0.78));
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-head h2,
.card h2 {
  margin: 0;
  font-size: 1.58rem;
  letter-spacing: -0.03em;
}

.summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.summary-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
}

.summary-list-rich li {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.summary-list strong {
  color: var(--text);
}

.table-wrap {
  overflow: auto;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(5, 13, 22, 0.34);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  vertical-align: top;
}

thead tr {
  background: rgba(255, 255, 255, 0.03);
}

th {
  color: #85a7c7;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.actions,
.actions-row,
.inline-edit {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.inline-edit-row td {
  background: rgba(255, 255, 255, 0.02);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.status-pill.ok {
  background: rgba(58, 213, 139, 0.16);
  color: #9cf3c1;
}

.status-pill.warn {
  background: rgba(255, 191, 71, 0.16);
  color: #ffd588;
}

.status-pill.off {
  background: rgba(255, 108, 117, 0.16);
  color: #ffb2b8;
}

.switch {
  display: flex;
  align-items: center;
  gap: 12px;
}

.switch input {
  width: 18px;
  height: 18px;
}

.alert {
  padding: 16px 20px;
  border-radius: 18px;
  border: 1px solid transparent;
  backdrop-filter: blur(14px);
}

.alert.success {
  background: rgba(58, 213, 139, 0.12);
  border-color: rgba(58, 213, 139, 0.24);
}

.alert.error {
  background: rgba(255, 108, 117, 0.12);
  border-color: rgba(255, 108, 117, 0.24);
}

.json-box {
  white-space: pre-wrap;
  padding: 18px;
  background: rgba(6, 14, 25, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  overflow: auto;
}

.detail-image {
  max-width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin: 10px 0 18px;
}

.teams-layout {
  display: grid;
  grid-template-columns: minmax(310px, 370px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.teams-create-card {
  position: sticky;
  top: 18px;
}

.teams-create-head h2 {
  margin-bottom: 10px;
}

.teams-create-head .helper {
  margin: 0;
  line-height: 1.6;
}

.teams-board {
  display: grid;
  gap: 18px;
}

.teams-board-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.teams-summary-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 12px;
  min-width: min(100%, 420px);
}

.teams-summary-stats div,
.team-meta-box {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.teams-summary-stats strong,
.team-meta-box strong {
  display: block;
  font-size: 1.32rem;
  margin-bottom: 6px;
}

.teams-summary-stats span,
.team-meta-box span {
  color: var(--muted);
}

.teams-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.team-card {
  display: grid;
  gap: 18px;
  align-content: start;
}

.team-card-top,
.team-card-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.team-card-brand {
  justify-content: flex-start;
}

.team-card-brand h2 {
  margin-bottom: 6px;
}

.team-card-crest {
  width: 76px;
  height: 76px;
  object-fit: contain;
  flex: 0 0 76px;
  padding: 8px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(231, 237, 245, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68), 0 12px 28px rgba(4, 12, 21, 0.2);
}

.team-card-crest-placeholder {
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #08111f;
}

.team-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.team-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.keyword-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(67, 196, 255, 0.1);
  border: 1px solid rgba(67, 196, 255, 0.16);
  color: #dcf7ff;
  font-size: 0.92rem;
}

.keyword-chip-muted {
  background: rgba(147, 168, 196, 0.12);
  border-color: rgba(147, 168, 196, 0.18);
  color: var(--muted);
}

.team-edit-form {
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.team-keyword-tools {
  display: grid;
  gap: 10px;
  margin-top: -4px;
}

.team-keyword-tools .ghost-button {
  justify-self: start;
}

.ai-keywords-status {
  margin: 0;
  min-height: 22px;
}

.team-active-switch {
  align-self: end;
  min-height: 54px;
  padding: 0 4px 10px 4px;
}

.team-card-actions {
  justify-content: flex-start;
}

.team-delete-form {
  margin-top: -2px;
}

.bulk-danger-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.12);
    opacity: 0.7;
  }
}

@media (max-width: 1200px) {
  .hero-card {
    grid-template-columns: 1fr;
  }

  .hero-card-media {
    display: none;
  }
}

@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: 18px;
    top: 18px;
    bottom: 18px;
    height: auto;
    width: min(86vw, 330px);
    margin: 0;
    transform: translateX(calc(-100% - 28px));
    transition: transform 0.24s ease;
    z-index: 30;
  }

  body.nav-open .sidebar {
    transform: translateX(0);
  }

  .content {
    padding: 18px;
  }

  .auth-panel,
  .two-columns,
  .teams-layout {
    grid-template-columns: 1fr;
  }

  .teams-create-card {
    position: static;
  }

  .mobile-menu-button {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 820px) {
  .auth-shell {
    padding: 18px;
  }

  .auth-panel {
    min-height: auto;
  }

  .auth-visual,
  .auth-form-premium {
    min-height: auto;
  }

  .auth-feature-grid {
    grid-template-columns: 1fr;
  }

  .teams-summary-stats,
  .team-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-main {
    align-items: flex-start;
  }

  .topbar-actions {
    justify-content: stretch;
  }

  .topbar-actions a,
  .topbar-actions form,
  .topbar-actions button {
    width: 100%;
  }

  .hero-copy,
  .card,
  .sidebar,
  .topbar {
    padding: 20px;
    border-radius: 22px;
  }

  .sidebar-nav {
    grid-template-columns: 1fr;
  }

  .teams-board-summary,
  .team-card-top,
  .team-card-brand {
    flex-direction: column;
    align-items: stretch;
  }

  .stats-grid,
  .compact-grid,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  th,
  td {
    padding: 12px 10px;
  }
}
