/* Gold performance pages integrated through page_show.php */
.gs-perf {
    --gp-bg: #f6f8fb;
    --gp-card: #ffffff;
    --gp-line: #e2e8f0;
    --gp-text: #183153;
    --gp-muted: #61708a;
    --gp-gold: #d4a63a;
    --gp-gold-2: #f0c76a;
    --gp-green: #1f9d55;
    --gp-red: #c24141;
    --gp-blue: #2b6cb0;
    --gp-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
    background: var(--gp-bg);
    color: var(--gp-text);
}

.gs-perf *, .gs-perf *::before, .gs-perf *::after { box-sizing: border-box; }
.gs-perf .container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}
.gs-perf .section { padding: 34px 0; }
.gs-perf .hero {
    padding: 52px 0 36px;
    background: linear-gradient(135deg, #0f1a2d 0%, #183153 58%, #0f1a2d 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.gs-perf .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at top right, rgba(212,166,58,0.22) 0%, transparent 28%),
      radial-gradient(circle at bottom left, rgba(255,255,255,0.08) 0%, transparent 34%);
}
.gs-perf .hero-inner {
    position: relative;
    z-index: 1;
    max-width: 940px;
}
.gs-perf .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.14);
    color: #ffe39a;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.gs-perf .hero h1 {
    margin: 18px 0 14px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.08;
    color: #fff;
}
.gs-perf .hero p {
    margin: 0;
    max-width: 860px;
    font-size: 1.08rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.88);
}
.gs-perf .hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 24px;
}
.gs-perf .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    cursor: pointer;
}
.gs-perf .button:hover { transform: translateY(-1px); }
.gs-perf .button-primary {
    background: linear-gradient(135deg, var(--gp-gold), var(--gp-gold-2));
    color: #1d2433;
    box-shadow: 0 14px 28px rgba(212,166,58,0.25);
}
.gs-perf .button-secondary {
    background: #fff;
    color: var(--gp-text);
    border-color: var(--gp-line);
}
.gs-perf .button-dark {
    background: #183153;
    color: #fff;
}

