:root {
  --bg: #080808;
  --surface: #101010;
  --surface-2: #171717;
  --surface-3: #202020;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f6f4ee;
  --muted: #aaa9a4;
  --gold: #e4c56b;
  --gold-2: #b28b35;
  --success: #68d391;
  --danger: #ff7b7b;
  --radius: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(228, 197, 107, 0.08), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
a {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

.noscript {
  padding: 20px;
  background: #281616;
  color: white;
  text-align: center;
}

.center-view {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
}

.center-view > p {
  margin: 0;
  color: var(--muted);
}

.brand-mark {
  width: 92px;
  height: 92px;
  display: grid;
  place-content: center;
  border: 1px solid var(--gold);
  border-radius: 28px;
  color: var(--gold);
  font-weight: 900;
  font-size: 27px;
  letter-spacing: -1px;
  box-shadow: inset 0 0 0 5px rgba(228, 197, 107, 0.06);
}

.brand-mark.small {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  font-size: 19px;
  margin-bottom: 22px;
}

.loader {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255,255,255,0.12);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

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

.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(440px, 0.9fr);
}

.auth-hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 8vw, 120px);
  background:
    linear-gradient(130deg, rgba(8,8,8,.25), rgba(8,8,8,.94)),
    radial-gradient(circle at 22% 36%, rgba(228,197,107,.25), transparent 24rem),
    linear-gradient(155deg, #232017 0%, #0b0b0b 54%, #050505 100%);
}

.auth-hero::after {
  content: "RCC";
  position: absolute;
  right: -0.08em;
  bottom: -0.18em;
  color: rgba(255,255,255,.025);
  font-weight: 950;
  font-size: min(38vw, 560px);
  letter-spacing: -0.1em;
  line-height: 1;
}

.auth-topline,
.eyebrow {
  color: var(--gold);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: .18em;
}

.auth-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 22px 0;
  font-size: clamp(58px, 7.4vw, 116px);
  line-height: .88;
  letter-spacing: -.075em;
}

.auth-hero > p {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0;
  color: #c9c6be;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.7;
}

.auth-benefits {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  margin-top: 54px;
  color: #dedbd4;
}

.auth-benefits div {
  display: flex;
  align-items: center;
  gap: 16px;
}

.auth-benefits span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
}

.auth-panel {
  display: grid;
  place-items: center;
  padding: 38px;
  background: #0b0b0b;
}

.auth-card {
  width: min(100%, 470px);
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(20,20,20,.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.mobile-brand {
  display: none;
}

.auth-card h2,
.status-card h2 {
  margin: 13px 0 8px;
  font-size: 34px;
  letter-spacing: -.04em;
}

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

.auth-card > .muted {
  margin: 0 0 30px;
}

label {
  display: block;
  margin: 18px 0 9px;
  color: #d6d3cb;
  font-size: 13px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  outline: none;
  padding: 0 16px;
  background: #0c0c0c;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}

input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(228,197,107,.10);
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 88px;
}

.text-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  font-weight: 700;
}

.password-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
}

.primary-button,
.secondary-button,
.danger-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid transparent;
  border-radius: 15px;
  padding: 0 20px;
  cursor: pointer;
  font-weight: 800;
  transition: transform .18s, background .18s, opacity .18s;
}

.primary-button:hover,
.secondary-button:hover,
.danger-button:hover {
  transform: translateY(-1px);
}

.primary-button {
  background: var(--gold);
  color: #111;
}

.secondary-button {
  background: var(--surface-2);
  border-color: var(--line);
}

.danger-button {
  background: rgba(255, 123, 123, .08);
  border-color: rgba(255, 123, 123, .25);
  color: #ffaaaa;
}

.full-width {
  width: 100%;
}

.auth-card .primary-button {
  margin-top: 24px;
}

.primary-button[disabled] {
  cursor: wait;
  opacity: .65;
}

.reset-link {
  display: block;
  margin: 20px auto 0;
  font-size: 13px;
}

.security-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin-top: 34px;
  color: #777;
  font-size: 11px;
  text-align: center;
}

.security-note span {
  color: var(--success);
}

.form-error {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255,123,123,.25);
  border-radius: 12px;
  background: rgba(255,123,123,.08);
  color: #ffb3b3;
  font-size: 13px;
  line-height: 1.5;
}

.status-card {
  width: min(100%, 480px);
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.status-card p {
  margin-bottom: 28px;
  line-height: 1.7;
}

.status-card .primary-button,
.status-card .secondary-button {
  width: 100%;
  margin-top: 10px;
}

.status-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-content: center;
  margin: 0 auto 24px;
  border-radius: 22px;
  background: rgba(255,123,123,.10);
  color: var(--danger);
  font-size: 30px;
  font-weight: 900;
}

.app {
  min-height: 100vh;
}

