.ps-calc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.ps-calc-container {
    width: 95%;
    max-width: 360px;
    background: rgba(40,40,40,0.95);
    border-radius: 16px;
    padding: 14px;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.ps-calc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    margin-bottom: 10px;
}

.ps-calc-header button {
    background: #e74c3c;
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    color: white;
    cursor: pointer;
}

.ps-calc-display input {
    width: 100%;
    margin-bottom: 6px;
    padding: 8px;
    border-radius: 8px;
    border: none;
    text-align: right;
    font-weight: bold;
}

#ps-history {
    font-size: 12px;
    background: #111;
    color: #aaa;
}

#ps-display {
    font-size: 18px;
    background: #000;
    color: #0f0;
}

.ps-calc-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.ps-calc-grid button {
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: #444;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.ps-calc-grid button:hover {
    background: #666;
}

.ps-calc-grid button[data-val="="] {
    background: #0a84ff;
}