/* New field-console visual language for the header, faction showcase and offers.
   Motion rules remain in the existing stylesheets; this file changes presentation only. */

/* Compact top bar: dark graphite, cool green edge, warm metal details. */
.dashboard > .header {
  border-bottom: 1px solid #293c35;
  background: linear-gradient(100deg, #0c1210 0%, #070a09 52%, #0d1112 100%) !important;
  box-shadow: 0 10px 28px #0006;
}
.dashboard > .header .nav-wrap {
  height: 62px;
  min-height: 62px;
}
.dashboard > .header .brand {
  gap: 11px;
  color: #f0f3ef;
  letter-spacing: .4px;
}
.dashboard > .header .brand-mark {
  width: 31px;
  height: 31px;
  border: 1px solid #577363;
  border-radius: 9px;
  background: linear-gradient(145deg, #192720, #0d1210);
  color: #e1e9e1;
  box-shadow: inset 0 1px #ffffff13, 0 0 18px #5f9a7215;
}
.dashboard > .header .brand-mark span { color: #93bd8f; }
.dashboard > .header .brand small {
  display: block;
  margin-top: 2px;
  color: #76877e;
  font-size: 8px;
  letter-spacing: 1.7px;
}
.dashboard > .header .account-summary { gap: 9px; }
.dashboard > .header .credit-chip {
  min-height: 32px;
  padding: 6px 12px;
  border-color: #34483e;
  border-radius: 8px;
  background: #111915;
  color: #d6bf78;
}
.dashboard > .header .avatar {
  width: 31px;
  height: 31px;
  border-color: #43574b;
  border-radius: 9px;
  background: #19231d;
  color: #d4e0d2;
}

/* Faction console: keep the three zones and all existing rotation/hover motion. */
.dashboard .hub-primary #faction-showcase {
  border: 1px solid #30433a;
  border-radius: 17px;
  background:
    radial-gradient(ellipse at 88% 52%, #25412f45, transparent 36%),
    linear-gradient(135deg, #111915 0%, #090d0c 52%, #0b1110 100%);
  box-shadow: inset 0 1px #ffffff0d, 0 20px 48px #0007;
}
.dashboard #faction-showcase > .faction-intro {
  padding: 4px 4px 4px 2px;
}
.dashboard #faction-showcase .faction-badge {
  border-color: #62764a;
  border-radius: 6px;
  background: #6c7d3217;
  color: #c4d28e !important;
  letter-spacing: 1.2px;
}
.dashboard #faction-showcase .faction-badge::before {
  background: #b3c66a;
  box-shadow: 0 0 9px #b3c66a70;
}
.dashboard #faction-showcase .faction-intro h2 {
  margin: 14px 0 9px !important;
  color: #f2f3ed;
  font-size: clamp(25px, 2.35vw, 35px) !important;
  letter-spacing: -1.5px !important;
}
.dashboard #faction-showcase .faction-intro h2 span { color: #a8c878 !important; }
.dashboard #faction-showcase .faction-intro p {
  color: #aab4aa;
  font-size: 12px;
  line-height: 1.7;
}
.dashboard #faction-showcase .war-button {
  border-color: #62764a;
  border-radius: 8px;
  background: linear-gradient(120deg, #27341f, #151d17);
  color: #e0e7d1;
  box-shadow: inset 0 1px #ffffff0c;
}
.dashboard #faction-showcase .faction-preview-note { color: #76847a; }
.dashboard #faction-showcase > .faction-topfive {
  border-right-color: #36483d;
}
.dashboard #faction-showcase .topfive-heading {
  color: #d6e1cf;
  font-size: 10px;
  letter-spacing: 1.7px;
}
.dashboard #faction-showcase .topfive-heading small {
  color: #77877d;
  letter-spacing: 1.2px;
}
.dashboard #faction-showcase .topfive-row {
  min-height: 42px !important;
  border: 1px solid #304037 !important;
  border-radius: 9px !important;
  background: linear-gradient(105deg, #18221b, #0f1512 78%) !important;
  box-shadow: inset 0 1px #ffffff08;
}
.dashboard #faction-showcase .topfive-row .rank {
  width: 23px;
  height: 23px;
  border-color: #62744b;
  border-radius: 7px;
  background: #1d291d;
  color: #c4d28e;
}
.dashboard #faction-showcase .topfive-row .board-armband {
  width: 25px;
  height: 30px;
}
.dashboard #faction-showcase .topfive-row strong { color: #e3e8df !important; }
.dashboard #faction-showcase .topfive-row:hover,
.dashboard #faction-showcase .topfive-row:focus-visible,
.dashboard #faction-showcase .topfive-row.is-active {
  border-color: color-mix(in srgb, var(--row-color) 58%, #52665a) !important;
  background: linear-gradient(105deg, color-mix(in srgb, var(--row-color) 12%, #18221b), #101512 78%) !important;
}
.dashboard #faction-showcase .all-factions-link { color: #c4d28e; }
.dashboard #faction-showcase > .faction-spotlight {
  position: relative;
  overflow: hidden;
  border: 1px solid #3b5143 !important;
  border-radius: 13px !important;
  background: linear-gradient(155deg, #18241b, #0b100e 74%) !important;
  box-shadow: inset 0 1px #ffffff0d, 0 12px 28px #0004 !important;
}
.dashboard #faction-showcase > .faction-spotlight::before {
  content: "" !important;
  display: block !important;
  top: 15px;
  bottom: 15px;
  width: 3px;
  border-radius: 3px;
  background: var(--faction-accent, #a8c878);
  opacity: .85;
}
.dashboard #faction-showcase .spotlight-label { color: #a9be8c; }
.dashboard #faction-showcase .featured-faction img {
  filter: drop-shadow(0 12px 18px #000b) drop-shadow(0 0 13px color-mix(in srgb, var(--faction-accent) 28%, transparent));
}
.dashboard #faction-showcase .featured-faction strong { color: #f0f1e9; }
.dashboard #faction-showcase .featured-faction .platform-badge {
  border-color: #405343;
  border-radius: 5px;
  background: #101812;
  color: #b8c8a7;
}
.dashboard #faction-showcase .featured-faction .featured-stats { color: #8d9b8f; }

/* Shop catalogue: visible category structure and compact inventory-style cards. */
.dashboard .shop-sidebar {
  border: 1px solid #2d3b34;
  border-radius: 16px;
  background: linear-gradient(145deg, #101613, #090d0c 70%);
  box-shadow: inset 0 1px #ffffff08, 0 18px 45px #0005;
}
.dashboard .shop-sidebar .shop-heading,
.dashboard .shop-sidebar .shop-notice {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  clip-path: none;
  white-space: normal;
}
.dashboard .shop-sidebar .shop-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #304037;
}
.dashboard .shop-sidebar .shop-heading h2 {
  margin: 0;
  color: #eff1e9;
  font-size: 17px;
  letter-spacing: -.3px;
}
.dashboard .shop-sidebar .shop-heading > span {
  padding: 4px 8px;
  border: 1px solid #647447;
  border-radius: 6px;
  background: #667a341a;
  color: #c4d28e;
  font-size: 8px;
  letter-spacing: 1.2px;
}
.dashboard .shop-sidebar .shop-notice {
  margin: 9px 0 18px;
  color: #87938b;
  font-size: 11px;
  line-height: 1.5;
}
.dashboard .shop-sidebar .shop-category { margin: 0 0 17px; }
.dashboard .shop-sidebar .shop-category h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 9px;
  color: #a5b4a9;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
}
.dashboard .shop-sidebar .shop-category h3::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1px solid #a8c878;
  border-radius: 2px;
  background: #a8c8782b;
  transform: rotate(45deg);
}
.dashboard .shop-sidebar .shop-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.dashboard .shop-sidebar .shop-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  grid-template-rows: 42px auto 1fr;
  align-content: start;
  align-items: center;
  gap: 9px 11px;
  min-width: 0;
  min-height: 145px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--service-color) 25%, #28332d);
  border-radius: 12px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--service-color) 6%, #111613), #090d0c 78%);
  box-shadow: inset 3px 0 color-mix(in srgb, var(--service-color) 56%, transparent), inset 0 1px #ffffff0a;
  text-align: left;
}
.dashboard .shop-sidebar .shop-card .service-icon {
  position: static;
  display: grid !important;
  grid-column: 1;
  grid-row: 1;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--service-color) 42%, #303b35);
  border-radius: 11px;
  background: color-mix(in srgb, var(--service-color) 11%, #101512);
  color: var(--service-color);
  font-size: 20px;
}
.dashboard .shop-sidebar .shop-card .service-price {
  position: static;
  grid-column: 3;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  border: 1px solid #ffffff12;
  border-radius: 7px;
  background: #070a09;
  color: #d8c783;
  font-size: 9px;
  white-space: nowrap;
}
.dashboard .shop-sidebar .shop-card > strong {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 1px 0 0;
  color: #e9ede7;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.dashboard .shop-sidebar .shop-card .service-description {
  grid-column: 1 / -1;
  grid-row: 3;
  align-self: start;
  margin: 0;
  color: #919d95;
  font-size: 10px;
  line-height: 1.5;
}
.dashboard .shop-sidebar .shop-card:hover,
.dashboard .shop-sidebar .shop-card:focus-visible {
  border-color: color-mix(in srgb, var(--service-color) 60%, #53665a);
  background: linear-gradient(145deg, color-mix(in srgb, var(--service-color) 12%, #151b17), #0a0f0d 78%);
  box-shadow: inset 3px 0 var(--service-color), inset 0 1px #ffffff10, 0 10px 24px #0005;
}

@media (max-width: 1050px) {
  .dashboard .shop-sidebar .shop-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .dashboard > .header .nav-wrap { height: 56px; min-height: 56px; }
  .dashboard > .header .brand small { display: none; }
  .dashboard .shop-sidebar { padding: 14px; }
  .dashboard .shop-sidebar .shop-card-grid { grid-template-columns: 1fr; gap: 8px; }
  .dashboard .shop-sidebar .shop-card { min-height: 126px; }
}
