.portfolio-history {
  max-width: 850px;
  margin: 28px auto 45px;
}

.manual-dashboard,
.manual-withdraw-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 42px 22px 70px;
}
.account-heading strong { color: #9a6d08; }
.account-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 18px;
}
.account-summary-grid article {
  padding: 20px;
  background: #fff;
  border: 1px solid #eadfbe;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(53, 38, 7, .06);
}
.account-summary-grid span,
.withdraw-balance small {
  display: block;
  color: #7b705b;
  font-size: 13px;
  margin-bottom: 8px;
}
.account-summary-grid strong { font-size: 25px; color: #241b08; }
.account-summary-grid .primary-balance {
  color: #fff;
  background: linear-gradient(135deg, #2c210a, #a36e02);
  border-color: transparent;
}
.account-summary-grid .primary-balance span,
.account-summary-grid .primary-balance strong { color: #fff; }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.account-actions a { text-decoration: none; }
.account-panel {
  background: #fff;
  border: 1px solid #eadfbe;
  border-radius: 14px;
  padding: 20px;
  margin-top: 18px;
}
.section-heading { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 14px; }
.section-heading span { color: #a0710c; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.section-heading h2 { margin: 3px 0 0; }
.section-heading a { color: #9a6d08; }
.notification-list article,
.manual-history article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid #eee7d4;
}
.notification-list article:first-child,
.manual-history article:first-child { border-top: 0; }
.notification-list p { margin: 4px 0 0; color: #625a49; }
.notification-list time,
.manual-history small { color: #8a816f; font-size: 12px; }
.manual-history span { display: block; margin-top: 5px; color: #756b58; }
.manual-history > article > div:nth-child(2) { text-align: right; }
.manual-history .status { display: inline-block; }
.withdraw-reason,
.withdraw-success { grid-column: 1 / -1; margin: 0; padding: 9px 11px; border-radius: 8px; }
.withdraw-reason { background: #fff1f1; color: #962d2d; }
.withdraw-success { background: #e8f7eb; color: #216b35; }
.empty-state { color: #7c735f; }
.withdraw-shell { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: start; }
.withdraw-intro,
.withdraw-form-card { background: #fff; border: 1px solid #eadfbe; border-radius: 16px; padding: 26px; }
.withdraw-intro > span { color: #a0710c; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.withdraw-intro h1 { margin: 8px 0; }
.withdraw-balance { margin-top: 22px; padding: 20px; border-radius: 12px; background: #211805; color: #fff; }
.withdraw-balance strong { display: block; font-size: 28px; }
.withdraw-balance small { color: #e8d9b1; }
.withdraw-form-card .auth-form { margin-top: 0; }
.auth-form button:disabled { opacity: .55; cursor: not-allowed; }
.withdraw-history-panel { margin-top: 24px; }

@media (max-width: 760px) {
  .account-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .withdraw-shell { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .manual-dashboard, .manual-withdraw-page { padding: 22px 10px 78px; }
  .manual-withdraw-page { padding-top: 14px; }
  .withdraw-shell { gap: 10px; }
  .account-heading { margin-bottom: 14px; }
  .account-heading h1 { font-size: 24px; line-height: 1.2; }
  .account-heading p { font-size: 12px; }
  .account-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0 12px; }
  .account-summary-grid article { min-height: 72px; padding: 12px; border-radius: 10px; }
  .account-summary-grid span { font-size: 11px; margin-bottom: 5px; }
  .account-summary-grid strong { font-size: 18px; }
  .account-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
  .account-actions a { padding: 9px 8px; font-size: 12px; text-align: center; }
  .account-actions a:first-child { grid-column: 1 / -1; }
  .account-panel { padding: 14px; margin-top: 12px; border-radius: 11px; }
  .section-heading h2 { font-size: 20px; }
  .notification-list article, .manual-history article { padding: 10px 0; }
  .notification-list article, .manual-history article { grid-template-columns: 1fr; }
  .manual-history > article > div:nth-child(2) { text-align: left; }
  .withdraw-intro, .withdraw-form-card { padding: 14px 12px; border-radius: 12px; }
  .withdraw-intro > span { font-size: 10px; }
  .withdraw-intro h1 { margin: 5px 0; font-size: 22px; line-height: 1.25; }
  .withdraw-intro p { margin: 7px 0 0; font-size: 12px; line-height: 1.55; }
  .withdraw-balance { margin-top: 12px; padding: 12px; }
  .withdraw-balance small { margin-bottom: 4px; font-size: 10px; }
  .withdraw-balance strong { font-size: 20px; }
  .withdraw-form-card .auth-form { gap: 10px; }
  .withdraw-form-card .auth-form label { gap: 5px; font-size: 11px; }
  .withdraw-form-card .auth-form input,
  .withdraw-form-card .auth-form select { min-height: 42px; padding: 9px 10px; font-size: 13px; }
  .withdraw-form-card .auth-form button { min-height: 42px; padding: 10px; }
  .withdraw-form-card .auth-form small { font-size: 10px; line-height: 1.45; }
  .withdraw-form-card .form-error,
  .withdraw-form-card .lock-note { padding: 10px; font-size: 11px; }
  .withdraw-history-panel { margin-top: 10px; }
}
@media (max-width: 340px) {
  .account-summary-grid { grid-template-columns: 1fr; }
}
.portfolio-history h2 {
  font-size: 24px;
}
.portfolio-history article {
  display: grid;
  grid-template-columns: 1.3fr .8fr 1.1fr;
  gap: 16px;
  align-items: center;
  padding: 17px 20px;
  margin: 10px 0;
  border: 1px solid #e5d6ad;
  border-radius: 13px;
  background: #fff;
}
.portfolio-history article > div {
  display: grid;
  gap: 3px;
}
.portfolio-history article > div:nth-child(2),
.portfolio-history article > div:nth-child(3) {
  text-align: right;
}
.portfolio-history span {
  color: #786d61;
  font-size: 13px;
}
@media (max-width: 760px) {
  .portfolio-history article {
    grid-template-columns: 1fr 1fr;
  }
  .portfolio-history article > div:nth-child(3) {
    grid-column: 1/-1;
    text-align: left;
    padding-top: 10px;
    border-top: 1px solid #eee5d1;
  }
}
.profile-card .profile-stats {
  display: none !important;
}
.live-profile-assets {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 26px;
  border: 1px solid #ffffff24;
  border-radius: 15px;
  overflow: hidden;
  background: #ffffff18;
}
.live-profile-assets > div {
  padding: 18px;
  background: #160f0555;
}
.live-profile-assets span,
.live-profile-assets b {
  display: block;
}
.live-profile-assets span {
  font-size: 12px;
  color: #eadbb4;
}
.live-profile-assets b {
  margin-top: 5px;
  color: #ffd65c;
  font: 800 19px Inter;
}
.live-profile-assets > small {
  grid-column: 1/-1;
  padding: 8px 15px;
  background: #fff4c8;
  color: #745000;
  text-align: center;
}
@media (max-width: 760px) {
  .live-profile-assets {
    grid-template-columns: 1fr 1fr;
  }
  .live-profile-assets > div {
    padding: 13px;
  }
  .live-profile-assets b {
    font-size: 16px;
  }
}
.live-profile-assets .profit-stat {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 14px 18px;
  border-top: 1px solid #ffffff2b;
  background: #0d2b205e;
}
.live-profile-assets .profit-stat b {
  font-size: 22px;
}
.live-profile-assets .profit-stat small {
  grid-column: 1/-1;
  color: #dacda8;
}
.live-profile-assets .profit-stat.positive b {
  color: #7ff0b2;
}
.live-profile-assets .profit-stat.negative {
  background: #43191166;
}
.live-profile-assets .profit-stat.negative b {
  color: #ff9e86;
}
.kyc-form {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #eadfc9;
}
.kyc-heading {
  display: flex;
  gap: 12px;
  align-items: center;
}
.kyc-heading > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #c89518;
  color: #fff;
  font-weight: 900;
}
.kyc-heading h3,
.kyc-heading p {
  margin: 0;
}
.kyc-heading p {
  color: #817466;
  font-size: 13px;
}
.kyc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.kyc-grid label,
.kyc-uploads label {
  margin: 0;
}
.kyc-grid .wide {
  grid-column: 1/-1;
}
.kyc-grid textarea {
  min-height: 68px;
  resize: vertical;
}
.kyc-grid select,
.kyc-grid textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid #ddd1c3;
  border-radius: 9px;
  background: #fff;
}
.kyc-uploads {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}
.kyc-uploads label {
  padding: 10px;
  border: 1px dashed #c89518;
  border-radius: 9px;
  font-size: 12px;
}
.kyc-uploads input {
  width: 100%;
  margin-top: 8px;
}
.kyc-consent {
  display: flex !important;
  gap: 9px;
  align-items: flex-start;
}
.kyc-consent input {
  width: auto !important;
  margin: 3px 0 !important;
}
.kyc-status {
  margin-top: 18px;
  padding: 12px;
  border-radius: 9px;
}
.kyc-status.approved {
  background: #dff5e8;
  color: #147348;
}
@media (max-width: 600px) {
  .kyc-grid,
  .kyc-uploads {
    grid-template-columns: 1fr;
  }
  .kyc-grid .wide {
    grid-column: auto;
  }
}
.portfolio-value-breakdown {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid #ffffff2b;
}
.portfolio-value-breakdown span,
.portfolio-value-breakdown b,
.portfolio-value-breakdown small {
  display: block;
}
.portfolio-value-breakdown span {
  font-size: 12px;
  color: #eadbb4;
}
.portfolio-value-breakdown b {
  margin: 5px 0;
  color: #fff;
  font: 700 14px Inter;
}
.portfolio-value-breakdown small {
  color: #eadbb4;
}
.portfolio-value-breakdown .gain {
  color: #83efb7;
}
.portfolio-value-breakdown .loss {
  color: #ff9d86;
}
