:root {
  --bg: #07111f;
  --bg-2: #0d1831;
  --bg-3: #142447;
  --surface: #ffffff;
  --surface-soft: #f6f8fc;
  --surface-warm: #fbfcff;
  --text: #111827;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: rgba(148, 163, 184, 0.24);
  --line-strong: rgba(15, 23, 42, 0.1);
  --primary: #23c16b;
  --primary-dark: #0f8f4f;
  --primary-soft: #e8f8f0;
  --accent: #38bdf8;
  --danger: #ef4444;
  --warning: #f59e0b;
  --shadow: 0 26px 80px rgba(2, 6, 23, 0.16);
  --shadow-soft: 0 16px 44px rgba(15, 23, 42, 0.09);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 6%, rgba(35, 193, 107, 0.28), transparent 24rem),
    radial-gradient(circle at 92% 4%, rgba(56, 189, 248, 0.24), transparent 26rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 360px, #eef3f9 360px, #f7f9fc 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, black, transparent 58%);
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

h1 {
  margin-top: 20px;
  max-width: 860px;
  font-size: clamp(42px, 7vw, 78px);
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
}

h3 {
  font-size: 22px;
}

p {
  color: var(--muted);
  line-height: 1.62;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 64px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 32px;
  padding: 14px 16px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  background: rgba(7, 17, 31, 0.76);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.2);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  min-width: fit-content;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  border-radius: 18px;
  background:
    radial-gradient(circle at 28% 26%, rgba(255, 255, 255, 0.9), transparent 18%),
    conic-gradient(from 145deg, #23c16b, #38bdf8, #1d4ed8, #23c16b);
  box-shadow: 0 16px 38px rgba(35, 193, 107, 0.22);
  font-size: 24px;
}

.brand strong {
  display: block;
  font-size: 22px;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}

.nav-pill,
.icon-btn,
.btn {
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.nav-pill,
.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-pill:hover,
.icon-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.16);
}

.nav-pill.active {
  color: #07111f;
  background: #fff;
  box-shadow: 0 14px 34px rgba(255, 255, 255, 0.14);
}

.nav-emoji {
  font-size: 15px;
  line-height: 1;
}

.app-main {
  min-height: 70vh;
}

.panel,
.card,
.skeleton-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 24px;
  align-items: stretch;
}

.hero-copy {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  padding: 54px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.56)),
    radial-gradient(circle at 78% 28%, rgba(56, 189, 248, 0.32), transparent 18rem),
    radial-gradient(circle at 28% 80%, rgba(35, 193, 107, 0.34), transparent 20rem),
    linear-gradient(145deg, #0a1224 0%, #101d3f 54%, #132b4b 100%);
}

.hero-copy::before,
.hero-copy::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-copy::before {
  right: -130px;
  top: -90px;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-copy::after {
  right: 46px;
  bottom: 42px;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 68%);
}

.hero-copy > * {
  position: relative;
  z-index: 1;
}

