body {
  font-family: Open Sans;
  color: white;
  background-color: black;
  margin: 0;
  padding: 0;
}

.header {
  text-align: center;
  padding: 20px 0;
}

/* Everything from username to About Us */
.full-width-box {
  width: 100%;
  box-sizing: border-box;
  background-color: black;
  padding: 10px 20px;
  /* FIX START: This lifts the bar above the sidebar's invisible container */
  position: relative;
  z-index: 1001;
  /* FIX END */
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: black;
}

/* LEFT PANEL */
.left-panel {
  display: flex;
  align-items: center;
}

/* User ID box */
.user-dropdown {
  position: relative;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: white;
  padding: 6px 10px;
  border: 1px solid black;
  border-radius: 4px;
  background-color: black;
  transition: background-color 0.3s, border-color 0.3s;
}

.user-info:hover {
  background-color: #0B0B2E;
  border-color: #0B0B2E;
}

.user-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.arrow {
  font-size: 12px;
  margin-left: 2px;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: black;
  color: white;
  border: 1px solid black;
  border-radius: 4px;
  min-width: 160px;
  padding: 0px 10px;
  z-index: 10;
}

.user-dropdown:hover .dropdown-content {
  display: block;
}

/* RIGHT PANEL */
.right-panel {
  flex: 1;
}

/* -------------------------- */
.nav-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-left: 360px;
  margin-right: 40px;
}
/* -------------------------- */

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid black;
  border-radius: 4px;
  background-color: black;
  transition: background-color 0.3s, border-color 0.3s;
}

.nav-links a:hover {
  background-color: #0B0B2E;
  border-color: #0B0B2E;
  color: white;
}

/* ----------------------------------------------- */

.left-sidebar {
  position: absolute; /* Starts exactly where it was before */
  top: 235px;
  left: 0px;
  width: 150px;
  height: 100vh; /* Takes up the height of the page */
  background-color: #0B0B2E;
  color: white;
  padding: 20px;
  border-radius: 0 10px 10px 0;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
  z-index: 1000;

  /* Condition A: No scroll ability or visible scroller */
  overflow: hidden;
}

/* This class will be toggled by the script below */
.sidebar-fixed {
  position: fixed !important;
  top: 0 !important;
}

.left-sidebar h2 {
  margin-top: 0;
  color: White;
  font-size: 18px;
}

.left-sidebar ul {
  list-style: none;
  padding: 0;
  margin-top: 50px;
}

.left-sidebar ul li {
  margin-bottom: 30px;
}

.left-sidebar ul li a {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
}

.left-sidebar ul li a:hover {
  color: #60ABEB;
}

/* ---------------------------------- */

.metric-box-1 {
  margin-top: 50px;
  margin-left: 240px;
  background-color: #0B0B2E;
  color: white;
  padding: 40px;
  width: 1000px;
  height: 350px;
  border-radius: 10px;
  text-align: center;
  font-family: 'Open Sans', sans-serif;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.text-1 {
  display: flex;
  flex-direction: column;
  width: 500px;
  margin-left: -20px;
  margin-top: -50px;
}

.metric-box-1 h4 {
  font-size: 35px;
}

.metric-box-1 p {
  font-size: 25px;
}

.image-1 {
  background-color: #0B0B2E;
  width: 510px;
  margin-left: 30px;
}

.metric-box-1 img {
  width: 500px;
}

/* ---------------------------------- */

/* Purchase Panel Layout */

.purchase-row {
  display: flex;
  flex-position: row;
}

.purchase-panel {
  margin-top: 40px;
  margin-left: 240px;
  display: flex;
  flex-direction: column;
  background-color: #0B0B2E;
  padding: 20px;
  border-radius: 10px;
  width: 750px;
  height: auto;
  align-items: center;
  gap: 30px;
}

/* Box Row */
.package-row {
  display: flex;
  justify-content: space-between;
  width: 700px;
  gap: 0;
}

/* Metric Boxes */
/* Metric Boxes - Spacing Reverted & Flicker Fixed */
.metric-box-2,
.metric-box-3 {
  width: 300px;
  height: 150px;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  font-size: 35px;
  font-family: 'Open Sans', sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative; /* Anchors the link overlay */
  cursor: pointer;    /* Prevents mouse flickering */
  transition: background-color 0.3s, transform 0.1s;
}

/* Reverting h4 and p to your original 0px margin request */
.metric-box-2 h4,
.metric-box-2 p,
.metric-box-3 h4,
.metric-box-3 p {
  margin-top: 0px;
  margin-bottom: 0px;
}

.metric-box-2 {
  background-color: #D1A211;
  color: black;
}

.metric-box-3 {
  background-color: #E5E4E2;
  color: grey;
}

/* Hover & Active States */
.metric-box-2:hover {
  background-color: #806513;
  transform: scale(0.98);
}

.metric-box-2:active {
  background-color: #806513;
  transform: scale(0.95);
}

.metric-box-3:hover {
  background-color: #A1A1A1;
  color: #262626;
  transform: scale(0.98);
}

.metric-box-3:active {
  background-color: #A1A1A1;
  color: #262626;
  transform: scale(0.95);
}

/* Link Overlays - Standardized to fill the parent perfectly */
.checkout-link,
.platcheckout-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}
/* ---- */
.purchase-sidebar {
  background-color: #0B0B2E;
  border-radius: 10px;
  width: 250px;
  height: 570px;
  margin-top: 40px;
  margin-left: 40px;
}

