:root {
  /* Aligned with The Activist TV brand */
  --amg-navy: #0b1f3a;
  --amg-navy-dark: #071526;
  --amg-navy-mid: #132a4a;
  --amg-orange: #c90104;
  --amg-orange-dark: #a00003;
  --amg-orange-light: #e03538;
  --amg-white: #ffffff;
  --amg-muted: #6b7c8f;
  --amg-light: #f4f6f9;
  --amg-border: #e2e8f0;
  --amg-success: #198754;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--amg-navy);
  background: var(--amg-light);
  margin: 0;
}

h1, h2, h3, h4, h5, .brand-font {
  font-family: var(--font-display);
  font-weight: 700;
}

a { color: var(--amg-navy-mid); text-decoration: none; }
a:hover { color: var(--amg-orange); }

/* Top bar */
.amg-topbar {
  background: var(--amg-navy);
  color: #c9d6e5;
  font-size: 0.85rem;
  padding: 0.4rem 0;
}
.amg-topbar a { color: #c9d6e5; }
.amg-topbar a:hover { color: #fff; }
.amg-topbar-left {
  min-width: 0;
  flex-wrap: nowrap;
}
.amg-top-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  white-space: nowrap;
}
.amg-top-sep {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.25);
  flex-shrink: 0;
}
.amg-top-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.amg-top-icon:hover { background: rgba(201, 1, 4, 0.85); color: #fff; }
.amg-top-phone {
  color: #c9d6e5;
  white-space: nowrap;
  font-size: 0.82rem;
}
.amg-topbar .social,
.footer-social,
.page-card .social {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.amg-topbar .social a,
.footer-social a,
.page-card .social a {
  display: inline-flex;
  width: 28px; height: 28px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #c9d6e5;
}
.page-card .social a {
  background: rgba(11, 31, 58, 0.08);
  color: var(--amg-navy);
}
.amg-topbar .social a:hover,
.footer-social a:hover { background: var(--amg-orange); color: #fff; }
.page-card .social a:hover { background: var(--amg-orange); color: #fff; }
@media (max-width: 575.98px) {
  .amg-top-label { display: none; }
}

/* Navbar */
.amg-navbar {
  background: #fff;
  box-shadow: 0 2px 12px rgba(11, 31, 58, 0.1);
  padding: 0.45rem 0;
  border-bottom: 3px solid var(--amg-orange);
}
.amg-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none !important;
  line-height: 1;
}
.amg-brand:hover { opacity: 0.94; }
.amg-brand-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: block;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(201, 1, 4, 0.28);
}
.amg-brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  min-width: 0;
}
.amg-brand-name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--amg-navy);
}
.amg-brand-g { color: var(--amg-orange); }
.amg-brand-sub {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amg-navy);
  border-top: 2px solid var(--amg-orange);
  padding-top: 0.18rem;
  margin-top: 0.05rem;
  white-space: nowrap;
}
.amg-brand-light .amg-brand-name { color: #fff; }
.amg-brand-light .amg-brand-g { color: #ffb4b4; }
.amg-brand-light .amg-brand-sub {
  color: #ffb4b4;
  border-top-color: rgba(255, 180, 180, 0.85);
}
.amg-brand-hero {
  flex-direction: column;
  gap: 0.45rem;
  text-align: center;
}
.amg-brand-hero .amg-brand-text { align-items: center; }
.amg-brand-hero .amg-brand-mark {
  width: 52px;
  height: 52px;
  box-shadow: 0 8px 24px rgba(201, 1, 4, 0.45);
}
.amg-brand-hero .amg-brand-name { font-size: 1.55rem; letter-spacing: 0.12em; }
.amg-brand-hero .amg-brand-sub { letter-spacing: 0.14em; }
@media (max-width: 575.98px) {
  .amg-brand-mark { width: 38px; height: 38px; }
  .amg-brand-name { font-size: 1.45rem; }
  .amg-brand-sub { font-size: 0.55rem; letter-spacing: 0.12em; }
}
.amg-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.amg-logo .amg-mark {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 1px;
}
.amg-logo .amg-mark .a,
.amg-logo .amg-mark .m { color: var(--amg-navy); }
.amg-logo .amg-mark .g { color: var(--amg-orange); }
.amg-logo .amg-sub {
  font-size: 0.58rem;
  letter-spacing: 1.5px;
  color: var(--amg-navy);
  text-transform: uppercase;
  border-top: 1px solid var(--amg-navy);
  border-bottom: 1px solid var(--amg-navy);
  padding: 1px 0;
  margin-top: 2px;
  text-align: center;
  white-space: nowrap;
}
.amg-nav .nav-link {
  color: var(--amg-navy) !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.5rem 0.85rem !important;
}
.amg-nav .nav-link:hover,
.amg-nav .nav-link.active { color: var(--amg-orange) !important; }

.btn-amg-orange {
  background: var(--amg-orange);
  border-color: var(--amg-orange);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 0.55rem 1.25rem;
}
.btn-amg-orange:hover {
  background: var(--amg-orange-dark);
  border-color: var(--amg-orange-dark);
  color: #fff;
}
.btn-amg-outline {
  background: #fff;
  border: 1.5px solid var(--amg-navy);
  color: var(--amg-navy);
  font-weight: 700;
  padding: 0.55rem 1.25rem;
}
.btn-amg-outline:hover {
  background: var(--amg-navy);
  color: #fff;
}
.btn-amg-ghost {
  background: transparent;
  border: 1.5px solid #fff;
  color: #fff;
  font-weight: 700;
}
.btn-amg-ghost:hover {
  background: #fff;
  color: var(--amg-navy);
}

/* Hero */
.amg-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(105deg, rgba(7, 21, 38, 0.94) 0%, rgba(11, 31, 58, 0.78) 55%, rgba(11, 31, 58, 0.58) 100%),
    url('../images/hero-city.jpg') center/cover no-repeat,
    linear-gradient(135deg, #071526 0%, #132a4a 50%, #0b1f3a 100%);
  color: #fff;
  overflow: hidden;
}
.amg-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(201, 1, 4, 0.18), transparent 55%);
  pointer-events: none;
}
.amg-hero .container { position: relative; z-index: 2; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  color: #ffb4b4;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: fadeUp 0.7s ease both;
}
.hero-kicker span {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--amg-orange);
  box-shadow: 0 0 12px rgba(201, 1, 4, 0.7);
}
.amg-hero .hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.2vw, 4.4rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: #fff;
}
.hero-title .hero-line {
  display: block;
  overflow: hidden;
  margin-bottom: 0.08em;
  position: relative;
}
.hero-title .hero-word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  animation: heroWordIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(0.12s + var(--i) * 0.14s);
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.hero-title .hero-word-accent {
  background: linear-gradient(90deg, #fff 0%, #fff 40%, #ffb4b4 70%, var(--amg-orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}
.hero-title-rule {
  display: block;
  width: 0;
  height: 3px;
  margin-top: 0.55rem;
  background: linear-gradient(90deg, var(--amg-orange), transparent);
  animation: heroRuleIn 0.9s ease 0.65s forwards;
  box-shadow: 0 0 16px rgba(201, 1, 4, 0.55);
}
@keyframes heroWordIn {
  from { transform: translateY(110%); opacity: 0; filter: blur(4px); }
  to { transform: translateY(0); opacity: 1; filter: blur(0); }
}
@keyframes heroRuleIn {
  from { width: 0; }
  to { width: min(220px, 55%); }
}
.amg-hero .hero-tag {
  color: var(--amg-orange);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  margin-bottom: 0.85rem;
  animation: fadeUp 0.9s ease 0.55s both;
}
.amg-hero .hero-desc {
  font-size: 1.1rem;
  color: #d5e0ec;
  max-width: 480px;
  margin-bottom: 1.75rem;
  animation: fadeUp 1s ease 0.65s both;
}
.amg-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: fadeUp 1.1s ease 0.75s both;
}
/* Hero orbit animation */
.hero-orbit {
  position: relative;
  width: min(440px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
}
.hero-orbit-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.orbit-ring-outer {
  transform-origin: 220px 220px;
  animation: orbitSpin 28s linear infinite;
}
.orbit-ring-dash {
  transform-origin: 220px 220px;
  animation: orbitSpinRev 18s linear infinite;
}
.orbit-ring-inner {
  transform-origin: 220px 220px;
  animation: orbitPulseRing 3.6s ease-in-out infinite;
}
.orbit-spark {
  transform-origin: 220px 220px;
  animation: orbitSpin 12s linear infinite;
}
.orbit-spark-2 {
  animation: orbitSpinRev 16s linear infinite;
}
.orbit-wheel {
  position: absolute;
  inset: 0;
  animation: orbitSpin 36s linear infinite;
}
.orbit-chip {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: rotate(var(--a)) translateY(-168px);
}
.orbit-chip-inner {
  position: absolute;
  left: 50%;
  top: 50%;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #ffe0e0;
  background: rgba(7, 21, 38, 0.82);
  border: 1px solid rgba(201, 1, 4, 0.45);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  animation:
    chipUpright 36s linear infinite,
    chipPulse 6s ease-in-out infinite;
  animation-delay: 0s, calc(var(--i) * 1s);
}
.orbit-core {
  position: relative;
  z-index: 2;
  width: 46%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(201, 1, 4, 0.28), rgba(7, 21, 38, 0.92) 68%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 10px rgba(201, 1, 4, 0.06),
    0 0 40px rgba(201, 1, 4, 0.28),
    inset 0 0 30px rgba(0, 0, 0, 0.35);
  animation: coreBreath 4.5s ease-in-out infinite;
}
.orbit-core-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 180, 180, 0.35);
  animation: orbitSpinRev 22s linear infinite;
  pointer-events: none;
}
.hero-orbit:hover .orbit-wheel,
.hero-orbit:hover .orbit-ring-outer,
.hero-orbit:hover .orbit-ring-dash,
.hero-orbit:hover .orbit-spark,
.hero-orbit:hover .orbit-spark-2,
.hero-orbit:hover .orbit-core-ring,
.hero-orbit:hover .orbit-chip-inner {
  animation-play-state: paused;
}
@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}
@keyframes orbitSpinRev {
  to { transform: rotate(-360deg); }
}
@keyframes orbitPulseRing {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.035); }
}
@keyframes coreBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
@keyframes chipUpright {
  from { transform: translate(-50%, -50%) rotate(calc(var(--a) * -1)); }
  to { transform: translate(-50%, -50%) rotate(calc(var(--a) * -1 - 360deg)); }
}
@keyframes chipPulse {
  0%, 100% {
    background: rgba(7, 21, 38, 0.82);
    border-color: rgba(201, 1, 4, 0.45);
    color: #ffe0e0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  }
  40%, 55% {
    background: rgba(201, 1, 4, 0.92);
    border-color: #ffb4b4;
    color: #fff;
    box-shadow: 0 0 22px rgba(201, 1, 4, 0.55);
  }
}
@media (prefers-reduced-motion: reduce) {
  .orbit-wheel,
  .orbit-ring-outer,
  .orbit-ring-dash,
  .orbit-ring-inner,
  .orbit-spark,
  .orbit-spark-2,
  .orbit-core,
  .orbit-core-ring,
  .orbit-chip-inner {
    animation: none !important;
  }
  .orbit-chip-inner {
    transform: translate(-50%, -50%) rotate(calc(var(--a) * -1));
  }
}

/* Stats */
.amg-stats {
  background: #fff;
  padding: 2.5rem 0;
  box-shadow: 0 8px 30px rgba(11, 31, 58, 0.06);
  position: relative;
  z-index: 3;
  margin-top: -2rem;
}
.stat-item { text-align: center; padding: 1rem; }
.stat-item .stat-icon {
  width: 56px; height: 56px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: rgba(201, 1, 4, 0.1);
  color: var(--amg-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.stat-item .stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--amg-navy);
}
.stat-item .stat-label {
  color: var(--amg-muted);
  font-size: 0.9rem;
}

/* Sections */
.section { padding: 4.5rem 0; }
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title .eyebrow {
  color: var(--amg-orange);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.4rem;
}
.section-title h2 {
  color: var(--amg-navy);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0;
}

.service-card {
  background: #fff;
  border: 1px solid var(--amg-border);
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  height: 100%;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(11, 31, 58, 0.1);
}
.service-card .icon {
  width: 64px; height: 64px;
  margin: 0 auto 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(11, 31, 58,0.08), rgba(201, 1, 4,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--amg-navy);
}
.service-card h5 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.service-card p { color: var(--amg-muted); font-size: 0.9rem; margin: 0; }

/* Earn section */
.earn-section {
  background: linear-gradient(135deg, var(--amg-navy-dark), var(--amg-navy-mid));
  color: #fff;
}
.earn-section h2 { color: #fff; }
.earn-section .eyebrow { color: var(--amg-orange); }
.income-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 1.1rem;
  text-align: center;
  height: 100%;
  transition: background 0.25s;
}
.income-item:hover { background: rgba(201, 1, 4, 0.15); }
.income-item .icon {
  font-size: 1.6rem;
  color: var(--amg-orange);
  margin-bottom: 0.5rem;
}
.income-item h6 { font-size: 0.88rem; margin: 0; color: #e8eef5; }

/* Features bar */
.features-bar {
  background: #eef4fa;
  padding: 2rem 0;
}
.feat-item {
  text-align: center;
  padding: 0.75rem;
}
.feat-item .icon {
  font-size: 1.5rem;
  color: var(--amg-navy);
  margin-bottom: 0.4rem;
}
.feat-item span {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--amg-navy);
}

/* Footer */
.amg-footer {
  background: var(--amg-navy-dark);
  color: #a8b8c9;
  padding: 3rem 0 1.5rem;
}
.amg-footer h5 { color: #fff; margin-bottom: 1rem; }
.amg-footer a { color: #a8b8c9; }
.amg-footer a:hover { color: var(--amg-orange); }
.amg-footer .bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: 0.85rem;
}

/* Auth / forms */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(7, 21, 38, 0.94), rgba(11, 31, 58, 0.88)),
    radial-gradient(ellipse at 20% 20%, rgba(201, 1, 4, 0.22), transparent 50%),
    linear-gradient(135deg, #071526, #132a4a);
  padding: 2.5rem 0;
}
.auth-wrap-member { min-height: calc(100vh - 140px); }
.auth-card {
  background: #fff;
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.auth-card-pro {
  border: 1px solid rgba(11, 31, 58, 0.06);
  padding: 2.25rem 2rem;
}
.auth-card-head { margin-bottom: 1.35rem; }
.auth-card h2 {
  color: var(--amg-navy);
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.auth-sub {
  color: var(--amg-muted);
  margin: 0;
  font-size: 0.95rem;
}
.auth-switch {
  text-align: center;
  margin: 1.15rem 0 0;
  color: var(--amg-muted);
}
.auth-switch a { font-weight: 700; color: var(--amg-orange); }
.auth-field .form-label { margin-bottom: 0.4rem; }
.auth-input {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-input-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #8a9bb0;
  pointer-events: none;
  z-index: 2;
}
.auth-input-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}
.auth-input .form-control,
.auth-input .form-select {
  padding-left: 2.6rem;
  padding-right: 2.6rem;
  min-height: 48px;
}
.auth-input-textarea .auth-input-icon { top: 0.9rem; transform: none; }
.auth-input-textarea textarea.form-control {
  min-height: 96px;
  padding-top: 0.75rem;
  padding-right: 0.95rem;
}
.page-card .auth-input-icon svg,
.activate-ico svg,
.page-card .text-danger svg {
  width: 18px;
  height: 18px;
  display: block;
}
.auth-pass-toggle {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #8a9bb0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  z-index: 2;
}
.auth-pass-toggle:hover { color: var(--amg-navy); background: rgba(11, 31, 58, 0.06); }
.auth-pass-toggle svg { width: 18px; height: 18px; }
.auth-submit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.form-label { font-weight: 600; color: var(--amg-navy); font-size: 0.9rem; }
.form-control, .form-select {
  border-radius: 10px;
  border-color: var(--amg-border);
  padding: 0.7rem 0.95rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--amg-orange);
  box-shadow: 0 0 0 0.2rem rgba(201, 1, 4, 0.2);
}

/* Enterprise admin login */
.admin-login-body {
  margin: 0;
  min-height: 100vh;
  background: #071526;
  font-family: var(--font-body);
}
.admin-login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.admin-login-visual {
  position: relative;
  display: flex;
  align-items: center;
  padding: 3rem;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(201, 1, 4, 0.28), transparent 45%),
    linear-gradient(160deg, #0b1f3a 0%, #071526 55%, #132a4a 100%);
}
.admin-login-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, transparent 96%, rgba(255,255,255,0.04) 97%, transparent 98%),
    linear-gradient(0deg, transparent 0%, transparent 96%, rgba(255,255,255,0.04) 97%, transparent 98%);
  background-size: 28px 28px;
  opacity: 0.35;
  pointer-events: none;
}
.admin-login-visual-inner {
  position: relative;
  z-index: 1;
  max-width: 460px;
}
.admin-login-kicker {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid rgba(255, 180, 180, 0.45);
  border-radius: 999px;
  color: #ffb4b4;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.admin-login-visual h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 0.85rem;
  letter-spacing: 0.02em;
}
.admin-login-lead {
  color: #c9d6e5;
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  max-width: 38ch;
}
.admin-login-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
.admin-login-points li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #e8eef5;
  font-weight: 600;
  font-size: 0.95rem;
}
.admin-login-points svg { color: #ffb4b4; flex-shrink: 0; }
.admin-login-form-pane {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background:
    linear-gradient(180deg, #f4f6f9 0%, #eef2f7 100%);
}
.admin-login-card {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 2.25rem 2rem;
  box-shadow: 0 18px 48px rgba(11, 31, 58, 0.12);
  border: 1px solid rgba(11, 31, 58, 0.06);
}
.admin-login-card-head { margin-bottom: 1.35rem; }
.admin-login-badge {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(201, 1, 4, 0.1);
  color: var(--amg-orange);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.admin-login-card h2 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--amg-navy);
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
}
.admin-login-card-head p {
  margin: 0;
  color: var(--amg-muted);
  font-size: 0.95rem;
}
.admin-login-card .btn-amg-orange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
}
.admin-login-foot {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--amg-border);
  text-align: center;
}
.admin-login-foot a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--amg-navy);
  font-size: 0.92rem;
}
.admin-login-foot a:hover { color: var(--amg-orange); }
@media (max-width: 991.98px) {
  .admin-login { grid-template-columns: 1fr; }
  .admin-login-visual {
    min-height: auto;
    padding: 2rem 1.5rem 1.5rem;
  }
  .admin-login-lead,
  .admin-login-points { display: none; }
  .admin-login-form-pane { padding: 1.25rem 1rem 2rem; }
}
/* Activate ID — QR payment */
.activate-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.activate-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(201, 1, 4, 0.1);
  color: var(--amg-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.activate-ico.success { background: rgba(25, 135, 84, 0.12); color: #198754; }
.activate-ico.phone { background: rgba(201, 1, 4, 0.12); }
.activate-qr-box {
  margin-top: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--amg-border);
  border-radius: 16px;
  background: #f8fafc;
  text-align: center;
}
.activate-qr-img {
  max-width: min(260px, 100%);
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #fff;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
}
.activate-qr-empty {
  color: var(--amg-muted);
  padding: 1.5rem 1rem;
}
.activate-qr-empty svg {
  width: 42px;
  height: 42px;
  margin: 0 auto 0.75rem;
  color: #94a3b8;
}
.activate-steps { display: grid; gap: 0.65rem; }
.activate-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--amg-navy);
}
.activate-step .step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--amg-navy);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.activate-contact {
  border-top: 1px solid var(--amg-border);
  padding-top: 1.15rem;
}
.activate-contact-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amg-muted);
  margin-bottom: 0.65rem;
}
.activate-phone {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(201, 1, 4, 0.06);
  border: 1px solid rgba(201, 1, 4, 0.18);
  color: var(--amg-navy) !important;
  text-decoration: none !important;
}
.activate-phone:hover { background: rgba(201, 1, 4, 0.1); }
.activate-phone strong { display: block; font-size: 1.15rem; }
.activate-phone small { color: var(--amg-muted); }

