:root {
    --primary-gold: #c59b4e;
    --secondary-bg: #fdfbf7;
    --card-bg: #ffffff;
    --text-primary: #333333;
    --text-secondary: #888888;
    --success-green: #e6f6eb;
    --success-text: #28a745;
    --danger-red: #fdeaea;
    --danger-text: #dc3545;
}

.gp-empty {
    background: #fff;
    border-radius: 20px;
    color: #999;
    padding: 40px;
    text-align: center;
}

.gp-association {
    margin-bottom: 30px;
    position: relative;
    text-align: center;
}

.gp-association-logo {
    display: inline-block;
    height: 80px;
    margin-bottom: 10px;
    object-fit: contain;
    width: 80px;
}

.gp-association h2 {
    color: #1a1a2e;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 6px;
}

.gp-association h2 span {
    background: linear-gradient(to right, #89522d, #c68642, #aa6b34);
    background-clip: text;
    color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gp-association p {
    color: #888;
    font-size: 0.9rem;
    margin: 0;
}

.gp-today-change {
    margin-top: 30px;
    text-align: center;
}

.gp-change-label {
    color: #888;
    display: block;
    font-size: 1rem;
    margin-bottom: 8px;
}

.gp-today-change strong {
    align-items: center;
    color: #333;
    display: inline-flex;
    font-size: 3.5rem;
    font-weight: 800;
    gap: 15px;
    line-height: 1;
}

.gp-change-up strong {
    color: var(--success-text);
}

.gp-change-down strong {
    color: var(--danger-text);
}

.gp-today-change em {
    color: #666;
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 700;
    margin-left: 8px;
}

.gp-trend-icon {
    font-size: 42px;
}

.gp-price-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.gp-price-card,
.gp-history-card {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    padding: 24px;
    position: relative;
}

.gp-price-card {
    display: flex;
    flex-direction: column;
    min-height: 224px;
}

.gp-price-card::after {
    background-color: #fdfbf7;
    border-radius: 50%;
    content: "";
    height: 100px;
    opacity: 0.5;
    position: absolute;
    right: -20px;
    top: -20px;
    width: 100px;
}

.gp-gold-label,
.gp-section-label {
    align-items: center;
    color: var(--primary-gold);
    display: flex;
    font-size: 1rem;
    font-weight: 700;
    gap: 8px;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.gp-gold-label > span {
    background: var(--primary-gold);
    display: inline-block;
    height: 2px;
    width: 20px;
}

.gp-card-row {
    align-items: flex-end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.gp-card-row small,
.gp-main-price small {
    color: #999;
    font-size: 0.9rem;
}

.gp-card-row b {
    color: #b68e3f;
    font-size: 1.5rem;
    font-weight: 600;
}

.gp-main-price {
    border-top: 1px solid #eee;
    padding-bottom: 15px;
    padding-top: 15px;
    position: relative;
    z-index: 1;
}

.gp-price-line {
    align-items: baseline;
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.gp-price-line-between {
    justify-content: space-between;
}

.gp-price-line-end {
    justify-content: flex-end;
}

.gp-main-price strong {
    color: #b68e3f;
    font-size: clamp(3rem, 5vw, 3.55rem);
    font-weight: 800;
    line-height: 1;
}

.gp-main-price em {
    color: #999;
    font-size: 1rem;
    font-style: normal;
}

.gp-price-value {
    align-items: baseline;
    display: inline-flex;
    gap: 5px;
}

.gp-badge-row {
    display: flex;
    justify-content: flex-start;
    margin-top: 5px;
}

.gp-card-badge {
    background: #f8f9fa;
    border-radius: 4px;
    color: #aaa;
    font-size: 0.8rem;
    padding: 2px 8px;
    white-space: nowrap;
}

.gp-card-footer {
    display: flex;
    justify-content: flex-end;
}

.gp-pill {
    align-items: center;
    border-radius: 20px;
    display: inline-flex;
    font-size: 0.85rem;
    font-weight: 700;
    gap: 4px;
    padding: 4px 12px;
    white-space: nowrap;
}

.gp-pill-up {
    background: var(--success-green);
    color: var(--success-text);
}

.gp-pill-down {
    background: var(--danger-red);
    color: var(--danger-text);
}

.gp-pill-neutral {
    background: #f4f4f4;
    color: #666;
}

.gp-history-card {
    margin-top: 2rem;
}

.gp-section-label {
    margin-bottom: 20px;
}

.gp-section-label h2 {
    color: #333;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0;
}

.status-dot-container {
    display: flex;
    height: 12px;
    position: relative;
    width: 12px;
}

.status-dot-ping,
.status-dot-static {
    background-color: var(--primary-gold);
    border-radius: 50%;
    display: inline-flex;
    height: 12px;
    width: 12px;
}

.status-dot-ping {
    animation: gp-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
    opacity: 0.75;
    position: absolute;
}

.status-dot-static {
    position: relative;
}

@keyframes gp-ping {
    75%,
    100% {
        opacity: 0;
        transform: scale(2);
    }
}

.gp-table-scroll {
    max-height: 550px;
    overflow: auto;
}

.gp-table-scroll::-webkit-scrollbar {
    height: 10px;
    width: 8px;
}

.gp-table-scroll::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 5px;
}

.gp-table-scroll::-webkit-scrollbar-thumb {
    background: #ffd54f;
    border-radius: 5px;
}

.gp-table-scroll {
    scrollbar-color: #ffd54f #f5f5f5;
}

.gp-history-table {
    border-collapse: collapse;
    min-width: 1080px;
    table-layout: fixed;
    width: 100%;
}

.gp-history-table th:nth-child(1),
.gp-history-table td:nth-child(1) {
    width: 7%;
}

.gp-history-table th:nth-child(2),
.gp-history-table td:nth-child(2) {
    width: 17%;
}

.gp-history-table th:nth-child(3),
.gp-history-table td:nth-child(3),
.gp-history-table th:nth-child(4),
.gp-history-table td:nth-child(4) {
    width: 11%;
}

.gp-history-table th:nth-child(5),
.gp-history-table td:nth-child(5),
.gp-history-table th:nth-child(6),
.gp-history-table td:nth-child(6) {
    width: 14%;
}

.gp-history-table th:nth-child(7),
.gp-history-table td:nth-child(7),
.gp-history-table th:nth-child(8),
.gp-history-table td:nth-child(8) {
    width: 9%;
}

.gp-history-table th:nth-child(9),
.gp-history-table td:nth-child(9) {
    width: 12%;
}

.gp-share {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: center;
    line-height: 0;
    margin: 20px 0 0;
    min-height: 38px;
}

.gp-association .gp-share {
    bottom: 0;
    margin-top: 0;
    position: absolute;
    right: 0;
}

.gp-share-btn {
    align-items: center;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 32px;
    height: 32px;
    justify-content: center;
    line-height: 0;
    overflow: hidden;
    padding: 0;
    text-decoration: none;
    width: 32px;
}

.gp-share-btn svg {
    color: #fff;
    display: block;
    flex: 0 0 32px;
    height: 32px;
    pointer-events: none;
    width: 32px;
}

.gp-share-facebook {
    background: #1877f2;
}

.gp-share-line {
    background: #06c755;
}

.gp-share-x {
    background: #111;
}

.gp-tool-card {
    background: #fff;
    border: 1px solid #f0e6d0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-top: 28px;
    padding: 20px;
}

.gp-tool-heading {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.gp-tool-heading h2 {
    color: #1a1a2e;
    font-size: 20px;
    line-height: 1.4;
    margin: 0;
}

.gp-tool-heading p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    margin: 4px 0 0;
}

.gp-tool-icon {
    align-items: center;
    background: #fff8e1;
    border-radius: 10px;
    color: #b8860b;
    display: flex;
    flex: 0 0 auto;
    font-size: 22px;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.gp-tradingview {
    background: #fff;
    border: 1px solid #eee5d4;
    border-radius: 8px;
    height: clamp(420px, 62vw, 560px);
    overflow: hidden;
}

.gp-tradingview iframe {
    border: 0;
    display: block;
    height: 100%;
    width: 100%;
}

.gp-calc-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.gp-calc-controls {
    display: grid;
    gap: 12px;
}

.gp-calc-controls label {
    color: #444;
    font-size: 14px;
    font-weight: 800;
    margin-top: 4px;
}

.gp-segment {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gp-segment button,
.gp-weight-buttons button {
    background: #fff;
    border: 1px solid #e0d5c3;
    border-radius: 8px;
    color: #666;
    cursor: pointer;
    font-weight: 800;
    min-height: 42px;
    padding: 8px 10px;
}

.gp-segment button.is-active,
.gp-weight-buttons button.is-active {
    background: #fff8e1;
    border-color: #b8860b;
    color: #b8860b;
}

.gp-input-row {
    align-items: center;
    display: flex;
    gap: 10px;
}

.gp-input-row input,
.gp-calc-controls input,
.gp-calc-controls select {
    background: #fffdf8;
    border: 1px solid #d9cbb4;
    border-radius: 8px;
    color: #1a1a2e;
    font-size: 16px;
    font-weight: 800;
    min-height: 48px;
    padding: 10px 12px;
    width: 100%;
}

.gp-weight-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gp-calc-result {
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 280px;
    padding: 24px;
    text-align: center;
}

.gp-calc-result > span {
    color: #666;
    font-size: 14px;
}

.gp-calc-result strong {
    color: #b8860b;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    line-height: 1.2;
    margin-top: 8px;
}

.gp-calc-result em {
    color: #444;
    font-style: normal;
    font-weight: 800;
}

.gp-calc-result dl {
    border-top: 1px dashed #ddd;
    margin: 18px 0 0;
    padding-top: 14px;
    width: 100%;
}

.gp-calc-result dl div {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 5px 0;
}

.gp-calc-result dt,
.gp-calc-result dd {
    color: #666;
    font-size: 13px;
    margin: 0;
}

.gp-calc-result dd {
    color: #1a1a2e;
    font-weight: 800;
    text-align: right;
}

.gp-weight-table table,
.gp-tool-scroll table {
    border-collapse: collapse;
    min-width: 760px;
    width: 100%;
}

.gp-weight-table th,
.gp-weight-table td {
    border-bottom: 1px solid #f3ead7;
    padding: 12px 14px;
    text-align: right;
}

.gp-weight-table th:first-child,
.gp-weight-table td:first-child {
    text-align: left;
}

.gp-weight-table td strong,
.gp-weight-table td small {
    display: block;
}

.gp-weight-table td small {
    color: #999;
    font-size: 12px;
    margin-top: 2px;
}

.gp-salung-page {
    padding-bottom: 40px;
}

.gp-back-link {
    align-items: center;
    color: #7c6a43;
    display: inline-flex;
    font-size: 14px;
    gap: 8px;
    margin-bottom: 20px;
    text-decoration: none;
}

.gp-back-link:hover {
    color: #b8860b;
}

.gp-salung-hero {
    margin-bottom: 20px;
}

.gp-salung-hero h1 {
    color: #1a1a2e;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    line-height: 1.35;
    margin: 0 0 8px;
}

.gp-salung-hero p,
.gp-salung-content-grid p,
.gp-salung-cta p {
    color: #666;
    line-height: 1.85;
    margin: 0;
}

.gp-salung-summary {
    background: linear-gradient(135deg, #fffdf7, #fff7e6);
    border: 1px solid #f0e6d0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    padding: 20px;
}

.gp-salung-summary-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gp-salung-summary span,
.gp-salung-summary label {
    color: #777;
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 4px;
}

.gp-salung-summary strong {
    color: #b8860b;
    display: block;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.25;
}

.gp-salung-summary strong.is-green {
    color: #1f8a4c;
}

.gp-salung-summary small,
.gp-salung-summary > p {
    color: #999;
    display: block;
    font-size: 12px;
    margin-top: 4px;
}

.gp-salung-summary > p {
    color: #777;
    font-size: 13px;
    margin: 14px 0 0;
}

.gp-salung-input-row {
    align-items: center;
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.gp-salung-input-row input {
    background: #fff;
    border: 1px solid #e4d7bf;
    border-radius: 8px;
    color: #1a1a2e;
    font-size: 18px;
    font-weight: 900;
    min-height: 40px;
    padding: 8px 10px;
    width: 120px;
}

.gp-salung-input-row span {
    color: #777;
    font-size: 13px;
    margin: 0;
}

.gp-salung-table-card {
    margin-bottom: 20px;
}

.gp-salung-table {
    border-collapse: collapse;
    min-width: 820px;
    width: 100%;
}

.gp-salung-table th,
.gp-salung-table td {
    border-bottom: 1px solid #f5eddc;
    color: #555;
    font-weight: 700;
    padding: 14px 10px;
    text-align: right;
}

.gp-salung-table th {
    border-bottom: 2px solid #f0e6d0;
    color: #777;
    font-size: 13px;
}

.gp-salung-table th:first-child,
.gp-salung-table td:first-child {
    color: #1a1a2e;
    text-align: left;
}

.gp-salung-table td:first-child strong,
.gp-salung-table td:first-child small {
    display: block;
}

.gp-salung-table td:first-child small {
    color: #999;
    font-size: 12px;
    margin-top: 2px;
}

.gp-salung-table tbody tr:nth-child(-n+3) {
    background: #fffdf7;
}

.gp-salung-total {
    color: #b8860b !important;
    font-size: 18px;
    font-weight: 900 !important;
}

.gp-salung-buyback {
    color: #1f8a4c !important;
}

.gp-salung-content-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1.05fr 0.95fr;
    margin-bottom: 20px;
}

.gp-salung-cta {
    background: #fffde7;
    border: 1px solid #fff176;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 20px;
}

.gp-salung-cta a {
    align-items: center;
    background: #b8860b;
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    font-weight: 900;
    margin-top: 12px;
    min-height: 40px;
    padding: 0 14px;
    text-decoration: none;
}

.gp-tool-page {
    padding-bottom: 40px;
}

.gp-tool-hero {
    margin-bottom: 22px;
}

.gp-centered-hero {
    text-align: center;
}

.gp-tool-hero img {
    display: inline-block;
    height: 80px;
    margin-bottom: 10px;
    object-fit: contain;
    width: 80px;
}

.gp-tool-hero h1 {
    color: #1a1a2e;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    line-height: 1.35;
    margin: 0 0 8px;
}

.gp-tool-hero h1 span {
    background: linear-gradient(to right, #89522d, #c68642, #aa6b34);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gp-tool-hero p,
.gp-readable-card p,
.gp-readable-card li,
.gp-making-page p {
    color: #666;
    line-height: 1.85;
}

.gp-change-chip {
    align-items: center;
    background: #f4f4f4;
    border-radius: 20px;
    color: #666;
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 800;
    gap: 4px;
    margin-top: 15px;
    padding: 6px 16px;
}

.gp-change-chip.up {
    background: #e7f8ed;
    color: #28a745;
}

.gp-change-chip.down {
    background: #fde8e8;
    color: #dc3545;
}

.gp-readable-card h2,
.gp-tool-card > h2 {
    color: #1a1a2e;
    font-size: 20px;
    line-height: 1.4;
    margin: 0 0 14px;
}

.gp-pro-table {
    border-collapse: collapse;
    min-width: 720px;
    width: 100%;
}

.gp-dca-page .gp-pro-table {
    min-width: 980px;
}

.gp-pro-table th,
.gp-pro-table td {
    border-bottom: 1px solid #f5eddc;
    color: #666;
    padding: 14px 12px;
    text-align: right;
}

.gp-pro-table th {
    border-bottom: 2px solid #f0e6d0;
    color: #777;
    font-size: 13px;
}

.gp-pro-table th:first-child,
.gp-pro-table td:first-child {
    color: #1a1a2e;
    font-weight: 800;
    text-align: left;
}

.gp-pro-table tbody tr.is-popular {
    background: #fffbf0;
}

.gp-popular-badge {
    background: #ffd700;
    border-radius: 999px;
    color: #7a5600;
    display: inline-block;
    font-size: 10px;
    font-weight: 900;
    margin-left: 8px;
    padding: 2px 8px;
}

.gp-mini-card-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.gp-mini-card-grid > div {
    background: linear-gradient(135deg, #fdf8e8, #fef5d4);
    border: 1px solid #f0e6d0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.gp-mini-card-grid span,
.gp-mini-card-grid small {
    color: #888;
    display: block;
    font-size: 13px;
}

.gp-mini-card-grid strong {
    color: #b8860b;
    display: block;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.2;
}

.gp-breadcrumb {
    align-items: center;
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.gp-breadcrumb a,
.gp-breadcrumb span {
    color: #777;
    font-size: 14px;
    text-decoration: none;
}

.gp-breadcrumb a {
    color: #7c6a43;
}

.gp-profit-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr);
}

.gp-dca-page .gp-profit-grid {
    grid-template-columns: 1fr;
}

.gp-dca-page .gp-tool-card {
    margin-top: 20px;
}

.gp-profit-grid .gp-tool-card {
    margin-top: 0;
}

.gp-profit-grid label {
    color: #3f3f46;
    display: block;
    font-size: 14px;
    font-weight: 800;
    margin: 18px 0 10px;
}

.gp-profit-grid input,
.gp-profit-grid select {
    background: #fffdf8;
    border: 1px solid #ded1ba;
    border-radius: 10px;
    box-sizing: border-box;
    color: #1a1a2e;
    font-size: 16px;
    font-weight: 800;
    min-height: 56px;
    padding: 13px 14px;
    width: 100%;
}

.gp-profit-grid .gp-segment button {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    min-height: 96px;
    padding: 18px;
    text-align: left;
}

.gp-profit-grid .gp-segment small {
    color: #777;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
    margin-top: 8px;
}

.gp-dca-form-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gp-dca-field label,
.gp-dca-option-row label {
    color: #3f3f46;
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin: 0 0 7px;
}

.gp-dca-page .gp-profit-grid label {
    margin: 0 0 7px;
}

.gp-dca-page .gp-profit-grid input {
    border-radius: 8px;
    font-size: 15px;
    min-height: 44px;
    padding: 9px 12px;
}

.gp-dca-option-row {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    margin-top: 16px;
}

.gp-dca-page .gp-profit-grid .gp-dca-compact-segment button {
    min-height: 66px;
    padding: 11px 12px;
}

.gp-dca-page .gp-profit-grid .gp-dca-compact-segment small {
    font-size: 12px;
    line-height: 1.35;
    margin-top: 3px;
}

.gp-small-action {
    background: #fffaf0;
    border: 1px solid #e4d7bf;
    border-radius: 8px;
    color: #7a5600;
    cursor: pointer;
    font-weight: 800;
    margin-top: 12px;
    min-height: 40px;
    padding: 0 14px;
}

.gp-budget-presets {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 10px 0 16px;
}

.gp-budget-presets button {
    background: #fffaf0;
    border: 1px solid #e4d7bf;
    border-radius: 8px;
    color: #7a5600;
    cursor: pointer;
    font-family: inherit;
    font-weight: 800;
    min-height: 40px;
    padding: 8px 10px;
}

.gp-budget-presets button:hover,
.gp-small-action:hover {
    background: #f6e4ba;
}

.gp-field-note {
    color: #777;
    display: block;
    font-size: 13px;
    line-height: 1.6;
    margin-top: -6px;
}

.gp-profit-result {
    background: #fffdf8;
}

.gp-profit-result.is-profit {
    background: #f3fbf6;
    border-color: #bde8cb;
}

.gp-profit-result.is-loss {
    background: #fff5f5;
    border-color: #f0c1c1;
}

.gp-profit-result > span {
    color: #666;
    display: block;
    font-weight: 800;
}

.gp-profit-result > strong {
    color: #666;
    display: block;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    line-height: 1.2;
}

.gp-profit-result.is-profit > span,
.gp-profit-result.is-profit > strong,
.gp-profit-result.is-profit > em {
    color: #157347;
}

.gp-profit-result.is-loss > span,
.gp-profit-result.is-loss > strong,
.gp-profit-result.is-loss > em {
    color: #b42318;
}

.gp-profit-result > em {
    color: #666;
    display: block;
    font-size: 16px;
    font-style: normal;
    font-weight: 900;
    margin-bottom: 18px;
}

.gp-dca-page .gp-profit-result > strong {
    font-size: clamp(2rem, 5vw, 3.2rem);
}

.gp-dca-summary-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 20px 0;
}

.gp-dca-summary-grid div {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 14px;
}

.gp-dca-summary-grid span {
    color: #666;
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 6px;
}

.gp-dca-summary-grid strong {
    color: #1a1a2e;
    display: block;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.35;
}

.gp-profit-result dl div {
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 9px 0;
}

.gp-profit-result dt,
.gp-profit-result dd {
    color: #555;
    font-size: 14px;
    margin: 0;
}

.gp-profit-result dd {
    color: #1a1a2e;
    font-weight: 800;
    text-align: right;
}

.gp-dca-chart {
    background: #fffdf8;
    border: 1px solid #eadcc3;
    border-radius: 10px;
    padding: 12px;
}

.gp-dca-chart-wrap {
    margin: 20px 0;
}

.gp-dca-chart-head {
    align-items: flex-end;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.gp-dca-chart-head h2,
.gp-dca-chart-head h3 {
    color: #1a1a2e;
    font-size: 20px;
    line-height: 1.4;
    margin: 0;
}

.gp-dca-chart-head p {
    color: #666;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
    text-align: right;
}

.gp-dca-chart svg {
    display: block;
    width: 100%;
}

.gp-dca-chart-title {
    fill: #5f5035;
    font-size: 14px;
    font-weight: 900;
}

.gp-dca-grid-row line {
    stroke: #efe3cc;
    stroke-width: 1;
}

.gp-dca-grid-row text,
.gp-dca-axis-label {
    fill: #85755a;
    font-size: 12px;
    font-weight: 800;
}

.gp-dca-grid-row text {
    text-anchor: end;
}

.gp-dca-axis {
    stroke: #d7c29b;
    stroke-width: 1.5;
}

.gp-dca-zero {
    stroke: #d8c39a;
    stroke-dasharray: 5 5;
    stroke-width: 2;
}

.gp-dca-line {
    fill: none;
    stroke: #b88a2f;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4;
}

.gp-dca-marker circle {
    fill: #fff;
    stroke: #b88a2f;
    stroke-width: 3;
}

.gp-dca-marker.is-up circle {
    stroke: #157347;
}

.gp-dca-marker.is-down circle {
    stroke: #b42318;
}

.gp-dca-marker text {
    fill: #1a1a2e;
    font-size: 12px;
    font-weight: 900;
    paint-order: stroke;
    stroke: #fffdf8;
    stroke-linejoin: round;
    stroke-width: 4px;
}

.gp-dca-chart-caption {
    color: #777;
    display: flex;
    font-size: 13px;
    justify-content: space-between;
}

.gp-dca-chart-stats {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 12px;
}

.gp-dca-chart-stats div {
    background: #fff;
    border: 1px solid #f0e6d0;
    border-radius: 8px;
    padding: 12px;
}

.gp-dca-chart-stats span,
.gp-dca-chart-stats em {
    color: #777;
    display: block;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.gp-dca-chart-stats strong {
    color: #1a1a2e;
    display: block;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.3;
    margin: 4px 0;
}

.gp-dca-price-input {
    border: 1px solid #e0d5c3;
    border-radius: 8px;
    font: inherit;
    font-weight: 800;
    min-width: 112px;
    padding: 8px;
    width: 100%;
}

.gp-pro-table small {
    color: #888;
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-top: 2px;
}

.gp-pro-table .is-up {
    color: #157347;
    font-weight: 900;
}

.gp-pro-table .is-down {
    color: #b42318;
    font-weight: 900;
}

@media (max-width: 680px) {
    .gp-segment {
        grid-template-columns: 1fr;
    }

    .gp-tool-card {
        padding: 16px;
    }

    .gp-salung-summary-grid,
    .gp-salung-content-grid,
    .gp-profit-grid {
        grid-template-columns: 1fr;
    }

    .gp-dca-summary-grid,
    .gp-dca-form-grid,
    .gp-dca-option-row,
    .gp-dca-chart-stats {
        grid-template-columns: 1fr;
    }

    .gp-dca-chart-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .gp-dca-chart-head p {
        text-align: left;
    }
}

@media (max-width: 767px) {
    .gp-association .gp-share {
        margin: 20px 0 0;
        position: static;
    }
}

.gp-history-table th {
    background: #fff;
    border-bottom: 1px solid #eee;
    color: #aaa;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 15px 10px;
    position: sticky;
    text-align: left;
    top: 0;
    z-index: 1;
}

.gp-history-table td {
    border-bottom: 1px solid #f9f9f9;
    color: #666;
    font-size: 0.95rem;
    padding: 15px 10px;
}

.gp-history-table tbody tr:first-child td {
    color: #333;
}

.gp-round {
    color: #c59b4e !important;
    font-weight: 600;
}

.gp-num {
    text-align: right;
}

.gp-history-table th:nth-child(n+3),
.gp-history-table td:nth-child(n+3) {
    text-align: right;
}

.gp-strong {
    font-weight: 700;
}

.gp-market {
    color: #6fb0b7 !important;
}

.gp-history-table .gp-pill {
    border-radius: 4px;
    font-size: 0.75rem;
    padding: 4px 10px;
}

.gp-history-page {
    margin: 0 auto 48px;
    max-width: 1200px;
    padding: 20px;
}

.gp-history-hero {
    margin: 10px 0 20px;
}

.gp-history-hero h1 {
    color: #1a1a2e;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 8px;
}

.gp-history-hero p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 10px;
}

.gp-history-hero small {
    color: #8b7355;
    display: block;
    font-weight: 700;
}

.gp-history-stats {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 0 18px;
}

.gp-history-stats article,
.gp-history-panel,
.gp-history-archive,
.gp-history-tabs {
    background: #fff;
    border: 1px solid rgba(197, 155, 78, 0.15);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.gp-history-stats article {
    padding: 18px;
}

.gp-history-stats span,
.gp-history-stats em {
    color: #777;
    display: block;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.gp-history-stats strong {
    color: #b28b40;
    display: block;
    font-size: 28px;
    line-height: 1.2;
    margin: 4px 0;
}

.gp-history-tabs {
    display: flex;
    gap: 6px;
    margin: 0 0 24px;
    padding: 5px;
}

.gp-history-tabs button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: #666;
    cursor: pointer;
    display: inline-flex;
    flex: 1;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    min-height: 44px;
    padding: 12px;
}

.gp-history-tabs button:hover,
.gp-history-tabs button:focus,
.gp-history-tabs button.is-active {
    background: #fff8e1;
    color: #b8860b;
}

.gp-history-panel {
    display: none;
    margin: 0 0 24px;
    overflow: hidden;
}

.gp-history-panel.is-active {
    display: block;
}

.gp-history-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 20px 20px;
}

.gp-history-controls button,
.gp-history-controls input {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: #444;
    font: inherit;
    font-size: 13px;
    min-height: 38px;
    padding: 8px 16px;
}

.gp-history-controls button {
    cursor: pointer;
}

.gp-history-controls button.is-active,
.gp-history-controls .gp-history-search {
    background: #c59b4e;
    border-color: #c59b4e;
    color: #fff;
}

.gp-history-panel-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
}

.gp-history-panel-head p {
    color: #666;
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}

.gp-history-panel-head h2 {
    color: #1a1a2e;
    font-size: 20px;
    line-height: 1.4;
    margin: 4px 0 0;
}

.gp-history-panel-head span {
    color: #999;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.gp-history-summary-table {
    min-width: 760px;
}

.gp-history-summary-table th,
.gp-history-summary-table td {
    font-size: 13px;
    padding: 15px;
}

.gp-history-summary-table th {
    background: #fafafa;
}

.gp-history-summary-table .gp-detail-link {
    text-align: center;
}

.gp-history-summary-table .gp-detail-link a {
    color: #c59b4e;
    font-size: 12px;
    font-weight: 800;
    text-decoration: underline;
}

.gp-archive-page {
    padding: 20px;
}

.gp-archive-top-space {
    margin-top: 20px;
}

.gp-archive-back {
    align-items: center;
    color: #666;
    display: inline-flex;
    font-size: 14px;
    gap: 8px;
    margin-bottom: 20px;
    text-decoration: none;
}

.gp-archive-back:hover,
.gp-archive-back:focus {
    color: #b8860b;
}

.gp-archive-header {
    margin-bottom: 22px;
}

.gp-archive-header h1 {
    color: #1a1a2e;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 8px;
}

.gp-archive-header p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

.gp-archive-section-title {
    border-left: 4px solid #c59b4e;
    color: #333;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
    margin: 0 0 20px;
    padding-left: 10px;
}

.gp-archive-month-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    padding: 18px 20px;
}

.gp-archive-month-card h2 {
    color: #1a1a2e;
    font-size: 18px;
    line-height: 1.4;
    margin: 0 0 10px;
}

.gp-archive-month-card nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gp-archive-month-card a {
    align-items: center;
    background: #fffaf0;
    border: 1px solid #eadfca;
    border-radius: 8px;
    color: #8a6500;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    min-height: 36px;
    padding: 8px 12px;
    text-decoration: none;
}

.gp-archive-stat-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-bottom: 30px;
}

.gp-archive-stat-grid article {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 20px;
    text-align: center;
}

.gp-archive-stat-grid span {
    color: #888;
    display: block;
    font-size: 13px;
    margin-bottom: 5px;
}

.gp-archive-stat-grid strong {
    color: #333;
    display: block;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
}

.gp-archive-stat-grid strong.is-up {
    color: #28a745;
}

.gp-archive-stat-grid strong.is-down {
    color: #dc3545;
}

.gp-history-chart-card {
    background: #fff;
    border: 1px solid rgba(197, 155, 78, 0.15);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin: 0 0 24px;
    padding: 20px;
}

.gp-history-chart-card h2 {
    color: #1a1a2e;
    font-size: 18px;
    line-height: 1.4;
    margin: 0 0 6px;
}

.gp-history-chart-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 15px;
}

.gp-history-chart-wrap {
    height: 400px;
    overflow-x: auto;
}

.gp-history-chart-wrap svg {
    display: block;
    height: 100%;
    min-width: 760px;
    width: 100%;
}

.gp-chart-grid line {
    stroke: #eee;
    stroke-width: 1;
}

.gp-chart-grid text {
    dominant-baseline: middle;
    fill: #888;
    font-size: 12px;
    text-anchor: end;
}

.gp-chart-line {
    fill: none;
    stroke: #c59b4e;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4;
}

.gp-chart-points circle {
    fill: #fff;
    stroke: #b8860b;
    stroke-width: 3;
}

.gp-chart-labels text {
    fill: #666;
    font-size: 12px;
    font-weight: 700;
    text-anchor: middle;
}

.gp-archive-scroll {
    max-height: 600px;
    overflow: auto;
}

.gp-archive-table th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.gp-soft-gold {
    background: #fffcf5;
}

.gp-history-archive {
    padding: 20px;
}

.gp-history-archive h2 {
    color: #1a1a2e;
    font-size: 20px;
    line-height: 1.4;
    margin: 0 0 10px;
}

.gp-history-archive p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 16px;
}

.gp-history-archive nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gp-history-archive a {
    align-items: center;
    background: #fffaf0;
    border: 1px solid #eadfca;
    border-radius: 8px;
    color: #8a6500;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    min-height: 36px;
    padding: 8px 12px;
    text-decoration: none;
}

@media (max-width: 680px) {
    .gp-latest-wrap,
    .gp-history-card {
        max-width: 100%;
        overflow: hidden;
    }

    .gp-association h2 {
        font-size: 1.5rem;
    }

    .gp-today-change strong {
        font-size: 2.65rem;
        gap: 10px;
    }

    .gp-main-price strong {
        font-size: 2.25rem;
    }

    .gp-price-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .gp-card-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .gp-card-row b {
        font-size: 1.35rem;
        min-width: 0;
        overflow-wrap: anywhere;
        text-align: left;
    }

    .gp-price-line {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .gp-price-line-end {
        align-items: flex-end;
    }

    .gp-main-price em {
        margin-left: 4px;
    }

    .gp-card-footer {
        justify-content: flex-start;
    }

    .gp-history-page {
        padding: 12px;
    }

    .gp-history-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gp-history-tabs {
        flex-wrap: wrap;
    }

    .gp-history-tabs button {
        flex: 1 1 30%;
    }

    .gp-history-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .gp-history-panel-head span {
        white-space: normal;
    }
}

@media (max-width: 420px) {
    .gp-price-card,
    .gp-history-card {
        border-radius: 16px;
        padding: 20px;
    }

    .gp-today-change strong {
        font-size: 2.35rem;
    }

    .gp-trend-icon {
        font-size: 34px;
    }
}