.app-header {
  position: sticky;
  z-index: 30;
  top: 0;
  width: 100%;
  height: calc(78px + var(--safe-top));
  min-height: calc(78px + var(--safe-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--safe-top) max(24px, calc((100vw - 1220px) / 2)) 0;
  border-bottom: 1px solid var(--line);
  background: rgba(8,8,8,.83);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

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

.header-brand > span:last-child {
  display: grid;
}

.header-brand strong {
  font-size: 14px;
}

.header-brand small {
  margin-top: 2px;
  color: var(--gold);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .2em;
}

.mini-logo {
  width: 40px;
  height: 40px;
  display: grid;
  place-content: center;
  border: 1px solid var(--gold);
  border-radius: 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

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

.icon-button,
.avatar-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.install-button {
  color: var(--gold);
  font-weight: 900;
}

.avatar-button {
  border-color: rgba(228,197,107,.35);
  background: linear-gradient(145deg, #302919, #121212);
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.app-content {
  width: min(100% - 36px, 1220px);
  margin: 0 auto;
  padding: 56px 0 126px;
}

.tab-panel {
  display: none;
  animation: panelIn .3s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.welcome-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 22px;
  margin-bottom: 28px;
}

.welcome-row h1,
.page-heading h1 {
  margin: 9px 0 5px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: .98;
  letter-spacing: -.065em;
}

.welcome-row p,
.page-heading p {
  margin: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border: 1px solid rgba(228,197,107,.28);
  border-radius: 999px;
  padding: 0 11px;
  background: rgba(228,197,107,.08);
  color: var(--gold);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
}

.badge.success {
  border-color: rgba(104,211,145,.28);
  background: rgba(104,211,145,.08);
  color: var(--success);
}

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 370px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  border: 1px solid rgba(228,197,107,.22);
  border-radius: 32px;
  background:
    radial-gradient(circle at 80% 32%, rgba(228,197,107,.17), transparent 23rem),
    linear-gradient(135deg, #18150f, #0c0c0c 68%);
  box-shadow: var(--shadow);
}

.hero-card-content {
  position: relative;
  z-index: 2;
  padding: clamp(32px, 5vw, 64px);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(228,197,107,.22);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(228,197,107,.07);
  color: var(--gold);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .15em;
}

.live-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff675d;
  box-shadow: 0 0 0 5px rgba(255,103,93,.10);
}

.hero-card h2 {
  margin: 22px 0 12px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: .95;
  letter-spacing: -.06em;
}

.hero-card p {
  max-width: 560px;
  margin: 0;
  color: #bbb8b0;
  font-size: 16px;
  line-height: 1.65;
}

.countdown {
  display: flex;
  gap: 20px;
  margin: 30px 0;
}

.countdown div {
  min-width: 74px;
}

.countdown strong,
.countdown span {
  display: block;
}

.countdown strong {
  font-size: 30px;
  letter-spacing: -.04em;
}

.countdown span {
  margin-top: 3px;
  color: #85837d;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.light-button {
  background: #f3efe3;
}

.hero-card-art {
  position: relative;
  min-height: 300px;
}

.hero-monogram {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  color: var(--gold);
  font-size: clamp(70px, 10vw, 150px);
  font-weight: 950;
  letter-spacing: -.09em;
  transform: rotate(-7deg);
  text-shadow: 0 20px 60px rgba(228,197,107,.22);
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(228,197,107,.22);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
}

.orbit-one {
  width: 330px;
  height: 190px;
}

.orbit-two {
  width: 430px;
  height: 260px;
}


.home-lead-cta {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
  border: 1px solid rgba(228, 197, 107, .30);
  border-radius: 25px;
  padding: 28px;
  background:
    radial-gradient(circle at 88% 20%, rgba(228, 197, 107, .14), transparent 18rem),
    linear-gradient(120deg, rgba(228, 197, 107, .08), rgba(255, 255, 255, .025));
  box-shadow: 0 18px 55px rgba(0, 0, 0, .24);
}

.home-lead-cta::after {
  content: "LEADS";
  position: absolute;
  right: -14px;
  bottom: -31px;
  color: rgba(255, 255, 255, .025);
  font-size: 86px;
  font-weight: 950;
  letter-spacing: -.08em;
  pointer-events: none;
}

.home-lead-cta-icon {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  display: grid;
  place-content: center;
  flex: 0 0 64px;
  border: 1px solid rgba(228, 197, 107, .35);
  border-radius: 20px;
  background: rgba(228, 197, 107, .09);
  color: var(--gold);
  font-size: 25px;
  font-weight: 900;
}

.home-lead-cta-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.home-lead-cta-copy h2 {
  margin: 8px 0 7px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.home-lead-cta-copy p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.home-lead-cta-button {
  position: relative;
  z-index: 1;
  min-width: 265px;
  white-space: nowrap;
}

.home-lead-cta-button span {
  font-size: 17px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 64px 0 20px;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-size: 34px;
  letter-spacing: -.04em;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.quick-card {
  min-height: 150px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color .2s, transform .2s, background .2s;
}

.quick-card:hover {
  transform: translateY(-3px);
  border-color: rgba(228,197,107,.35);
  background: var(--surface-2);
}

.quick-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-content: center;
  border-radius: 13px;
  background: rgba(228,197,107,.08);
  color: var(--gold);
}

.quick-card span:nth-child(2) {
  display: grid;
  gap: 5px;
}

.quick-card strong {
  font-size: 14px;
}

.quick-card small {
  color: #85837d;
  font-size: 11px;
}

.quick-card b {
  color: var(--gold);
}

.announcement-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  background: linear-gradient(115deg, rgba(228,197,107,.06), rgba(255,255,255,.02));
}

.announcement-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  border: 1px solid rgba(228,197,107,.26);
  border-radius: 14px;
  color: var(--gold);
}

.announcement-card h3 {
  margin: 9px 0 8px;
  font-size: 20px;
}

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

.page-heading {
  max-width: 820px;
  margin-bottom: 36px;
}

.progress-overview {
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  background: var(--surface);
}

.progress-overview > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.progress-overview span,
.progress-overview small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.progress-overview strong {
  color: var(--gold);
}

.progress-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #282828;
}

.progress-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
  transition: width .3s;
}

.progress-overview small {
  display: block;
  margin-top: 12px;
  letter-spacing: 0;
  font-weight: 500;
}

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

.course-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 25px;
  padding: 28px;
  background:
    radial-gradient(circle at 90% 10%, rgba(228,197,107,.09), transparent 14rem),
    var(--surface);
}

.course-card.completed {
  border-color: rgba(104,211,145,.27);
}

.course-number {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
}

.course-card h3 {
  max-width: 440px;
  margin: 28px 0 10px;
  font-size: 26px;
  line-height: 1.12;
  letter-spacing: -.035em;
}

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

.course-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 30px;
}

.course-actions button {
  min-height: 42px;
  border-radius: 12px;
  padding: 0 14px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.course-open {
  border: 1px solid var(--line);
  background: #222;
}

.course-complete {
  border: 1px solid rgba(228,197,107,.25);
  background: rgba(228,197,107,.08);
  color: var(--gold);
}

.course-card.completed .course-complete {
  border-color: rgba(104,211,145,.26);
  background: rgba(104,211,145,.08);
  color: var(--success);
}

.generator-card {
  border: 1px solid rgba(228,197,107,.2);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 42px);
  background:
    radial-gradient(circle at 92% 12%, rgba(228,197,107,.1), transparent 18rem),
    var(--surface);
}

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

.generator-head h2 {
  margin: 9px 0 18px;
  font-size: 30px;
  letter-spacing: -.04em;
}

.link-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #0b0b0b;
}

.link-result > div {
  min-width: 0;
}