/* Profit Calculator action styles */
.gs-perf .button-profit-primary {
    background: linear-gradient(135deg, #2590ff 0%, #1777f2 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 16px 32px rgba(23,119,242,0.28);
}
.gs-perf .button-profit-primary:hover {
    color: #fff;
    box-shadow: 0 20px 40px rgba(23,119,242,0.32);
    background: linear-gradient(135deg, #1583f5 0%, #1269d8 100%);
}
.gs-perf .button-profit-secondary {
    background: linear-gradient(135deg, rgba(37,144,255,0.10) 0%, rgba(23,119,242,0.08) 100%);
    color: #155ebd;
    border-color: rgba(23,119,242,0.22);
}
.gs-perf .button-profit-secondary:hover {
    color: #0f4d8a;
    border-color: rgba(23,119,242,0.34);
    box-shadow: 0 12px 28px rgba(23,119,242,0.12);
    background: linear-gradient(135deg, rgba(37,144,255,0.14) 0%, rgba(23,119,242,0.12) 100%);
}
.gs-perf .button-profit-card {
    background: linear-gradient(135deg, #5ecf45 0%, #32b44a 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 16px 34px rgba(50,180,74,0.26);
}
.gs-perf .button-profit-card:hover {
    color: #fff;
    background: linear-gradient(135deg, #6cda4f 0%, #2aa241 100%);
    box-shadow: 0 18px 38px rgba(50,180,74,0.30);
}
.gs-perf .button-profit-ghost {
    background: #fff;
    color: #12508f;
    border-color: rgba(15,106,217,0.16);
}
.gs-perf .button-profit-ghost:hover {
    color: #0f4d8a;
    border-color: rgba(20,184,166,0.28);
    box-shadow: 0 12px 28px rgba(20,184,166,0.10);
}
.gs-perf .section-head {
    max-width: 820px;
    margin-bottom: 22px;
}
.gs-perf .section-head h2 {
    margin: 0 0 10px;
    font-size: clamp(1.6rem, 2vw, 2.35rem);
    line-height: 1.12;
}
.gs-perf .section-head p,
.gs-perf .muted,
.gs-perf .small,
.gs-perf .table-note,
.gs-perf .meta-list,
.gs-perf .config-note {
    color: var(--gp-muted);
    line-height: 1.7;
}
.gs-perf .notice {
    background: #fff8e7;
    border: 1px solid rgba(212,166,58,0.30);
    color: #6f5716;
    border-radius: 18px;
    padding: 18px 20px;
}
.gs-perf .grid-3,
.gs-perf .grid-2,
.gs-perf .kpi-grid,
.gs-perf .mini-kpi-grid,
.gs-perf .builder-grid,
.gs-perf .action-grid,
.gs-perf .detail-grid {
    display: grid;
    gap: 24px;
}
.gs-perf .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gs-perf .grid-2,
.gs-perf .builder-grid,
.gs-perf .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gs-perf .card {
    background: var(--gp-card);
    border: 1px solid var(--gp-line);
    border-radius: 24px;
    box-shadow: var(--gp-shadow);
    padding: 26px;
    min-width: 0;
}
.gs-perf .card.compact { padding: 22px; }
.gs-perf .card h3, .gs-perf .card h4 { margin: 0 0 10px; }
.gs-perf .card-title-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}
.gs-perf .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: #f5efe0;
    color: #b18411;
    font-size: .84rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.gs-perf .system-chip-list,
.gs-perf .pill-row,
.gs-perf .meta-row,
.gs-perf .card-actions,
.gs-perf .inline-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.gs-perf .chip,
.gs-perf .pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid var(--gp-line);
    color: var(--gp-text);
    font-weight: 600;
}
.gs-perf .chip.is-trend { border-color: rgba(43,108,176,.26); color: #2b6cb0; }
.gs-perf .chip.is-neutral { border-color: rgba(100,116,139,.26); color: #475569; }
.gs-perf .chip.is-pattern { border-color: rgba(212,166,58,.28); color: #a46f00; }
.gs-perf .points {
    margin: 16px 0 0;
    padding-left: 20px;
    color: var(--gp-muted);
}
.gs-perf .points li { margin: 7px 0; }
.gs-perf .mini-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; }
.gs-perf .mini-kpi,
.gs-perf .kpi {
    min-width: 0;
    border: 1px solid var(--gp-line);
    border-radius: 18px;
    background: #f8fafc;
    padding: 16px 16px 14px;
}
.gs-perf .kpi-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.gs-perf .kpi .value,
.gs-perf .mini-kpi .value {
    display: block;
    min-width: 0;
    font-size: clamp(1.55rem, 1.8vw, 2.25rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--gp-text);
    word-break: break-word;
}
.gs-perf .kpi .label,
.gs-perf .mini-kpi .label {
    display: block;
    margin-top: 8px;
    color: var(--gp-muted);
    font-size: .98rem;
    line-height: 1.45;
}
.gs-perf .positive { color: var(--gp-green) !important; }
.gs-perf .negative { color: var(--gp-red) !important; }
.gs-perf .meta-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 18px;
    margin-top: 18px;
}
.gs-perf .meta-item {
    padding-top: 12px;
    border-top: 1px solid var(--gp-line);
}
.gs-perf .meta-label {
    display: block;
    margin-bottom: 6px;
    font-size: .84rem;
    font-weight: 700;
    color: #74839c;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.gs-perf .meta-value {
    display: block;
    font-size: 1rem;
    color: var(--gp-text);
    font-weight: 600;
}
.gs-perf .panel-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}
.gs-perf .panel-intro .section-head { margin-bottom: 0; }
.gs-perf .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.gs-perf .system-weight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 12px;
}
.gs-perf .field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.gs-perf .field label {
    font-size: .92rem;
    font-weight: 700;
    color: var(--gp-text);
}
.gs-perf .field input,
.gs-perf .field select {
    width: 100%;
    height: 48px;
    border: 1px solid var(--gp-line);
    border-radius: 12px;
    background: #fff;
    color: var(--gp-text);
    padding: 0 14px;
    font: inherit;
}
.gs-perf .field .checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--gp-line);
    border-radius: 12px;
    background: #fff;
}
.gs-perf .field .checkbox-row input { width: 18px; height: 18px; }

