/* CRINEO visual refresh — progressive styling for homepage and customer dashboard. */

/* Public homepage hero */
.crineo-home .hero {
  isolation: isolate;
  padding: clamp(76px, 9vw, 118px) 0 clamp(68px, 8vw, 96px);
  background:
    radial-gradient(circle at 76% 40%, rgba(215, 174, 84, .15), transparent 31%),
    radial-gradient(circle at 8% 95%, rgba(45, 110, 216, .19), transparent 34%),
    linear-gradient(135deg, #061426 0%, #0b2742 57%, #061a2d 100%);
}

.crineo-home .hero::before {
  opacity: .62;
  background-size: 46px 46px;
  mask-image: linear-gradient(115deg, #000 0%, transparent 80%);
}

.crineo-home .hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: clamp(34px, 5.2vw, 76px);
}

.crineo-home .hero-copy {
  max-width: 700px;
}

.crineo-home .hero-copy .eyebrow {
  color: #e8c878;
  letter-spacing: .2em;
}

.crineo-home .hero h1 {
  max-width: 720px;
  font-size: clamp(48px, 6.3vw, 82px);
  line-height: .99;
  letter-spacing: -.035em;
}

.crineo-home .hero h1 .hero-gold-line {
  color: #f4f0e7;
}

.crineo-home .hero h1 em {
  color: #e5bf68;
  font-weight: 500;
}

.crineo-home .hero-copy > p {
  max-width: 610px;
  margin: 27px 0 31px;
  color: #c5d1dc;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.7;
}

.crineo-home .hero-actions .btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
}

.crineo-home .hero-actions .btn:first-child {
  padding-inline: 24px;
  background: linear-gradient(135deg, #f3d991, #c18b31);
  color: #10263c !important;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(190, 143, 54, .2);
}

.crineo-home .hero-actions .btn-outline {
  border-color: rgba(245, 239, 224, .36);
  background: rgba(255, 255, 255, .035);
  color: #f2f4f6 !important;
}

.crineo-home .hero-actions .btn:hover {
  transform: translateY(-2px);
}

.crineo-home .trust-row {
  gap: 12px 22px;
  margin-top: 29px;
  color: #bdc9d3;
}

.crineo-home .brand-panel.route-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 468px;
  flex-direction: column;
  overflow: hidden;
  padding: 27px 29px 24px;
  border: 1px solid rgba(228, 190, 105, .38);
  border-radius: 28px;
  background:
    radial-gradient(circle at 70% 43%, rgba(213, 167, 78, .16), transparent 42%),
    linear-gradient(145deg, rgba(21, 55, 83, .93), rgba(7, 24, 41, .97));
  box-shadow: 0 34px 90px rgba(0, 0, 0, .3), inset 0 1px rgba(255, 255, 255, .08);
}

.crineo-home .route-panel::before {
  position: absolute;
  z-index: -1;
  top: 78px;
  right: -68px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(229, 193, 117, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255,255,255,.018), 0 0 0 78px rgba(255,255,255,.014);
  content: "";
}

