/* Performance Comparison Tool - Specific Styles Only */
/* Common styles are in tool-comparison-shared.css */

.pg-nav-dropdown {
  margin-left: 20px;
}

.pg-nav-dropdown #pg-tool-selector {
  padding: 18px 35px 18px 18px;
  max-width: 300px;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
  appearance: none;
  border: 1px solid var(--color-secondary);
  background: var(--color-primary);
  color: var(--color-secondary);
  cursor: pointer;
  background: var(--color-primary) url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.5 3.75L5 6.25L2.5 3.75' stroke='%23d7ae51' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center right 15px / 15px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.pg-nav-dropdown #pg-tool-selector:hover {
  background: var(--color-white) url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.5 3.75L5 6.25L2.5 3.75' stroke='%23001347' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center right 15px / 15px;
  color: var(--color-primary);
}

.pg-nav-dropdown #pg-tool-selector:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(215, 174, 81, 0.3);
}

.performance-page h1 {
  font-size: 52px !important;
  font-weight: 600;
  line-height: 115% !important;
  letter-spacing: normal !important;
  color: var(--color-primary) !important;
  margin-bottom: 0 !important;
  margin-top: 0 !important;
  max-width: 600px;
}

.performance-page h1,
h2,
h3,
h4,
h5,
h6 {
  text-transform: none !important;
}

.performance-page .container-1400 {
  max-width: 1400px;
  width: 100%;
  padding: 0 16px 0 16px;
  margin: 0 auto;
}

.pg-tool-selector-container.flex-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: start;
  background: transparent !important;
}

/* Left Column - Control Panel */
.pg-tool-selector-container .control-panel-style {
  max-width: 402px;
  width: 100%;
  background: transparent;
  padding: 0 20px 20px 40px;
  box-shadow: none;
  flex: none;
}