.link-result small {
  display: block;
  margin-bottom: 7px;
  color: #797771;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}

.link-result code {
  display: block;
  overflow: hidden;
  color: #e8e4da;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  min-height: 38px;
  border: 1px solid rgba(228,197,107,.25);
  border-radius: 11px;
  padding: 0 13px;
  background: rgba(228,197,107,.08);
  color: var(--gold);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.resource-card {
  min-height: 245px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 23px;
  padding: 26px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.resource-card:hover {
  border-color: rgba(228,197,107,.3);
}

.resource-number {
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
}

.resource-card h3 {
  margin: 30px 0 10px;
  font-size: 22px;
  letter-spacing: -.03em;
}

.resource-card p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.55;
}

.resource-card b {
  margin-top: auto;
  color: var(--gold);
  font-size: 12px;
}

.coming-soon {
  opacity: .75;
}

.community-card {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 46px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: clamp(25px, 5vw, 56px);
  background:
    radial-gradient(circle at 15% 50%, rgba(228,197,107,.14), transparent 19rem),
    var(--surface);
}

.community-art {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.community-art span {
  width: 100px;
  height: 100px;
  display: grid;
  place-content: center;
  margin: 0 -12px;
  border: 1px solid rgba(228,197,107,.3);
  border-radius: 50%;
  background: #111;
  color: var(--gold);
  font-size: 42px;
  font-weight: 950;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}

.community-art span:nth-child(2) {
  transform: translateY(-30px);
}

.community-card h2 {
  margin: 18px 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -.06em;
}

.community-card p {
  max-width: 600px;
  margin: 0 0 27px;
  color: var(--muted);
  line-height: 1.7;
}

.config-hint {
  display: block;
  margin-top: 14px;
  color: #6f6d68;
  font-size: 10px;
}

.community-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.community-features article {
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 21px;
  padding: 24px;
  background: var(--surface);
}

.community-features span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
}

.community-features h3 {
  margin: 28px 0 9px;
}

.community-features p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 25px;
  padding: 28px;
  background: var(--surface);
}

.profile-avatar {
  width: 86px;
  height: 86px;
  display: grid;
  flex: 0 0 86px;
  place-content: center;
  border: 1px solid rgba(228,197,107,.35);
  border-radius: 28px;
  background: linear-gradient(145deg, #302919, #111);
  color: var(--gold);
  font-size: 24px;
  font-weight: 950;
}

.profile-card h2 {
  margin: 0 0 5px;
  font-size: 29px;
  letter-spacing: -.04em;
}

.profile-card p {
  margin: 0;
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.settings-list {
  overflow: hidden;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.setting-row {
  width: 100%;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 15px 20px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.setting-row:last-child {
  border-bottom: 0;
}

.setting-row span:first-child {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.setting-row small {
  color: #77756f;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}

.setting-row strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
}

.setting-row b {
  color: var(--gold);
}

.status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: #585858;
}

.version-label {
  margin-top: 26px;
  color: #575650;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .15em;
  text-align: center;
}

.bottom-nav {
  position: fixed;
  z-index: 40;
  bottom: 18px;
  left: 50%;
  width: min(calc(100% - 28px), 620px);
  min-height: 72px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: 7px;
  background: rgba(17,17,17,.92);
  box-shadow: 0 20px 70px rgba(0,0,0,.55);
  backdrop-filter: blur(24px);
  transform: translateX(-50%);
}

.nav-item {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 5px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #777;
  cursor: pointer;
}

.nav-item span {
  font-size: 17px;
}

.nav-item small {
  font-size: 9px;
  font-weight: 800;
}

.nav-item.active {
  background: rgba(255,255,255,.06);
  color: var(--text);
}

.nav-item.active span {
  color: var(--gold);
}

.nav-partner {
  position: relative;
}

.nav-partner::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(228,197,107,.18);
  border-radius: 14px;
}

.toast {
  position: fixed;
  z-index: 100;
  top: 22px;
  left: 50%;
  max-width: min(90vw, 480px);
  border: 1px solid rgba(228,197,107,.26);
  border-radius: 14px;
  padding: 13px 17px;
  background: #19160f;
  color: #f2e4b6;
  box-shadow: var(--shadow);
  font-size: 13px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -16px);
  transition: opacity .25s, transform .25s;
}

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

.modal-backdrop {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  place-content: center;
  padding: 20px;
  background: rgba(0,0,0,.76);
  backdrop-filter: blur(10px);
}

.modal-card {
  position: relative;
  width: min(100%, 490px);
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  padding: 34px;
  background: #121212;
  box-shadow: var(--shadow);
}

.modal-card h2 {
  margin: 10px 0 15px;
  font-size: 30px;
  letter-spacing: -.04em;
}

.modal-card p,
.modal-card li {
  color: var(--muted);
  line-height: 1.7;
}

.modal-card ol {
  padding-left: 20px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #1d1d1d;
  color: white;
  cursor: pointer;
  font-size: 22px;
}



/* =========================================================
   Version 1.2 · Werbematerialien & Affiliate-Performance
   ========================================================= */

.materials-heading {
  align-items: flex-end;
  margin-top: 64px;
}

.materials-intro {
  margin: 8px 0 0;
  line-height: 1.6;
}

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

.material-card {
  min-height: 235px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 23px;
  background:
    radial-gradient(circle at 92% 8%, rgba(228,197,107,.08), transparent 11rem),
    var(--surface);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.material-card:hover {
  transform: translateY(-3px);
  border-color: rgba(228,197,107,.34);
  background-color: var(--surface-2);
}

.material-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.material-number {
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
}

.material-category {
  overflow: hidden;
  color: #7f7c74;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.material-card h3 {
  margin: 30px 0 10px;
  font-size: 21px;
  line-height: 1.18;
  letter-spacing: -.035em;
}

.material-card p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.material-card b {
  margin-top: auto;
  color: var(--gold);
  font-size: 11px;
}

.lead-page-heading {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.refresh-stats-button {
  flex: 0 0 auto;
}

.refresh-stats-button:disabled {
  cursor: wait;
  opacity: .6;
}

.affiliate-performance-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.lead-stat-card.featured-stat {
  border-color: rgba(228,197,107,.3);
  background:
    radial-gradient(circle at 88% 6%, rgba(228,197,107,.17), transparent 11rem),
    linear-gradient(145deg, #1a160d, #101010 74%);
}

.lead-stat-card.featured-stat strong {
  color: var(--gold);
}

.affiliate-performance-card {
  margin-bottom: 18px;
  border: 1px solid rgba(228,197,107,.2);
  border-radius: 23px;
  padding: clamp(22px, 4vw, 32px);
  background:
    radial-gradient(circle at 92% 0%, rgba(228,197,107,.11), transparent 19rem),
    var(--surface);
}

.affiliate-performance-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.affiliate-performance-head h2 {
  margin: 12px 0 0;
  font-size: clamp(24px, 4vw, 35px);
  letter-spacing: -.045em;
}

.affiliate-performance-head > small {
  color: #77756f;
  font-size: 10px;
  white-space: nowrap;
}

.live-source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--success);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}

.live-source i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(104,211,145,.09);
}

.affiliate-award-progress {
  height: 10px;
  overflow: hidden;
  margin-top: 25px;
  border-radius: 999px;
  background: #292929;
}

.affiliate-award-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
  box-shadow: 0 0 14px rgba(228,197,107,.25);
  transition: width .45s ease;
}

.affiliate-progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 13px;
}

.affiliate-progress-copy strong {
  color: #e8e4da;
  font-size: 13px;
}

.affiliate-progress-copy span {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}


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

  .auth-hero {
    display: none;
  }

  .auth-panel {
    min-height: 100vh;
    padding: 24px;
    background:
      radial-gradient(circle at 50% 5%, rgba(228,197,107,.15), transparent 24rem),
      var(--bg);
  }

  .mobile-brand {
    width: 58px;
    height: 58px;
    display: grid;
    place-content: center;
    margin-bottom: 34px;
    border: 1px solid var(--gold);
    border-radius: 18px;
    color: var(--gold);
    font-weight: 900;
  }

  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .resource-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .app-header {
    height: calc(68px + var(--safe-top));
    min-height: calc(68px + var(--safe-top));
    padding: var(--safe-top) 18px 0;
  }

  .header-brand strong {
    font-size: 12px;
  }

  .install-button {
    display: none;
  }

  .app-content {
    width: min(100% - 28px, 1220px);
    padding-top: 34px;
    padding-bottom: calc(118px + var(--safe-bottom));
  }

  .welcome-row {
    align-items: flex-start;
  }

  .welcome-row h1,
  .page-heading h1 {
    font-size: 43px;
  }

  .hero-card {
    min-height: 570px;
    grid-template-columns: 1fr;
  }

  .hero-card-content {
    padding: 30px 24px;
  }

  .hero-card h2 {
    font-size: 43px;
  }

  .hero-card-art {
    min-height: 210px;
    order: -1;
  }

  .hero-monogram {
    font-size: 96px;
  }

  .orbit-one {
    width: 260px;
    height: 140px;
  }

  .orbit-two {
    width: 330px;
    height: 190px;
  }

  .countdown {
    gap: 12px;
  }

  .countdown div {
    min-width: 62px;
  }

  .quick-grid,
  .course-grid,
  .community-features {
    grid-template-columns: 1fr;
  }

  .quick-card {
    min-height: 96px;
  }


  .home-lead-cta {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 17px;
    padding: 23px;
  }

  .home-lead-cta-button {
    width: 100%;
    min-width: 0;
    grid-column: 1 / -1;
  }

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

  .generator-head {
    display: grid;
  }

  .link-result {
    grid-template-columns: 1fr;
  }

  .copy-button {
    width: 100%;
  }

  .community-card {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .community-art {
    min-height: 220px;
  }

  .community-art span {
    width: 76px;
    height: 76px;
    font-size: 32px;
  }

  .profile-avatar {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
    border-radius: 22px;
  }

  .profile-card h2 {
    font-size: 23px;
  }

  .bottom-nav {
    bottom: calc(10px + var(--safe-bottom));
    width: calc(100% - 18px);
    min-height: 67px;
    border-radius: 21px;
  }

  .auth-card {
    padding: 30px 23px;
    border-radius: 24px;
  }

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

@media (max-width: 420px) {
  .header-brand > span:last-child {
    display: none;
  }


  .home-lead-cta {
    grid-template-columns: 1fr;
  }

  .home-lead-cta-icon {
    width: 54px;
    height: 54px;
    border-radius: 17px;
  }

  .home-lead-cta-copy h2 {
    font-size: 27px;
  }

  .welcome-row {
    display: grid;
  }

  .hero-card {
    min-height: 545px;
  }

  .hero-card-art {
    min-height: 180px;
  }

  .countdown strong {
    font-size: 27px;
  }

  .profile-card {
    align-items: flex-start;
    padding: 22px;
  }

  .nav-item small {
    font-size: 8px;
  }

  .modal-card {
    padding: 28px 22px;
  }
}


/* =========================================================
   RCC APP 1.1 — ACADEMY, LINKS, LEADS & LEADERBOARD
   ========================================================= */

.academy-toolbar,
.subpage-toolbar,
.lead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.compact-heading {
  margin-top: 38px;
}

.generator-note {
  margin: 13px 0 24px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.affiliate-link-groups {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.affiliate-link-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #0b0b0b;
}

.affiliate-link-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 23px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 96% 0%, rgba(228,197,107,.08), transparent 16rem),
    rgba(255,255,255,.015);
}

.affiliate-category {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .15em;
}

.affiliate-link-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
  letter-spacing: -.03em;
}