.hero-copy p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: #086b3c;
  background: var(--primary-soft);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.eyebrow.dark {
  color: #bbf7d0;
  background: rgba(35, 193, 107, 0.14);
  border: 1px solid rgba(35, 193, 107, 0.24);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-pills span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  font-weight: 800;
  font-size: 13px;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.stat {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.stat strong {
  display: block;
  color: #fff;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.stat span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.auth-card {
  padding: 26px;
  align-self: stretch;
}

.auth-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.auth-card-head h2 {
  font-size: 26px;
}

.auth-card-head p {
  margin: 5px 0 0;
  font-size: 14px;
}

.auth-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(145deg, #23c16b, #38bdf8);
  box-shadow: 0 16px 34px rgba(35, 193, 107, 0.2);
  font-size: 24px;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: var(--surface-soft);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-radius: 24px;
  margin-bottom: 20px;
}

.tab-btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 12px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.active {
  color: #07111f;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.auth-heading {
  margin-bottom: 14px;
}

.auth-heading p {
  margin: 8px 0 0;
}

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

.form-stack {
  display: grid;
  gap: 13px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span,
.label {
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 13px 15px;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  outline: none;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(35, 193, 107, 0.78);
  box-shadow: 0 0 0 4px rgba(35, 193, 107, 0.13);
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

.check-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #334155;
  font-size: 13px;
  font-weight: 850;
}

.check-field input {
  width: auto;
  min-height: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 19px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #13a45a);
  box-shadow: 0 16px 32px rgba(35, 193, 107, 0.22);
  font-weight: 950;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(35, 193, 107, 0.28);
}

.btn.secondary {
  color: #0f172a;
  background: #edf2f7;
  box-shadow: none;
}

.btn.secondary:hover {
  background: #e2e8f0;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.btn.danger {
  background: linear-gradient(135deg, #fb7185, var(--danger));
  box-shadow: 0 16px 32px rgba(239, 68, 68, 0.18);
}

.btn.warning {
  background: linear-gradient(135deg, #fbbf24, var(--warning));
  color: #1f2937;
}

.btn.ghost {
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: none;
}

.btn.small {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 13px;
}

.full {
  width: 100%;
}

.demo-box {
  margin-top: 18px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fafc, #fff);
  color: var(--muted);
  font-size: 13px;
}

.demo-box code {
  color: var(--text);
  font-weight: 900;
}

.dashboard {
  display: grid;
  gap: 22px;
}

.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 12% 0%, rgba(35, 193, 107, 0.28), transparent 20rem),
    radial-gradient(circle at 86% 0%, rgba(56, 189, 248, 0.2), transparent 18rem),
    linear-gradient(135deg, rgba(12, 20, 38, 0.96), rgba(15, 30, 64, 0.94));
  box-shadow: var(--shadow);
}

.dashboard-title p {
  max-width: 780px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.dashboard-account {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 260px;
}

.dashboard-account > span:not(.badge):not(.dashboard-avatar) {
  display: grid;
  gap: 2px;
  text-align: right;
}

.dashboard-account strong {
  max-width: 230px;
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-account small {
  color: rgba(255, 255, 255, 0.65);
}

.dashboard-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  padding: 24px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.card.flat {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.card-list {
  display: grid;
  gap: 16px;
}

.badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 7px 11px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.badge.green {
  color: #087344;
  border-color: rgba(35, 193, 107, 0.22);
  background: #e8f8f0;
}

.badge.orange {
  color: #9a5a00;
  border-color: rgba(245, 158, 11, 0.22);
  background: #fff4df;
}

.badge.red {
  color: #b4232c;
  border-color: rgba(239, 68, 68, 0.2);
  background: #ffedf0;
}

.dashboard-head .badge {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.dashboard-head .badge.green {
  background: rgba(35, 193, 107, 0.18);
  color: #bbf7d0;
}

.dashboard-head .badge.orange {
  background: rgba(245, 158, 11, 0.18);
  color: #fde68a;
}

.profile-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #fff;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 145px;
  pointer-events: none;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.35), transparent 7rem),
    linear-gradient(135deg, rgba(35, 193, 107, 0.2), rgba(56, 189, 248, 0.18));
}

.player-profile::before {
  background:
    radial-gradient(circle at 86% 14%, rgba(255, 255, 255, 0.44), transparent 8rem),
    linear-gradient(135deg, rgba(35, 193, 107, 0.22), rgba(56, 189, 248, 0.14));
}

.club-profile::before {
  background:
    radial-gradient(circle at 86% 14%, rgba(255, 255, 255, 0.44), transparent 8rem),
    linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(99, 102, 241, 0.16));
}

.profile-main {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.profile-main.with-photo {
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  padding: 26px;
}

.profile-photo {
  display: grid;
  place-items: center;
  width: 136px;
  height: 136px;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.86);
  border-radius: 34px;
  background: linear-gradient(145deg, #ecfdf5, #eff6ff);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.18);
  color: #64748b;
  font-size: 46px;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-type-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #0f5132;
  background: rgba(232, 248, 240, 0.86);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-card h3 {
  font-size: clamp(24px, 3vw, 34px);
}

.profile-card p {
  margin: 8px 0 0;
}

.profile-card .notice {
  margin-top: 14px;
}

.profile-card.highlighted {
  border-color: rgba(245, 158, 11, 0.52);
  box-shadow: 0 28px 88px rgba(245, 158, 11, 0.18);
}

.notice {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fafc, #fff);
  color: var(--muted);
}

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

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

.empty-state {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 38px;
  border: 1px dashed rgba(100, 116, 139, 0.35);
  border-radius: var(--radius-lg);
  background: rgba(248, 250, 252, 0.82);
  text-align: center;
}

.empty-state p {
  margin: 0;
}

.claim-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 20px;
}

.discover-layout {
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}

.discover-layout > aside {
  position: sticky;
  top: 112px;
}

.discover-layout > aside h3 {
  margin-bottom: 8px;
}

.discover-layout > aside p {
  margin-top: 0;
  font-size: 14px;
}

.deck-wrap {
  display: grid;
  gap: 16px;
  width: min(100%, 780px);
  margin: 0 auto;
}

.deck-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.swipe-deck {
  position: relative;
  display: grid;
  place-items: stretch;
  min-height: 540px;
  perspective: 900px;
}

.swipe-card {
  touch-action: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  will-change: transform;
}

.swipe-card .profile-card {
  min-height: 490px;
}

.swipe-card.dragging {
  transition: none;
}

.swipe-card.like-swipe .profile-card {
  border-color: rgba(35, 193, 107, 0.68);
  box-shadow: 0 30px 90px rgba(35, 193, 107, 0.24);
}

.swipe-card.pass-swipe .profile-card {
  border-color: rgba(239, 68, 68, 0.68);
  box-shadow: 0 30px 90px rgba(239, 68, 68, 0.2);
}

.swipe-card.like-swipe .profile-card::after,
.swipe-card.pass-swipe .profile-card::after {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 3;
  padding: 10px 13px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.swipe-card.like-swipe .profile-card::after {
  content: "Mi interessa";
  background: var(--primary);
}

.swipe-card.pass-swipe .profile-card::after {
  content: "Passa";
  background: var(--danger);
}

.swipe-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.swipe-actions.big-actions {
  width: min(100%, 620px);
  margin: 0 auto;
}

.deck-help {
  margin: 0;
  text-align: center;
  font-size: 14px;
}

.deck-empty {
  min-height: 360px;
}

.media-strip {
  display: flex;
  gap: 9px;
  margin-top: 14px;
  padding: 4px 0;
  overflow-x: auto;
}

.media-strip img,
.media-strip video {
  width: 104px;
  height: 76px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #f8fafc;
}

.media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.media-tile {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #f8fafc;
}

.media-tile img,
.media-tile video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 15px;
  background: #fff;
}

.media-tile small {
  color: var(--muted);
}

.profile-edit-layout {
  align-items: start;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.address-field {
  position: relative;
}

.suggestions {
  position: absolute;
  z-index: 30;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 54px rgba(15, 23, 42, 0.18);
}

.suggestion {
  width: 100%;
  padding: 13px 15px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--text);
  text-align: left;
}

.suggestion:hover {
  background: #f8fafc;
}

.suggestion small {
  color: var(--muted);
}

.match-row,
.table-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  color: var(--text);
  text-align: left;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.match-row.active {
  border-color: rgba(35, 193, 107, 0.55);
  box-shadow: 0 18px 42px rgba(35, 193, 107, 0.14);
}

.chat-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 20px;
}

.chat-box {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 560px;
}

.messages {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 360px;
  max-height: 420px;
  overflow-y: auto;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #f8fafc;
}

.message {
  width: fit-content;
  max-width: min(78%, 560px);
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.message.mine {
  margin-left: auto;
  border-color: rgba(35, 193, 107, 0.28);
  background: #e8f8f0;
}

.message small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 12px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.kpi {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fafc, #fff);
}

.kpi strong {
  display: block;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.kpi span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.table-like {
  display: grid;
  gap: 10px;
}

.code-block {
  overflow: auto;
  padding: 14px;
  border-radius: 18px;
  background: #0f172a;
  color: #dbeafe;
  font-size: 12px;
  white-space: pre-wrap;
}

.recommendation,
.premium-card {
  display: grid;
  gap: 10px;
}

.recommendation {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.premium-card {
  position: relative;
  overflow: hidden;
}

.premium-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: rgba(35, 193, 107, 0.12);
}

.premium-card > * {
  position: relative;
  z-index: 1;
}

.premium-price {
  font-size: 38px;
  font-weight: 1000;
  letter-spacing: -0.055em;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  max-width: calc(100% - 32px);
  padding: 13px 17px;
  color: #fff;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow: 0 22px 58px rgba(2, 6, 23, 0.26);
  transform: translate(-50%, 140%);
  transition: transform 0.22s ease;
}

.toast.show {
  transform: translate(-50%, 0);
}

.skeleton-card {
  padding: 34px;
}

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

.mt-12 {
  margin-top: 12px;
}

.mt-18 {
  margin-top: 18px;
}

.hidden {
  display: none !important;
}

@media (max-width: 1060px) {
  .hero,
  .grid-2,
  .claim-layout,
  .chat-shell,
  .profile-edit-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: auto;
  }

  .discover-layout > aside {
    position: static;
  }

  .deck-wrap {
    width: 100%;
  }
}

@media (max-width: 780px) {
  body {
    background:
      radial-gradient(circle at 12% 4%, rgba(35, 193, 107, 0.24), transparent 18rem),
      linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 300px, #eef3f9 300px, #f7f9fc 100%);
  }

  .app-shell {
    width: min(100% - 20px, 760px);
    padding-bottom: 92px;
  }

  .topbar,
  .dashboard-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    top: 8px;
    border-radius: 22px;
  }

  .top-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .nav-pill,
  .icon-btn {
    flex: 0 0 auto;
  }

  .hero-copy,
  .auth-card,
  .dashboard-head,
  .card {
    border-radius: 26px;
    padding: 22px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .stat-strip,
  .grid-3,
  .admin-stats {
    grid-template-columns: 1fr;
  }

  .dashboard-account {
    min-width: 0;
    justify-content: flex-start;
  }

  .dashboard-account > span:not(.badge):not(.dashboard-avatar) {
    text-align: left;
  }

  .profile-main.with-photo {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .profile-photo {
    width: 104px;
    height: 104px;
    border-radius: 26px;
    font-size: 36px;
  }

  .swipe-card .profile-card {
    min-height: auto;
  }

  .swipe-deck {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .form-grid,
  .swipe-actions,
  .chat-form {
    grid-template-columns: 1fr;
  }

  .auth-tabs {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 20px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 16px;
  }

  .card-header,
  .section-title-row {
    flex-direction: column;
  }

  .match-row,
  .table-row {
    grid-template-columns: 1fr;
  }

  .top-nav {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 10px;
  }

  .nav-pill,
  .icon-btn,
  .btn {
    padding-inline: 13px;
  }
}

/* Profili navigabili e sezioni media */
.profile-toolbar {
  width: min(100%, 620px);
  margin: -2px auto 0;
}

.profile-detail-page {
  gap: 18px;
}

.profile-detail-hero {
  position: relative;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 12% 5%, rgba(35, 193, 107, 0.34), transparent 18rem),
    radial-gradient(circle at 86% 0%, rgba(56, 189, 248, 0.26), transparent 16rem),
    linear-gradient(135deg, #07111f, #12204b 62%, #0f2a44);
  border-color: rgba(255, 255, 255, 0.14);
}

.profile-detail-hero.club-detail {
  background:
    radial-gradient(circle at 12% 5%, rgba(56, 189, 248, 0.34), transparent 18rem),
    radial-gradient(circle at 86% 0%, rgba(99, 102, 241, 0.28), transparent 16rem),
    linear-gradient(135deg, #07111f, #142447 62%, #0c4a6e);
}

.detail-hero-photo .profile-photo {
  width: 170px;
  height: 170px;
  border-radius: 42px;
}

.detail-hero-copy p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.detail-hero-copy .eyebrow {
  color: #bbf7d0;
  background: rgba(35, 193, 107, 0.16);
  border: 1px solid rgba(35, 193, 107, 0.25);
}

.detail-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.detail-kpis.wide {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.detail-kpis div {
  padding: 15px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.10);
}

.card.flat .detail-kpis div {
  background: linear-gradient(180deg, #f8fafc, #fff);
}

.detail-kpis strong {
  display: block;
  color: inherit;
  font-size: 20px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.detail-kpis span {
  display: block;
  margin-top: 6px;
  color: currentColor;
  opacity: 0.68;
  font-size: 12px;
  font-weight: 900;
}

.detail-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: 24px;
}

.detail-nav-card {
  padding: 10px;
}

.detail-grid {
  align-items: stretch;
}

.large-text {
  color: #334155;
  font-size: 17px;
}

.info-list {
  display: grid;
  gap: 10px;
}

.info-list div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.info-list div:last-child {
  border-bottom: 0;
}

.info-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.timeline {
  position: relative;
  display: grid;
  gap: 13px;
}

.timeline-item {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 16px 16px 16px 44px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fafc, #fff);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 19px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(35, 193, 107, 0.12);
}

.timeline-item span {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 950;
}

.timeline-item strong {
  font-size: 18px;
}

.timeline-item small {
  color: var(--muted);
  line-height: 1.45;
}

.detail-media-grid .media-open {
  border: 1px solid var(--line);
  color: inherit;
  text-align: left;
  cursor: zoom-in;
}

.detail-actions-card {
  position: sticky;
  bottom: 16px;
  z-index: 20;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
}

.media-viewer {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(14px);
}

.media-viewer-card {
  display: grid;
  gap: 16px;
  width: min(100%, 980px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 28px 88px rgba(0, 0, 0, 0.28);
}

.media-viewer-body {
  display: grid;
  place-items: center;
  min-height: 320px;
  overflow: hidden;
  border-radius: 24px;
  background: #0f172a;
}

.media-viewer-body img,
.media-viewer-body video {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.media-viewer-actions {
  align-items: center;
  justify-content: center;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

@media (max-width: 780px) {
  .profile-detail-hero,
  .detail-kpis,
  .detail-tabs,
  .info-list div {
    grid-template-columns: 1fr;
  }

  .detail-hero-photo .profile-photo {
    width: 128px;
    height: 128px;
    border-radius: 32px;
  }

  .detail-actions-card {
    position: static;
  }
}

/* v0.5.0: verifica email, inviti e sezioni premium */
.premium-lock-card {
  display: grid;
  justify-items: start;
  min-height: 280px;
  align-content: center;
  background:
    radial-gradient(circle at 90% 10%, rgba(35, 193, 107, 0.18), transparent 34%),
    linear-gradient(145deg, #ffffff, #f4f8f6);
  border-style: dashed;
}

.premium-lock-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  border-radius: 18px;
  background: #07111f;
  color: #fff;
  font-size: 25px;
  box-shadow: 0 14px 28px rgba(7, 17, 31, 0.18);
}

.premium-price small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.auth-card .notice a,
.notice a {
  color: var(--primary-dark);
  font-weight: 850;
  word-break: break-all;
}

/* v0.8.0: pagamenti Stripe e stato abbonamento */
.premium-card.premium-active {
  outline: 2px solid rgba(35, 193, 107, 0.55);
  box-shadow: 0 18px 50px rgba(35, 193, 107, 0.14);
}

.premium-card button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

/* v0.8.0: selezione Giocatore/Squadra e pagina accesso dedicata */
.role-selector-layout {
  align-items: stretch;
}

.role-selector-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 30px;
}

.role-selector-head {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 22px;
}

.role-selector-head h2 {
  margin-top: 4px;
  font-size: clamp(30px, 4vw, 46px);
}

.role-selector-head p {
  margin: 8px 0 0;
  max-width: 460px;
  font-size: 15px;
}

.role-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.role-choice-grid {
  display: grid;
  gap: 16px;
  flex: 1;
}

.role-choice {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 42%) minmax(0, 1fr) 34px;
  align-items: center;
  gap: 18px;
  min-height: 215px;
  overflow: hidden;
  padding: 0;
  color: var(--text);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.role-choice::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  pointer-events: none;
}

.role-choice.player::after {
  background: rgba(56, 189, 248, 0.1);
}

.role-choice.club::after {
  background: rgba(35, 193, 107, 0.11);
}

.role-choice:hover,
.role-choice:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(35, 193, 107, 0.52);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
  outline: none;
}

.role-choice-art {
  align-self: stretch;
  display: grid;
  place-items: center;
  min-width: 0;
  overflow: hidden;
  background: #0b172a;
}

.role-choice-art img {
  width: 100%;
  height: 100%;
  min-height: 215px;
  object-fit: cover;
}

.role-choice-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
  padding: 20px 0;
}

.role-choice-copy small {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.role-choice-copy strong {
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.05em;
}

.role-choice-copy span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.role-choice-arrow {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-right: 16px;
  color: #fff;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 10px 24px rgba(35, 193, 107, 0.25);
  font-size: 19px;
  font-weight: 900;
}

.role-selector-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.role-selector-foot p {
  margin: 0;
  font-size: 13px;
}

.auth-admin-link,
.back-role-button {
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.auth-admin-link:hover,
.back-role-button:hover {
  color: var(--primary-dark);
}

.auth-portal {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
  gap: 24px;
  align-items: stretch;
}

.auth-portal-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 680px;
  overflow: hidden;
  padding: 28px 42px 42px;
  color: #fff;
  background:
    radial-gradient(circle at 75% 18%, rgba(56, 189, 248, 0.23), transparent 20rem),
    radial-gradient(circle at 20% 85%, rgba(35, 193, 107, 0.24), transparent 20rem),
    linear-gradient(145deg, #07111f, #122443 58%, #0c3850);
}

.auth-portal.club .auth-portal-visual {
  background:
    radial-gradient(circle at 75% 18%, rgba(35, 193, 107, 0.24), transparent 20rem),
    radial-gradient(circle at 18% 84%, rgba(56, 189, 248, 0.18), transparent 20rem),
    linear-gradient(145deg, #07111f, #172449 58%, #0b4c42);
}

.back-role-button {
  position: relative;
  z-index: 3;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
}

.back-role-button:hover {
  color: #fff;
}

.auth-portal-art {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 330px;
  margin: 10px 0 20px;
}

.auth-portal-art img {
  width: min(100%, 560px);
  max-height: 390px;
  object-fit: contain;
  filter: drop-shadow(0 28px 35px rgba(2, 6, 23, 0.28));
}

.auth-portal-copy {
  position: relative;
  z-index: 2;
}

.auth-portal-copy h1 {
  max-width: 620px;
  margin-top: 16px;
  font-size: clamp(40px, 5.4vw, 68px);
}

.auth-portal-copy p {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 17px;
}

.auth-page-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 680px;
  padding: 34px;
}

.auth-page-head {
  margin-bottom: 22px;
}

.auth-page-head h2 {
  margin-top: 3px;
  font-size: clamp(30px, 3vw, 40px);
}

.auth-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 26px;
  padding: 7px;
  border-radius: 999px;
  background: var(--surface-soft);
}

.auth-mode-button {
  border: 0;
  border-radius: 999px;
  padding: 13px 16px;
  color: var(--muted);
  background: transparent;
  font-weight: 950;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.auth-mode-button:hover {
  color: var(--text);
}

.auth-mode-button.active {
  color: #07111f;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.09);
}

.demo-credentials {
  margin-top: auto;
  padding: 14px 16px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
  font-size: 12px;
  line-height: 1.65;
}

.demo-credentials summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 900;
}

.demo-credentials code {
  color: #0f5132;
  font-weight: 800;
}

@media (max-width: 1040px) {
  .auth-portal {
    grid-template-columns: 1fr;
  }

  .auth-portal-visual,
  .auth-page-card {
    min-height: auto;
  }

  .auth-portal-visual {
    padding: 28px 34px 38px;
  }

  .auth-portal-art {
    min-height: 260px;
  }
}

@media (max-width: 780px) {
  .role-selector-card,
  .auth-page-card {
    padding: 22px;
  }

  .role-choice {
    grid-template-columns: 118px minmax(0, 1fr) 30px;
    min-height: 178px;
    border-radius: 24px;
  }

  .role-choice-art img {
    min-height: 178px;
  }

  .role-choice-copy strong {
    font-size: 27px;
  }

  .role-choice-copy span {
    font-size: 12px;
  }

  .role-selector-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-portal-visual {
    padding: 22px;
  }

  .auth-portal-art {
    min-height: 220px;
    margin-bottom: 12px;
  }

  .auth-portal-copy h1 {
    font-size: clamp(36px, 12vw, 54px);
  }
}

@media (max-width: 520px) {
  .role-choice {
    grid-template-columns: 1fr;
  }

  .role-choice-art {
    height: 190px;
  }

  .role-choice-art img {
    min-height: 190px;
  }

  .role-choice-copy {
    padding: 0 20px 20px;
  }

  .role-choice-arrow {
    position: absolute;
    right: 4px;
    bottom: 18px;
  }
}

/* Accesso su abbonamento e promozione primi 1.000 */
.founder-offer {
  position: relative;
  display: grid;
  gap: 7px;
  max-width: 760px;
  margin-top: 26px;
  padding: 18px 20px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.founder-offer::after {
  content: "";
  position: absolute;
  right: -38px;
  top: -58px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.15);
  pointer-events: none;
}

.founder-offer.available {
  border-color: rgba(35, 193, 107, 0.46);
  background: linear-gradient(135deg, rgba(35, 193, 107, 0.2), rgba(56, 189, 248, 0.1));
}

.founder-offer strong,
.founder-offer span {
  position: relative;
  z-index: 1;
}

.founder-offer strong {
  color: #fff;
  font-size: 17px;
}

.founder-offer span {
  font-size: 13px;
  line-height: 1.55;
}

.subscription-notice {
  margin-bottom: 18px;
  border-color: rgba(35, 193, 107, 0.25);
  background: var(--primary-soft);
}

.access-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.access-banner > div:first-child {
  display: grid;
  gap: 5px;
}

.access-banner strong {
  line-height: 1.35;
}

.access-banner p {
  margin: 2px 0 0;
  font-size: 13px;
}

.access-banner.read-only {
  border-color: rgba(245, 158, 11, 0.34);
  background: linear-gradient(135deg, #fff8e8, #fffdf8);
}

.access-banner.founder {
  border-color: rgba(35, 193, 107, 0.32);
  background: linear-gradient(135deg, #eafaf2, #f3fbff);
}

.premium-access-summary {
  align-items: flex-start;
}

.paywall-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding: 26px;
  border-color: rgba(245, 158, 11, 0.24);
  background: linear-gradient(135deg, #ffffff, #fffaf0);
}

.premium-lock-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 24px;
  background: linear-gradient(145deg, #fff1cc, #fff9ec);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.18);
  font-size: 34px;
}

.read-only-actions {
  text-align: center;
}

.founder-progress-card {
  border-color: rgba(35, 193, 107, 0.28);
  background: linear-gradient(135deg, #f2fcf7, #f6fbff);
}

.premium-card.founder-current-plan {
  border-color: rgba(35, 193, 107, 0.5);
  box-shadow: 0 20px 54px rgba(35, 193, 107, 0.12);
}

@media (max-width: 720px) {
  .access-banner,
  .premium-access-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .paywall-card {
    grid-template-columns: 1fr;
  }

  .premium-lock-icon {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    font-size: 28px;
  }
}

/* v0.8.0 — Progressive Web App */
[hidden] {
  display: none !important;
}

.brand-mark {
  overflow: hidden;
  padding: 0;
  background: #07111f;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.role-selector-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.pwa-nav-install {
  border-color: rgba(35, 193, 107, 0.3);
  background: rgba(35, 193, 107, 0.16);
}

.network-status {
  position: fixed;
  z-index: 300;
  top: 0;
  left: 50%;
  width: min(720px, calc(100% - 24px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: max(10px, env(safe-area-inset-top)) 18px 10px;
  color: #fff;
  border: 1px solid rgba(245, 158, 11, 0.36);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background: rgba(113, 63, 18, 0.94);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(16px);
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}

.network-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #fbbf24;
  box-shadow: 0 0 0 6px rgba(251, 191, 36, 0.12);
}

.pwa-action-banner {
  position: fixed;
  z-index: 220;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  width: min(760px, calc(100% - 28px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(7, 17, 31, 0.94);
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.36);
  backdrop-filter: blur(22px);
  animation: pwa-rise 0.34s ease both;
}

.pwa-action-banner.update {
  z-index: 230;
  border-color: rgba(56, 189, 248, 0.34);
  background: linear-gradient(135deg, rgba(7, 17, 31, 0.97), rgba(17, 39, 74, 0.97));
}

.pwa-action-copy,
.pwa-action-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pwa-action-copy {
  min-width: 0;
}

.pwa-action-copy img,
.pwa-update-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 17px;
  box-shadow: 0 12px 30px rgba(35, 193, 107, 0.2);
}

.pwa-update-icon {
  display: grid;
  place-items: center;
  color: #07111f;
  background: linear-gradient(135deg, #2ad477, #42c6f4);
  font-size: 25px;
  font-weight: 900;
}

.pwa-action-copy span:not(.pwa-update-icon) {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.pwa-action-copy strong {
  color: #fff;
  font-size: 15px;
}

.pwa-action-copy small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
}

.pwa-action-buttons {
  flex: 0 0 auto;
}

.pwa-dismiss,
.pwa-modal-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 24px;
  line-height: 1;
}

.pwa-dismiss:hover,
.pwa-modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.pwa-modal {
  position: fixed;
  z-index: 400;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
}

.pwa-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.74);
  backdrop-filter: blur(10px);
}

.pwa-modal-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(720px, calc(100dvh - 40px));
  overflow: auto;
  padding: clamp(26px, 6vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 34px 100px rgba(2, 6, 23, 0.42);
}

.pwa-modal-card > img {
  display: block;
  width: 88px;
  height: 88px;
  margin-bottom: 22px;
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(35, 193, 107, 0.2);
}

.pwa-modal-card h2 {
  margin: 10px 0 12px;
  font-size: clamp(30px, 6vw, 42px);
}

.pwa-modal-card ol {
  display: grid;
  gap: 14px;
  margin: 22px 0 28px;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.55;
}

.pwa-modal-card li::marker {
  color: var(--primary-dark);
  font-weight: 900;
}

.pwa-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--text);
  border-color: var(--line);
  background: var(--surface-soft);
}

body.pwa-modal-open {
  overflow: hidden;
}

.noscript-warning {
  position: fixed;
  z-index: 500;
  inset: auto 16px 16px;
  padding: 16px;
  color: #fff;
  border-radius: 18px;
  background: #991b1b;
  text-align: center;
  font-weight: 800;
}

html.pwa-standalone body {
  min-height: 100dvh;
  overscroll-behavior-y: none;
}

html.pwa-standalone .app-shell {
  padding-top: max(12px, env(safe-area-inset-top));
  padding-right: env(safe-area-inset-right);
  padding-bottom: max(64px, env(safe-area-inset-bottom));
  padding-left: env(safe-area-inset-left);
}

html.pwa-standalone .topbar {
  top: max(8px, env(safe-area-inset-top));
}

@keyframes pwa-rise {
  from { opacity: 0; transform: translate(-50%, 18px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 720px) {
  .role-selector-links {
    justify-content: flex-start;
  }

  .pwa-action-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border-radius: 22px;
  }

  .pwa-action-copy {
    width: 100%;
  }

  .pwa-action-buttons {
    width: 100%;
  }

  .pwa-action-buttons .btn {
    flex: 1;
  }

  .pwa-action-copy small {
    white-space: normal;
  }

  .network-status {
    width: calc(100% - 16px);
    font-size: 12px;
  }

  html.pwa-standalone .app-shell {
    width: min(100% - 18px, 1240px);
  }
}