.control-panel-style {
  padding: 25px 20px;
  border-right: 0 !important;
  overflow-y: auto;
  height: 100vh;
  position: sticky;
  top: 0;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.pg-tool-selector-container .control-panel-style .pg-section-title {
  color: var(--color-primary);
  font-size: 24px !important;
  font-weight: 500;
  line-height: 100%;
  text-transform: none !important;
  gap: 0px;
}

.pg-tool-selector-container .control-panel-style .pg-section {
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  border: 0;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #bfbfbf;
}



.pg-section-title {
  margin: 0 0 15px 0;
  display: flex;
  align-items: center;
  align-items: flex-start;
  position: relative;
}

.pg-section {
  background: transparent;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
}

.pg-section-title::before {
  color: #d7ae51;
  background: transparent;
  font-family: "Instrument Sans";
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: 100%;
  position: absolute;
  top: -6px;
  width: auto;
  height: auto;
  border-radius: 0;
  left: -40px;
  content: counter(section-counter);
  counter-increment: section-counter;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radiomark-style {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 0;
  left: 0;
  top: 0;
  border: 0;
}

.radio-style input[type="radio"]:checked+.radiomark-style::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  transform: none;
  width: 100%;
  height: 100%;
  background: #d7ae51;
  border-radius: 4px;
  z-index: 0;
}

.radio-style.etf-radio {
  padding: 10px;
}

.label-style {
  position: relative;
  z-index: 2;
  font-size: 14px !important;
  font-style: normal;
  font-weight: 500;
  line-height: 100%;
  text-transform: capitalize;
  font-family: "Instrument Sans";
  color: #001347;
  text-align: center;
}

.radio-style {
  padding: 12px 24px;
  border-radius: 4px;
  border: 1px solid #d7ae51;
  text-align: center;
  position: relative;
  width: 100%;
  justify-content: center;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.radio-style input[type="radio"] {
  display: none;
}

/* Performance tool uses different button colors */
button.pg-btn-primary {
  border-radius: 4px !important;
  background: #001347 !important;
  color: #d7ae51 !important;
  font-weight: 700 !important;
  line-height: 18px !important;
  text-transform: capitalize !important;
}

.pg-btn-primary:hover {
  background: #d7ae51 !important;
  color: #001347 !important;
}

/* .control-block-card */
.control-block-card,
.amount-style {
  background: transparent;
}

.control-block-card {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Metal selection - 50/50 width for Gold and Silver */
.metal-selection .control-block-card {
  display: flex;
  gap: 10px;
  width: 100%;
}

.metal-selection .control-block-card .radio-style {
  flex: 1;
  width: 50%;
}

.etf-selection .control-block-card {
  flex-direction: column;
}

.control-block-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 12px 24px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  border: 1px solid #d7ae51;
  text-align: center;
  position: relative;
  justify-content: center;
  min-width: 135px;
  width: fit-content;
}

.control-block-checkmark {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 0;
  left: 0;
  border: 0;
  top: 0;
  transition: all 0.3s ease;
}

.control-block-checkbox input[type="checkbox"]:checked+.control-block-checkmark::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  transform: none;
  width: 100%;
  height: 100%;
  background: #d7ae51;
  border-radius: 4px;
  z-index: 0;
}

.control-block-checkbox input[type="checkbox"]:checked+.control-block-checkmark {
  border-color: #d7ae51;
}

/* Performance tool specific input overrides */
input[type="number"].input-field,
.input-field {
  border-radius: 0px !important;
  border: none !important;
  background: transparent !important;
  padding: 5px 0px !important;
  text-align: right !important;
  border-bottom: 1px solid #001347 !important;
  width: 100%;
}

/* Input labels now use shared styles */

/* Old pg-input styles removed - now using shared input-field styles */
.amount-style {
  border: 0 !important;
  border-bottom: 1px solid #001347 !important;
  border-radius: 0 !important;
  padding: 5px 0px !important;
  text-align: right !important;
  width: 100%;
  transition: border-color 0.3s ease !important;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 100%;
  text-transform: capitalize;
  color: var(--color-primary);
}

.amount-style {
  color: #515151 !important;
}

/* Focus styles now handled by shared CSS */

.input-group {
  position: relative;
  max-width: 145px;
  width: 100%;
}

/* Right Column - Results Display */
.pg-tool-selector-container .results-display-style {
  max-width: 964px;
  padding: 36px;
  width: 100%;
  border-radius: 4px;
  background: #001347;
  position: relative;
}


/* Results display style now in shared CSS */

/* Asset statistics grid now in shared CSS */

.asset-result-card.gold .asset-stat-value {
  color: var(--color-secondary);
}

/* Performance tool specific asset card overrides */
.asset-main-result {
  text-align: right !important;
}

.asset-main-result-value {
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin-bottom: 14px;
  line-height: 100%;
}

.asset-result-card.gold .asset-main-result-value {
  color: var(--color-secondary);
}

.asset-main-result-label {
  font-size: 15px;
  color: var(--color-white);
  font-weight: 400;
  margin-bottom: 10px;
  line-height: 100%;
}

.asset-result-card.gold .asset-main-result-label {
  color: var(--color-secondary);
}

/* Asset Chart Container */
.asset-chart-container {
  background: transparent;
  border-radius: 0;
  padding: 0px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  position: relative;
}

.asset-chart-container:before {
  background: url(../graph-bg.svg) no-repeat center center;
  background-size: 58%;
  position: absolute;
  content: "";
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-height: 220px;
  height: 100%;
  opacity: 0.7;
  filter: brightness(1.8);
}

.asset-chart-container svg {
  max-width: 100%;
  width: 100%;
  height: auto;
  min-height: 160px;
  max-height: 220px;
}

/* SVG g transform is set dynamically by JS based on data values */

.asset-chart-container svg path.area {
  fill: transparent !important;
  stroke: white;
  stroke-width: 2px;
  opacity: 1;
}

.asset-chart-container svg path.line {
  stroke: white !important;
}

.asset-result-card.gold .asset-chart-container svg path.line {
  stroke: var(--color-secondary) !important;
}

.asset-result-card.gold .asset-chart-container svg path.area {
  stroke: var(--color-secondary) !important;
}

.y-axis,
.x-axis {
  color: #bfbfbf !important;
}

.asset-chart-container svg .tick text {
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
}

/* Original Form Styling - Enhanced for Two-Column Layout */
.pg-container {
  background: transparent;
  border: none;
  box-shadow: none;
  margin: 0;
  padding: 0;
  max-width: 306px;
  margin-right: 0;
  margin-left: auto;
}

.pg-performance {
  background: transparent;
  border: none;
  box-shadow: none;
  margin: 0;
  padding: 0;
}

.pg-header {
  display: none;
}

.pg-controls {
  background: transparent;
  border: none;
  box-shadow: none;
  margin: 0;
  padding: 0;
  counter-reset: section-counter;
}

.control-block-grid {
  display: flex;
  flex-wrap: wrap;
}

/* Make all option cards the same width */
.pg-option-card {
  width: calc(50% - 8px);
  /* min-height: 60px; */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px 10px 0;
  box-sizing: border-box;
}

/* Desktop: Add margin-right to first column items, no margin-left to second column */
.pg-option-card:nth-child(odd) {
  margin-right: 16px;
  margin-left: 0;
}

.pg-option-card:nth-child(even) {
  margin-left: 0;
  margin-right: 0;
}

.control-block-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  width: 100%;
  justify-content: center;
  margin: 0;
  text-align: center;
}