.affiliate-link-card p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.affiliate-link-count {
  flex: 0 0 auto;
  border: 1px solid rgba(228,197,107,.22);
  border-radius: 999px;
  padding: 7px 9px;
  color: var(--gold);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
}

.affiliate-generated-links {
  display: grid;
}

.generated-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.generated-link-row:last-child {
  border-bottom: 0;
}

.generated-link-copy {
  min-width: 0;
}

.generated-link-copy small {
  display: block;
  margin-bottom: 6px;
  color: #77756f;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.generated-link-copy code {
  display: block;
  overflow: hidden;
  color: #e8e4da;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.generated-link-actions {
  display: flex;
  gap: 8px;
}

.open-link-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 13px;
  background: #1d1d1d;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
}

.open-link-button.disabled {
  opacity: .45;
}

.partner-tools-grid {
  grid-template-columns: repeat(3, 1fr);
}

.full-width-panel {
  width: min(100vw - 24px, 1480px);
  margin-left: 50%;
  transform: translateX(-50%);
}

.embedded-page-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow);
}

.leaderboard-frame {
  width: 100%;
  min-height: 82vh;
  display: block;
  border: 0;
  background: #000;
}

.lead-status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.lead-stat-card {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  background:
    radial-gradient(circle at 90% 10%, rgba(228,197,107,.07), transparent 10rem),
    var(--surface);
}

.lead-stat-card small {
  margin-bottom: 8px;
  color: #77756f;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}

.lead-stat-card strong {
  overflow-wrap: anywhere;
  font-size: 18px;
}

.lead-center-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: flex-start;
  border: 1px solid rgba(228,197,107,.18);
  border-radius: 22px;
  padding: 26px;
  background: linear-gradient(120deg, rgba(228,197,107,.06), rgba(255,255,255,.01));
}

.lead-center-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-content: center;
  border: 1px solid rgba(228,197,107,.3);
  border-radius: 15px;
  color: var(--gold);
  font-size: 22px;
}

.lead-center-card h2 {
  margin: 8px 0 9px;
  font-size: 25px;
  letter-spacing: -.04em;
}

.lead-center-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.leads-empty-state {
  margin-top: 18px;
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 23px;
  padding: clamp(26px, 5vw, 46px);
  text-align: center;
  background: rgba(255,255,255,.018);
}

.leads-empty-state > span {
  color: var(--gold);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .16em;
}

.leads-empty-state h3 {
  max-width: 720px;
  margin: 15px auto 10px;
  font-size: clamp(24px, 4vw, 38px);
  letter-spacing: -.04em;
}

.leads-empty-state p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.7;
}

.lead-actions {
  justify-content: center;
  margin: 24px 0 0;
}

.community-links-grid a {
  min-height: 190px;
  display: block;
  border: 1px solid var(--line);
  border-radius: 21px;
  padding: 24px;
  background: var(--surface);
  transition: border-color .2s, transform .2s;
}

.community-links-grid a:hover {
  transform: translateY(-2px);
  border-color: rgba(228,197,107,.32);
}

.community-links-grid a span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
}

.community-links-grid a h3 {
  margin: 28px 0 9px;
}

.community-links-grid a p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.community-links-grid a b {
  color: var(--gold);
  font-size: 12px;
}

@media (max-width: 1000px) {
  .partner-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lead-status-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .affiliate-link-card-head,
  .generated-link-row {
    grid-template-columns: 1fr;
  }

  .affiliate-link-card-head {
    display: grid;
  }

  .generated-link-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .generated-link-actions > * {
    width: 100%;
  }

  .partner-tools-grid {
    grid-template-columns: 1fr;
  }

  .full-width-panel {
    width: calc(100vw - 12px);
  }

  .embedded-page-shell {
    border-radius: 14px;
  }

  .leaderboard-frame {
    min-height: 88vh;
  }

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

  .academy-toolbar,
  .subpage-toolbar {
    display: grid;
  }

  .academy-toolbar > *,
  .subpage-toolbar > * {
    width: 100%;
  }
}


@media (max-width: 1120px) {
  .affiliate-performance-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .materials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .materials-heading,
  .lead-page-heading {
    display: grid;
    align-items: start;
  }

  .materials-heading .badge,
  .refresh-stats-button {
    justify-self: start;
  }

  .materials-grid,
  .affiliate-performance-grid {
    grid-template-columns: 1fr;
  }

  .material-card {
    min-height: 205px;
  }

  .affiliate-performance-head,
  .affiliate-progress-copy {
    display: grid;
  }

  .affiliate-performance-head > small,
  .affiliate-progress-copy span {
    text-align: left;
    white-space: normal;
  }
}


/* =========================================================
   RCC APP 1.3 — SICHERE PERSÖNLICHE LEAD-LISTE
   ========================================================= */

.personal-leads-section {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(22px, 4vw, 34px);
  background:
    radial-gradient(circle at 92% 0%, rgba(228,197,107,.08), transparent 18rem),
    var(--surface);
}

.lead-list-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 20px;
}

.lead-list-toolbar h2 {
  margin: 9px 0 7px;
  font-size: clamp(27px, 4vw, 38px);
  letter-spacing: -.045em;
}

#leadListStatus {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

#leadListStatus[data-tone="success"] {
  color: var(--success);
}

#leadListStatus[data-tone="error"] {
  color: #ffaaaa;
}

.lead-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.lead-mini-stats article {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 17px;
  background: rgba(255,255,255,.022);
}

.lead-mini-stats small {
  margin-bottom: 8px;
  color: #77756f;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .13em;
}

.lead-mini-stats strong {
  color: var(--gold);
  font-size: 24px;
  letter-spacing: -.04em;
}

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

.lead-row {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) minmax(170px, .65fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: #0d0d0d;
  transition: border-color .2s, transform .2s, background .2s;
}

.lead-row:hover {
  transform: translateY(-1px);
  border-color: rgba(228,197,107,.27);
  background: #111;
}

.lead-row.lead-released {
  box-shadow: inset 3px 0 0 rgba(104,211,145,.65);
}

.lead-row.lead-masked {
  box-shadow: inset 3px 0 0 rgba(228,197,107,.55);
}

.lead-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-content: center;
  border: 1px solid rgba(228,197,107,.3);
  border-radius: 15px;
  background: linear-gradient(145deg, #302919, #111);
  color: var(--gold);
  font-size: 15px;
  font-weight: 950;
}

.lead-main,
.lead-email-block {
  min-width: 0;
}

.lead-name-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.lead-name-line h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -.025em;
}

.lead-consent-badge {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border: 1px solid;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .11em;
}

.lead-consent-badge.released {
  border-color: rgba(104,211,145,.3);
  background: rgba(104,211,145,.08);
  color: var(--success);
}

.lead-consent-badge.masked {
  border-color: rgba(228,197,107,.28);
  background: rgba(228,197,107,.08);
  color: var(--gold);
}

.lead-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 14px;
  margin-top: 8px;
  color: #77756f;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}

.lead-email-block {
  display: grid;
  gap: 6px;
}

.lead-email-block small {
  color: #77756f;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .13em;
}

