:root {
  --bg-0: #050915;
  --bg-1: #091329;
  --panel: rgba(14, 26, 50, 0.78);
  --panel-strong: rgba(16, 31, 58, 0.94);
  --line: rgba(121, 170, 221, 0.18);
  --line-strong: rgba(0, 218, 255, 0.35);
  --text: #eef7ff;
  --muted: #8ea6c3;
  --cyan: #35ddff;
  --cyan-deep: #0d91c4;
  --amber: #ffc15a;
  --green: #54e39b;
  --red: #ff758f;
  --purple: #ad8cff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --nav-width: 232px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg-0);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 87% -5%, rgba(28, 134, 190, 0.28), transparent 32rem),
    radial-gradient(circle at -12% 30%, rgba(90, 68, 176, 0.12), transparent 28rem),
    linear-gradient(145deg, #050915 0%, #081227 48%, #050914 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.2;
  content: "";
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

button,
input,
select {
  font: inherit;
}

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

button {
  border: 0;
  cursor: pointer;
}

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

.app-shell {
  display: grid;
  grid-template-columns: var(--nav-width) minmax(0, 1fr);
  grid-template-rows: 76px minmax(0, 1fr);
  min-height: 100vh;
  max-width: 1680px;
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 10, 24, 0.78);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 194px;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(95, 232, 255, 0.6);
  border-radius: 13px;
  background: linear-gradient(145deg, #1bb8dc, #17316c 62%, #10172f);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.27), inset 0 1px rgba(255,255,255,0.4);
  transform: perspective(80px) rotateX(8deg) rotateY(-8deg);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255,255,255,0.52);
  border-radius: 50%;
}

.brand-mark::before {
  width: 22px;
  height: 22px;
}

.brand-mark::after {
  width: 6px;
  height: 6px;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  font-size: 15px;
  letter-spacing: 0.15em;
}

.brand-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.topbar-status,
.topbar-actions,
.inline-actions,
.avatar-line,
.stat-line,
.card-heading,
.item-row,
.progress-label,
.chat-toolbar,
.chat-user,
.chat-message-meta {
  display: flex;
  align-items: center;
}

.topbar-status {
  justify-content: center;
  gap: 10px;
  min-width: 0;
}

.status-chip,
.premium-chip,
.level-chip,
.online-chip,
.tag,
.market-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 31px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,0.045);
  font-size: 11px;
  white-space: nowrap;
}

.status-chip::before,
.online-chip::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  content: "";
}

.premium-chip {
  color: #ffe7a8;
  border-color: rgba(255, 193, 90, 0.27);
  background: rgba(255, 176, 50, 0.11);
}

.premium-chip::before {
  color: var(--amber);
  content: "✦";
  font-size: 15px;
}

.topbar-actions {
  justify-content: flex-end;
  gap: 9px;
}

.icon-button,
.round-button {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  transition: 180ms ease;
}

.icon-button:hover,
.round-button:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(0, 205, 255, 0.12);
  transform: translateY(-2px);
}

.avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(113, 230, 255, 0.55);
  border-radius: 13px;
  color: #041225;
  background: linear-gradient(145deg, #a9f4ff, #479bc7 48%, #1e356d);
  box-shadow: 0 0 20px rgba(0, 204, 255, 0.22);
  font-weight: 800;
}

.sidebar {
  position: sticky;
  top: 76px;
  height: calc(100vh - 76px);
  padding: 27px 14px 22px;
  border-right: 1px solid var(--line);
}

.nav-label {
  margin: 4px 13px 11px;
  color: #5f7693;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--muted);
  font-size: 13px;
  transition: 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  border-color: rgba(66, 215, 255, 0.18);
  background: linear-gradient(90deg, rgba(0, 204, 255, 0.14), rgba(57, 95, 185, 0.07));
}

.nav-link.active::before {
  position: absolute;
  left: -1px;
  width: 3px;
  height: 22px;
  border-radius: 5px;
  background: var(--cyan);
  box-shadow: 0 0 13px var(--cyan);
  content: "";
}

.nav-icon {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  place-items: center;
  color: var(--cyan);
  border-radius: 9px;
  background: rgba(24, 119, 165, 0.14);
  font-size: 14px;
}