.control-block-checkbox .pg-option-label {
  text-align: center;
  margin: 0;
  position: relative;
  z-index: 2;
  font-size: 14px !important;
  font-style: normal;
  font-weight: 500;
  line-height: 100%;
  text-transform: capitalize;
  font-family: "Instrument Sans";
  color: #001347;
}

.control-block-checkbox input[type="checkbox"] {
  display: none;
}

.control-block-checkbox input[type="checkbox"]:checked+.control-block-checkmark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-primary);
  font-weight: bold;
  font-size: 12px;
}

/* Disabled checkbox styles */
.control-block-checkbox input[type="checkbox"]:disabled+.control-block-checkmark {
  opacity: 0.4;
  background: #e0e0e0;
  border-color: #ccc;
  cursor: not-allowed;
}

.control-block-checkbox.disabled,
.control-block-checkbox input[type="checkbox"]:disabled~.pg-option-label,
.control-block-checkbox .disabled-text {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.control-block-checkbox input[type="checkbox"]:disabled {
  cursor: not-allowed;
}

/* Date Range Options */
.pg-date-options {
  display: grid;
  gap: 8px;
}

.pg-date-options .label-style {
  padding: 13px;
}

/* Date range options - solid button style (no circles) */
.pg-date-options .radio-style,
.pg-date-options .pg-radio {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 0 24px;
  border-radius: 4px;
  border: 1px solid #d7ae51;
  transition: background-color 0.3s ease;
  position: relative;
}

.pg-date-options .radio-style input[type="radio"],
.pg-date-options .pg-radio input[type="radio"] {
  display: none;
}

.pg-date-options .radiomark-style,
.pg-date-options .pg-radiomark {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 0;
  left: 0;
  top: 0;
  border: 0;
}

.pg-date-options .radio-style input[type="radio"]:checked+.radiomark-style::after,
.pg-date-options .pg-radio input[type="radio"]:checked+.pg-radiomark::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  transform: none;
  width: 100%;
  height: 100%;
  background: #d7ae51;
  border-radius: 4px;
  z-index: 0;
}

/* Global radio button solid style - no circles anywhere */
.pg-radio,
input[type="radio"].pg-radio-input {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 12px 24px;
  border-radius: 4px;
  border: 1px solid #d7ae51;
  transition: background-color 0.3s ease;
  position: relative;
  justify-content: center;
}

.pg-radio input[type="radio"],
input[type="radio"].pg-radio-input {
  display: none;
}

.pg-radiomark {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 0;
  left: 0;
  top: 0;
  border: 0;
}

.pg-radio input[type="radio"]:checked+.pg-radiomark::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  transform: none;
  width: 100%;
  height: 100%;
  background: #d7ae51;
  border-radius: 4px;
  z-index: 0;
}

/* Custom Date Inputs */
.pg-custom-dates {
  margin-top: 15px;
  padding: 15px;
  /* background: #f8f9fa; */
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

/* Force show custom date inputs when needed */
#custom-date-inputs {
  display: none !important;
}

#custom-date-inputs.show {
  display: block !important;
}

.pg-date-input-group {
  margin-bottom: 10px;
}