.lead-email-block strong {
  overflow: hidden;
  color: #e8e4da;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-contact-button {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(104,211,145,.28);
  border-radius: 11px;
  padding: 0 12px;
  background: rgba(104,211,145,.08);
  color: var(--success);
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.lead-contact-button.disabled {
  border-color: var(--line);
  background: rgba(255,255,255,.025);
  color: #77756f;
  cursor: not-allowed;
}

.lead-list-loading {
  min-height: 210px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 15px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  color: var(--muted);
}

.lead-list-loading p {
  margin: 0;
  font-size: 12px;
}

.lead-list-empty {
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
  background: rgba(255,255,255,.014);
}

.lead-list-empty > span {
  color: var(--gold);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .15em;
}

.lead-list-empty h3 {
  max-width: 660px;
  margin: 14px auto 9px;
  font-size: clamp(23px, 4vw, 34px);
  letter-spacing: -.04em;
}

.lead-list-empty p {
  max-width: 690px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.7;
}

.lead-list-empty.error-state {
  border-color: rgba(255,123,123,.24);
  background: rgba(255,123,123,.025);
}

.lead-list-empty.error-state > span {
  color: #ffaaaa;
}

@media (max-width: 900px) {
  .lead-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "avatar main action"
      "avatar email action";
  }

  .lead-avatar { grid-area: avatar; }
  .lead-main { grid-area: main; }
  .lead-email-block { grid-area: email; }
  .lead-row-action { grid-area: action; }
}

@media (max-width: 680px) {
  .lead-list-toolbar {
    display: grid;
    align-items: start;
  }

  .lead-list-toolbar .refresh-stats-button {
    width: 100%;
  }

  .lead-mini-stats {
    grid-template-columns: 1fr;
  }

  .lead-mini-stats article {
    min-height: 76px;
  }

  .lead-row {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "avatar main"
      "email email"
      "action action";
    align-items: start;
  }

  .lead-row-action,
  .lead-contact-button {
    width: 100%;
  }

  .lead-email-block {
    border-top: 1px solid var(--line);
    padding-top: 13px;
  }

  .lead-email-block strong {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}


/* =========================================================
   RCC PASSWORT FESTLEGEN · VERSION 1.4.0
   ========================================================= */

.password-reset-layout {
  background: var(--bg);
}

.password-reset-hero {
  background:
    linear-gradient(130deg, rgba(8, 8, 8, .18), rgba(8, 8, 8, .96)),
    radial-gradient(circle at 22% 32%, rgba(228, 197, 107, .28), transparent 24rem),
    radial-gradient(circle at 82% 80%, rgba(178, 139, 53, .12), transparent 22rem),
    linear-gradient(155deg, #292317 0%, #0b0b0b 55%, #050505 100%);
}

.password-reset-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .28;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.password-reset-hero h1,
.password-reset-hero > p,
.password-reset-hero .auth-topline,
.reset-hero-points {
  position: relative;
  z-index: 2;
}

.reset-hero-points {
  display: grid;
  gap: 14px;
  width: min(100%, 650px);
  margin-top: 48px;
}

.reset-hero-points > div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 17px;
  background: rgba(255, 255, 255, .025);
  backdrop-filter: blur(10px);
}

.reset-point-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  border: 1px solid rgba(228, 197, 107, .34);
  border-radius: 14px;
  background: rgba(228, 197, 107, .08);
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

.reset-hero-points p {
  display: grid;
  gap: 4px;
  margin: 0;
}

.reset-hero-points strong {
  color: #f7f3e8;
  font-size: 14px;
}

.reset-hero-points small {
  color: #9f9b92;
  font-size: 12px;
  line-height: 1.55;
}

.password-reset-panel {
  position: relative;
  overflow: hidden;
}

.password-reset-panel::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  top: -190px;
  right: -190px;
  border-radius: 50%;
  background: rgba(228, 197, 107, .08);
  filter: blur(1px);
  pointer-events: none;
}

.reset-card {
  position: relative;
  z-index: 1;
  width: min(100%, 500px);
}

.reset-state {
  animation: resetStateIn .32s ease both;
}

@keyframes resetStateIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.reset-state > .muted {
  margin: 0 0 26px;
  line-height: 1.7;
}

.reset-account-copy strong {
  display: block;
  margin-top: 5px;
  color: #f5f1e7;
  overflow-wrap: anywhere;
}

.reset-state-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-content: center;
  margin: 0 0 26px;
  border-radius: 23px;
  font-size: 31px;
  font-weight: 900;
}

.reset-state-icon-loading {
  border: 1px solid rgba(228, 197, 107, .22);
  background: rgba(228, 197, 107, .07);
}

.reset-state-icon-loading .loader {
  width: 31px;
  height: 31px;
}

.reset-state-icon-success {
  border: 1px solid rgba(104, 211, 145, .28);
  background: rgba(104, 211, 145, .09);
  color: var(--success);
  box-shadow: 0 0 34px rgba(104, 211, 145, .08);
}

.reset-state-icon-error {
  border: 1px solid rgba(255, 123, 123, .28);
  background: rgba(255, 123, 123, .09);
  color: var(--danger);
}

.password-strength {
  margin: 13px 0 0;
}

.password-strength-track {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: #242424;
}

.password-strength-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #676767;
  transition: width .22s ease, background .22s ease, box-shadow .22s ease;
}

.password-strength-track i[data-level="weak"] {
  background: #ff7b7b;
}

.password-strength-track i[data-level="medium"] {
  background: #e1a84b;
}

.password-strength-track i[data-level="good"] {
  background: #d8c467;
}

.password-strength-track i[data-level="strong"] {
  background: var(--success);
  box-shadow: 0 0 16px rgba(104, 211, 145, .35);
}

.password-strength-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: #777570;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.password-strength-head strong {
  color: #aaa79f;
  font-size: 10px;
}

.password-strength-head strong[data-level="weak"] {
  color: #ff9d9d;
}

.password-strength-head strong[data-level="medium"] {
  color: #e8bd72;
}

.password-strength-head strong[data-level="good"] {
  color: #ded182;
}

.password-strength-head strong[data-level="strong"] {
  color: var(--success);
}

.password-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 8px;
  padding: 0;
  list-style: none;
}

.password-rules li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #777570;
  font-size: 11px;
  line-height: 1.4;
}

.password-rules li span {
  width: 19px;
  height: 19px;
  display: grid;
  flex: 0 0 19px;
  place-content: center;
  border: 1px solid #343434;
  border-radius: 50%;
  color: transparent;
  font-size: 10px;
  transition: all .2s ease;
}

.password-rules li.passed {
  color: #c8c6bf;
}

.password-rules li.passed span {
  border-color: rgba(104, 211, 145, .35);
  background: rgba(104, 211, 145, .09);
  color: var(--success);
}

#passwordResetSubmit {
  margin-top: 24px;
}

.reset-security-note {
  margin-top: 26px;
}

.reset-login-button {
  margin-top: 24px;
}

.reset-login-url {
  margin: 14px 0 0;
  color: #777570;
  font-size: 11px;
  text-align: center;
  letter-spacing: .04em;
}

.reset-support-button {
  margin-top: 10px;
}

@media (max-width: 920px) {
  .password-reset-layout {
    grid-template-columns: 1fr;
  }

  .password-reset-hero {
    min-height: auto;
    padding: 42px 24px 30px;
  }

  .password-reset-hero h1 {
    margin: 15px 0 13px;
    font-size: clamp(43px, 12vw, 68px);
    line-height: .92;
  }

  .password-reset-hero > p {
    max-width: 640px;
    font-size: 15px;
    line-height: 1.65;
  }

  .reset-hero-points {
    display: none;
  }

  .password-reset-panel {
    min-height: auto;
    place-items: start center;
    padding: 0 18px 34px;
    background: var(--bg);
  }

  .reset-card {
    margin-top: -2px;
    padding: 32px 25px;
    border-radius: 25px;
  }

  .reset-card .mobile-brand {
    display: grid;
    width: 54px;
    height: 54px;
    place-content: center;
    margin-bottom: 22px;
    border: 1px solid var(--gold);
    border-radius: 17px;
    color: var(--gold);
    font-size: 16px;
    font-weight: 900;
  }

  .reset-state-icon {
    width: 62px;
    height: 62px;
    margin-bottom: 22px;
    border-radius: 20px;
  }
}