.gs-perf-builder-page .mode-field-group[hidden] {
    display: none !important;
}
.gs-perf .form-note {
    margin-top: 14px;
    font-size: .92rem;
    color: var(--gp-muted);
}
.gs-perf .table-wrap {
    overflow-x: auto;
    border: 1px solid var(--gp-line);
    border-radius: 18px;
    background: #fff;
}
.gs-perf table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}
.gs-perf th,
.gs-perf td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gp-line);
    text-align: left;
    vertical-align: top;
}
.gs-perf thead th {
    background: #f8fafc;
    color: var(--gp-text);
    font-size: .86rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.gs-perf tbody tr:last-child td { border-bottom: 0; }
.gs-perf tbody tr:hover td { background: #fbfcfe; }
.gs-perf .align-right { text-align: right; }
.gs-perf .two-col-text {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.gs-perf .cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(212,166,58,.08), rgba(24,49,83,.06));
    border: 1px solid rgba(212,166,58,.20);
}
.gs-perf .cta-box h3 { margin: 0 0 8px; }
.gs-perf .subtitle {
    margin: 0;
    color: var(--gp-muted);
    line-height: 1.7;
}
@media (max-width: 1100px) {
    .gs-perf .grid-3,
    .gs-perf .system-weight-grid,
    .gs-perf .kpi-grid,
    .gs-perf .meta-list,
    .gs-perf .two-col-text {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 900px) {
    .gs-perf .grid-2,
    .gs-perf .builder-grid,
    .gs-perf .detail-grid,
    .gs-perf .form-grid,
    .gs-perf .grid-3,
    .gs-perf .system-weight-grid,
    .gs-perf .meta-list,
    .gs-perf .two-col-text,
    .gs-perf .kpi-grid {
        grid-template-columns: 1fr;
    }
    .gs-perf .cta-box,
    .gs-perf .panel-intro { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
    .gs-perf .container { padding: 0 16px; }
    .gs-perf .section { padding: 26px 0; }
    .gs-perf .hero { padding: 42px 0 30px; }
    .gs-perf .card { padding: 20px; border-radius: 20px; }
    .gs-perf .mini-kpi-grid,
    .gs-perf .kpi-grid { grid-template-columns: 1fr; }
}

/* overview/page consistency refresh */
.gs-perf .performance-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.gs-perf .performance-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(420px, 1.35fr);
    gap: 28px;
    align-items: start;
}

.gs-perf .performance-card-main,
.gs-perf .performance-card-side {
    min-width: 0;
}

.gs-perf .performance-card h3 {
    margin: 10px 0 0;
    font-size: clamp(2rem, 2.2vw, 3.1rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.gs-perf .performance-card .intro-copy {
    margin: 14px 0 0;
    font-size: 1.08rem;
    line-height: 1.78;
    max-width: 42ch;
}

.gs-perf .compact-pills {
    margin-top: 18px;
}

.gs-perf .performance-card-side {
    display: flex;
    flex-direction: column;
}

.gs-perf .card-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 0;
}

.gs-perf .card-kpi-grid.card-kpi-grid-system {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gs-perf .card-kpi-grid.card-kpi-grid-system .metric-wide {
    grid-column: span 1;
}

.gs-perf .card-kpi-grid.card-kpi-grid-set {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gs-perf .performance-card .mini-kpi {
    min-height: 118px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px 18px 16px;
    background: #fbfcfe;
}

.gs-perf .performance-card .mini-kpi .value {
    font-size: clamp(1.55rem, 1.8vw, 2.2rem);
    line-height: 1.02;
    word-break: normal;
    overflow-wrap: anywhere;
}

.gs-perf .performance-card .mini-kpi .label {
    margin-top: 10px;
    font-size: 0.96rem;
    line-height: 1.42;
}

.gs-perf .diversification-note {
    margin-top: 12px;
    font-size: 0.93rem;
    color: var(--gp-muted);
}

.gs-perf .card-actions-tight {
    margin-top: 18px;
}

.gs-perf .card-actions-tight .button {
    min-width: 0;
    flex: 1 1 0;
}

@media (max-width: 1180px) {
    .gs-perf .performance-card {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .gs-perf .card-kpi-grid,
    .gs-perf .card-kpi-grid.card-kpi-grid-system,
    .gs-perf .card-kpi-grid.card-kpi-grid-set {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .gs-perf .performance-card h3 {
        font-size: 2.05rem;
    }
}

@media (max-width: 640px) {
    .gs-perf .card-kpi-grid,
    .gs-perf .card-kpi-grid.card-kpi-grid-system,
    .gs-perf .card-kpi-grid.card-kpi-grid-set {
        grid-template-columns: 1fr;
    }

    .gs-perf .performance-card .mini-kpi {
        min-height: 110px;
    }

    .gs-perf .card-actions-tight {
        flex-direction: column;
    }

    .gs-perf .card-actions-tight .button {
        width: 100%;
    }
}

.gs-perf .section-soft {
    background: linear-gradient(180deg, rgba(24,49,83,0.03) 0%, rgba(24,49,83,0.00) 100%);
}
.gs-perf .kpi-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.gs-perf .kpi-guide-card {
    height: 100%;
}
.gs-perf .kpi-guide-card h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.25;
}
.gs-perf .kpi-guide-card p {
    margin: 0;
    color: var(--gp-muted);
    line-height: 1.72;
}
.gs-perf .kpi-guide-note {
    margin-top: 20px;
}
@media (max-width: 980px) {
    .gs-perf .kpi-guide-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .gs-perf .kpi-guide-grid {
        grid-template-columns: 1fr;
    }
}


/* Signal sets CTA centered under KPI block */
.gs-perf #signals-sets .performance-card-side .card-actions-tight {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    align-items: center;
    margin-top: 18px;
}

.gs-perf #signals-sets .performance-card-side .card-actions-tight .button-profit-card {
    width: min(50%, 520px) !important;
    min-width: 320px;
    max-width: 520px;
    flex: 0 0 auto !important;
    margin: 0 auto !important;
    justify-content: center;
}

@media (max-width: 1180px) {
    .gs-perf #signals-sets .performance-card-side .card-actions-tight .button-profit-card {
        width: 100% !important;
        min-width: 0;
        max-width: none;
    }
}

/* ===== DETAILED SYSTEM PAGE UPDATES ===== */
.gs-perf-system-page .section.section-compact {
    padding-top: 18px;
    padding-bottom: 18px;
}

.system-profile-card {
    padding: 38px 38px 34px;
}

.system-profile-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 20px;
}

.system-profile-head h2 {
    margin: 16px 0 14px;
    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 0.96;
    color: #203f72;
    letter-spacing: -0.03em;
}

.system-profile-text {
    max-width: 760px;
    margin: 0;
    color: #5b7092;
    font-size: 1.06rem;
    line-height: 1.7;
}

.pill-row.compact {
    margin-top: 6px;
    margin-bottom: 24px;
}

.system-kpi-primary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 8px;
}

.system-kpi-primary {
    background: #ffffff;
    border-radius: 18px;
    padding: 28px 32px 30px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    border: 1px solid #e7edf7;
    position: relative;
    overflow: hidden;
}

.system-kpi-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #94d300 0%, #d89a1e 100%);
}