.sidebar-note {
  margin-top: auto;
  padding: 15px;
  border: 1px solid rgba(109, 135, 183, 0.18);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(28, 52, 93, 0.7), rgba(9, 18, 38, 0.6));
}

.sidebar-note small,
.eyebrow,
.label,
.card-kicker,
.muted {
  color: var(--muted);
}

.sidebar-note small {
  display: block;
  line-height: 1.55;
}

.sidebar-note strong {
  display: block;
  margin: 7px 0 10px;
  font-size: 14px;
}

.main-content {
  min-width: 0;
  padding: 32px clamp(18px, 3vw, 46px) 44px;
}

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

.eyebrow,
.card-kicker,
.label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-top: 8px;
  font-size: clamp(27px, 3.2vw, 42px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

h2 {
  font-size: 18px;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 14px;
}

.subline {
  max-width: 600px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.primary-button,
.secondary-button,
.quiet-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #04111f;
  background: linear-gradient(135deg, #5ee8ff, #2eb7ef 52%, #3c76e7);
  box-shadow: 0 10px 24px rgba(0, 192, 255, 0.2), inset 0 1px rgba(255,255,255,0.45);
  font-size: 12px;
  font-weight: 800;
  transition: 180ms ease;
}

.primary-button:hover,
.secondary-button:hover,
.quiet-button:hover,
.danger-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.secondary-button {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(20, 95, 137, 0.2);
  box-shadow: none;
}

.quiet-button {
  min-height: 34px;
  padding: 7px 11px;
  color: var(--muted);
  border-color: var(--line);
  background: rgba(255,255,255,0.04);
  box-shadow: none;
  font-size: 11px;
}

.danger-button {
  color: #ffe8ed;
  border-color: rgba(255, 117, 143, 0.24);
  background: rgba(145, 34, 67, 0.32);
  box-shadow: none;
}

.dashboard-hero,
.glass-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.dashboard-hero {
  min-height: 316px;
  isolation: isolate;
}

.dashboard-hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../assets/city-life.png");
  background-position: center;
  background-size: cover;
  content: "";
  filter: saturate(0.88) contrast(1.04);
}

.dashboard-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 10, 24, 0.96) 0%, rgba(5, 13, 30, 0.76) 36%, rgba(5, 13, 30, 0.12) 74%),
    linear-gradient(0deg, rgba(4, 8, 19, 0.78), transparent 52%);
  content: "";
}

.hero-content {
  display: flex;
  min-height: 316px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 620px;
  padding: clamp(26px, 5vw, 54px);
}

.hero-content h2 {
  max-width: 520px;
  margin-top: 13px;
  font-size: clamp(28px, 4.4vw, 50px);
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.hero-content p {
  max-width: 480px;
  margin-top: 15px;
  color: #c1d1e6;
  font-size: 13px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-badge {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: 230px;
  padding: 10px 13px;
  border: 1px solid rgba(255,255,255,0.17);
  border-radius: 14px;
  color: #d8e6f7;
  background: rgba(5, 13, 28, 0.58);
  backdrop-filter: blur(12px);
  font-size: 11px;
}

.hero-badge strong {
  display: block;
  color: var(--text);
  font-size: 12px;
}

.sprite {
  display: inline-block;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  background-image: url("../assets/lifesim-icon-atlas.png");
  background-repeat: no-repeat;
  background-size: 400% 200%;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.3));
}

.sprite-home { background-position: 0% 0%; }
.sprite-market { background-position: 33.333% 0%; }
.sprite-work { background-position: 66.666% 0%; }
.sprite-wallet { background-position: 100% 0%; }
.sprite-map { background-position: 0% 100%; }
.sprite-warehouse { background-position: 33.333% 100%; }
.sprite-car { background-position: 66.666% 100%; }
.sprite-chat { background-position: 100% 100%; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin: 17px 0;
}

.metric-card {
  position: relative;
  display: flex;
  min-height: 114px;
  flex-direction: column;
  justify-content: space-between;
  padding: 17px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(18, 36, 70, 0.86), rgba(8, 18, 38, 0.74));
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.17);
}