@media (max-width: 520px) {
  .password-reset-hero {
    padding-top: max(34px, env(safe-area-inset-top));
  }

  .password-reset-panel {
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: max(26px, env(safe-area-inset-bottom));
  }

  .reset-card {
    padding: 28px 20px;
    border-radius: 22px;
  }

  .reset-card h2 {
    font-size: 30px;
  }

  .password-rules {
    grid-template-columns: 1fr;
  }

  .password-strength-head {
    align-items: flex-start;
  }
}


/* =========================================================
   App-Benachrichtigungen · Version 1.5.0
   ========================================================= */

.setting-row .setting-status {
  overflow: hidden;
  color: #85837d;
  font-size: 11px;
  font-style: normal;
  line-height: 1.45;
  text-overflow: ellipsis;
}

.notification-setting {
  transition: background .2s ease, opacity .2s ease;
}

.notification-setting:hover {
  background: rgba(228, 197, 107, .035);
}

.notification-setting.is-enabled {
  background: rgba(104, 211, 145, .045);
}

.notification-setting.is-enabled #notificationSettingStatus,
.notification-setting.is-enabled #notificationSettingIcon {
  color: var(--success);
}

.notification-setting:disabled {
  cursor: wait;
  opacity: .66;
}


/* =========================================================
   RCC REMOTE CREATOR PASSPORT · VERSION 1.6.0
   ========================================================= */
.passport-panel {
  --passport-paper: #e8dfc5;
  --passport-ink: #17140e;
  --passport-gold: #d7b65d;
  --passport-red: #8d2d2d;
}

.passport-page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 30px;
}

.passport-page-heading h1 {
  margin: 9px 0 12px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: .91;
  letter-spacing: -.07em;
}

.passport-page-heading p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.passport-share-button { flex-shrink: 0; }

.passport-stage {
  perspective: 1800px;
  padding: 18px 0 28px;
}

.passport-book {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: 660px;
  border: 1px solid rgba(215,182,93,.38);
  border-radius: 30px;
  background: #1a130a;
  box-shadow: 0 45px 100px rgba(0,0,0,.62), 0 0 80px rgba(215,182,93,.08);
  overflow: hidden;
  transform: rotateX(1.2deg);
  transform-style: preserve-3d;
}

.passport-book::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 8px rgba(80,49,13,.32), inset 0 0 70px rgba(0,0,0,.28);
}

.passport-spine {
  position: absolute;
  z-index: 12;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 28px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(0,0,0,.25), rgba(255,255,255,.18), rgba(0,0,0,.36));
  box-shadow: 0 0 25px rgba(0,0,0,.62);
  pointer-events: none;
}

.passport-page {
  position: relative;
  min-width: 0;
  padding: clamp(28px, 4vw, 50px);
  color: var(--passport-ink);
  background:
    radial-gradient(circle at 22% 12%, rgba(143,45,45,.06), transparent 18rem),
    repeating-linear-gradient(0deg, rgba(34,30,20,.018) 0 1px, transparent 1px 5px),
    var(--passport-paper);
  overflow: hidden;
}

.passport-identity-page { border-right: 1px solid rgba(45,35,16,.2); }
.passport-stamps-page { background-color: #e1d4b4; }

.passport-watermark {
  position: absolute;
  right: -8%;
  bottom: -12%;
  color: rgba(94,64,21,.055);
  font-size: clamp(160px, 23vw, 330px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.12em;
  transform: rotate(-13deg);
}

.passport-country-line,
.passport-page-topline,
.passport-title-row,
.passport-verified-strip {
  position: relative;
  z-index: 2;
}

.passport-country-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(35,28,16,.45);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
}

.passport-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 26px 0 30px;
}

.passport-title-row small,
.passport-page-topline small {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .2em;
  color: #805b22;
}

.passport-title-row h2,
.passport-page-topline h2 {
  margin: 5px 0 0;
  font-size: clamp(30px, 4vw, 49px);
  line-height: .95;
  letter-spacing: -.055em;
}

.passport-chip {
  width: 55px;
  height: 43px;
  display: grid;
  place-content: center;
  border: 2px solid #9f7c37;
  border-radius: 9px;
  background: linear-gradient(145deg, #f3d98a, #aa7c27);
  color: #33220a;
  font-size: 22px;
  font-weight: 950;
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.18);
}

.passport-identity-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 24px;
  align-items: stretch;
}

.passport-photo {
  min-height: 166px;
  display: grid;
  place-content: center;
  border: 1px solid rgba(64,45,15,.4);
  background:
    linear-gradient(145deg, rgba(138,104,44,.22), rgba(255,255,255,.16)),
    repeating-linear-gradient(45deg, rgba(70,47,11,.08) 0 2px, transparent 2px 7px);
  color: #5f461d;
  font-size: 43px;
  font-weight: 950;
  letter-spacing: -.08em;
  box-shadow: inset 0 0 25px rgba(65,40,8,.16);
}

.passport-data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}

.passport-data-grid div { min-width: 0; }
.passport-data-grid small,
.passport-live-stats small {
  display: block;
  margin-bottom: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .17em;
  color: #81683e;
}
.passport-data-grid strong { display: block; overflow-wrap: anywhere; font-size: 14px; }

.passport-machine-line {
  position: relative;
  z-index: 2;
  margin-top: 30px;
  padding: 15px 10px;
  border-top: 1px solid rgba(42,32,15,.35);
  border-bottom: 1px solid rgba(42,32,15,.35);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(10px, 1.25vw, 14px);
  letter-spacing: .12em;
  white-space: nowrap;
  overflow: hidden;
}

