h1 {
    margin: 40px auto 30px;
    font-weight: 700;
    font-size: 22px;
    color: #fff;
    text-align: center;
}

.pc-section {
    max-width: 520px;
    margin: 0 auto 300px;
    padding: 0 15px 20px;
    background: #394555;
    color: #fff;
    border-radius: 16px;
    border: 1px solid #3a3a5e;
    box-shadow: 0 8px 24px rgb(0 71 171 / .15);
}

.pc-section p {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: left;
}

.container-pc {
    background: #fff;
    margin-bottom: 20px;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 100%;
    text-align: left;
}

h2 {
    margin: 1.5rem 0 1rem;
    font-size: 1.2rem;
    color: #cbd5e1;
    text-align: left;
}

.pc-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.pc-tab-btn {
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    border: 2px solid #2d3f52;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    color: #2d3f52;
    text-align: left;
    transition: background 0.2s, color 0.2s;
}

.pc-tab-btn.active {
    background: #2d3f52;
    color: #fff;
}

.pc-tab-btn:hover:not(.active) {
    background: #f0f0f0;
}

.pc-panel {
    display: none;
}

.pc-panel.active {
    display: block;
}

.pc-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.pc-row label {
    font-size: 0.9rem;
    color: #333;
    white-space: nowrap;
}

.pc-row input {
    flex: 1;
    min-width: 80px;
    padding: 0.6rem 0.75rem;
    font-size: 1rem;
    border: 2px solid #2d3f52;
    border-radius: 8px;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.pc-row input:focus {
    border-color: #9b3d99;
}

.pc-result {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin: 0.8rem 0;
    text-align: center;
    display: none;
}

.pc-result-main {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3f52;
}

.pc-result-sub {
    font-size: 0.85rem;
    color: #333;
    margin-top: 0.3rem;
}

button.pc-btn {
    width: 100%;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    margin: 0.4rem auto;
    border: none;
    border-radius: 8px;
    background-color: #2d3f52;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}

button.pc-btn:hover {
    background-color: #9b3d99;
}

.success {
    color: green;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.error {
    color: #d00;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}