.otp-box {
  background: #fff8f0;
  border: 1px dashed var(--amg-orange);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  margin-top: 1rem;
}
.otp-box .otp-code {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 6px;
  color: var(--amg-orange);
  font-family: var(--font-display);
}

/* ========== Admin layout — mobile responsive shell ========== */
.admin-body {
  background: #eef2f6;
  min-height: 100vh;
}
.admin-shell {
  display: flex;
  min-height: 100vh;
}
.admin-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #071526 0%, #0b1f3a 55%, #132a4a 100%);
  color: #fff;
  padding: 1.25rem 0 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-sidebar .brand {
  padding: 0 1.15rem 1.15rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 0.75rem;
}
.admin-nav .nav-link {
  color: #b8c9da;
  padding: 0.65rem 1rem;
  font-weight: 600;
  border-radius: 10px;
  margin: 0.12rem 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.admin-nav .nav-link i { width: 20px; }
.admin-nav .nav-link:hover,
.admin-nav .nav-link.active {
  color: #fff;
  background: rgba(201, 1, 4, 0.18);
}
.admin-nav .nav-link.active {
  box-shadow: inset 3px 0 0 var(--amg-orange);
}
.admin-offcanvas {
  background: #0b1f3a;
  color: #fff;
  width: min(300px, 88vw) !important;
}
.admin-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.admin-topbar {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-page-title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.8vw, 1.3rem);
  font-weight: 800;
  color: var(--amg-navy);
}
.admin-page-meta {
  font-size: 0.78rem;
  color: var(--amg-muted);
}
.admin-main {
  padding: 1rem;
  min-width: 0;
}
@media (min-width: 768px) {
  .admin-main { padding: 1.25rem 1.5rem 1.75rem; }
  .admin-topbar { padding: 0.85rem 1.25rem; }
}
.admin-body .page-card,
.admin-body .metric-card {
  max-width: 100%;
}
.admin-body .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.admin-body .dataTables_wrapper .row {
  margin-left: 0;
  margin-right: 0;
}
.admin-body .dataTables_filter input {
  max-width: 100%;
}
.admin-body .btn-group-vertical > .btn,
.admin-body .btn-group-vertical > form {
  width: 100%;
}
@media (max-width: 575.98px) {
  .admin-main { padding: 0.85rem; }
  .admin-body .page-card { padding: 1rem; }
  .admin-body .metric-card .value { font-size: 1.15rem; }
}

