:root {
  --bg-color: #0b0f19;
  --card-bg: #111827;
  --card-alt: #161f32;
  --card-border: #1f2937;
  --mint-primary: #0038FF;
  --mint-hover: #2563eb;
  --mint-glow: rgba(0, 56, 255, 0.16);
  --yellow: #ffe600;
  --yellow-2: #fde047;
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --error-color: #FF4444;
  --error-glow: rgba(255, 68, 68, 0.15);
  --font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 2px;
}

.hub-page {
  min-height: 100vh;
  background-color: #0b0f19;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 0.55px, transparent 0.65px);
  background-size: 3px 3px;
}

.hub-page::before,
.hub-page::after {
  display: none !important;
  content: none !important;
}

.swiss-kicker {
  display: none !important;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  border-bottom: 1px solid #1f2937;
  background: #0b0f19;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-mono);
}

.logo:hover {
  color: #fff;
}

.logo-badge {
  background: #2563eb;
  color: #fff;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a:hover {
  color: #fff;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: var(--font-mono);
}

.btn-primary {
  background: #0038FF;
  color: #fff;
  border-color: #ffffff;
  box-shadow: 4px 4px 0 #001a80;
}

.btn-primary:hover {
  background: #2563eb;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid #1f2937;
}

.btn-secondary:hover {
  border-color: #2563eb;
  color: #93c5fd;
}

.hero {
  padding: 88px 0 72px;
  display: block;
}

.hero-text {
  max-width: 820px;
}

.hero-text h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: -0.055em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.hero-text p {
  font-size: 18px;
  color: #94a3b8;
  margin-bottom: 28px;
  max-width: 680px;
}

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

.section-title {
  text-align: left;
  margin-bottom: 28px;
}

.section-title h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}

.section-title p {
  color: #94a3b8;
  font-size: 16px;
}

#features,
#pricing,
#clubs {
  scroll-margin-top: 88px;
}

.features {
  padding: 24px 0 80px;
  border-top: 1px solid #1f2937;
}

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

.feature-card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 2px;
  padding: 22px;
  min-height: 100%;
  position: relative;
}

.feature-card::before,
.feature-card::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid #0038FF;
}

.feature-card::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.feature-card::after {
  right: -1px;
  bottom: -1px;
  border-left: 0;
  border-top: 0;
}

.feature-icon {
  font-size: 26px;
  display: inline-block;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.feature-card p {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.55;
}

.pricing-page {
  padding: 72px 0 40px;
  border-top: 1px solid #1f2937;
}

.b2c-duration {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 24px;
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 8px;
}

.b2c-duration button {
  border: 0;
  background: transparent;
  color: #94a3b8;
  border-radius: 8px;
  padding: 12px 8px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.b2c-duration button.is-active {
  background: #2563eb;
  color: #fff;
}

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

.plan-card,
.club-panel {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 2px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.save-badge {
  display: none;
  align-self: flex-start;
  background: #ffe600;
  color: #0b0f19;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
}

.save-badge.is-visible {
  display: inline-flex;
}

.plan-card h3,
.club-panel h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.plan-price {
  font-size: 32px;
  font-weight: 800;
}

.plan-price .from-label {
  color: #fde047;
  font-size: 16px;
  font-weight: 800;
  margin-right: 6px;
}

.plan-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.plan-total-row strong {
  font-size: 22px;
}

.plan-total-row span,
.club-note {
  color: #94a3b8;
  font-size: 13px;
}

.plan-card ul,
.club-panel ul {
  margin: 0;
  padding-left: 18px;
  color: #94a3b8;
  line-height: 1.6;
}

.plan-card .btn,
.club-panel .btn {
  margin-top: auto;
}

.club-section {
  padding: 24px 0 88px;
}

.club-builder {
  background: #161f32;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 18px;
}

.club-builder-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.club-builder input[type="range"] {
  flex: 1;
  accent-color: #2563eb;
}

.club-builder input[type="number"] {
  width: 92px;
  background: #111827;
  border: 1px solid #1f2937;
  color: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 700;
}

.cycle-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.cycle-toggle button {
  flex: 1;
  border: 1px solid #1f2937;
  background: transparent;
  color: #94a3b8;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
}

.cycle-toggle button.is-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.club-totals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 16px;
}

.club-totals strong {
  color: #fff;
  font-size: 24px;
  display: block;
}

.club-totals .per-seat {
  color: #fde047;
  font-weight: 800;
}

footer {
  border-top: 1px solid #1f2937;
  padding: 40px 0;
  background: #0b0f19;
  color: #94a3b8;
  font-size: 13px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

.legal-info p {
  margin-bottom: 4px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: #93c5fd;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 46px;
}

.password-toggle {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0 8px 8px 0;
  color: #94a3b8;
  cursor: pointer;
}

.password-toggle:hover {
  color: #2563eb;
}

.password-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}

.password-toggle .icon-eye-off {
  display: none;
}

.password-toggle.is-visible .icon-eye {
  display: none;
}

.password-toggle.is-visible .icon-eye-off {
  display: block;
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
}

.avatar-box {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid #2563eb;
  margin-bottom: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b0f19;
}

.avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  font-size: 32px;
  font-weight: 800;
  color: #2563eb;
}

.profile-email {
  font-size: 16px;
  font-weight: 700;
  word-break: break-all;
}

.sub-status-card {
  background: #0b0f19;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.sub-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.sub-status-title {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
}

.sub-badge {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
}

.sub-badge.active {
  background: rgba(37, 99, 235, 0.18);
  color: #93c5fd;
  border: 1px solid #2563eb;
}

.sub-badge.inactive {
  background: rgba(139, 148, 158, 0.15);
  color: #94a3b8;
  border: 1px solid #1f2937;
}

.sub-date-info {
  font-size: 15px;
  font-weight: 700;
}

.sub-days-left {
  font-size: 12px;
  color: #93c5fd;
  margin-top: 2px;
}

.app-notice-box {
  background: #0b0f19;
  border: 1px solid #1f2937;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
}

.tariff-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.tariff-item {
  background: #0b0f19;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
}

.tariff-item:hover {
  border-color: #2563eb;
}

.tariff-info h4 {
  font-size: 16px;
  font-weight: 700;
}

.tariff-info p {
  font-size: 12px;
  color: #94a3b8;
}

.tariff-price {
  font-size: 18px;
  font-weight: 800;
  color: #fde047;
}

.tariff-badge {
  position: absolute;
  top: -10px;
  right: 15px;
  background: #2563eb;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
}

.payment-success-banner {
  display: none;
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid #2563eb;
  color: #93c5fd;
  font-size: 14px;
  font-weight: 700;
}

.payment-success-banner.is-visible {
  display: block;
}

.field-error-link {
  padding: 0;
  border: none;
  background: none;
  color: #2563eb;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

#otp-code {
  text-align: center;
  letter-spacing: 8px;
  font-size: 22px;
  font-weight: 700;
}

.dash-shell {
  padding: 48px 0 80px;
}

.dash-hero {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.dash-card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 22px;
}

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

.dash-name {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.dash-identity {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dash-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.avatar-crop {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 2px solid #2563eb;
  overflow: hidden;
  background: #0b0f19;
  cursor: pointer;
  position: relative;
}

.avatar-crop img,
.avatar-crop .avatar-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 900;
}

.avatar-crop .avatar-edit {
  position: absolute;
  inset: auto 0 0;
  background: rgba(11, 15, 25, 0.72);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  padding: 6px 0;
}

.belt-badge,
.role-badge,
.sub-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid #1f2937;
}

.sub-widget {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  background: #161f32;
}

.sub-widget .sub-pill.active {
  background: rgba(37, 99, 235, 0.18);
  border-color: #2563eb;
  color: #93c5fd;
}

.sub-widget .sub-pill.free {
  background: rgba(253, 224, 71, 0.12);
  border-color: #fde047;
  color: #fde047;
}

.crop-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  padding: 20px;
}

