:root {
  --rr-bg: #f3f1ed;
  --rr-surface: rgba(255, 255, 255, 0.78);
  --rr-surface-solid: #ffffff;
  --rr-ink: #161616;
  --rr-muted: #6f6a61;
  --rr-line: rgba(25, 25, 25, 0.1);
  --rr-dark: #111111;
  --rr-gold: #c9a24a;
  --rr-soft-gold: #f3e6bf;
  --rr-green: #4f8f5b;
  --rr-orange: #c7842d;
  --rr-red: #9d4c42;
  --rr-blue: #4d6f91;
  --rr-radius: 26px;
  --rr-shadow: 0 24px 60px rgba(33, 30, 25, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(201, 162, 74, 0.20), transparent 32rem),
    radial-gradient(circle at bottom right, rgba(77, 111, 145, 0.16), transparent 32rem),
    var(--rr-bg);
  color: var(--rr-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.rr-auth-body {
  display: grid;
  place-items: center;
  padding: 28px;
}

.rr-auth-shell {
  width: min(1120px, 100%);
  min-height: 680px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
}

.rr-auth-brand,
.rr-auth-card,
.rr-card,
.rr-stat-card,
.rr-sidebar,
.rr-topbar {
  border: 1px solid var(--rr-line);
  background: var(--rr-surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--rr-shadow);
}

.rr-auth-brand {
  border-radius: 34px;
  padding: 46px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
}

.rr-auth-brand::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(201, 162, 74, 0.30), rgba(255, 255, 255, 0));
  top: -120px;
  right: -130px;
}

.rr-auth-brand h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  margin-bottom: 16px;
}

.rr-auth-brand p {
  max-width: 560px;
  color: var(--rr-muted);
  font-size: 1.05rem;
}

.rr-brand-mark {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 2rem;
  color: #fff;
  background: linear-gradient(135deg, var(--rr-dark), #3a3326);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  margin-bottom: 28px;
}

.rr-brand-mark.small {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  font-size: 1.2rem;
  margin-bottom: 0;
}

.rr-auth-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.rr-auth-points span,
.rr-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--rr-line);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.55);
  color: #302b22;
  font-weight: 700;
  font-size: 0.83rem;
}

.rr-auth-card {
  border-radius: 34px;
  padding: 40px;
  align-self: center;
}

.rr-auth-title {
  font-size: 2rem;
  font-weight: 850;
  letter-spacing: -0.045em;
}

.rr-auth-footer {
  margin-top: 22px;
  color: var(--rr-muted);
  font-size: 0.92rem;
}

.rr-auth-footer a {
  font-weight: 800;
  text-decoration: none;
}

.rr-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rr-gold);
  font-size: 0.74rem;
  font-weight: 900;
}

.rr-control {
  border-radius: 16px;
  min-height: 48px;
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

.rr-control:focus {
  border-color: var(--rr-gold);
  box-shadow: 0 0 0 0.25rem rgba(201, 162, 74, 0.16);
}

.rr-btn-dark {
  border-radius: 16px;
  min-height: 48px;
  border: 0;
  background: var(--rr-dark);
  color: #fff;
  font-weight: 800;
}

.rr-btn-dark:hover {
  background: #2b261d;
  color: #fff;
}

.rr-app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
}

.rr-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-radius: 0 30px 30px 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}

.rr-sidebar-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rr-line);
}

.rr-sidebar-brand strong {
  display: block;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
}

.rr-sidebar-brand span {
  color: var(--rr-muted);
  font-size: 0.82rem;
}

.rr-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
}

.rr-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  text-decoration: none;
  border-radius: 17px;
  color: #2b2925;
  font-weight: 750;
}

.rr-nav a i {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.06);
}

.rr-nav a.active,
.rr-nav a:hover:not(.disabled) {
  background: var(--rr-dark);
  color: #fff;
}

.rr-nav a.active i,
.rr-nav a:hover:not(.disabled) i {
  background: rgba(255, 255, 255, 0.13);
}

.rr-nav a.disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.rr-nav-divider {
  height: 1px;
  background: var(--rr-line);
  margin: 10px 0;
}

.rr-sidebar-note {
  margin-top: auto;
  display: flex;
  gap: 10px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(201, 162, 74, 0.12);
  color: #6a5420;
  font-size: 0.82rem;
  font-weight: 700;
}

.rr-main {
  min-width: 0;
  padding: 22px;
}

.rr-topbar {
  min-height: 82px;
  border-radius: 28px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.rr-topbar h1 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.055em;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.rr-icon-btn,
.rr-user-btn {
  border: 1px solid var(--rr-line);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 16px;
  font-weight: 800;
}

.rr-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
}

.rr-avatar {
  width: 34px;
  height: 34px;
  border-radius: 13px;
  display: inline-grid;
  place-items: center;
  background: var(--rr-dark);
  color: #fff;
  font-weight: 900;
}

.rr-avatar.large {
  width: 86px;
  height: 86px;
  border-radius: 28px;
  font-size: 2.2rem;
}

.rr-content {
  padding-bottom: 34px;
}

.rr-grid {
  display: grid;
  gap: 16px;
}

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

.rr-stat-card,
.rr-card {
  border-radius: var(--rr-radius);
  padding: 22px;
}

.rr-stat-card p {
  margin: 14px 0 4px;
  color: var(--rr-muted);
  font-weight: 800;
}