.system-kpi-primary.avg .system-kpi-value {
    color: #84cf00;
}

.system-kpi-primary.dd .system-kpi-value {
    color: #dc9a1f;
}

.system-kpi-primary.win .system-kpi-value {
    color: #3a80e5;
}

.system-kpi-caption {
    text-align: center;
    font-size: 1rem;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: #5f7496;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.system-kpi-value {
    text-align: center;
    font-size: clamp(2.8rem, 4vw, 4.3rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.system-kpi-secondary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.system-kpi-secondary {
    background: #f8fbff;
    border: 1px solid #e7edf7;
    border-radius: 16px;
    padding: 22px 24px;
}

.system-kpi-secondary-value {
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
    color: #203f72;
    margin-bottom: 10px;
    letter-spacing: -0.03em;
}

.system-kpi-secondary-label {
    font-size: 0.96rem;
    color: #6b7f9d;
}

.gs-perf-system-page .perf-charts {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin: 0;
}

.gs-perf-system-page .chart-box {
    padding: 30px 30px 24px;
}

.gs-perf-system-page .chart-container {
    width: 100%;
    min-height: 460px;
    height: 460px;
}

.gs-perf-system-page #monthlyChart,
.gs-perf-system-page #equityChart {
    width: 100% !important;
    height: 100% !important;
}

.gs-perf-system-page .chart-box .google-visualization-chart {
    width: 100% !important;
    height: 100% !important;
}

.gs-perf-system-page .monthly-results-section {
    margin: 0;
    padding: 0 0 20px;
}

.gs-perf-system-page .monthly-table-container {
    margin-top: 0;
}

@media (max-width: 1100px) {
    .system-profile-card {
        padding: 30px 28px;
    }

    .system-profile-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .system-kpi-primary-grid,
    .system-kpi-secondary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .system-profile-head h2 {
        font-size: 2.6rem;
    }

    .system-kpi-primary-grid,
    .system-kpi-secondary-grid {
        grid-template-columns: 1fr;
    }

    .system-kpi-primary {
        padding: 24px 20px 26px;
    }

    .system-kpi-value {
        font-size: 3rem;
    }

    .system-kpi-secondary {
        padding: 18px 18px;
    }

    .gs-perf-system-page .chart-box {
        padding: 20px 18px 18px;
    }

    .gs-perf-system-page .chart-container {
        min-height: 320px;
        height: 320px;
    }
}


/* ===== DETAILED PAGE TABLE + READOUT FIXES ===== */
.gs-perf-system-page .perf-note-card {
    background: #ffffff;
    border: 1px solid #e6edf7;
    border-radius: 18px;
    padding: 22px 22px 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}
.gs-perf-system-page .perf-note-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.gs-perf-system-page .perf-note-header i {
    color: #d4a63a;
}
.gs-perf-system-page .perf-note-header h3 {
    margin: 0;
    font-size: 1.7rem;
    line-height: 1.1;
    color: #203f72;
}
.gs-perf-system-page .perf-note-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 14px;
}
.gs-perf-system-page .note-item {
    background: #fbfcfe;
    border: 1px solid #e7edf7;
    border-radius: 14px;
    padding: 14px 16px;
}
.gs-perf-system-page .note-label {
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6b7f9d;
    font-weight: 700;
}
.gs-perf-system-page .note-value {
    margin-top: 7px;
    color: #203f72;
    font-size: 0.98rem;
    line-height: 1.55;
    font-weight: 600;
}
.gs-perf-system-page .perf-note-bullets {
    margin: 0;
    padding-left: 20px;
    color: #4d627f;
    line-height: 1.7;
}
.gs-perf-system-page .perf-note-bullets li { margin: 6px 0; }