.passport-verified-strip {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .16em;
  color: #3b632e;
}
.passport-verified-strip i { width: 8px; height: 8px; border-radius: 50%; background: #4b8e3d; box-shadow: 0 0 0 5px rgba(75,142,61,.13); }

.passport-page-topline { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.passport-score { text-align: right; }
.passport-score strong { display: block; font-size: 44px; line-height: .85; color: #8b2b2b; }
.passport-score span { font-family: ui-monospace, monospace; font-size: 8px; letter-spacing: .18em; }

.passport-live-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0;
}
.passport-live-stats div { padding: 13px; border: 1px solid rgba(52,38,15,.22); background: rgba(255,255,255,.18); }
.passport-live-stats strong { font-size: 17px; }

.passport-stamp-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px 10px;
}

.passport-stamp { min-width: 0; text-align: center; transform: rotate(-1.5deg); }
.passport-stamp:nth-child(2n) { transform: rotate(2deg); }
.passport-stamp:nth-child(3n) { transform: rotate(-3deg); }
.passport-stamp-ring {
  width: 74px;
  height: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 7px;
  border: 3px double currentColor;
  border-radius: 50%;
  color: #8d2d2d;
  background: rgba(141,45,45,.025);
  box-shadow: inset 0 0 0 3px rgba(141,45,45,.08);
}
.passport-stamp-icon { font-size: 22px; font-weight: 950; line-height: 1; }
.passport-stamp-ring small { margin-top: 5px; font-family: ui-monospace, monospace; font-size: 6px; font-weight: 900; letter-spacing: .07em; }
.passport-stamp > strong { display: block; font-size: 9px; line-height: 1.15; }
.passport-stamp > em { display: block; margin-top: 3px; font-family: ui-monospace, monospace; font-size: 6px; font-style: normal; letter-spacing: .12em; }
.passport-stamp.is-unlocked { animation: passportStampIn .55s both; }
.passport-stamp.is-locked { opacity: .19; filter: grayscale(1); }
.passport-stamp.is-locked .passport-stamp-ring { border-style: dashed; }
@keyframes passportStampIn { from { opacity: 0; transform: scale(1.25) rotate(-8deg); } to { opacity: 1; } }

.passport-next-mission {
  position: relative;
  z-index: 2;
  margin-top: 24px;
  padding-top: 17px;
  border-top: 1px solid rgba(51,39,18,.25);
}
.passport-next-mission > span { display: block; font-family: ui-monospace, monospace; font-size: 7px; font-weight: 900; letter-spacing: .17em; color: #8b6429; }
.passport-next-mission > strong { display: block; margin: 7px 0 12px; font-size: 13px; }
.passport-progress-track { height: 6px; overflow: hidden; border-radius: 99px; background: rgba(48,35,15,.15); }
.passport-progress-track i { display: block; height: 100%; width: 4%; border-radius: inherit; background: linear-gradient(90deg, #82302c, #d0984a); transition: width .55s ease; }

.passport-trust-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  margin-top: 24px;
  padding: 28px;
  border: 1px solid rgba(228,197,107,.22);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(228,197,107,.08), rgba(255,255,255,.02));
}
.passport-trust-card > span { color: var(--gold); font-size: 36px; }
.passport-trust-card h3 { margin: 7px 0; font-size: 22px; }
.passport-trust-card p { margin: 0; color: var(--muted); line-height: 1.65; }
.passport-setting-row b { color: var(--gold); }

@media (max-width: 900px) {
  .passport-book { grid-template-columns: 1fr; transform: none; }
  .passport-spine { display: none; }
  .passport-identity-page { border-right: 0; border-bottom: 14px solid #6c4618; }
  .passport-page-heading { align-items: flex-start; flex-direction: column; }
  .passport-share-button { width: 100%; }
}

@media (max-width: 560px) {
  .passport-stage { margin-inline: -10px; padding-top: 4px; }
  .passport-book { min-height: 0; border-radius: 18px; }
  .passport-page { padding: 25px 20px; }
  .passport-identity-grid { grid-template-columns: 88px 1fr; gap: 15px; }
  .passport-photo { min-height: 138px; font-size: 30px; }
  .passport-data-grid { gap: 13px 10px; }
  .passport-data-grid strong { font-size: 11px; }
  .passport-stamp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px 3px; }
  .passport-stamp-ring { width: 61px; height: 61px; }
  .passport-stamp-icon { font-size: 18px; }
  .passport-stamp > strong { font-size: 7px; }
  .passport-live-stats strong { font-size: 13px; }
  .passport-page-heading h1 { font-size: 49px; }
}


/* =========================================================
   RCC PROFILFOTO & PASSPORT-FOTO · VERSION 1.6.1
   ========================================================= */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.profile-avatar-button,
.passport-photo-button {
  position: relative;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.profile-avatar-button:hover,
.passport-photo-button:hover {
  border-color: var(--gold);
}

.profile-avatar-button.has-profile-photo,
.passport-photo-button.has-profile-photo,
#headerInitials.has-profile-photo {
  color: transparent;
  text-shadow: none;
}

.profile-photo-edit,
.passport-photo-edit {
  position: absolute;
  right: 5px;
  bottom: 5px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: var(--gold);
  color: #111;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .38);
  font-weight: 950;
  line-height: 1;
}

.profile-photo-edit {
  width: 25px;
  height: 25px;
  font-size: 17px;
}

.passport-photo-edit {
  width: 27px;
  height: 27px;
  border: 1px solid rgba(76, 52, 12, .45);
  background: #d6b65f;
  color: #33230a;
  font-size: 18px;
}

.profile-avatar-button.has-profile-photo .profile-photo-edit,
.passport-photo-button.has-profile-photo .passport-photo-edit {
  opacity: .88;
}

.profile-card-copy {
  min-width: 0;
}

.profile-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
}

.profile-photo-actions .text-button {
  font-size: 12px;
}

.danger-text {
  color: #ff8f8f;
}

#headerInitials {
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  border-radius: inherit;
  background-position: center;
  background-size: cover;
}

.passport-photo-button {
  width: 100%;
  min-height: 166px;
  border-radius: 2px;
}

@media (max-width: 640px) {
  .profile-card {
    align-items: flex-start;
  }

  .profile-photo-actions {
    gap: 12px;
  }

  .passport-photo-button {
    min-height: 146px;
  }
}


/* =========================================================
   RCC Monument · Community
   ========================================================= */
.monument-section {
  margin: 28px 0 24px;
}

.monument-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.monument-heading h2 {
  margin: 8px 0 7px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: .95;
  letter-spacing: -.055em;
}

.monument-heading p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.monument-share-button { flex: 0 0 auto; }

.monument-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(360px, .84fr);
  min-height: 590px;
  border: 1px solid rgba(228, 197, 107, .28);
  border-radius: 32px;
  background: #0d0d0d;
  box-shadow: 0 30px 90px rgba(0,0,0,.48);
}

.monument-sky {
  position: relative;
  overflow: hidden;
  min-height: 590px;
  background:
    radial-gradient(circle at 50% 18%, rgba(228,197,107,.19), transparent 18rem),
    radial-gradient(circle at 75% 38%, rgba(89,117,157,.16), transparent 20rem),
    linear-gradient(180deg, #080b12 0%, #111015 56%, #17130b 100%);
}

.monument-sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
  pointer-events: none;
}

