.pcw-tool-wrap {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    font-family: inherit;
}

.pcw-tool-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    padding: 34px;
    background:
        radial-gradient(circle at top left, rgba(139, 92, 246, 0.38), transparent 36%),
        radial-gradient(circle at bottom right, rgba(79, 70, 229, 0.32), transparent 34%),
        linear-gradient(135deg, #13081f 0%, #210b35 50%, #0b0713 100%);
    color: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 6, 26, 0.28);
}

.pcw-tool-card * {
    box-sizing: border-box;
}

.pcw-tool-kicker {
    margin: 0 0 10px;
    color: #d8b4fe;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 800;
}

.pcw-tool-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.pcw-tool-intro {
    max-width: 720px;
    margin: 18px 0 28px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.08rem;
    line-height: 1.55;
}

.pcw-password-output-row {
    display: flex;
    gap: 12px;
    margin: 0 0 16px;
}

.pcw-password-output {
    width: 100%;
    min-height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 0 18px;
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    font-size: clamp(1rem, 2.5vw, 1.45rem);
    font-weight: 700;
    letter-spacing: 0.03em;
    outline: none;
}

.pcw-password-output:focus {
    border-color: rgba(216, 180, 254, 0.7);
}

.pcw-copy-btn,
.pcw-generate-btn {
    border: 0;
    border-radius: 16px;
    padding: 0 22px;
    min-height: 58px;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.pcw-copy-btn:hover,
.pcw-generate-btn:hover {
    transform: translateY(-1px);
    opacity: 0.94;
}

.pcw-copy-btn {
    background: #ffffff;
    color: #1b0b2b;
    white-space: nowrap;
}

.pcw-generate-btn {
    width: 100%;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #ffffff;
    font-size: 1.05rem;
}

.pcw-strength-row {
    margin-bottom: 24px;
}

.pcw-strength-meter {
    width: 100%;
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.pcw-strength-meter span {
    display: block;
    width: 80%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #c084fc, #ffffff);
    transition: width 0.2s ease;
}

.pcw-strength-text {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.92rem;
}

.pcw-controls {
    display: grid;
    gap: 18px;
    padding: 22px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.pcw-length-label {
    color: #ffffff;
    font-size: 1rem;
}

.pcw-length-label strong {
    color: #ffffff;
}

.pcw-password-generator-widget input[type="range"] {
    width: 100%;
    accent-color: #a855f7;
}

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

.pcw-checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.88);
    font-weight: 700;
    line-height: 1.2;
}

.pcw-checkbox-grid input {
    accent-color: #a855f7;
}

.pcw-password-advice {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.pcw-password-advice h3 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 1.35rem;
}

.pcw-password-advice ul {
    margin: 0;
    padding-left: 20px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

@media (max-width: 700px) {
    .pcw-tool-card {
        padding: 24px 18px;
        border-radius: 22px;
    }

    .pcw-password-output-row {
        flex-direction: column;
    }

    .pcw-copy-btn {
        width: 100%;
    }

    .pcw-checkbox-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 420px) {
    .pcw-checkbox-grid {
        grid-template-columns: 1fr;
    }
}