.gs-perf-system-page .monthly-table-container {
    background: #ffffff;
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    border: 1px solid #e7edf7;
}
.gs-perf-system-page .table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf2f8;
}
.gs-perf-system-page .table-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #203f72;
    font-size: 1.9rem;
    line-height: 1.1;
}
.gs-perf-system-page .table-header h3 i {
    color: #203f72;
    font-size: 1.45rem;
}
.gs-perf-system-page .table-scroll-wrapper {
    max-height: 860px;
    overflow: auto;
    border: 1px solid #edf2f8;
    border-radius: 14px;
    background: #ffffff;
}
.gs-perf-system-page .table-scroll-wrapper::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.gs-perf-system-page .table-scroll-wrapper::-webkit-scrollbar-track {
    background: #f5f8fc;
}
.gs-perf-system-page .table-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #c9d4e4;
    border-radius: 999px;
}
.gs-perf-system-page .enhanced-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}
.gs-perf-system-page .enhanced-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #ffffff;
    color: #203f72;
    padding: 16px 16px;
    text-align: left;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 800;
    border-bottom: 1px solid #e8eef7;
    white-space: nowrap;
}
.gs-perf-system-page .enhanced-table thead th i {
    color: #203f72;
    font-size: 0.78rem;
    margin-right: 6px;
}
.gs-perf-system-page .enhanced-table tbody tr {
    border-bottom: 1px solid #edf2f8;
}
.gs-perf-system-page .enhanced-table tbody tr:last-child {
    border-bottom: 0;
}
.gs-perf-system-page .enhanced-table tbody tr:hover {
    background: #fafcff;
}
.gs-perf-system-page .enhanced-table td {
    padding: 16px 16px;
    color: #203f72;
    font-size: 0.98rem;
    vertical-align: middle;
}
.gs-perf-system-page .month-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #203f72;
}
.gs-perf-system-page .month-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    font-size: 0.9rem;
}
.gs-perf-system-page .month-icon.positive {
    background: rgba(34,197,94,0.12);
    color: #1f9d55;
}
.gs-perf-system-page .month-icon.negative {
    background: rgba(239,68,68,0.12);
    color: #dc2626;
}
.gs-perf-system-page .month-icon.neutral {
    background: rgba(100,116,139,0.12);
    color: #64748b;
}
.gs-perf-system-page .return-cell {
    font-weight: 700;
    white-space: nowrap;
}
.gs-perf-system-page .return-positive { color: #1f9d55; }
.gs-perf-system-page .return-negative { color: #dc2626; }
.gs-perf-system-page .equity-cell {
    font-weight: 700;
    color: #203f72;
    white-space: nowrap;
}
.gs-perf-system-page .equity-change {
    display: block;
    margin-top: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7f9d;
}
.gs-perf-system-page .dd-cell {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
}
.gs-perf-system-page .dd-value {
    font-weight: 700;
    color: #dc2626;
    white-space: nowrap;
}
.gs-perf-system-page .performance-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid transparent;
}
.gs-perf-system-page .badge-excellent {
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
    border-color: rgba(37,99,235,0.18);
}
.gs-perf-system-page .badge-good {
    background: rgba(34,197,94,0.12);
    color: #1f9d55;
    border-color: rgba(34,197,94,0.16);
}
.gs-perf-system-page .badge-okay {
    background: rgba(148,163,184,0.14);
    color: #475569;
    border-color: rgba(148,163,184,0.18);
}
.gs-perf-system-page .badge-poor {
    background: rgba(239,68,68,0.12);
    color: #dc2626;
    border-color: rgba(239,68,68,0.16);
}
.gs-perf-system-page .table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #edf2f8;
}
.gs-perf-system-page .table-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 22px;
}
.gs-perf-system-page .table-summary-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #61708a;
    font-weight: 600;
}
.gs-perf-system-page .table-summary-item i {
    color: #203f72;
}