input::-webkit-calendar-picker-indicator {
  filter: brightness(0) saturate(100%) invert(8%) sepia(72%) saturate(2371%) hue-rotate(212deg) brightness(96%) contrast(110%);
}

.pg-date-input-group {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* flex-wrap: wrap; */
}

.pg-date-input-group label {
  position: relative;
  bottom: 0;
  word-wrap: normal;
  width: 100%;
  max-width: 80px;
  text-align: left;
}

.pg-date-input-group:last-child {
  margin-bottom: 0;
}

.pg-date-input-group input.input-field {
  width: 100%;
  max-width: 200px;
  font-size: 14px !important;
  font-style: normal;
  font-weight: 500;
  line-height: 100%;
  text-transform: capitalize;
  font-family: "Instrument Sans";
  color: #001347;
}

.pg-custom-dates {
  /* background: white; */
  border-radius: 4px;
  border: 1px solid #d7ae51;
}

.input-label {
  position: absolute;
  font-family: "Instrument Sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 100%;
  text-transform: capitalize;
  margin-bottom: 0px;
  bottom: 8px;
}

/* Action Buttons */
.pg-actions {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.pg-btn {
  padding: 15px 25px !important;
  border: none;
  border-radius: 8px !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.pg-btn-secondary {
  background: #6c757d;
  color: white;
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.pg-btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

/* Results Section Styling */
.pg-results {
  background: transparent;
  border: none;
  box-shadow: none;
  margin: 0;
  padding: 0;
}

.pg-results-header {
  text-align: center;
  margin-bottom: 30px;
}

.pg-results-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: white;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pg-date-range-section {
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  text-align: center;
  color: white;
}

/* Chart Container */
.pg-chart-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
}

.pg-chart-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin: 0 0 20px 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pg-chart-area {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  padding: 20px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Loading States */
.pg-loading-state {
  display: none;
  position: relative;
  background: transparent;
  z-index: 1;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.preserve-gold-loading {
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.preserve-gold-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #d7ae51;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 1420px) {
  .container-1406 {
    max-width: 1406px;
    width: 100%;
    padding: 0 16px 0 16px;
    margin: 0 auto;
  }
}

@media (max-width: 1300px) {
  .control-block-card {
    flex-wrap: wrap;
  }

  .input-group {
    width: 100%;
    max-width: 100%;
  }

  .control-block-checkbox {
    width: 100%;
  }

  .pg-tool-selector-container .results-display-style {
    padding: 25px 16px;
  }

  .asset-result-card {
    width: calc(50% - 10px);
    margin-left: 10px;
  }

  .individual-asset-cards-area {
    width: calc(100% + 10px);
    margin-left: -10px;
  }
}

@media (max-width: 1200px) {
  .asset-chart-container:before {
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .pg-tool-selector-container .control-panel-style {
    max-width: 325px;
  }

  /* Stack index checkboxes at full width */
  .pg-option-card {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    /* padding: 0 10px 10px 0; */
  }

  .control-block-checkbox {
    width: 100%;
  }
}

/* Ipad responsive */
@media (max-width: 1100px) {
  .pg-date-options {
    display: flex;
    flex-wrap: wrap;
  }

  #diversification-form .pg-btn-primary {
    width: 100%;
  }

  .etf-selection .control-block-card {
    flex-direction: row;
  }

  .radio-style {
    width: 49%;
  }

  .pg-container {
    max-width: 100%;
  }

  .pg-tool-selector-container.flex-container {
    flex-direction: column;
  }

  .control-block-card {
    width: 100%;
  }

  .pg-tool-selector-container .control-panel-style {
    position: relative;
    padding: 0 16px 20px 55px;
    height: auto;
    width: 100%;
    max-width: 100%;
  }

  .control-block-card {
    width: calc(50% - 4px);
    /* padding: 0; */
  }

  .control-block-card:nth-child(odd) {
    margin-right: 8px
  }

  body .control-block-checkbox {
    width: 100% !important;
  }

  .pg-section-title::before {
    left: -40px !important;
    /* font-size: 30px; */
    top: -4px;
  }

  .performance-page .container-1400 {
    padding: 0 !important;
  }

  .pg-tool-selector-container .results-display-style {
    max-width: 100%;
    margin-top: 32px;
    padding: 36px 16px;
  }

  .performance-page .header-section {
    padding: 0 16px;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 48px;
  }

  .pg-nav-dropdown {
    margin-left: 0 !important;
    margin-top: 10px !important;
  }

  .input-group {
    max-width: 49% !important;
  }

  .control-block-checkbox {
    width: 49% !important;
  }

  .asset-result-card {
    width: 100%;
    margin-left: 0px !important;
    margin-bottom: 30px;
    flex: none;
  }

  .asset-chart-container:before {
    max-width: 400px;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .individual-asset-cards-area {
    width: calc(100% + 0px);
    margin-left: 0px;
  }

  .pg-tool-selector-container .results-display-style {
    margin: 0 16px;
    width: calc(100% - 32px);
  }
}

/* IPAD Responsive */
@media (max-width: 980px) {
  .performance-page h1 {
    font-size: 40px !important;
  }

  .performance-page .header-section {
    flex-direction: column;
    /* align-items: center; */
  }

  /* .pg-nav-dropdown {
    margin-left: 0;
    margin-top: 32px !important;
  } */
}

@media (max-width: 980px) {
  .asset-result-card {
    width: 100% !important;
    margin-left: 0px !important;
    margin-bottom: 30px;
  }

  .individual-asset-cards-area {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }
}

@media (max-width: 900px) {
  .individual-asset-cards-area {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .pg-section-title::before {
    font-size: 24px !important;
    top: 0;
  }

  .pg-section-title::before {
    left: -24px !important;
  }

  .pg-tool-selector-container .control-panel-style {
    padding-left: 40px;
  }

  .pg-tool-selector-container .results-display-style {
    margin: 0 0px;
    width: 100%;
  }

  .asset-result-card {
    width: 100% !important;
    margin-right: 0px !important;
    max-width: 100%;
    margin-left: 0 !important;
  }

  .asset-chart-container:before {
    max-width: 400px;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .pg-date-input-group {
    flex-wrap: wrap;
  }
}

@media (max-width: 556px) {
  .control-block-checkbox {
    width: 48% !important;
  }

  .radio-style {
    width: 48%;
  }

  .input-group {
    max-width: 48% !important;
  }
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .radio-style {
    width: 100%;
  }

  .pg-date-input-group input.input-field {
    max-width: 100%;
  }

  .control-block-card {
    width: 100%;
  }

  .control-block-card:nth-child(odd) {
    margin-right: 0px
  }

  /* SVG g transform is set dynamically by JS */

  .performance-page .header-section {
    align-items: center;
    margin-bottom: 32px;
  }

  .pg-nav-dropdown {
    margin-left: 0;
    margin-top: 0 !important;
  }

  .performance-page h1 {
    font-size: 25px !important;
    margin-bottom: 0 !important;
  }

  /* Center text only inside the blue results section, not the white controls/header */
  .performance-page .results-display-style p,
  .performance-page .results-display-style h1 {
    text-align: center;
  }

  .asset-chart-container svg .tick text {
    font-size: 11px;
  }

  .asset-chart-container svg {
    height: 300px;
  }

  .asset-chart-container:before {
    background-size: 77%;
    max-width: 250px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .pg-tool-selector-container.flex-container {
    padding: 0;
  }

  .asset-result-card.gold .asset-main-result-value,
  .asset-main-result-value {
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 100%;
    margin-bottom: 0;
  }

  .asset-card-title {
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 100%;
  }

  .asset-main-result-label {
    font-size: 14px;
  }
}

/*Extra Theme Style  */
.has-global-padding {
  padding: 0 !important;
}

.is-layout-constrained> :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.hide {
  display: none !important;
}

@media (max-width: 400px) {
  .control-block-checkbox {
    width: 100% !important;
  }

  .input-group {
    max-width: 100% !important;
  }

  /* Remove all margins when stacked on mobile */
  .pg-option-card:nth-child(odd),
  .pg-option-card:nth-child(even) {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    margin-bottom: 20px;
  }
}

/* Full width input styling for investment amount */
.input-group.full-width {
  width: 100% !important;
  max-width: none !important;
}

.input-group.full-width .input-field.full-width-input {
  width: 100% !important;
  max-width: none !important;
}