/* ========== Member dashboard — enterprise shell ========== */
.dash-body {
  background: #eef2f6;
  min-height: 100vh;
}
.dash-shell {
  display: flex;
  min-height: 100vh;
}
.dash-shell .dash-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #071526 0%, #0b1f3a 55%, #132a4a 100%);
  color: #fff;
  padding: 1.25rem 0 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.dash-shell .dash-sidebar .brand {
  padding: 0 1.15rem 1.15rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 0.75rem;
}
.dash-shell .dash-sidebar .nav-section {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a92a8;
  padding: 0.85rem 1rem 0.35rem;
  font-weight: 700;
}
.dash-shell .dash-sidebar .nav-link {
  color: #b8c9da;
  padding: 0.65rem 1rem;
  font-weight: 600;
  border-radius: 10px;
  margin: 0.15rem 0;
  border-left: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.dash-shell .dash-sidebar .nav-link:hover,
.dash-shell .dash-sidebar .nav-link.active {
  color: #fff;
  background: rgba(201, 1, 4, 0.18);
}
.dash-shell .dash-sidebar .nav-link.active {
  box-shadow: inset 3px 0 0 var(--amg-orange);
}
.dash-shell .dash-sidebar .nav-link i { width: 20px; opacity: 0.9; }
.sidebar-foot {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 0.5rem;
  margin-top: auto;
}
.member-chip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
}
.member-chip .avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--amg-orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-display);
  overflow: hidden;
  flex-shrink: 0;
}
.member-chip .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dash-offcanvas {
  background: #0b1f3a;
  color: #fff;
  width: min(300px, 88vw) !important;
}
.dash-offcanvas .nav-link {
  color: #b8c9da;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  margin: 0.1rem 0.5rem;
  font-weight: 600;
}
.dash-offcanvas .nav-link.active,
.dash-offcanvas .nav-link:hover {
  background: rgba(201, 1, 4, 0.2);
  color: #fff;
}

