* {
  box-sizing: border-box;
}

:root {
  --bg-1: #060f20;
  --bg-2: #0e1d3c;
  --bg-3: #132a52;
  --text-main: #e9f0ff;
  --text-muted: #97a9cc;
  --accent: #16c79a;
  --accent-2: #00a77a;
  --topbar-h: 84px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 650px at 95% -8%, rgba(24, 197, 154, 0.18) 0%, transparent 45%),
    linear-gradient(145deg, var(--bg-1) 0%, var(--bg-2) 52%, var(--bg-3) 100%);
  color: var(--text-main);
  font-family: "Plus Jakarta Sans", sans-serif;
}

#app {
  padding: 0;
}

.page-shell {
  width: 100%;
  margin-inline: auto;
}

.glass {
  background: rgba(9, 23, 48, 0.74);
  border: 1px solid rgba(116, 151, 194, 0.24);
  backdrop-filter: blur(10px);
}

.hero-nav {
  padding: 14px 18px;
  min-height: var(--topbar-h);
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
}

.brand-title {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  color: #a9c5ff;
}

.brand-subtitle {
  margin: 2px 0 0;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.12em;
}

.user-main {
  display: block;
  position: relative;
  min-height: 100vh;
}

.user-sidebar {
  border: none;
  border-right: 1px solid #2d317f;
  border-radius: 0;
  background: #3f43a6;
  padding: 14px;
  position: fixed;
  top: 0;
  left: 0;
  width: 242px;
  height: 100vh;
  overflow: auto;
  z-index: 20;
}

.sidebar-title {
  margin: 0;
  color: #d2d7ff;
  font-size: 16px;
  letter-spacing: 0.01em;
  text-transform: none;
  font-weight: 700;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
}

.sidebar-brand-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.sidebar-subtitle {
  margin: 0 0 10px;
  color: #d2d7ff;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
}

.sidebar-list {
  display: grid;
  gap: 6px;
}

.sidebar-link {
  display: grid;
  grid-template-columns: 1fr 12px;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #eef2ff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 0;
  border-right: 0;
  border-top: 0;
  padding: 11px 6px;
  font-size: 14px;
  font-weight: 600;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-link.is-active {
  background: #ee2127;
  border-color: #ee2127;
  border-radius: 4px;
  padding-inline: 10px;
  color: #fff;
}

.sidebar-chevron {
  text-align: right;
}

.mobile-nav-toggle {
  display: none;
}

.user-content {
  background: #e8e9ef;
  border-left: 1px solid #d7dae4;
  padding: 14px;
  margin-left: 242px;
  min-height: 100vh;
}

.user-content section[id] {
  scroll-margin-top: 10px;
}

.section-card {
  background: #fdfdff;
  border: 1px solid #d6dbea;
  border-radius: 10px;
  padding: 16px;
  box-shadow: none;
}

.section-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #6070b7;
  font-weight: 700;
}

.section-title {
  margin: 0 0 12px;
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.05rem, 1.5vw, 1.26rem);
  color: #2f419a;
}

.text-muted {
  color: #60709a;
}

.input-modern {
  background: #f3f6fd;
  border: 1px solid #cad2e5;
  color: #1f2b49;
  min-height: 46px;
}

.input-modern:focus {
  outline: none;
  border-color: #4f7fe3;
  box-shadow: 0 0 0 3px rgba(79, 127, 227, 0.2);
}

.btn-success {
  background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 100%);
  color: #fff;
  font-weight: 700;
  border: 1px solid rgba(12, 162, 123, 0.86);
}

.btn-soft {
  background: #f3f6fd;
  border: 1px solid #cad2e5;
  color: #203154;
}

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

.plot-card {
  background: #ffffff;
  border: 1px solid #d6dbea;
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  animation: fadeSlide 320ms ease both;
  color: #233359;
}

.plot-card:hover {
  border-color: #8ea5de;
}