.crineo-home .route-panel-label {
  position: relative;
  z-index: 2;
  color: #e6c574;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}

.crineo-home .route-visual {
  position: absolute;
  top: 61px;
  right: 6px;
  left: 6px;
  height: 282px;
  pointer-events: none;
}

.crineo-home .route-visual svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.crineo-home .route-globe-ring,
.crineo-home .route-globe-curve,
.crineo-home .route-globe-meridian {
  fill: none;
  stroke: rgba(174, 196, 212, .2);
  stroke-width: 1.2;
}

.crineo-home .route-globe-ring {
  stroke: rgba(220, 184, 101, .48);
}

.crineo-home .route-line {
  fill: none;
  stroke: #e4be68;
  stroke-width: 2.4;
  stroke-dasharray: 5 8;
  stroke-linecap: round;
}

.crineo-home .route-point {
  fill: #f2d98f;
  stroke: #f2d98f;
  stroke-width: 7;
  stroke-opacity: .24;
}

.crineo-home .route-point-end {
  fill: #fff4ce;
}

.crineo-home .route-brand-lockup {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  margin-top: 21px;
}

.crineo-home .brand-panel.route-panel .route-brand-lockup img {
  width: 170px;
  max-width: 52%;
  height: 74px;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: left center;
  border-radius: 0;
  background: transparent;
}

.crineo-home .route-brand-lockup > span {
  max-width: 110px;
  color: rgba(242, 238, 226, .8);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .14em;
  line-height: 1.6;
}

.crineo-home .route-locations {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 12px;
  margin-top: auto;
}

.crineo-home .route-locations > div {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(230, 195, 120, .28);
  border-radius: 11px;
  background: rgba(4, 18, 31, .74);
}

.crineo-home .route-locations small,
.crineo-home .route-locations strong {
  display: block;
}

.crineo-home .route-locations small {
  margin-bottom: 3px;
  color: #e0c172;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .16em;
}

.crineo-home .route-locations strong {
  color: #f8f5ed;
  font-size: 12px;
  letter-spacing: .045em;
}

.crineo-home .brand-panel.route-panel .mini {
  position: relative;
  z-index: 2;
  gap: 8px;
  margin-top: 11px;
}

.crineo-home .brand-panel.route-panel .mini div {
  padding: 10px 5px;
  border: 1px solid rgba(255,255,255,.075);
  background: rgba(255,255,255,.045);
}

.crineo-home .brand-panel.route-panel .mini strong {
  color: #e8c978;
  font-size: 11px;
  letter-spacing: .09em;
}

.crineo-home .brand-panel.route-panel .mini small {
  display: block;
  color: #c5d0d9;
  font-size: 9px;
  line-height: 1.4;
}

/* Customer account dashboard */
.account-page #customerDashboard {
  width: min(1200px, calc(100% - 40px));
  max-width: 1200px;
  margin: 32px auto 52px;
  padding: 0;
}

.account-page #customerDashboard[hidden] {
  display: none !important;
}

.account-page .customer-welcome-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0 0 20px;
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid rgba(227, 189, 103, .36);
  border-radius: 24px;
  background:
    radial-gradient(circle at 82% 45%, rgba(211, 168, 77, .2), transparent 27%),
    linear-gradient(125deg, #081a2d, #123657);
  box-shadow: 0 20px 56px rgba(6, 23, 42, .18);
}

.account-page .customer-welcome-head::after {
  position: absolute;
  z-index: -1;
  top: -92px;
  right: 8%;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(230, 194, 117, .26);
  border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(255,255,255,.02), 0 0 0 59px rgba(255,255,255,.015);
  content: "";
}

.account-page .customer-welcome-head .eyebrow.dark {
  color: #e5c16d;
  letter-spacing: .18em;
}

.account-page .customer-welcome-head h3 {
  position: relative;
  z-index: 1;
  margin: 4px 0 0;
  color: #f7f4ed;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.7vw, 3rem);
  line-height: 1.08;
}

.account-page .customer-welcome-subtitle {
  position: relative;
  z-index: 1;
  margin: 9px 0 0;
  color: #c3d0dc;
  font-size: 14px;
}

