* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #0a0a0e;
  color: #f0f0f5;
  line-height: 1.55;
}
a { color: #ff6b6b; text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px 48px; }
.site-chrome {
  position: sticky;
  top: 0;
  z-index: 1100;
}
.site-masthead {
  border-bottom: 1px solid #252530;
  background: rgba(10, 10, 14, 0.92);
  backdrop-filter: blur(8px);
}
.mast-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.mast-inner .nav-toggle { margin-left: auto; }
.brand { font-weight: 800; font-size: 1.15rem; letter-spacing: 0.03em; color: #fff; flex-shrink: 0; }
.brand span { color: #e53935; }
.mast-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 1;
}
.mast-brand:hover { opacity: 0.92; text-decoration: none; }
.mast-brand:hover .brand { color: #fff; }
.mast-brand-logo {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid #333;
  border-radius: 8px;
  background: #14141c;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-chrome.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-chrome.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.site-chrome.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-backdrop { display: none; }
.nav { font-size: 0.92rem; }
.nav-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}
.nav a { color: #ccc; }
.nav a:hover { color: #fff; text-decoration: none; }
.nav a.nav-active { color: #fff; font-weight: 700; }
.nav a.btn-primary:hover { color: #fff; }
.nav-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.nav-actions form { margin: 0; display: block; }
.nav-btn { padding: 8px 14px !important; font-size: 0.85rem !important; }
body.nav-menu-open { overflow: hidden; }

@media (max-width: 899px) {
  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 1202;
  }
  .site-masthead {
    position: relative;
    z-index: 1202;
  }
  body.nav-menu-open .site-chrome {
    z-index: 1300;
  }
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: #0a0a0e;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1290;
  }
  body.nav-menu-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .site-chrome .nav {
    position: fixed;
    inset: 0;
    z-index: 1310;
    display: flex;
    flex-direction: column;
    background: #0a0a0e;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    overflow: hidden;
  }
  body.nav-menu-open .site-chrome .nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-panel {
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 72px 24px 32px;
    padding-top: calc(72px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
  }
  .nav-panel > a,
  .nav-panel .nav-link-item {
    display: block;
    width: 100%;
    padding: 20px 0;
    font-size: 1.35rem;
    font-weight: 600;
    color: #e8e8ee;
    border-bottom: 1px solid #252530;
    line-height: 1.3;
  }
  .nav-panel > a.nav-active {
    color: #fff;
    border-bottom-color: #e53935;
  }
  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: 24px;
    padding: 24px 0 0;
    border-top: 1px solid #252530;
  }
  .nav-actions .nav-link-item {
    display: block;
    width: 100%;
    padding: 20px 0;
    font-size: 1.35rem;
    font-weight: 600;
    color: #e8e8ee;
    text-align: left;
    border-bottom: 1px solid #252530;
  }
  .nav-actions a.nav-link-item:hover { color: #fff; text-decoration: none; }
  .nav-actions .btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px 20px !important;
    font-size: 1.05rem !important;
    border-radius: 10px;
  }
}

@media (min-width: 900px) {
  .site-chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    background: rgba(10, 10, 14, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #252530;
  }
  .site-masthead {
    flex: 0 0 auto;
    background: transparent;
    backdrop-filter: none;
    border: none;
  }
  .mast-inner {
    padding: 14px 0;
  }
  .mast-inner.wrap {
    max-width: none;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: static;
    flex: 1 1 auto;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    background: transparent;
    pointer-events: auto;
    overflow: visible;
  }
  .nav-panel {
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 8px 20px;
  }
  .nav-actions {
    flex-wrap: nowrap;
    gap: 8px 12px;
  }
  .nav-backdrop { display: none !important; }
}
.btn { display: inline-block; padding: 10px 18px; border-radius: 8px; font-weight: 700; font-size: 0.9rem; border: none; cursor: pointer; text-decoration: none; }
.btn-primary { background: #e53935; color: #fff; }
.btn-primary:hover { background: #c62828; text-decoration: none; color: #fff; }
.btn-outline {
  background: transparent;
  color: #e53935;
  border: 1px solid #e53935;
}
.btn-outline:hover {
  background: rgba(229, 57, 53, 0.12);
  text-decoration: none;
  color: #fff;
  border-color: #c62828;
}
.btn-secondary { background: #252530; color: #fff; }
.btn-secondary:hover { background: #333; text-decoration: none; color: #fff; }
.form-section-title { font-size: 1.05rem; margin: 0 0 12px; color: #e8e8ee; }
.branding-fields { border: 1px solid #252530; border-radius: 10px; padding: 16px 18px; margin: 16px 0; }
.branding-fields legend { padding: 0 8px; color: #ccc; font-size: 0.9rem; }
.branding-hint { color: #888; font-size: 0.88rem; margin: 0 0 12px; }
.branding-logo-block { margin-bottom: 14px; }
.branding-logo-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  margin: 8px 0 10px;
  padding: 12px;
  border-radius: 10px;
  border: 1px dashed #3d3d4a;
  background: #12121a;
}
.branding-logo-preview__img {
  max-width: 96px;
  max-height: 96px;
  border-radius: 10px;
  object-fit: contain;
}
.branding-logo-preview__placeholder { color: #777; font-size: 0.88rem; text-align: center; }
.branding-file-input { margin-bottom: 0 !important; }
.branding-url-input { margin-bottom: 14px; }
.branding-color-row {
  display: grid;
  grid-template-columns: 56px 1fr 36px;
  grid-template-rows: auto auto;
  gap: 8px 10px;
  align-items: center;
  margin-bottom: 6px;
}
.branding-color-picker {
  width: 56px !important;
  height: 44px !important;
  padding: 2px !important;
  margin: 0 !important;
  border: 1px solid #3d3d4a !important;
  border-radius: 8px !important;
  cursor: pointer;
  background: transparent;
}
.branding-hex-input {
  margin: 0 !important;
  font-family: ui-monospace, monospace;
  letter-spacing: 0.04em;
}
.branding-color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 2px solid #555;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.2);
}
.branding-color-presets {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.branding-preset {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 2px solid #444;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.12s;
}
.branding-preset:hover {
  transform: scale(1.08);
  border-color: #fff;
}
.branding-live-preview {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #2a2a36;
}
.branding-live-preview__label {
  display: block;
  font-size: 0.78rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.branding-live-preview__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--preview-primary, #e53935) 0%, color-mix(in srgb, var(--preview-primary, #e53935) 70%, #000) 100%);
  border: 2px solid var(--preview-secondary, #fff);
}
.branding-live-preview__name {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--preview-secondary, #fff);
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.branding-live-preview__logo img {
  border-radius: 8px;
  object-fit: contain;
}
.color-swatch { display: inline-block; width: 28px; height: 28px; border-radius: 6px; border: 1px solid #444; vertical-align: middle; }
.team-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }

/* Team profile & organico */
.team-roster-page { padding-top: 20px; }
.team-profile-header {
  display: grid;
  grid-template-columns: minmax(120px, 220px) 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 28px;
}
.team-profile-header__photo,
.team-profile-photo-preview {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--card-border, #2a2a36);
}
.team-profile-header__desc { color: #bbb; line-height: 1.55; margin: 8px 0 0; }

.roster-hero {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 24px;
  padding: 0;
  overflow: hidden;
}
.roster-hero__intro {
  padding: 22px 22px 18px;
}
.roster-hero__media {
  width: 100%;
  line-height: 0;
  background: #0a0a0e;
  border-top: 1px solid #2a2a36;
}
.roster-hero__photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  border: none;
  border-radius: 0;
}
.roster-hero__photo--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 180px;
  padding: 28px 20px;
  background: #12121a;
  border-top: 1px solid #2a2a36;
  border-radius: 0;
  color: #777;
  font-size: 0.9rem;
  line-height: 1.4;
}
.roster-hero__club {
  margin: 0 0 4px;
  font-size: 0.82rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.roster-hero__title { margin: 0 0 10px; font-size: 1.75rem; color: #fff; }
.roster-hero__desc { color: #bbb; line-height: 1.55; margin: 0; font-size: 0.95rem; }
.roster-hero__desc--muted { color: #888; }
.roster-hero__desc p { margin: 0 0 8px; }
.team-details-meta {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: #999;
  line-height: 1.5;
}
.team-details-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.team-details-footer {
  margin-top: 28px;
  color: #888;
  font-size: 0.9rem;
}
.team-streaming-staff {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid #2a2a36;
}
.team-streaming-staff h2 { margin: 24px 0 12px; font-size: 1.1rem; }
.team-streaming-staff__self { margin-bottom: 20px; }
.team-streaming-staff__self h2 { margin-top: 0; font-size: 1.05rem; }
.roster-layout--readonly { grid-template-columns: 1fr; }
.roster-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.roster-stat {
  font-size: 0.8rem;
  color: #aaa;
  background: #12121a;
  border: 1px solid #2a2a36;
  padding: 5px 10px;
  border-radius: 999px;
}
.roster-stat strong { color: #fff; }
.team-dashboard-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 0.92rem;
}
.team-dashboard-nav__club {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.team-dashboard-nav__club:hover { color: #e53935; text-decoration: none; }
.team-dashboard-nav__sep { color: #555; }
.team-dashboard-nav a:not(.team-dashboard-nav__club) { color: #aaa; }
.team-dashboard-nav a:not(.team-dashboard-nav__club):hover { color: #fff; }
.team-dashboard-desc { color: #bbb; max-width: 640px; line-height: 1.55; }
.team-dashboard-photo { margin: 12px 0 16px; }
.team-dashboard-photo img { max-height: 200px; }

.roster-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}
.roster-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.roster-section { padding: 0; overflow: hidden; }
.roster-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #2a2a36;
  background: #14141c;
}
.roster-section__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}
.roster-section__count {
  font-size: 0.78rem;
  font-weight: 700;
  color: #aaa;
  background: #1c1c26;
  border: 1px solid #333;
  padding: 3px 10px;
  border-radius: 999px;
}
.roster-section__empty {
  margin: 0;
  padding: 20px 18px;
  color: #777;
  font-size: 0.9rem;
  font-style: italic;
}
.roster-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.roster-list .roster-card {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid #252530;
  background: transparent;
}
.roster-list .roster-card:last-child { border-bottom: none; }

.roster-sidebar__form { padding: 20px; }
.roster-sidebar__title { margin: 0 0 6px; font-size: 1.1rem; color: #fff; }
.roster-sidebar__lead { margin: 0 0 16px; font-size: 0.85rem; color: #888; line-height: 1.4; }
.roster-sidebar .roster-member-form { position: sticky; top: 16px; }

.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.roster-grid--compact { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

.roster-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px 16px;
  align-items: center;
  padding: 14px 18px;
}
.roster-card__avatar { flex-shrink: 0; }
.roster-card__body { min-width: 0; text-align: left; }
.roster-card__name {
  margin: 0 0 4px;
  font-size: 1rem;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.roster-card__number {
  font-size: 0.88rem;
  color: var(--avatar-primary, #e53935);
  font-weight: 800;
}
.roster-card__role { margin: 0; font-size: 0.82rem; color: #e53935; font-weight: 600; }
.roster-card__bio {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: #999;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.roster-card__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.roster-card__btn {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid #3d3d4a;
  background: #252530;
  color: #eee;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.roster-card__btn:hover { background: #333; color: #fff; text-decoration: none; }
.roster-card__btn--danger { border-color: #5c2020; color: #ffb4b4; }
.roster-card__btn--danger:hover { background: #3d1b1b; }

.roster-card--compact {
  grid-template-columns: 1fr;
  text-align: center;
  padding: 16px;
  border: 1px solid #2a2a36;
  border-radius: 12px;
  background: #16161e;
}
.roster-card--compact .roster-card__body { text-align: center; }
.roster-card--compact .roster-card__name { justify-content: center; }
.roster-card--compact .roster-card__avatar { display: flex; justify-content: center; }

@media (max-width: 960px) {
  .roster-layout { grid-template-columns: 1fr; }
  .roster-sidebar .roster-member-form { position: static; }
  .roster-sidebar { order: -1; }
}
@media (max-width: 640px) {
  .roster-card {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }
  .roster-card__actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-start;
  }
}

.roster-avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--avatar-secondary, #fff);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.roster-avatar--photo { display: block; }
.roster-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: calc(var(--width, 96px) * 0.32);
  color: var(--avatar-secondary, #fff);
  background: linear-gradient(145deg, var(--avatar-primary, #e53935), color-mix(in srgb, var(--avatar-primary, #e53935) 55%, #000));
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.04em;
}
.roster-form-photo-preview { margin: 8px 0 12px; }

.club-header { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.club-header-logo { border-radius: 10px; object-fit: contain; }
.club-meta { color: #aaa; margin: 4px 0 0; font-size: 0.92rem; }
.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }
.flash.notice { background: #1b3d2a; color: #a5f0b8; }
.flash.alert { background: #3d1b1b; color: #ffb4b4; }
.hero-split {
  padding: 40px 0 48px;
  text-align: left;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 40px;
  align-items: center;
}
.hero-content { max-width: 560px; }
.hero-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 6px 14px;
  border: 1px solid #3a3a48;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
}
.hero-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e53935;
  box-shadow: 0 0 10px rgba(229, 57, 53, 0.8);
}
.hero-split h1 {
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  margin: 0 0 18px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-accent { color: #e53935; }
.hero-split .tagline {
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  color: #b8b8c4;
  max-width: none;
  margin: 0 0 28px;
  line-height: 1.65;
}
.hero-split .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  margin-bottom: 32px;
}
.hero-features {
  list-style: none;
  margin: 0;
  padding: 8px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 560px;
}
.hero-feature-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 12px 20px;
  box-sizing: border-box;
}
.hero-feature-item:not(.hero-feature-item--last)::after {
  content: "";
  position: absolute;
  top: 8%;
  bottom: 8%;
  right: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.08) 12%,
    rgba(255, 255, 255, 0.32) 50%,
    rgba(255, 255, 255, 0.08) 88%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}
.hero-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: #e53935;
  font-size: 1.4rem;
  line-height: 1;
}
.hero-feature-icon i {
  display: block;
}
.hero-feature-label {
  display: block;
  width: 100%;
  max-width: 9.5rem;
  margin: 0 auto;
  text-align: center;
  font-size: 0.82rem;
  color: #ccc;
  line-height: 1.4;
}
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}
.hero-visual::before {
  content: "";
  position: absolute;
  width: min(420px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 57, 53, 0.22) 0%, transparent 68%);
  pointer-events: none;
}
.hero-devices-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.55));
}

@media (max-width: 899px) {
  .hero-split { padding: 28px 0 36px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-content { max-width: none; }
  .hero-features {
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-feature-item {
    padding: 16px 18px;
  }
  .hero-feature-item:not(.hero-feature-item--last)::after {
    display: none;
  }
  .hero-feature-item:nth-child(odd):not(:nth-child(3))::after {
    display: block;
  }
  .hero-feature-item:nth-child(1)::before,
  .hero-feature-item:nth-child(2)::before {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 0;
    height: 1px;
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.08) 12%,
      rgba(255, 255, 255, 0.32) 50%,
      rgba(255, 255, 255, 0.08) 88%,
      rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
  }
  .hero-visual { min-height: 200px; }
  .hero-devices-img { max-width: 100%; }
}

@media (max-width: 480px) {
  .hero-split .hero-cta { flex-direction: column; }
  .hero-split .hero-cta .btn { width: 100%; text-align: center; }
}
.section { padding: 40px 0; }
.section h2 { font-size: 1.6rem; margin: 0 0 20px; text-align: center; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.step { background: #14141c; border: 1px solid #2a2a36; border-radius: 12px; padding: 22px; }
.step--visual { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.step--visual .step-num,
.step--visual h3,
.step--visual p { padding-left: 22px; padding-right: 22px; }
.step--visual .step-num { padding-top: 18px; margin: 0; }
.step--visual h3 { margin: 8px 0 0; padding-bottom: 0; }
.step--visual p { margin: 8px 0 0; padding-bottom: 22px; color: #aaa; font-size: 0.92rem; }
.step-visual {
  width: 100%;
  background: #0a0a0e;
  border-bottom: 1px solid #2a2a36;
  line-height: 0;
}
.step-visual-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.step-num { color: #e53935; font-weight: 800; font-size: 0.85rem; }
.plans-teaser { text-align: center; }
.plans-teaser-lead {
  color: #aaa;
  max-width: 520px;
  margin: 0 auto 28px;
}
.plans-teaser-visual {
  max-width: 460px;
  margin: 0 auto 32px;
  line-height: 0;
}
.plans-teaser-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
  align-items: stretch;
}
.plan-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #14141c;
  border: 1px solid #2a2a36;
  border-radius: 14px;
  padding: 24px;
  box-sizing: border-box;
}
.plan-card h3 { margin: 0 0 8px; }
.plan-price { font-size: 1.8rem; font-weight: 800; margin: 12px 0; }
.plan-card ul {
  flex: 1 1 auto;
  padding-left: 18px;
  color: #bbb;
  margin: 0 0 20px;
}
.plan-card > .btn,
.plan-card > .plan-action-hint,
.plan-card > .plan-interval-actions {
  margin-top: auto;
}
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature-card { background: #14141c; border-radius: 12px; padding: 20px; border: 1px solid #2a2a36; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.stripe-secure {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 20px 0 0;
  padding: 14px 16px;
  background: #14141c;
  border: 1px solid #2a2a36;
  border-radius: 10px;
  color: #aaa;
  font-size: 0.9rem;
  line-height: 1.5;
}
.stripe-secure i {
  color: #635bff;
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.stripe-secure p { margin: 0; }
.stripe-secure strong { color: #ddd; }
.stripe-secure--compact {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  font-size: 0.85rem;
}
.stripe-secure--compact i { font-size: 0.95rem; color: #888; }
.site-footer { border-top: 1px solid #252530; padding: 32px 0; margin-top: 40px; color: #888; font-size: 0.88rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer__stripe { flex: 1 1 100%; margin-top: 4px; }
.compare-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 0.9rem; }
.compare-table th, .compare-table td { padding: 10px 12px; border-bottom: 1px solid #2a2a36; text-align: left; }
.compare-table th { color: #aaa; font-weight: 600; }
.billing-documents h2 { margin-top: 0; }
.billing-table { font-size: 0.9rem; }
.billing-table a { white-space: nowrap; }
.card { background: #14141c; border: 1px solid #2a2a36; border-radius: 12px; padding: 20px; margin-bottom: 16px; }

.seo-prose { max-width: 720px; margin: 0 auto; color: #bbb; line-height: 1.65; }
.seo-prose h2 { color: #fff; font-size: 1.25rem; margin: 28px 0 12px; }
.seo-prose h2:first-child { margin-top: 0; }
.seo-prose p { margin: 0 0 14px; }
.seo-prose ul { margin: 0 0 16px; padding-left: 1.25rem; }
.seo-prose a { color: #e53935; }
.seo-page .seo-lead { color: #aaa; max-width: 640px; line-height: 1.55; margin-bottom: 28px; }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  background: #14141c;
  border: 1px solid #2a2a36;
  border-radius: 12px;
  margin-bottom: 10px;
  padding: 0 18px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  padding: 16px 0;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  color: #e53935;
  font-weight: 700;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: #aaa; margin: 0 0 16px; line-height: 1.55; font-size: 0.95rem; }

.legal-doc { max-width: 760px; padding-top: 24px; padding-bottom: 48px; color: #bbb; line-height: 1.65; font-size: 0.95rem; }
.legal-doc h1 { color: #fff; font-size: 1.6rem; margin-bottom: 8px; }
.legal-doc h2 { color: #fff; font-size: 1.1rem; margin: 28px 0 10px; }
.legal-doc p { margin: 0 0 12px; }
.legal-doc ul { margin: 0 0 14px; padding-left: 1.25rem; }
.legal-doc a { color: #e53935; }
.legal-meta { color: #888; font-size: 0.88rem; margin-bottom: 24px; }
.legal-back { margin-top: 32px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 12px 0 16px; font-size: 0.88rem; }
.legal-table th, .legal-table td { border: 1px solid #2a2a36; padding: 10px 12px; text-align: left; vertical-align: top; }
.legal-table th { background: #14141c; color: #ccc; }
.legal-accept {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 20px 0 10px;
  font-size: 0.9rem;
  color: #c8c8d4;
  line-height: 1.5;
  cursor: pointer;
}
.legal-accept input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 3px 0 0;
  flex-shrink: 0;
  accent-color: #e53935;
  cursor: pointer;
}
.legal-accept-text { flex: 1; min-width: 0; }
.legal-accept-text a { color: #e53935; text-decoration: underline; }
.legal-accept-hint {
  font-size: 0.82rem;
  color: #9a9aaa;
  margin: 0 0 18px;
  line-height: 1.5;
  padding-left: 30px;
}
.auth-forgot { margin: 4px 0 14px; font-size: 0.88rem; text-align: right; }
.auth-forgot a { color: #e53935; }
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { padding: 8px; border-bottom: 1px solid #2a2a36; text-align: left; }
input, select {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #3d3d4a;
  background: #1c1c26;
  color: #fff;
  font-size: 1rem;
}
input:focus, select:focus {
  outline: none;
  border-color: #e53935;
  box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.25);
}
input::placeholder { color: #666; }
label { display: block; margin-bottom: 6px; font-size: 0.9rem; color: #c8c8d4; font-weight: 500; }
.auth-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
  padding: 48px 20px 64px;
  text-align: center;
}
.auth-page h1 { margin: 0 0 8px; color: #fff; }
.auth-page .auth-lead { color: #b8b8c4; margin: 0 0 24px; max-width: 480px; line-height: 1.5; }
.auth-page .card {
  width: 100%;
  max-width: 440px;
  margin: 0;
  padding: 28px 26px;
  text-align: left;
  background: #16161e;
  border: 1px solid #3a3a48;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.auth-page .card form .btn-primary {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  font-size: 1rem;
}
.auth-page .card-wide { max-width: 480px; }
.auth-page .auth-footer { margin-top: 20px; font-size: 0.92rem; color: #aaa; text-align: center; }

.input-toggle { margin-bottom: 14px; }
.input-toggle__field { position: relative; }
.input-toggle__input {
  width: 100%;
  padding: 10px 44px 10px 12px;
  margin-bottom: 0;
  border-radius: 8px;
  border: 1px solid #333;
  background: #0f0f12;
  color: #fff;
  font-size: 1rem;
}
.input-toggle__input:focus {
  outline: none;
  border-color: #e53935;
  box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.25);
}
.input-toggle--plain .input-toggle__input--plain {
  padding-right: 12px;
  margin-bottom: 0;
}
.input-toggle__btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #9a9aaa;
  cursor: pointer;
}
.input-toggle__btn:hover,
.input-toggle__btn:focus-visible {
  color: #e53935;
  outline: none;
}
.input-toggle__btn i { font-size: 1.05rem; pointer-events: none; }
.auth-page .auth-forgot { margin: -4px 0 16px; font-size: 0.88rem; }

.plan-price-alt {
  color: #aaa;
  font-size: 0.9rem;
  margin: -8px 0 12px;
}
.plan-interval-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.plan-interval-btn {
  width: 100%;
  text-align: center;
  font-size: 0.92rem;
  padding: 12px 10px;
  box-sizing: border-box;
}
.plan-action-hint {
  color: #888;
  font-size: 0.85rem;
  margin: 8px 0 0;
}
