.coin-price-chart-wrapper {
    /* Variables - SWITCHED TO BLUE */
    --cpc-primary: #6366f1; /* Brand Purple/Blue */
    --cpc-primary-dark: #4338ca;
    --cpc-bg: #ffffff;
    --cpc-text: #1f2937;
    --cpc-text-light: #6b7280;
    --cpc-border: #e5e7eb;
    
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    width: 100%;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.cpc-container {
    background: var(--cpc-bg);
    border: 1px solid var(--cpc-border);
    border-radius: 24px;
    padding: 32px;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.cpc-header {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--cpc-border);
    padding-bottom: 20px;
}

.cpc-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.cpc-header h3 {
    margin: 0;
    font-size: 24px;
    color: var(--cpc-text);
    font-weight: 700;
}

.cpc-live-price {
    background: #e0e7ff; /* Light Indigo Bg */
    color: var(--cpc-primary-dark);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    transition: opacity 0.3s;
}

.cpc-subtitle {
    margin: 8px 0 0 0;
    font-size: 14px;
    color: var(--cpc-text-light);
}

/* --- Currency Dropdown --- */
.cpc-select-wrapper {
    position: relative;
    display: inline-block;
    min-width: 120px;
}

.cpc-currency-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-color: #ffffff !important;
    border: 1px solid var(--cpc-border) !important;
    border-radius: 20px !important;
    padding: 6px 38px 6px 14px !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--cpc-text) !important;
    cursor: pointer !important;
    width: 100% !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 10px !important;
}

/* --- Controls --- */
.cpc-controls {
    margin-bottom: 24px;
}

.cpc-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--cpc-text-light);
    margin-bottom: 8px;
}

.cpc-input-wrapper {
    display: flex;
    align-items: center;
    max-width: 160px;
}

.cpc-rate-input {
    text-align: center;
    border: 1px solid var(--cpc-border);
    border-left: none;
    border-right: none;
    padding: 8px;
    width: 50px;
    font-size: 16px;
    font-weight: 600;
    color: var(--cpc-text);
}

.cpc-btn {
    background: #f9fafb;
    border: 1px solid var(--cpc-border);
    color: var(--cpc-primary);
    width: 36px;
    height: 38px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.cpc-minus { border-radius: 8px 0 0 8px; }
.cpc-plus { border-radius: 0 8px 8px 0; }

/* --- Chart --- */
.cpc-chart-area {
    position: relative;
    height: 300px;
    width: 100%;
    margin-bottom: 32px;
}

/* --- Stats Grid --- */
.cpc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    border-top: 1px solid #f3f4f6;
    padding-top: 24px;
    margin-bottom: 16px;
}

.cpc-stat-item {
    display: flex;
    flex-direction: column;
}

.cpc-stat-label {
    font-size: 12px;
    color: var(--cpc-text-light);
    margin-bottom: 4px;
}

.cpc-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--cpc-text);
}

.cpc-footer {
    text-align: right;
}

.cpc-footer-note {
    font-size: 11px;
    color: #9ca3af;
    font-style: italic;
}



/* Mobile */
@media (max-width: 480px) {
    .cpc-title-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .cpc-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}


/* Footer Action Bar (New) */
.cpc-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 1px solid #f3f4f6; /* Optional separator */
    padding-top: 20px;
}

.cpc-footer-note {
    font-size: 11px;
    color: #9ca3af;
    font-style: italic;
    max-width: 60%;
}



.cpc-buy-btn {
    background-color: var(--cpc-primary);
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.cpc-buy-btn:hover {
    background-color: var(--cpc-primary-dark);
}


/* Mobile */
@media (max-width: 480px) {
    .cpc-title-row { flex-direction: column; align-items: flex-start; }
    .cpc-stats-grid { grid-template-columns: 1fr 1fr; }
    .cpc-action-bar { flex-direction: column; align-items: stretch; text-align: center; }
    .cpc-footer-note { max-width: 100%; margin-bottom: 10px; }
    .cpc-buy-btn { width: 100%; box-sizing: border-box; text-align: center; }
}