.rr-stat-card strong {
  display: block;
  font-size: 2rem;
  letter-spacing: -0.055em;
  line-height: 1;
}

.rr-stat-card small {
  color: var(--rr-muted);
}

.rr-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: rgba(201, 162, 74, 0.17);
  color: #6a5420;
}

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

.rr-card-header.compact {
  margin-bottom: 18px;
}

.rr-card-header h2,
.rr-next-box h3,
.rr-profile-card h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.rr-map-demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 18px;
  align-items: stretch;
}

.rr-map-toolbar {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.rr-map-toolbar button {
  border: 1px solid var(--rr-line);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.65);
  font-weight: 850;
}

.rr-map-toolbar button.active {
  background: var(--rr-dark);
  color: #fff;
}

.rr-map-canvas {
  min-height: 390px;
  border-radius: 26px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.4) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.4) 1px, transparent 1px),
    linear-gradient(135deg, #d9d3c3, #eee8da);
  background-size: 32px 32px, 32px 32px, auto;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rr-line);
}

.rr-lot,
.rr-road {
  position: absolute;
  border: 2px solid rgba(17, 17, 17, 0.3);
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #161616;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.rr-lot:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.15);
}

.rr-lot-a { left: 8%; top: 12%; width: 28%; height: 28%; }
.rr-lot-b { left: 39%; top: 12%; width: 24%; height: 34%; }
.rr-lot-c { right: 8%; top: 12%; width: 24%; height: 30%; }
.rr-lot-d { left: 11%; bottom: 12%; width: 45%; height: 26%; }
.rr-road { right: 8%; bottom: 14%; width: 26%; height: 22%; background: rgba(17, 17, 17, 0.08); color: #555; }

.rr-lot.available { background: rgba(79, 143, 91, 0.35); }
.rr-lot.reserved { background: rgba(201, 132, 45, 0.35); }
.rr-lot.sold { background: rgba(157, 76, 66, 0.35); }

.rr-map-canvas.condo-mode {
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.06), rgba(255, 255, 255, 0.4)),
    #e7e3d9;
}

.rr-map-canvas.condo-mode .rr-road {
  display: none;
}

.rr-map-canvas.condo-mode .rr-lot {
  left: 18%;
  width: 64%;
  height: 15%;
  border-radius: 18px;
}

.rr-map-canvas.condo-mode .rr-lot-a { top: 9%; }
.rr-map-canvas.condo-mode .rr-lot-b { top: 30%; }
.rr-map-canvas.condo-mode .rr-lot-c { top: 51%; }
.rr-map-canvas.condo-mode .rr-lot-d { top: 72%; }

.rr-computation-panel {
  border: 1px solid var(--rr-line);
  border-radius: 26px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.67);
}

.rr-computation-panel h3 {
  font-weight: 900;
  letter-spacing: -0.045em;
  font-size: 1.35rem;
}

.rr-computation-list,
.rr-mini-list {
  display: grid;
  gap: 10px;
}

.rr-computation-list div,
.rr-mini-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rr-line);
}

.rr-computation-list span,
.rr-mini-list span {
  color: var(--rr-muted);
  font-weight: 750;
}

.rr-computation-list strong,
.rr-mini-list strong {
  text-align: right;
}

.rr-progress-stack {
  display: grid;
  gap: 18px;
}

.progress {
  height: 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
}

.progress-bar {
  border-radius: 999px;
}

.rr-bg-available { background: var(--rr-green); }
.rr-bg-reserved { background: var(--rr-orange); }
.rr-bg-sold { background: var(--rr-red); }

.rr-next-box {
  padding: 18px;
  border-radius: 22px;
  background: rgba(201, 162, 74, 0.12);
}

.rr-next-box ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--rr-muted);
  font-weight: 650;
}

.rr-table thead th {
  color: var(--rr-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom-color: var(--rr-line);
}

.rr-table td {
  border-bottom-color: var(--rr-line);
}

.rr-type-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.74rem;
  font-weight: 900;
  background: rgba(17, 17, 17, 0.08);
}

.rr-type-badge.condo {
  background: rgba(77, 111, 145, 0.16);
  color: #2f526d;
}

.rr-type-badge.lot {
  background: rgba(79, 143, 91, 0.16);
  color: #376841;
}

.rr-profile-card {
  text-align: center;
}

.rr-profile-card .rr-avatar {
  margin-bottom: 18px;
}

.rr-profile-card p {
  color: var(--rr-muted);
}

.rr-narrow-card {
  max-width: 760px;
}

@media (max-width: 1100px) {
  .rr-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rr-map-demo {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .rr-auth-shell {
    grid-template-columns: 1fr;
  }

  .rr-auth-brand {
    min-height: 360px;
  }

  .rr-app-shell {
    grid-template-columns: 1fr;
  }

  .rr-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 286px;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
  }

  body.rr-sidebar-open .rr-sidebar {
    transform: translateX(0);
  }
}

@media (max-width: 640px) {
  .rr-auth-body,
  .rr-main {
    padding: 14px;
  }

  .rr-auth-brand,
  .rr-auth-card,
  .rr-card,
  .rr-stat-card,
  .rr-topbar {
    border-radius: 22px;
  }

  .rr-auth-brand,
  .rr-auth-card {
    padding: 24px;
  }

  .rr-grid-4 {
    grid-template-columns: 1fr;
  }

  .rr-topbar {
    align-items: flex-start;
  }
}