.dash-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.dash-topbar {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
  padding: 0.85rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.dash-page-title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 800;
  color: var(--amg-navy);
}
.dash-page-meta {
  font-size: 0.8rem;
  color: var(--amg-muted);
  margin-top: 0.15rem;
}
.wallet-pill {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
  flex-shrink: 0;
}
.wallet-pill .label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #15803d;
  font-weight: 700;
}
.wallet-pill .amount {
  font-family: var(--font-display);
  font-weight: 800;
  color: #166534;
  font-size: 0.95rem;
}
.dash-shell .dash-main {
  padding: 1.25rem;
}
@media (min-width: 992px) {
  .dash-shell .dash-main { padding: 1.5rem 1.75rem 2rem; }
}

.metric-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.1rem 1.15rem;
  box-shadow: 0 1px 2px rgba(11, 31, 58,0.04), 0 8px 24px rgba(11, 31, 58,0.04);
  height: auto;
  border-left: 4px solid var(--amg-orange);
}
.metric-card.metric-soft { border-left-width: 3px; }
.metric-card .label { color: var(--amg-muted); font-size: 0.8rem; font-weight: 600; }
.metric-card .value {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--amg-navy);
  margin-top: 0.2rem;
}
.metric-card .value-sm { font-size: clamp(1rem, 3.5vw, 1.25rem); }
.metric-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(201, 1, 4,0.12);
  color: var(--amg-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.metric-ico.navy { background: rgba(11, 31, 58,0.1); color: var(--amg-navy); }
.metric-ico.orange { background: rgba(201, 1, 4,0.12); color: var(--amg-orange); }
.metric-ico.green { background: rgba(25,135,84,0.12); color: #198754; }

.alert-activate {
  background: linear-gradient(90deg, #fff3e8, #fff);
  border: 1px solid #ffd4b0;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
}
.plan-card {
  background: #fff;
  border: 1px solid var(--amg-border);
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}
.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(11, 31, 58,0.1);
}
.plan-card .plan-head {
  background: var(--amg-navy);
  color: #fff;
  padding: 1.25rem;
  text-align: center;
}
.plan-card .plan-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--amg-orange);
}
.plan-card .plan-body { padding: 1.25rem; }
.plan-card .feature-row {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--amg-border);
  font-size: 0.9rem;
}
.table thead th {
  background: var(--amg-navy);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
  padding: 0.75rem 0.85rem;
  vertical-align: middle;
}
.page-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 1px 2px rgba(11, 31, 58,0.04), 0 8px 24px rgba(11, 31, 58,0.04);
  border: 1px solid rgba(226,232,240,0.8);
}
@media (min-width: 768px) {
  .page-card { padding: 1.5rem; }
}