.crop-backdrop.is-open {
  display: flex;
}

.crop-card {
  width: min(420px, 100%);
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 18px;
}

.crop-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: #0b0f19;
  touch-action: none;
}

.crop-stage img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center;
  user-select: none;
  pointer-events: none;
}

.crop-mask {
  position: absolute;
  inset: 0;
  box-shadow: 0 0 0 999px rgba(11, 15, 25, 0.62);
  border: 2px solid #fde047;
  border-radius: 50%;
  width: 78%;
  height: 78%;
  margin: auto;
  pointer-events: none;
}

.btn.is-paying,
.btn:disabled {
  opacity: 0.78;
  cursor: wait;
}

.payment-loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid #2563eb;
  color: #93c5fd;
  font-size: 14px;
  font-weight: 700;
}

.payment-loading.is-visible {
  display: flex;
}

.payment-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(37, 99, 235, 0.25);
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: payment-spin 0.6s linear infinite;
}

@keyframes payment-spin {
  to { transform: rotate(360deg); }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 12px;
  width: 100%;
  max-width: 460px;
  padding: 30px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-card h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.modal-card .btn-primary {
  width: 100%;
  margin-top: 10px;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 24px;
  cursor: pointer;
}

.auth-tabs {
  display: flex;
  background: #0b0f19;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid #1f2937;
  margin-bottom: 20px;
}

.auth-tab-btn {
  flex: 1;
  padding: 10px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
}

.auth-tab-btn.active {
  background: #111827;
  color: #2563eb;
}

.input-group {
  margin-bottom: 16px;
}

.input-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 6px;
}

.input-group input {
  width: 100%;
  padding: 12px;
  background: #0b0f19;
  border: 1px solid #1f2937;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
}

.auth-toast {
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13px;
}

.auth-toast.success {
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid #2563eb;
  color: #93c5fd;
}

.auth-toast.error {
  background: var(--error-glow);
  border: 1px solid var(--error-color);
  color: var(--error-color);
}

.field-error {
  display: none;
  margin-top: 6px;
  color: var(--error-color);
}

.field-error.is-visible {
  display: block;
}

.modal-subtitle {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 20px;
}

.user-status {
  font-size: 13px;
  color: #94a3b8;
  display: none;
}

.pro-status-badge-nav {
  display: none;
  background: rgba(37, 99, 235, 0.18);
  color: #93c5fd;
  border: 1px solid #2563eb;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
}

@media (max-width: 980px) {
  .navbar {
    flex-wrap: wrap;
    min-height: auto;
    padding: 12px 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-text h1,
  .section-title h2,
  .dash-name {
    font-size: 32px;
  }

  .features-grid,
  .pricing-grid,
  .dash-grid,
  .dash-hero,
  .b2c-duration,
  .club-totals {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
  }
}