.monument-stars {
  position: absolute;
  inset: 0;
  opacity: .75;
  background-image:
    radial-gradient(circle at 12% 18%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 32% 11%, #d9c27c 0 1px, transparent 1.5px),
    radial-gradient(circle at 67% 15%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 85% 27%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 50% 7%, #d9c27c 0 1px, transparent 1.5px);
}

.monument-building {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 78px;
  width: min(78%, 560px);
  height: 440px;
  transform: translateX(-50%);
  filter: drop-shadow(0 30px 42px rgba(0,0,0,.68));
}

.monument-tower {
  position: absolute;
  bottom: 34px;
  overflow: hidden;
  border: 1px solid rgba(232,208,140,.18);
  background: linear-gradient(100deg, #08090b, #242323 48%, #0b0c0f 100%);
  box-shadow: inset 0 0 34px rgba(255,255,255,.025);
  transform-origin: bottom;
  transition: opacity .7s ease, transform .9s cubic-bezier(.2,.8,.2,1), filter .7s ease;
}

.monument-tower-main {
  left: 28%;
  width: 44%;
  height: 84%;
  clip-path: polygon(12% 9%, 50% 0, 88% 9%, 100% 100%, 0 100%);
}

.monument-tower-left,
.monument-tower-right {
  width: 29%;
  height: 55%;
  opacity: 0;
  transform: scaleY(.15);
}

.monument-tower-left { left: 2%; clip-path: polygon(16% 13%, 82% 0, 100% 100%, 0 100%); }
.monument-tower-right { right: 2%; clip-path: polygon(18% 0, 84% 13%, 100% 100%, 0 100%); }

.monument-window-grid {
  position: absolute;
  inset: 21% 18% 12%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 10px;
}

.monument-window-grid i,
.monument-tower-left i,
.monument-tower-right i {
  display: block;
  border: 1px solid rgba(228,197,107,.12);
  background: #101317;
  box-shadow: inset 0 0 8px rgba(0,0,0,.8);
}

.monument-tower-left,
.monument-tower-right { padding: 62px 32px 28px; }
.monument-tower-left i,
.monument-tower-right i { height: 18px; margin-bottom: 17px; }

.monument-rcc-mark {
  position: absolute;
  top: 12%;
  left: 50%;
  color: rgba(228,197,107,.18);
  font-size: clamp(26px, 4vw, 54px);
  font-weight: 950;
  letter-spacing: -.08em;
  transform: translateX(-50%);
  transition: color .8s ease, text-shadow .8s ease;
}

.monument-foundation {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 0;
  height: 50px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  perspective: 500px;
}

.monument-foundation span {
  border: 1px solid rgba(228,197,107,.28);
  background: linear-gradient(145deg, #29251b, #0b0b0c);
  transform: rotateX(48deg);
}

.monument-crown {
  position: absolute;
  z-index: 5;
  top: 2%;
  left: 50%;
  width: 90px;
  height: 64px;
  opacity: 0;
  border: 1px solid rgba(228,197,107,.45);
  background: linear-gradient(135deg, rgba(228,197,107,.8), rgba(82,58,12,.25));
  clip-path: polygon(0 100%, 12% 30%, 34% 67%, 50% 0, 66% 67%, 88% 30%, 100% 100%);
  transform: translateX(-50%) translateY(28px) scale(.4);
  transition: .9s cubic-bezier(.2,.8,.2,1);
}

.monument-beacon {
  position: absolute;
  z-index: 4;
  top: -20%;
  left: 50%;
  width: 4px;
  height: 43%;
  opacity: 0;
  background: linear-gradient(to top, rgba(228,197,107,.82), transparent);
  transform: translateX(-50%);
  filter: blur(1px);
  transition: opacity .7s ease;
}

.monument-bridge {
  position: absolute;
  z-index: 6;
  left: 16%;
  right: 16%;
  bottom: 44%;
  height: 24px;
  opacity: 0;
  border: 1px solid rgba(228,197,107,.45);
  background: linear-gradient(180deg, #2f2a1d, #090a0c);
  box-shadow: 0 0 18px rgba(228,197,107,.14);
  transform: scaleX(.1);
  transition: .9s cubic-bezier(.2,.8,.2,1);
}

.monument-ground {
  position: absolute;
  z-index: 2;
  left: -10%;
  right: -10%;
  bottom: 0;
  height: 145px;
  background: radial-gradient(ellipse at 50% 0, rgba(228,197,107,.18), transparent 60%), linear-gradient(180deg, #17130c, #050505);
  clip-path: polygon(0 35%, 50% 0, 100% 35%, 100% 100%, 0 100%);
}

.monument-build-flash {
  position: absolute;
  z-index: 10;
  top: 18%;
  left: 50%;
  opacity: 0;
  padding: 9px 13px;
  border: 1px solid rgba(228,197,107,.55);
  border-radius: 999px;
  background: rgba(8,8,8,.72);
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .15em;
  transform: translate(-50%, 14px);
}

.monument-building.monument-stage-1 .monument-window-grid i:nth-child(-n+4),
.monument-building.monument-stage-2 .monument-window-grid i:nth-child(-n+8),
.monument-building.monument-stage-3 .monument-window-grid i:nth-child(-n+12),
.monument-building.monument-stage-4 .monument-window-grid i,
.monument-building.monument-stage-5 .monument-window-grid i,
.monument-building.monument-stage-6 .monument-window-grid i,
.monument-building.monument-stage-7 .monument-window-grid i {
  background: linear-gradient(180deg, #ffe8a1, #9d6d18);
  box-shadow: 0 0 12px rgba(228,197,107,.38);
}

.monument-building.monument-stage-2 .monument-rcc-mark,
.monument-building.monument-stage-3 .monument-rcc-mark,
.monument-building.monument-stage-4 .monument-rcc-mark,
.monument-building.monument-stage-5 .monument-rcc-mark,
.monument-building.monument-stage-6 .monument-rcc-mark,
.monument-building.monument-stage-7 .monument-rcc-mark {
  color: var(--gold);
  text-shadow: 0 0 24px rgba(228,197,107,.58);
}

.monument-building.monument-stage-4 .monument-crown,
.monument-building.monument-stage-5 .monument-crown,
.monument-building.monument-stage-6 .monument-crown,
.monument-building.monument-stage-7 .monument-crown {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.monument-building.monument-stage-4 .monument-beacon,
.monument-building.monument-stage-5 .monument-beacon,
.monument-building.monument-stage-6 .monument-beacon,
.monument-building.monument-stage-7 .monument-beacon { opacity: 1; animation: monumentBeacon 2.8s ease-in-out infinite; }

.monument-building.monument-stage-5 .monument-tower-left,
.monument-building.monument-stage-5 .monument-tower-right,
.monument-building.monument-stage-6 .monument-tower-left,
.monument-building.monument-stage-6 .monument-tower-right,
.monument-building.monument-stage-7 .monument-tower-left,
.monument-building.monument-stage-7 .monument-tower-right {
  opacity: 1;
  transform: scaleY(1);
}

.monument-building.monument-stage-5 .monument-bridge,
.monument-building.monument-stage-6 .monument-bridge,
.monument-building.monument-stage-7 .monument-bridge { opacity: 1; transform: scaleX(1); }

.monument-building.monument-stage-6,
.monument-building.monument-stage-7 { filter: drop-shadow(0 30px 42px rgba(0,0,0,.68)) drop-shadow(0 0 24px rgba(228,197,107,.12)); }

@keyframes monumentBeacon { 0%,100% { opacity: .45; } 50% { opacity: 1; } }

.monument-dashboard {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 4.5vw, 58px);
  background: radial-gradient(circle at 100% 0, rgba(228,197,107,.08), transparent 20rem), #101010;
}

.monument-status-row,
.monument-progress-copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.monument-live,
.monument-stage-label {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .15em;
}

.monument-live { color: #c9c5bb; }
.monument-live i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px rgba(104,211,145,.09); }
.monument-stage-label { padding: 7px 10px; border: 1px solid rgba(228,197,107,.25); border-radius: 999px; color: var(--gold); background: rgba(228,197,107,.07); }

.monument-dashboard h3 {
  margin: 30px 0 12px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -.055em;
}

.monument-dashboard > p { margin: 0; color: var(--muted); line-height: 1.68; }

.monument-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 30px 0;
}

.monument-stats article {
  min-width: 0;
  padding: 17px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
}

.monument-stats small { display: block; min-height: 24px; color: #77746d; font-size: 8px; font-weight: 900; letter-spacing: .1em; line-height: 1.4; }
.monument-stats strong { display: block; margin-top: 8px; color: var(--gold); font-size: 25px; letter-spacing: -.04em; }

.monument-progress-copy { margin-bottom: 10px; color: #aaa69d; font-size: 11px; }
.monument-progress-copy b { color: var(--gold); }
.monument-progress-track { height: 7px; overflow: hidden; border-radius: 999px; background: #24211b; }
.monument-progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8f691f, #f0d17a); box-shadow: 0 0 16px rgba(228,197,107,.34); transition: width 1s cubic-bezier(.2,.8,.2,1); }

.monument-contribution {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 25px;
  padding: 17px;
  border: 1px solid rgba(228,197,107,.18);
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(228,197,107,.065), transparent);
}

.monument-stone-icon { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-content: center; border: 1px solid rgba(228,197,107,.32); border-radius: 12px; color: var(--gold); background: #17130b; transform: rotate(45deg); }
.monument-contribution p { margin: 0; color: #8f8b82; font-size: 12px; line-height: 1.55; }
.monument-contribution strong { color: #eee9dc; font-size: 13px; }

@media (max-width: 920px) {
  .monument-card { grid-template-columns: 1fr; }
  .monument-sky { min-height: 520px; }
  .monument-building { width: min(84%, 510px); height: 390px; }
}

@media (max-width: 640px) {
  .monument-heading { align-items: flex-start; flex-direction: column; }
  .monument-share-button { width: 100%; }
  .monument-card { min-height: 0; border-radius: 24px; }
  .monument-sky { min-height: 410px; }
  .monument-building { bottom: 55px; width: 92%; height: 320px; }
  .monument-tower-left, .monument-tower-right { padding: 44px 17px 18px; }
  .monument-dashboard { padding: 28px 20px 30px; }
  .monument-stats { grid-template-columns: 1fr 1fr; }
  .monument-stats article:last-child { grid-column: 1 / -1; }
  .monument-dashboard h3 { margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .monument-building,
  .monument-tower,
  .monument-crown,
  .monument-bridge,
  .monument-progress-track span,
  .monument-beacon { transition: none !important; animation: none !important; }
}