.metric-card::after {
  position: absolute;
  right: -24px;
  bottom: -35px;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(80, 225, 255, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 12px rgba(80, 225, 255, 0.04), 0 0 0 25px rgba(80, 225, 255, 0.03);
  content: "";
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.metric-icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(77, 221, 255, 0.18);
  border-radius: 10px;
  color: var(--cyan);
  background: rgba(13, 161, 205, 0.13);
  font-size: 15px;
}

.metric-card:nth-child(2) .metric-icon { color: var(--amber); background: rgba(255, 193, 90, 0.1); border-color: rgba(255,193,90,0.2); }
.metric-card:nth-child(3) .metric-icon { color: var(--green); background: rgba(84, 227, 155, 0.1); border-color: rgba(84,227,155,0.2); }
.metric-card:nth-child(4) .metric-icon { color: var(--purple); background: rgba(173, 140, 255, 0.1); border-color: rgba(173,140,255,0.2); }

.metric-value {
  margin-top: 13px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.metric-change {
  color: var(--green);
  font-size: 10px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 17px;
  align-items: start;
}

.stack {
  display: grid;
  gap: 17px;
}

.glass-card {
  padding: 21px;
}

.card-heading {
  justify-content: space-between;
  gap: 13px;
  margin-bottom: 18px;
}

.card-heading .muted {
  font-size: 11px;
}

.goal-card {
  display: grid;
  gap: 15px;
}

.goal-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid rgba(133, 166, 210, 0.1);
}

.goal-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.goal-title {
  display: flex;
  gap: 11px;
  align-items: center;
}

.goal-title > span:first-child {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 9px;
  color: var(--cyan);
  background: rgba(0, 211, 255, 0.1);
}

.goal-title strong,
.goal-title small {
  display: block;
}

.goal-title strong {
  font-size: 12px;
}

.goal-title small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.progress-wrap {
  min-width: 130px;
}

.progress-label {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
}

.progress-label strong {
  color: var(--text);
  font-size: 10px;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255,255,255,0.08);
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan-deep), var(--cyan));
  box-shadow: 0 0 13px rgba(53, 221, 255, 0.55);
}