/* Earnings report */
.earn-hero-card {
  background: linear-gradient(135deg, #071526 0%, #0b1f3a 45%, #1a3f5c 100%);
  color: #fff;
  border-radius: 16px;
  padding: 1.35rem 1.4rem;
  position: relative;
  overflow: hidden;
}
.earn-hero-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(201, 1, 4,0.2);
  right: -40px;
  top: -40px;
  pointer-events: none;
}
.earn-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amg-orange);
  font-weight: 800;
  margin-bottom: 0.35rem;
}
.earn-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 800;
}
.earn-sub { color: #9fb4c9; font-size: 0.9rem; }
.earn-big {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: #fff;
}
.earn-progress {
  height: 8px;
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  overflow: hidden;
}
.earn-progress .progress-bar {
  background: linear-gradient(90deg, var(--amg-orange), #e03538);
  border-radius: 999px;
}
.kpi-tile {
  background: #fff;
  border-radius: 14px;
  padding: 1.1rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(11, 31, 58,0.04);
}
.kpi-tile .kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}
.kpi-warn .kpi-icon { background: #fff7ed; color: #c2410c; }
.kpi-ok .kpi-icon { background: #f0fdf4; color: #15803d; }
.kpi-label { font-size: 0.8rem; color: var(--amg-muted); font-weight: 600; }
.kpi-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.15rem, 3.5vw, 1.4rem);
  color: var(--amg-navy);
  margin: 0.15rem 0;
}
.kpi-hint { font-size: 0.75rem; color: #94a3b8; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}
.chip-ad { background: #eff6ff; color: #1d4ed8; }
.chip-join { background: #f1f5f9; color: #334155; }
.status-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}
.status-ok { background: #dcfce7; color: #166534; }
.status-pending { background: #ffedd5; color: #9a3412; }
.report-table .dataTables_wrapper .form-control,
.report-table .dataTables_wrapper .form-select {
  font-size: 0.875rem;
  border-radius: 8px;
}
.report-table table.dataTable tbody td {
  vertical-align: middle;
  font-size: 0.875rem;
}
@media (max-width: 575.98px) {
  .dash-shell .dash-main { padding: 1rem; }
  .wallet-pill { padding: 0.35rem 0.65rem; }
  .wallet-pill .amount { font-size: 0.85rem; }
  .earn-hero-card { padding: 1.1rem; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991px) {
  .amg-hero { min-height: auto; padding: 4rem 0 5rem; }
}

/* Network tree */
.amg-tree-wrap { overflow-x: auto; }
.amg-tree-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: var(--amg-muted);
}
.amg-tree-legend .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.35rem;
}
.amg-tree-legend .dot.paid { background: #198754; }
.amg-tree-legend .dot.unpaid { background: #94a3b8; }
.amg-tree-list {
  list-style: none;
  margin: 0;
  padding-left: 1.25rem;
  position: relative;
}
.amg-tree-root { padding-left: 0; }
.amg-tree-list::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0.45rem;
  width: 2px;
  background: #dbe3ee;
}
.amg-tree-root::before { display: none; }
.amg-tree-item {
  position: relative;
  padding: 0.35rem 0 0.35rem 0.85rem;
}
.amg-tree-item::before {
  content: "";
  position: absolute;
  left: -0.8rem;
  top: 1.55rem;
  width: 0.85rem;
  height: 2px;
  background: #dbe3ee;
}
.amg-tree-root > .amg-tree-item::before { display: none; }
.amg-tree-node {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 4px 14px rgba(11, 31, 58, 0.04);
}
.amg-tree-node.is-paid { border-left: 4px solid #198754; }
.amg-tree-node.is-unpaid { border-left: 4px solid #94a3b8; }
.amg-tree-root-node {
  background: linear-gradient(90deg, rgba(201, 1, 4, 0.06), #fff 55%);
  border-color: rgba(201, 1, 4, 0.2);
}
.amg-tree-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0b1f3a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-display);
  flex-shrink: 0;
}
.amg-tree-avatar.root { background: #c90104; }
.amg-tree-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.amg-tree-name { font-weight: 700; color: var(--amg-navy); line-height: 1.2; }
.amg-tree-user { font-size: 0.82rem; color: var(--amg-muted); }
.amg-tree-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.amg-tree-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none !important;
}
.pill-paid { background: #dcfce7; color: #166534; }
.pill-unpaid { background: #e2e8f0; color: #475569; }
.pill-kids { background: #e0e7ff; color: #3730a3; }
.pill-link { background: rgba(201, 1, 4, 0.08); color: #c90104; }
.pill-link:hover { background: #c90104; color: #fff; }
.amg-tree-empty {
  padding: 0.75rem 1rem;
  color: var(--amg-muted);
  font-size: 0.9rem;
  list-style: none;
}

.share-qr {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  padding: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}
.share-qr img { display: block; width: 100% !important; height: auto !important; }
.public-join-avatar {
  width: min(160px, 42vw);
  height: min(160px, 42vw);
  margin: 0 auto;
  border-radius: 8px;
  background: linear-gradient(145deg, #c90104, #0b1f3a);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  font-weight: 800;
  font-family: var(--font-display);
}
.public-join-photo {
  width: min(160px, 42vw);
  height: min(160px, 42vw);
  margin: 0 auto;
  border-radius: 8px;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(11, 31, 58, 0.1);
}
.public-join-details {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.35rem 0.85rem;
}
.public-join-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #e8eef5;
}
.public-join-row:last-child { border-bottom: 0; }
.public-join-row small {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  font-weight: 700;
}
.public-join-row strong {
  display: block;
  font-size: 0.95rem;
  color: #0b1f3a;
  font-weight: 700;
  word-break: break-word;
}
.public-join-row a {
  color: inherit;
  text-decoration: none;
}
.public-join-row a:hover { color: var(--amg-orange); }
.public-join-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: var(--amg-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.public-join-ico svg {
  width: 18px;
  height: 18px;
}
.profile-photo-block {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.profile-photo-preview {
  width: min(140px, 36vw);
  height: min(140px, 36vw);
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e2e8f0;
}
.profile-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.profile-photo-fallback {
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-display);
  line-height: 1;
}
.profile-photo-actions {
  flex: 1;
  min-width: 200px;
}
.break-all { word-break: break-all; }