@media (max-width: 900px) {
    .gs-perf-system-page .perf-note-grid {
        grid-template-columns: 1fr;
    }
    .gs-perf-system-page .monthly-table-container {
        padding: 18px;
    }
    .gs-perf-system-page .table-header {
        align-items: flex-start;
        flex-direction: column;
    }
    .gs-perf-system-page .table-header h3 {
        font-size: 1.55rem;
    }
}


/* ===== PROFIT CALCULATOR / SAVED SET PAGE ===== */
.gs-perf-builder-page .section.section-compact {
    padding-top: 18px;
    padding-bottom: 18px;
}

.gs-perf-builder-page .builder-set-card {
    padding: 34px 34px 30px;
}

.gs-perf-builder-page .builder-set-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.gs-perf-builder-page .builder-meta-item {
    background: #f8fbff;
    border: 1px solid #e7edf7;
    border-radius: 16px;
    padding: 18px 20px;
}

.gs-perf-builder-page .builder-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.gs-perf-builder-page .builder-kpi {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px 22px 18px;
    border: 1px solid #e7edf7;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.gs-perf-builder-page .builder-kpi::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, #94d300 0%, #d89a1e 100%);
}

.gs-perf-builder-page .builder-kpi-value {
    font-size: clamp(2rem, 2.5vw, 3rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #203f72;
    word-break: break-word;
}

.gs-perf-builder-page .builder-kpi-label {
    margin-top: 12px;
    color: #6b7f9d;
    font-size: 0.98rem;
    line-height: 1.45;
}

.gs-perf-builder-page .perf-charts {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin: 0;
}

.gs-perf-builder-page .chart-box,
.gs-perf-builder-page .projection-chart-box {
    background: #ffffff;
    border: 1px solid #e7edf7;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    padding: 30px 30px 24px;
}

.gs-perf-builder-page .chart-box h4,
.gs-perf-builder-page .projection-chart-box h4 {
    margin: 0 0 16px;
    color: #203f72;
    font-size: 1.15rem;
}

.gs-perf-builder-page .chart-container {
    width: 100%;
    min-height: 460px;
    height: 460px;
}

.gs-perf-builder-page #builderMonthlyChart,
.gs-perf-builder-page #builderCombinedChart,
.gs-perf-builder-page #builderProjectionChart {
    width: 100% !important;
    height: 100% !important;
}