.progress-fill.green { background: linear-gradient(90deg, #1ca976, var(--green)); box-shadow: 0 0 13px rgba(84,227,155,0.45); }
.progress-fill.amber { background: linear-gradient(90deg, #bc7123, var(--amber)); box-shadow: 0 0 13px rgba(255,193,90,0.42); }
.progress-fill.purple { background: linear-gradient(90deg, #6c55bf, var(--purple)); box-shadow: 0 0 13px rgba(173,140,255,0.42); }

.activity-list,
.market-list,
.skill-list,
.achievement-list {
  display: grid;
  gap: 11px;
}

.activity-item,
.market-item,
.skill-item,
.achievement-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px;
  border: 1px solid rgba(135, 170, 214, 0.1);
  border-radius: 13px;
  background: rgba(255,255,255,0.025);
}

.activity-icon,
.market-icon,
.skill-icon,
.achievement-icon {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  place-items: center;
  border-radius: 11px;
  color: var(--cyan);
  background: rgba(39, 132, 185, 0.15);
  font-size: 15px;
}

.activity-copy,
.market-copy,
.skill-copy,
.achievement-copy {
  min-width: 0;
  flex: 1;
}

.activity-copy strong,
.activity-copy small,
.market-copy strong,
.market-copy small,
.skill-copy strong,
.skill-copy small,
.achievement-copy strong,
.achievement-copy small {
  display: block;
}

.activity-copy strong,
.market-copy strong,
.skill-copy strong,
.achievement-copy strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-copy small,
.market-copy small,
.skill-copy small,
.achievement-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.amount {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.amount.negative { color: var(--red); }

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(260px, 0.76fr);
  gap: 17px;
}

.page-card {
  min-height: 180px;
}

.page-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.stat-line {
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(133, 166, 210, 0.1);
}

.stat-line:first-child { border-top: 0; }
.stat-line span { color: var(--muted); font-size: 11px; }
.stat-line strong { font-size: 12px; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(135, 170, 214, 0.1);
  border-radius: 14px;
}

.data-table {
  width: 100%;
  min-width: 570px;
  border-collapse: collapse;
  font-size: 12px;
}

.data-table th,
.data-table td {
  padding: 14px 13px;
  text-align: left;
  border-bottom: 1px solid rgba(135, 170, 214, 0.1);
}

.data-table tr:last-child td { border-bottom: 0; }
.data-table th { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.data-table td { color: #dce9f8; }
.data-table .product { display: flex; gap: 10px; align-items: center; }
.data-table .product strong { display: block; }
.data-table .product small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }

.mini-product-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  color: var(--amber);
  background: linear-gradient(145deg, rgba(255, 193, 90, 0.26), rgba(90, 56, 27, 0.4));
  font-size: 18px;
}

.trend-up { color: var(--green); }
.trend-down { color: var(--red); }

.property-visual {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(4, 13, 30, 0.2), rgba(6, 15, 31, 0.9)),
    url("../assets/city-life.png") center / cover;
}

.property-building {
  position: absolute;
  bottom: 24px;
  left: 50%;
  width: min(47%, 240px);
  min-width: 165px;
  aspect-ratio: 0.82;
  border: 2px solid rgba(160, 230, 255, 0.36);
  border-radius: 13px 13px 4px 4px;
  background: linear-gradient(145deg, rgba(60, 113, 146, 0.86), rgba(14, 32, 59, 0.96));
  box-shadow: -24px 23px 0 -14px rgba(24, 89, 117, 0.48), 18px 25px 0 -13px rgba(12, 35, 64, 0.9), 0 26px 50px rgba(0,0,0,0.42);
  transform: translateX(-50%) perspective(500px) rotateY(-12deg) rotateX(2deg);
}

.property-building::before {
  position: absolute;
  inset: 17px 14px 28px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 193, 90, 0.8) 0 15px, transparent 15px 25px),
    repeating-linear-gradient(0deg, rgba(93, 196, 230, 0.74) 0 13px, transparent 13px 26px);
  opacity: 0.88;
  content: "";
}

.property-building::after {
  position: absolute;
  right: 10px;
  bottom: 0;
  left: 10px;
  height: 17px;
  border-radius: 4px 4px 0 0;
  background: #091629;
  box-shadow: 0 -2px var(--cyan);
  content: "";
}

.property-overlay {
  position: absolute;
  right: 16px;
  bottom: 15px;
  left: 16px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 13px;
  background: rgba(5, 12, 27, 0.68);
  backdrop-filter: blur(12px);
}

.property-overlay small,
.property-overlay strong { display: block; }
.property-overlay small { color: var(--muted); font-size: 10px; }
.property-overlay strong { margin-top: 3px; font-size: 14px; }

.job-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(135, 170, 214, 0.1);
  border-radius: 14px;
  background: rgba(255,255,255,0.025);
}

.job-card + .job-card { margin-top: 10px; }
.job-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: var(--cyan); background: rgba(28, 140, 190, 0.15); font-size: 19px; }
.job-card strong, .job-card small { display: block; }
.job-card strong { font-size: 13px; }
.job-card small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.job-reward { text-align: right; }
.job-reward strong { color: var(--green); font-size: 13px; }

.profile-cover {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(90deg, rgba(5, 12, 27, 0.9), rgba(5, 12, 27, 0.32)),
    url("../assets/city-life.png") center 54% / cover;
}

.profile-cover::after {
  position: absolute;
  inset: auto 0 0;
  height: 80px;
  background: linear-gradient(transparent, rgba(5, 9, 20, 0.85));
  content: "";
}

.profile-info {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  gap: 17px;
  min-height: 190px;
  padding: 24px;
}