.plot-card.is-selected {
  border-color: #4f7fe3;
  box-shadow: 0 0 0 2px rgba(79, 127, 227, 0.2);
}

.plot-image {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 8px;
}

.media-locked {
  filter: blur(6px);
  user-select: none;
}

.media-lock-note {
  margin: -2px 0 8px;
  color: #b63b3b;
  font-size: 0.8rem;
  font-weight: 600;
}

.plot-meta {
  color: #4a5f92;
  font-size: 13px;
}

.plot-card h3 {
  color: #2f419a;
}

.plot-card .text-slate-300 {
  color: #5f6f95 !important;
}

.plot-card .text-sm {
  color: #5a6a90;
}

.media-empty {
  display: grid;
  place-items: center;
  background: #f2f4fa;
  border: 1px dashed #c2cade;
  color: #60709a;
}

.map-container {
  width: 100%;
  height: min(55vh, 440px);
  border: 1px solid #cfd6e8;
  border-radius: 10px;
  background: #f0f3fb;
  overflow: hidden;
}

.payment-log {
  display: grid;
  gap: 10px;
}

.payment-log-item {
  border: 1px solid #d3dbef;
  border-radius: 10px;
  background: #f7f9ff;
  padding: 10px 12px;
}

.payment-log-main {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #22335c;
  font-size: 0.92rem;
}

.payment-log-note {
  margin: 6px 0 0;
  color: #5f6f95;
  font-size: 0.86rem;
}

.pay-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.74rem;
  font-weight: 700;
}

.pay-pending {
  background: #fff5cc;
  color: #775c00;
}

.pay-completed {
  background: #d9f8eb;
  color: #0e6a4d;
}

.pay-failed {
  background: #ffe1e1;
  color: #8b1d1d;
}

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

.faq-item {
  border: 1px solid #d3dbef;
  border-radius: 10px;
  background: #f7f9ff;
  padding: 10px 12px;
}

.faq-q {
  margin: 0;
  color: #273b85;
  font-weight: 700;
}

.faq-a {
  margin: 5px 0 0;
  color: #4f608b;
  font-size: 0.92rem;
}

.user-footer {
  margin-top: 16px;
  margin-left: -14px;
  margin-right: -14px;
  margin-bottom: -14px;
  border-radius: 12px;
  padding: 18px;
  background: linear-gradient(130deg, #0f2247 0%, #1f3f82 100%);
  color: #d8e5ff;
}

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

.footer-brand {
  margin: 0 0 6px;
  font-family: "Outfit", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.footer-heading {
  margin: 0 0 6px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9dc0ff;
}

.footer-note {
  margin: 0;
  color: #d8e5ff;
  font-size: 0.92rem;
}

.footer-social {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.social-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #f6fbff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: transform 150ms ease, background-color 150ms ease;
}

.social-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.social-icon:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.26);
}

.footer-links {
  display: grid;
  gap: 6px;
}

.footer-links a {
  text-decoration: none;
  color: #eaf2ff;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-copy {
  margin: 0;
  color: #b8cef7;
  font-size: 0.8rem;
}

.footer-bottom {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(157, 192, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.back-to-top {
  text-decoration: none;
  color: #f3f8ff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.back-to-top:hover {
  background: rgba(255, 255, 255, 0.24);
}

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

@media (min-width: 780px) {
  .plot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1160px) {
  .plot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #2d317f;
    background: #3f43a6;
    color: #eef2ff;
    border-radius: 8px;
    padding: 10px 12px;
    font-weight: 700;
    margin: 0 14px 10px;
    width: fit-content;
  }

  .user-sidebar {
    display: none;
    position: static;
    width: auto;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #2d317f;
    border-radius: 0;
  }

  .user-sidebar.is-mobile-open {
    display: block;
  }

  .user-content {
    margin-left: 0;
    min-height: 0;
  }

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

@media (max-width: 560px) {
  .sidebar-list {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
