.pw-pc-widget {
    --pw-pc-primary: #2d6a4f;
    --pw-pc-accent: #40916c;
    --pw-pc-success: #059669;
    --pw-pc-fail: #dc2626;
    --pw-pc-radius: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.pw-pc-card {
    max-width: 560px;
    margin: 0 auto;
    padding: 40px 32px;
    text-align: center;
}

.pw-pc-icon {
    color: var(--pw-pc-primary);
    margin-bottom: 16px;
}

.pw-pc-icon svg {
    width: 48px;
    height: 48px;
}

.pw-pc-heading {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
    line-height: 1.3;
}

.pw-pc-subheading {
    font-size: 15px;
    color: #666;
    margin: 0 0 28px;
    line-height: 1.5;
}

/* Input area */
.pw-pc-input-wrap {
    display: flex;
    gap: 0;
    max-width: 400px;
    margin: 0 auto;
    border-radius: var(--pw-pc-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
}

.pw-pc-input-wrap:focus-within {
    box-shadow: 0 2px 12px rgba(45,106,79,0.15), 0 0 0 2px var(--pw-pc-primary);
}

.pw-pc-input {
    flex: 1;
    border: none !important;
    padding: 14px 18px !important;
    font-size: 16px !important;
    outline: none !important;
    background: #fff !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 0;
    box-shadow: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.pw-pc-input::placeholder {
    text-transform: none;
    letter-spacing: normal;
    color: #aaa;
}

.pw-pc-btn {
    border: none;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1;
}

.pw-pc-btn:active {
    transform: scale(0.97);
}

.pw-pc-btn-primary {
    background: var(--pw-pc-primary);
    color: #fff;
    border-radius: 0;
}

.pw-pc-btn-primary:hover {
    background: var(--pw-pc-accent);
    color: #fff;
}

/* Loading spinner */
.pw-pc-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.pw-pc-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: pw-pc-spin 0.6s linear infinite;
    margin-left: 6px;
}

@keyframes pw-pc-spin {
    to { transform: rotate(360deg); }
}

/* Results */
.pw-pc-result {
    margin-top: 24px;
}

.pw-pc-result-inner {
    animation: pw-pc-fadeIn 0.4s ease;
}

@keyframes pw-pc-fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.pw-pc-result-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: var(--pw-pc-radius);
    padding: 24px;
}

.pw-pc-result-success .pw-pc-result-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.pw-pc-result-success .pw-pc-result-text {
    font-size: 16px;
    color: #065f46;
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.5;
}

.pw-pc-result-fail {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--pw-pc-radius);
    padding: 24px;
}

.pw-pc-result-fail .pw-pc-result-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.pw-pc-result-fail .pw-pc-result-text {
    font-size: 16px;
    color: #991b1b;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.5;
}

.pw-pc-result-fail .pw-pc-result-sub {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
}

.pw-pc-result-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
}

.pw-pc-result-btn:active {
    transform: scale(0.97);
}

.pw-pc-result-success .pw-pc-result-btn {
    background: var(--pw-pc-success);
    color: #fff;
}

.pw-pc-result-success .pw-pc-result-btn:hover {
    background: #047857;
    color: #fff;
}

.pw-pc-result-fail .pw-pc-result-btn {
    background: var(--pw-pc-primary);
    color: #fff;
}

.pw-pc-result-fail .pw-pc-result-btn:hover {
    background: var(--pw-pc-accent);
    color: #fff;
}

/* Try again link */
.pw-pc-try-again {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    text-decoration: underline;
    background: none;
    border: none;
    font-family: inherit;
}

.pw-pc-try-again:hover {
    color: #333;
}

/* Error state */
.pw-pc-error {
    color: #dc2626;
    font-size: 13px;
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 480px) {
    .pw-pc-card {
        padding: 28px 20px;
    }

    .pw-pc-heading {
        font-size: 20px;
    }

    .pw-pc-input-wrap {
        flex-direction: column;
        border-radius: var(--pw-pc-radius);
    }

    .pw-pc-input {
        border-bottom: 1px solid #eee !important;
        text-align: center;
    }

    .pw-pc-btn-primary {
        border-radius: 0 0 var(--pw-pc-radius) var(--pw-pc-radius);
    }
}