.account-page .customer-command-center {
  margin: 0 0 24px;
  padding: clamp(20px, 3vw, 30px);
  overflow: hidden;
  border: 1px solid rgba(224, 188, 105, .34);
  border-radius: 24px;
  background:
    radial-gradient(circle at 95% 0%, rgba(198, 151, 59, .13), transparent 28%),
    linear-gradient(140deg, #071827, #0e2a43 68%, #102d47);
  box-shadow: 0 16px 44px rgba(7, 25, 43, .16);
}

.account-page .customer-command-brand {
  max-width: none;
  justify-content: flex-start;
  gap: 16px;
  margin: 0 0 24px;
}

.account-page .customer-command-brand img {
  flex: 0 0 auto;
  width: 74px;
  height: 74px;
  padding: 3px;
  object-fit: contain;
  border: 1px solid rgba(230, 194, 117, .42);
  border-radius: 13px;
  background: rgba(255,255,255,.96);
}

.account-page .customer-command-brand-copy {
  min-width: 0;
}

.account-page .customer-command-brand h2 {
  margin: 0;
  color: #f6f2e9;
  text-align: left;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  line-height: 1.15;
}

.account-page .customer-command-brand-copy p {
  margin: 6px 0 0;
  color: #b8c7d3;
  font-size: 12px;
}

.account-page .customer-command-grid {
  max-width: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin: 0;
}

.account-page .customer-command-grid .customer-command-item {
  position: relative;
  min-width: 0;
  min-height: 82px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  padding: 14px 12px 14px 56px;
  border: 1px solid rgba(223, 190, 117, .2);
  border-radius: 13px;
  background: rgba(255,255,255,.055);
  color: #f2f4f5;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.account-page .customer-command-grid .customer-command-item::before {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(232, 199, 120, .4);
  border-radius: 50%;
  background: rgba(215, 174, 84, .12);
  color: #f0d78f;
  content: "↗";
  font-size: 12px;
  font-weight: 800;
}

.account-page .customer-command-grid .customer-command-item::after {
  color: #afbfcb;
  content: "Open this workspace";
  font-size: 10px;
  font-weight: 450;
  line-height: 1.3;
}

.account-page .customer-command-grid .customer-command-item:nth-child(1)::before { content: "⌂"; }
.account-page .customer-command-grid .customer-command-item:nth-child(2)::before { content: "↗"; }
.account-page .customer-command-grid .customer-command-item:nth-child(3)::before { content: "⇢"; }
.account-page .customer-command-grid .customer-command-item:nth-child(4)::before { content: "···"; }
.account-page .customer-command-grid .customer-command-item:nth-child(5)::before { content: "≋"; }
.account-page .customer-command-grid .customer-command-item:nth-child(6)::before { content: "＄"; }
.account-page .customer-command-grid .customer-command-item:nth-child(7)::before { content: "▤"; }
.account-page .customer-command-grid .customer-command-item:nth-child(8)::before { content: "♡"; }
.account-page .customer-command-grid .customer-command-item:nth-child(9)::before { content: "⇄"; }
.account-page .customer-command-grid .customer-command-item:nth-child(10)::before { content: "e"; }
.account-page .customer-command-grid .customer-command-item:nth-child(11)::before { content: "▦"; }
.account-page .customer-command-grid .customer-command-item:nth-child(12)::before { content: "+"; }
.account-page .customer-command-grid .customer-command-item:nth-child(13)::before { content: "!"; }
.account-page .customer-command-grid .customer-command-item:nth-child(14)::before { content: "⚙"; }

.account-page .customer-command-grid .customer-command-item:nth-child(1)::after { content: "Your workspace overview"; }
.account-page .customer-command-grid .customer-command-item:nth-child(2)::after { content: "Follow order progress"; }
.account-page .customer-command-grid .customer-command-item:nth-child(3)::after { content: "Coordinate logistics"; }
.account-page .customer-command-grid .customer-command-item:nth-child(4)::after { content: "Chat with our team"; }
.account-page .customer-command-grid .customer-command-item:nth-child(5)::after { content: "Review sourcing options"; }
.account-page .customer-command-grid .customer-command-item:nth-child(6)::after { content: "View invoices and payments"; }
.account-page .customer-command-grid .customer-command-item:nth-child(7)::after { content: "Find your records"; }
.account-page .customer-command-grid .customer-command-item:nth-child(8)::after { content: "Return to saved products"; }
.account-page .customer-command-grid .customer-command-item:nth-child(9)::after { content: "See shipment information"; }
.account-page .customer-command-grid .customer-command-item:nth-child(10)::after { content: "Learn about sourcing"; }
.account-page .customer-command-grid .customer-command-item:nth-child(11)::after { content: "Explore product ranges"; }
.account-page .customer-command-grid .customer-command-item:nth-child(12)::after { content: "Tell us what you need"; }
.account-page .customer-command-grid .customer-command-item:nth-child(13)::after { content: "Read account updates"; }
.account-page .customer-command-grid .customer-command-item:nth-child(14)::after { content: "Manage your profile"; }

.account-page .customer-command-grid .customer-command-item:hover,
.account-page .customer-command-grid .customer-command-item:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(235, 203, 126, .76);
  outline: 2px solid rgba(239, 209, 140, .48);
  outline-offset: 2px;
  background: rgba(255,255,255,.105);
  box-shadow: 0 12px 25px rgba(0,0,0,.16);
}

.account-page .customer-command-grid .customer-command-item.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #f0d58f, #c28d37);
  color: #10263b;
}

