.pwal-container {
    max-width: 900px;
    margin: 2rem auto;
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 16px rgba(37,99,235,.06);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header */
.pwal-header { text-align: center; margin-bottom: 2rem; }

.pwal-header-icon {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 56px; height: 56px;
    background: #25D366;
    border-radius: 14px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(37,211,102,.3);
}

.pwal-header-icon svg { width: 28px; height: 28px; color: #ffffff; }
.pwal-title { font-size: 1.5rem; font-weight: 700; color: #1e293b; margin: 0 0 .3rem; }
.pwal-subtitle { font-size: .9rem; color: #64748b; margin: 0; }

/* Layout */
.pwal-main {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.pwal-col-form {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pwal-col-qr {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 2rem;
}

/* Box */
.pwal-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem 1.15rem;
}

.pwal-label {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: .6rem;
}

/* Input Phone */
.pwal-phone-wrapper {
    display: flex;
    align-items: stretch;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: all .15s;
    background: #ffffff;
}

.pwal-phone-wrapper:focus-within {
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37,211,102,.1);
}

.pwal-prefix {
    display: flex;
    align-items: center;
    padding: 0 .7rem 0 .9rem;
    background: #f0fdf4;
    color: #166534;
    font-weight: 700;
    font-size: .9rem;
    border-right: 1px solid #bbf7d0;
    white-space: nowrap;
}

.pwal-input-phone {
    border: none !important;
    border-radius: 0 !important;
    flex: 1;
}

.pwal-input-phone:focus {
    box-shadow: none !important;
    border: none !important;
}

/* Inputs */
.pwal-input {
    width: 100%;
    padding: .65rem .8rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: .9rem;
    font-family: inherit;
    color: #1e293b;
    outline: none;
    transition: all .15s;
    box-sizing: border-box;
    background: #ffffff;
}

.pwal-input:focus {
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37,211,102,.1);
}

.pwal-input::placeholder { color: #94a3b8; }

.pwal-textarea {
    resize: vertical;
    min-height: 60px;
}

.pwal-hint {
    font-size: .73rem;
    color: #94a3b8;
    margin: .4rem 0 0 0;
}

/* Botão Gerar */
.pwal-btn-gerar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: .85rem;
    background: #25D366;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}

.pwal-btn-gerar:hover {
    background: #20bd5a;
    box-shadow: 0 4px 16px rgba(37,211,102,.35);
    transform: translateY(-1px);
}

.pwal-btn-gerar:active { transform: scale(.98); }

/* Resultado */
.pwal-resultado {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    animation: pwal-fadeIn .3s ease;
}

@keyframes pwal-fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.pwal-link-box { background: #f0fdf4; border-color: #bbf7d0; }

.pwal-link-copy {
    display: flex;
    gap: .4rem;
}

.pwal-link-copy .pwal-input {
    flex: 1;
    font-size: .82rem;
    color: #166534;
    font-weight: 500;
    background: #ffffff;
    border-color: #bbf7d0;
}

.pwal-btn-copy {
    display: flex;
    align-items: center;
    gap: .3rem;
    padding: 0 .9rem;
    background: #25D366;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
    font-family: inherit;
}

.pwal-btn-copy:hover { background: #1da851; }

/* Botões de Ação */
.pwal-actions {
    display: flex;
    gap: .5rem;
}

.pwal-btn-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .6rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #475569;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}

.pwal-btn-action:hover {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}

/* QR Code */
.pwal-qr-box {
    background: #ffffff;
    border: 2px dashed #dbeafe;
    border-radius: 14px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    transition: all .2s;
}

.pwal-qr-box.has-qr { border-style: solid; border-color: #e2e8f0; }

.pwal-qr-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pwal-qr-placeholder canvas,
.pwal-qr-placeholder img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.pwal-qr-acoes { margin-top: .75rem; }

.pwal-btn-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    width: 100%;
    padding: .55rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}

.pwal-btn-outline:hover {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}

.pwal-qr-info {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    margin-top: .75rem;
    font-size: .73rem;
    color: #94a3b8;
    line-height: 1.4;
}

.pwal-qr-info svg { flex-shrink: 0; margin-top: 1px; color: #2563eb; }

/* Footer */
.pwal-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
    color: #94a3b8;
    font-size: .78rem;
}

.pwal-footer svg { color: #2563eb; flex-shrink: 0; }

/* Toast */
.pwal-toast {
    position: fixed;
    top: 1.5rem; right: 1.5rem;
    background: #25D366;
    color: #ffffff;
    padding: .75rem 1.25rem;
    border-radius: 10px;
    font-size: .875rem;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(37,211,102,.4);
    z-index: 9999;
    opacity: 0;
    transform: translateX(120%);
    transition: all .3s ease;
}

.pwal-toast.show { opacity: 1; transform: translateX(0); }

/* Responsivo */
@media (max-width: 768px) {
    .pwal-container { margin: 1rem; padding: 1.25rem; border-radius: 12px; }
    .pwal-title { font-size: 1.3rem; }
    .pwal-main { flex-direction: column-reverse; }
    .pwal-col-qr { width: 100%; position: static; }
    .pwal-qr-box { min-height: 200px; }
}

@media (max-width: 480px) {
    .pwal-link-copy { flex-direction: column; }
    .pwal-btn-copy { justify-content: center; padding: .55rem; }
    .pwal-actions { flex-direction: column; }
}