.gs-perf-builder-page .projection-chart-container {
    width: 100%;
    min-height: 460px;
    height: 460px;
}

.gs-perf-builder-page .monthly-table-container {
    background: #ffffff;
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    border: 1px solid #e7edf7;
}

.gs-perf-builder-page .table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf2f8;
}

.gs-perf-builder-page .table-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #203f72;
    font-size: 1.9rem;
    line-height: 1.1;
}

.gs-perf-builder-page .builder-inline-note {
    margin: -4px 0 18px;
    color: #61708a;
    line-height: 1.7;
}

.gs-perf-builder-page .table-scroll-wrapper {
    max-height: 860px;
    overflow: auto;
    border: 1px solid #edf2f8;
    border-radius: 14px;
    background: #ffffff;
}

.gs-perf-builder-page .table-scroll-wrapper::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.gs-perf-builder-page .table-scroll-wrapper::-webkit-scrollbar-track {
    background: #f5f8fc;
}

.gs-perf-builder-page .table-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #c9d4e4;
    border-radius: 999px;
}

.gs-perf-builder-page .enhanced-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
}

.gs-perf-builder-page .enhanced-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #ffffff;
    color: #203f72;
    padding: 16px 16px;
    text-align: left;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 800;
    border-bottom: 1px solid #e8eef7;
    white-space: nowrap;
}

.gs-perf-builder-page .enhanced-table thead th i {
    color: #203f72;
    font-size: 0.78rem;
    margin-right: 6px;
}

.gs-perf-builder-page .enhanced-table tbody tr {
    border-bottom: 1px solid #edf2f8;
}

.gs-perf-builder-page .enhanced-table tbody tr:last-child {
    border-bottom: 0;
}

.gs-perf-builder-page .enhanced-table tbody tr:hover {
    background: #fafcff;
}

.gs-perf-builder-page .enhanced-table td {
    padding: 16px 16px;
    color: #203f72;
    font-size: 0.98rem;
    vertical-align: middle;
}

.gs-perf-builder-page .projection-card {
    padding: 30px;
}

.gs-perf-builder-page .projection-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gs-perf-builder-page .projection-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.gs-perf-builder-page .projection-month-card {
    background: #f8fbff;
    border: 1px solid #e7edf7;
    border-radius: 16px;
    padding: 18px 18px 16px;
}

.gs-perf-builder-page .projection-month-head {
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6b7f9d;
    font-weight: 700;
    margin-bottom: 10px;
}

.gs-perf-builder-page .projection-month-return {
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 800;
    margin-bottom: 10px;
}

.gs-perf-builder-page .projection-month-equity {
    color: #203f72;
    font-size: 1rem;
    font-weight: 700;
}

@media (max-width: 1180px) {
    .gs-perf-builder-page .builder-set-meta,
    .gs-perf-builder-page .builder-kpi-grid,
    .gs-perf-builder-page .projection-summary-grid,
    .gs-perf-builder-page .projection-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gs-perf-builder-page .projection-chart-container {
        min-height: 460px;
        height: 460px;
    }
}

@media (max-width: 900px) {
    .gs-perf-builder-page .chart-box,
    .gs-perf-builder-page .projection-chart-box {
        padding: 20px 18px 18px;
    }

    .gs-perf-builder-page .chart-container {
        min-height: 320px;
        height: 320px;
    }

    .gs-perf-builder-page .projection-chart-container {
        min-height: 320px;
        height: 320px;
    }

    .gs-perf-builder-page .monthly-table-container {
        padding: 18px;
    }

    .gs-perf-builder-page .table-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .gs-perf-builder-page .table-header h3 {
        font-size: 1.55rem;
    }
}