.purchase-sidebar p {
  margin-top: 15px;
  margin-left: 10px;
  margin-right: 10px;
  font-size: 20px;
}

/* ---------------------------------- */

.metric-box-3 {
  background-color: #E5E4E2;
  color: grey;
}

.description-panel {
  display: flex;
  justify-content: space-between;
  width: 700px;
  margin-top: -10px;
}

.gold-description {
  width: 300px;
  text-align: left;
  font-size: 16px;
  line-height: 1.6;
}

.plat-description {
  width: 300px;
  text-align: left;
  font-size: 16px;
  line-height: 1.6;
}

.plat-description p{
  margin-left: -40px;
}

/* ---------------------------------- */

/* Product Information Section */
.barrier-1 {
  width: 1320px;
  margin-left: 0px;
  margin-top: 40px;
  border-radius: 0px 10px 10px 0px;
  border: 1px solid #0B0B2E;
  background-color: #0B0B2E;
}

.barrier-1 h2{
  margin-left: 240px;
  font-size: 30px;
  color: white;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* ---------------------------------- */

/* Product Info Box */
.product-info-1 {
  margin-top: 40px;
  margin-left: 240px;
  background-color: #0B0B2E;
  color: white;
  padding: 20px;
  width: 1040px;
  height: 500px;
  border-radius: 10px;
  text-align: center;
  font-family: 'Open Sans', sans-serif;
  flex-direction: row;
  justify-content: center;
  position: relative; /* Added relative for absolute img positioning inside if needed */
}

.info-1 {
  margin-left: 0px;
}

.info-1 h4 {
  font-size: 30px;
  margin-bottom: 40px;
  margin-top: 0px;
}

.info-1 p {
  width: 450px;
  font-size: 18px;
  margin-top: 20px;
  margin-bottom: 5px;
  text-align: left;
  margin-left: 10px;
}

.product-info-1 img {
  margin-top: -380px;
  margin-left: 210px;
  width: 540px;
  height: 340px;
  position: absolute;
}

/* ---------------------------------- */

/* Fraud statistics section title */
.barrier-2 {
  margin-left: 0px;
  margin-top: 40px;
  width: 1320px;
  border-radius: 0px 10px 10px 0px;
  border: 1px solid #0B0B2E;
  background-color: #0B0B2E;
}

.barrier-2 h2{
  margin-left: 240px;
  font-size: 30px;
  color: white;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* ---------------------------------- */

/* NEW FRAUD ROW STYLING */

.fraud-row {
  display: flex;
  margin-top: 40px;
  margin-left: 240px;
  background-color: #0B0B2E;
  color: white;
  padding: 20px;
  width: 1080px; /* Matches product-info-1 width */
  height: auto;
  min-height: 500px;
  border-radius: 10px;
  font-family: 'Open Sans', sans-serif;
  box-sizing: border-box;
}

.stats-description {
  flex: 1;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stats-description h4 {
  color: white;
  font-size: 30px;
  margin-top: 0;
  margin-bottom: 20px;
}

.stat-item {
  margin-bottom: 20px;
}

.stat-item strong {
  font-size: 18px;
  color: #60ABEB; /* Light Blue highlight */
  display: block;
  margin-bottom: 5px;
}

.stat-item p {
  font-size: 16px;
  margin: 0;
  line-height: 1.5;
  color: #E0E0E0;
}

.source-note {
  font-size: 12px;
  color: #888;
  font-style: italic;
  margin-top: 20px;
}

.stats-graphs {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px; /* Space between graphs */
  justify-content: center;
  align-items: center;
  border-left: 1px solid #333;
  padding-left: 20px;
}

.chart-wrapper {
  width: 100%;
  height: 220px; /* Controls height of graphs */
  position: relative;
}