.account-page .customer-command-grid .customer-command-item.is-active::before {
  border-color: rgba(16,38,59,.25);
  background: rgba(16,38,59,.08);
  color: #10263b;
}

.account-page .customer-command-grid .customer-command-item.is-active::after {
  color: #34495a;
}

.account-page .customer-command-grid .customer-command-item.customer-command-message {
  border-color: rgba(238, 208, 142, .7);
  background: rgba(226, 190, 106, .14);
  color: #f7e5b8;
}

.account-page .customer-command-grid .customer-command-item.customer-command-message::after {
  color: #d3c4a1;
}

.account-page .customer-command-website {
  max-width: none;
  margin: 18px 0 0;
  color: #d3c28d;
  font-size: 12px;
}

.account-page .customer-dashboard-activity {
  margin: 20px 0 28px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid #e5e0d4;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(14, 35, 58, .055);
}

.account-page .customer-dashboard-activity-head h4 {
  margin: 3px 0 0;
  color: #102b45;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
}

@media (max-width: 1050px) {
  .crineo-home .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, .9fr);
    gap: 34px;
  }

  .account-page .customer-command-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .crineo-home .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .crineo-home .hero-copy {
    max-width: 760px;
  }

  .crineo-home .brand-panel.route-panel {
    width: min(100%, 620px);
    min-height: 440px;
    justify-self: center;
  }
}

@media (max-width: 760px) {
  .account-page #customerDashboard {
    width: calc(100% - 32px);
    margin: 22px auto 38px;
  }

  .account-page .customer-welcome-head {
    padding: 25px 21px;
    border-radius: 20px;
  }

  .account-page .customer-command-center {
    margin: 0 0 20px;
    padding: 20px 15px 18px;
    border-radius: 20px;
  }

  .account-page .customer-command-brand {
    gap: 12px;
    margin-bottom: 19px;
  }

  .account-page .customer-command-brand img {
    width: 60px;
    height: 60px;
  }

  .account-page .customer-command-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .account-page .customer-command-grid .customer-command-item {
    min-height: 78px;
    padding: 12px 9px 12px 47px;
    border-radius: 12px;
    font-size: 12px;
  }

  .account-page .customer-command-grid .customer-command-item::before {
    left: 10px;
    width: 27px;
    height: 27px;
    font-size: 11px;
  }
}

