
.ai-gold-dashboard,
.ai-gold-history {
    --gold: #f5c542;
    --gold-light: #ffe28a;
    --bg: #080b10;
    --panel: #101620;
    --panel2: #151d28;
    --border: rgba(255,255,255,.08);
    --text: #f5f7fa;
    --muted: #8995a5;
    --green: #18d98b;
    --red: #ff5366;

    color: var(--text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Tahoma,
        Arial,
        sans-serif;
}

.ai-gold-dashboard {
    background:
        radial-gradient(
            circle at 80% 0%,
            rgba(245,197,66,.10),
            transparent 30%
        ),
        var(--bg);

    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 25px;
    box-shadow:
        0 25px 70px rgba(0,0,0,.30);
}

.ai-gold-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.ai-gold-label {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.ai-gold-topbar h2 {
    margin: 5px 0 0;
    color: var(--text);
    font-size: 25px;
}

.ai-gold-live {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
}

.ai-gold-live span {
    width: 9px;
    height: 9px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(24,217,139,.10);
}

.ai-gold-price-box {
    text-align: center;
    padding: 45px 15px;
}

.ai-gold-small-title {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 10px;
}

.ai-gold-price {
    color: var(--gold);
    font-size: clamp(48px, 10vw, 82px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -3px;
}

.ai-gold-time {
    color: var(--muted);
    font-size: 11px;
    margin-top: 12px;
}

.ai-gold-signal-box {
    margin-top: 10px;
    text-align: center;
}

.ai-gold-signal {
    display: grid;
    place-items: center;
    min-height: 90px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.025);
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 1px;
}

.ai-gold-signal.buy {
    color: var(--green);
    border-color: rgba(24,217,139,.25);
    background: rgba(24,217,139,.07);
}

.ai-gold-signal.sell {
    color: var(--red);
    border-color: rgba(255,83,102,.25);
    background: rgba(255,83,102,.07);
}

.ai-gold-signal.hold {
    color: var(--gold);
    background: rgba(245,197,66,.06);
}

.ai-gold-signal.close {
    color: var(--muted);
    border-color: rgba(137,149,165,.30);
    background: rgba(137,149,165,.08);
}

.ai-gold-signal.exit {
    color: #ff9d3d;
    border-color: rgba(255,157,61,.35);
    background: rgba(255,157,61,.10);
    animation: ai-gold-exit-pulse 1s ease-in-out 2;
}

@keyframes ai-gold-exit-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255,157,61,.35);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255,157,61,0);
    }
}

.ai-gold-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.ai-gold-info-grid > div {
    padding: 16px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.025);
    border-radius: 14px;
}

.ai-gold-info-grid span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 4px;
}

.ai-gold-info-grid strong {
    font-size: 15px;
}

.ai-gold-info-grid .online {
    color: var(--green);
}

.ai-gold-info-grid .offline {
    color: var(--red);
}

.ai-gold-history {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 22px;
    color: var(--text);
}

.ai-gold-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
}

.ai-gold-history-header h2 {
    margin: 5px 0 0;
    font-size: 23px;
}

.ai-gold-history-status {
    color: var(--green);
    font-size: 12px;
}

.ai-gold-table-wrapper {
    overflow-x: auto;
}

.ai-gold-history-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    font-size: 12px;
}

.ai-gold-history-table th {
    background: rgba(255,255,255,.04);
    color: var(--muted);
    font-weight: 700;
}

.ai-gold-history-table th,
.ai-gold-history-table td {
    padding: 13px 10px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.ai-gold-history-table tbody tr:hover td {
    background: rgba(255,255,255,.025);
}

.ai-gold-history-table .profit {
    color: var(--green);
    font-weight: 800;
}

.ai-gold-history-table .loss {
    color: var(--red);
    font-weight: 800;
}

.ai-gold-locked {
    text-align: center;
    padding: 50px 25px;
    border: 1px solid rgba(245,197,66,.18);
    border-radius: 20px;
    background:
        linear-gradient(
            145deg,
            rgba(245,197,66,.07),
            rgba(255,255,255,.02)
        );
}

.ai-gold-lock-icon {
    font-size: 45px;
}

.ai-gold-locked h3 {
    color: var(--text);
}

.ai-gold-locked p {
    color: var(--muted);
}

.ai-gold-button {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 10px;
    background: var(--gold);
    color: #111 !important;
    font-weight: 800;
    text-decoration: none;
}

.ai-gold-button:hover {
    background: var(--gold-light);
}

@media (max-width: 650px) {

    .ai-gold-dashboard,
    .ai-gold-history {
        padding: 17px;
        border-radius: 17px;
    }

    .ai-gold-info-grid {
        grid-template-columns: 1fr;
    }

    .ai-gold-topbar {
        align-items: flex-start;
    }

    .ai-gold-price {
        font-size: 54px;
    }

}