.profile-avatar {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 2px solid rgba(123, 231, 255, 0.72);
  border-radius: 25px;
  color: #051425;
  background: linear-gradient(145deg, #c7fbff, #61b5dc 45%, #2b4285);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3), 0 0 24px rgba(0, 216, 255, 0.24);
  font-size: 28px;
  font-weight: 900;
}

.profile-info h1 { margin: 0; font-size: 26px; }
.profile-info p { margin-top: 5px; color: #bdd0e8; font-size: 12px; }

.chat-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 210px;
  min-height: 600px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(9, 19, 40, 0.74);
  box-shadow: var(--shadow);
}

.chat-sidebar,
.chat-online {
  padding: 18px;
  background: rgba(4, 10, 23, 0.28);
}

.chat-sidebar { border-right: 1px solid var(--line); }
.chat-online { border-left: 1px solid var(--line); }
.chat-sidebar h3, .chat-online h3 { margin-bottom: 14px; font-size: 11px; color: var(--muted); letter-spacing: 0.15em; text-transform: uppercase; }

.channel-list { display: grid; gap: 6px; }
.channel-button { display: flex; align-items: center; gap: 9px; padding: 11px; border: 1px solid transparent; border-radius: 11px; color: var(--muted); background: transparent; text-align: left; font-size: 12px; }
.channel-button:hover, .channel-button.active { color: var(--text); border-color: rgba(66, 215, 255, 0.18); background: rgba(0, 204, 255, 0.1); }

.chat-main { display: flex; min-width: 0; flex-direction: column; }
.chat-toolbar { justify-content: space-between; gap: 12px; padding: 17px 19px; border-bottom: 1px solid var(--line); }
.chat-toolbar strong { font-size: 14px; }
.chat-toolbar small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.chat-messages { display: flex; flex: 1; min-height: 0; flex-direction: column; gap: 15px; padding: 20px; overflow: auto; }
.chat-message { display: flex; gap: 10px; align-items: flex-start; max-width: 84%; }
.chat-message.own { align-self: flex-end; flex-direction: row-reverse; }
.chat-bubble { padding: 11px 13px; border: 1px solid rgba(135, 170, 214, 0.12); border-radius: 6px 15px 15px 15px; color: #dce8f7; background: rgba(255,255,255,0.045); font-size: 12px; line-height: 1.55; }
.chat-message.own .chat-bubble { border-color: rgba(54, 210, 255, 0.2); border-radius: 15px 6px 15px 15px; background: rgba(13, 110, 156, 0.28); }
.chat-message-meta { gap: 9px; margin-bottom: 5px; }
.chat-message-meta strong { font-size: 11px; }
.chat-message-meta small { color: var(--muted); font-size: 9px; }
.chat-input { display: flex; gap: 9px; padding: 15px 18px; border-top: 1px solid var(--line); }
.chat-input input { min-width: 0; flex: 1; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; outline: 0; color: var(--text); background: rgba(3, 9, 21, 0.6); font-size: 12px; }
.chat-input input:focus { border-color: var(--line-strong); box-shadow: 0 0 0 3px rgba(0, 208, 255, 0.08); }
.chat-send { display: grid; width: 44px; flex: 0 0 44px; place-items: center; border-radius: 12px; color: #031423; background: var(--cyan); font-size: 17px; }
.online-list { display: grid; gap: 11px; }
.chat-user { gap: 9px; }
.chat-user .mini-avatar { position: relative; display: grid; width: 29px; height: 29px; place-items: center; border-radius: 10px; color: #061321; background: linear-gradient(145deg, #9fefff, #3778b4); font-size: 10px; font-weight: 800; }
.chat-user .mini-avatar::after { position: absolute; right: -1px; bottom: -1px; width: 7px; height: 7px; border: 2px solid #0b1730; border-radius: 50%; background: var(--green); content: ""; }
.chat-user strong, .chat-user small { display: block; }
.chat-user strong { font-size: 11px; }
.chat-user small { margin-top: 3px; color: var(--muted); font-size: 9px; }

.mobile-nav {
  display: none;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  max-width: min(340px, calc(100vw - 40px));
  padding: 13px 15px;
  border: 1px solid rgba(82, 225, 255, 0.3);
  border-radius: 13px;
  color: var(--text);
  background: rgba(8, 22, 45, 0.94);
  box-shadow: var(--shadow);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 200ms ease;
}

.toast.show { opacity: 1; transform: translateY(0); }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(1, 5, 14, 0.74);
  backdrop-filter: blur(9px);
}

.modal-backdrop[hidden] { display: none; }
.modal { width: min(500px, 100%); padding: 24px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: linear-gradient(145deg, #102243, #071328); box-shadow: var(--shadow); }
.modal p { margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.modal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.premium-option { padding: 15px 11px; border: 1px solid rgba(255,193,90,0.17); border-radius: 14px; color: var(--text); background: rgba(255,193,90,0.07); text-align: center; }
.premium-option strong, .premium-option small { display: block; }
.premium-option strong { color: #ffe1a0; font-size: 15px; }
.premium-option small { margin-top: 6px; color: var(--muted); font-size: 10px; }
.modal-footer { display: flex; justify-content: flex-end; margin-top: 20px; }

@media (max-width: 1160px) {
  :root { --nav-width: 204px; }
  .topbar { padding-inline: 21px; }
  .main-content { padding-inline: 25px; }
  .chat-layout { grid-template-columns: 190px minmax(0, 1fr); }
  .chat-online { display: none; }
}

@media (max-width: 900px) {
  .topbar-status { display: none; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid,
  .section-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { padding-bottom: 76px; }
  .app-shell { display: block; }
  .topbar { position: sticky; height: 68px; padding: 12px 15px; }
  .brand { min-width: auto; }
  .brand-copy strong { font-size: 13px; }
  .brand-copy small { font-size: 9px; }
  .topbar-actions { gap: 6px; }
  .topbar-actions .icon-button { display: none; }
  .sidebar { display: none; }
  .main-content { padding: 24px 14px 26px; }
  .page-head { align-items: flex-start; flex-direction: column; margin-bottom: 18px; }
  .page-head .primary-button { width: 100%; }
  h1 { font-size: 30px; }
  .dashboard-hero { min-height: 390px; }
  .hero-content { min-height: 390px; padding: 27px 22px 100px; justify-content: flex-end; }
  .hero-content h2 { font-size: 36px; }
  .hero-badge { right: 16px; bottom: 16px; left: 16px; max-width: none; }
  .metric-grid { gap: 9px; margin: 12px 0; }
  .metric-card { min-height: 104px; padding: 13px; }
  .metric-value { margin-top: 10px; font-size: 19px; }
  .glass-card { padding: 17px; border-radius: 20px; }
  .goal-row { grid-template-columns: 1fr; gap: 10px; }
  .progress-wrap { width: 100%; }
  .property-visual { min-height: 235px; }
  .chat-layout { display: block; min-height: calc(100vh - 150px); }
  .chat-sidebar { display: flex; gap: 9px; overflow-x: auto; padding: 11px; border-right: 0; border-bottom: 1px solid var(--line); }
  .chat-sidebar h3 { display: none; }
  .channel-list { display: flex; min-width: max-content; }
  .channel-button { padding: 9px 12px; }
  .chat-main { min-height: 520px; }
  .profile-info { align-items: center; flex-direction: column; text-align: center; }
  .profile-cover { min-height: 330px; }
  .profile-info { min-height: 330px; justify-content: end; }
  .job-card { grid-template-columns: auto minmax(0, 1fr); }
  .job-reward { grid-column: 2; text-align: left; }
  .mobile-nav { position: fixed; right: 10px; bottom: 10px; left: 10px; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px; border: 1px solid rgba(111, 160, 213, 0.23); border-radius: 19px; background: rgba(5, 13, 29, 0.92); box-shadow: 0 15px 40px rgba(0,0,0,0.45); backdrop-filter: blur(18px); }
  .mobile-nav a { display: grid; gap: 4px; place-items: center; padding: 5px 2px; border-radius: 12px; color: var(--muted); font-size: 9px; }
  .mobile-nav a.active { color: var(--cyan); background: rgba(0, 210, 255, 0.1); }
  .mobile-nav .nav-icon { width: 23px; height: 23px; font-size: 12px; }
  .modal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .brand-copy small { display: none; }
  .topbar { padding-inline: 11px; }
  .avatar { width: 34px; height: 34px; }
  .premium-chip { padding-inline: 9px; }
  .metric-card { min-height: 96px; }
  .metric-top .label { font-size: 9px; }
  .metric-icon { width: 27px; height: 27px; }
  .hero-content h2 { font-size: 31px; }
  .hero-actions { width: 100%; }
  .hero-actions .primary-button, .hero-actions .secondary-button { flex: 1; }
}