@media (max-width: 640px) {
    .gs-perf-builder-page .builder-set-card,
    .gs-perf-builder-page .projection-card {
        padding: 24px 20px 20px;
    }

    .gs-perf-builder-page .builder-set-meta,
    .gs-perf-builder-page .builder-kpi-grid,
    .gs-perf-builder-page .projection-summary-grid,
    .gs-perf-builder-page .projection-card-grid {
        grid-template-columns: 1fr;
    }

    .gs-perf-builder-page .projection-chart-container {
        min-height: 320px;
        height: 320px;
    }
}


/* ===== PROFIT CALCULATOR INTRO + RECENT SETS ===== */
.gs-perf-builder-page .builder-product-card,
.gs-perf-builder-page .builder-recent-card {
    width: 100%;
}

.gs-perf-builder-page .builder-product-head {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 24px;
}

.gs-perf-builder-page .builder-product-head h2 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 2.8vw, 3rem);
    line-height: 1.05;
    color: #203f72;
}

.gs-perf-builder-page .builder-product-head p {
    margin: 0;
    max-width: 860px;
    color: #61708a;
    font-size: 1.06rem;
    line-height: 1.78;
}

.gs-perf-builder-page .builder-product-icon,
.gs-perf-builder-page .builder-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    color: #fff;
}

.gs-perf-builder-page .builder-product-icon {
    width: 86px;
    height: 86px;
    flex: 0 0 86px;
    font-size: 2rem;
    background: linear-gradient(135deg, #3f7cf0 0%, #2b63db 100%);
    box-shadow: 0 14px 32px rgba(43,99,219,0.20);
}

.gs-perf-builder-page .builder-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.gs-perf-builder-page .builder-feature-card {
    background: #ffffff;
    border: 1px solid #e6edf7;
    border-radius: 24px;
    padding: 26px 28px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.gs-perf-builder-page .builder-feature-icon {
    width: 74px;
    height: 74px;
    font-size: 1.55rem;
    margin-bottom: 18px;
}

.gs-perf-builder-page .builder-feature-icon.is-mix {
    background: linear-gradient(135deg, #4f7cf7 0%, #2f60db 100%);
    box-shadow: 0 14px 32px rgba(47,96,219,0.18);
}

.gs-perf-builder-page .builder-feature-icon.is-risk {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    box-shadow: 0 14px 32px rgba(21,128,61,0.18);
}

.gs-perf-builder-page .builder-feature-icon.is-path {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 14px 32px rgba(217,119,6,0.18);
}

.gs-perf-builder-page .builder-feature-icon.is-share {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    box-shadow: 0 14px 32px rgba(109,40,217,0.18);
}

.gs-perf-builder-page .builder-feature-card h3 {
    margin: 0 0 14px;
    font-size: 1.18rem;
    line-height: 1.2;
    color: #203f72;
}

.gs-perf-builder-page .builder-feature-card p {
    margin: 0;
    color: #61708a;
    font-size: 1rem;
    line-height: 1.75;
}

.gs-perf-builder-page .builder-recent-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.gs-perf-builder-page .builder-recent-item {
    display: block;
    text-decoration: none;
    background: #fbfcfe;
    border: 1px solid #e7edf7;
    border-radius: 20px;
    padding: 20px 20px 18px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.gs-perf-builder-page .builder-recent-item:hover {
    transform: translateY(-2px);
    border-color: rgba(43,99,219,0.24);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.gs-perf-builder-page .builder-recent-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.gs-perf-builder-page .builder-recent-id {
    color: #203f72;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.gs-perf-builder-page .builder-recent-mode {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(43,99,219,0.08);
    color: #2b63db;
    font-size: 0.82rem;
    font-weight: 700;
}

.gs-perf-builder-page .builder-recent-meta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 16px;
}

.gs-perf-builder-page .builder-recent-meta-grid .meta-label,
.gs-perf-builder-page .builder-recent-meta-grid .meta-value {
    display: block;
}

.gs-perf-builder-page .builder-recent-meta-grid .meta-value {
    margin-top: 6px;
}

@media (max-width: 1180px) {
    .gs-perf-builder-page .builder-recent-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .gs-perf-builder-page .builder-product-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .gs-perf-builder-page .builder-feature-grid,
    .gs-perf-builder-page .builder-recent-grid {
        grid-template-columns: 1fr;
    }
}