@media (max-width: 410px) {
  .crineo-home .hero-actions .btn {
    width: 100%;
  }

  .crineo-home .brand-panel.route-panel {
    min-height: 412px;
    padding: 22px 17px 18px;
  }

  .crineo-home .route-locations {
    gap: 8px;
  }

  .crineo-home .route-locations > div {
    padding: 10px 9px;
  }

  .crineo-home .route-locations strong {
    font-size: 10px;
  }

  .crineo-home .brand-panel.route-panel .mini {
    gap: 5px;
  }

  .crineo-home .brand-panel.route-panel .mini small {
    font-size: 8px;
  }

  .account-page .customer-command-grid .customer-command-item {
    padding-right: 6px;
    padding-left: 42px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .crineo-home .hero-actions .btn,
  .account-page .customer-command-grid .customer-command-item {
    transition: none;
  }
}


/* Homepage global sourcing map and country-level visitor origin */
.crineo-home .brand-panel.route-panel { min-height:460px; padding:23px 24px 21px; }
.crineo-home .route-panel::before { display:none; }
.crineo-home .route-brand-lockup { align-self:flex-start; min-height:58px; margin-top:12px; gap:13px; }
.crineo-home .brand-panel.route-panel .route-brand-lockup img { width:158px; max-width:56%; height:58px; }
.crineo-home .route-visual { top:110px; right:8px; left:8px; height:205px; }
.crineo-home .world-map-graticule path { fill:none; stroke:rgba(194,213,226,.09); stroke-width:.8; stroke-dasharray:2 5; }
.crineo-home .world-map-land path { fill:rgba(160,190,207,.11); stroke:rgba(189,214,227,.24); stroke-width:1; stroke-linejoin:round; }
.crineo-home .world-map-markets circle { fill:#d9e4eb; stroke:rgba(221,235,243,.26); stroke-width:4; }
.crineo-home .world-map-markets text,.crineo-home .map-china-pin text,.crineo-home .visitor-origin-map-label { fill:rgba(237,243,247,.82); font:700 8px Arial,sans-serif; letter-spacing:.08em; }
.crineo-home .map-china-pin path { fill:#e2ba62; stroke:#fff0bd; stroke-width:1.3; filter:drop-shadow(0 0 7px rgba(238,193,88,.75)); }
.crineo-home .map-china-pin circle { fill:#082138; }
.crineo-home .map-china-pin text { fill:#f3d47f; font-size:10px; letter-spacing:.14em; }
.crineo-home .visitor-route-line { fill:none; stroke:#e8c76d; stroke-width:2; stroke-dasharray:5 6; stroke-linecap:round; opacity:.85; }
.crineo-home .visitor-origin-marker { fill:#75d2c0; stroke:#eafff8; stroke-width:2; filter:drop-shadow(0 0 6px rgba(93,218,192,.8)); }
.crineo-home .visitor-origin-map-label { fill:#d8fff4; font-size:7px; }
.crineo-home .route-origin-card strong { text-transform:none; letter-spacing:.015em; }
@media(max-width:600px) {
.crineo-home .brand-panel.route-panel { min-height:430px; padding:20px 17px 18px; }
.crineo-home .route-brand-lockup { min-height:52px; margin-top:10px; }
.crineo-home .brand-panel.route-panel .route-brand-lockup img { height:52px; }
.crineo-home .route-visual { top:104px; height:190px; }
.crineo-home .route-locations { grid-template-columns:1fr 1.2fr; gap:8px; }
.crineo-home .route-locations>div { padding:10px 9px; }
.crineo-home .route-locations strong { font-size:11px; }
}
/* Make African market labels easier to read on compact screens. */
.crineo-home .world-map-markets .africa-market { fill:#f0cf7a; font-weight:800; }
.crineo-home .world-map-markets circle.africa-market { fill:#f0cf7a; stroke:rgba(240,207,122,.34); stroke-width:5; }
.crineo-home .world-map-markets text.africa-market { font-size:9px; }

/* Horizontal account shortcuts */
.account-page .customer-command-grid {
  display: flex;
  flex-direction: column;
  gap: 17px;
  max-width: none;
  margin: 0;
}
.account-page .customer-command-rail { min-width: 0; }
.account-page .customer-command-rail h3 {
  margin: 0 0 9px;
  color: #e5c66f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.3;
  text-transform: uppercase;
}
.account-page .customer-command-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 1px 1px 8px;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(224,190,108,.58) rgba(255,255,255,.08);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.account-page .customer-command-track .customer-command-item {
  position: relative;
  flex: 0 0 176px;
  min-width: 0;
  min-height: 68px;
  justify-content: flex-start;
  padding: 12px 10px 12px 49px;
  border: 1px solid rgba(229,198,111,.22);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
  color: #eef2f7;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  scroll-snap-align: start;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.account-page .customer-command-track .customer-command-item:hover,
.account-page .customer-command-track .customer-command-item:focus-visible {
  border-color: rgba(236,203,117,.75);
  background: rgba(213,180,95,.14);
  color: #fff;
  outline: 2px solid transparent;
  transform: translateY(-1px);
}
.account-page .customer-command-track .customer-command-item.is-active {
  border-color: rgba(245,214,137,.82);
  background: linear-gradient(135deg, #f0d58e, #c8953f);
  color: #10253a;
}
.account-page .customer-command-track .customer-command-item.customer-command-message {
  border-color: rgba(229,198,111,.48);
  background: linear-gradient(135deg, rgba(213,180,95,.2), rgba(255,255,255,.045));
  color: #f4d98e;
}
.account-page .customer-command-track .customer-command-item::before {
  left: 10px;
  width: 27px;
  height: 27px;
}
@media (max-width: 760px) {
  .account-page .customer-command-grid { gap: 14px; }
  .account-page .customer-command-rail h3 { margin-bottom: 7px; font-size: 9px; }
  .account-page .customer-command-track { gap: 8px; }
  .account-page .customer-command-track .customer-command-item {
    flex-basis: 158px;
    min-height: 64px;
    padding: 10px 9px 10px 44px;
    font-size: 11px;
  }
  .account-page .customer-command-track .customer-command-item::before {
    left: 9px;
    width: 25px;
    height: 25px;
  }
}
