.paa-pro-badge {
    display: inline-block;
    padding: 3px 8px;
    margin-bottom: 6px;
    border-radius: 3px;
    background: #1d2327;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.paa-restricted-notice {
    margin: 16px 0;
    padding: 14px 16px;
    border-left: 4px solid #dba617;
    background: #fcf9e8;
    border-radius: 4px;
}

.paa-restricted-notice p {
    margin: 6px 0 10px;
}

.paa-access-granted {
    margin: 12px 0;
    padding: 10px 14px;
    border-left: 4px solid #137333;
    background: #edfaef;
    color: #137333;
    font-weight: 600;
    border-radius: 4px;
}

/* ================================================================
   Professional Account Application Card & Register Form
   ================================================================ */

.paa-application-box {
    max-width: 720px;
    padding: 32px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
    color: #0f172a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    box-sizing: border-box;
}

.paa-application-box *,
.paa-application-box *::before,
.paa-application-box *::after {
    box-sizing: border-box;
}

/* Guest / Logged-out state */
.paa-application-box--guest {
    max-width: 520px;
    text-align: center;
    padding: 40px 32px;
}

.paa-guest-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.paa-guest-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #f1f5f9;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.paa-guest-title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.015em;
}

.paa-guest-desc {
    margin: 0 0 24px;
    font-size: 14.5px;
    line-height: 1.6;
    color: #475569;
    max-width: 400px;
}

/* Header & Tier Badge */
.paa-account-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.paa-account-header-text h3 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

.paa-account-subtitle {
    margin: 0;
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.4;
}

.paa-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
    white-space: nowrap;
}

.paa-tier-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.paa-tier-pro {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.paa-tier-pro .paa-tier-dot {
    background: #10b981;
}

.paa-tier-mainstream {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.paa-tier-mainstream .paa-tier-dot {
    background: #94a3b8;
}

/* Alerts */
.paa-alert {
    padding: 16px 18px;
    border-radius: 12px;
    margin-bottom: 22px;
    border: 1px solid transparent;
    font-size: 14px;
    line-height: 1.55;
}

.paa-alert-content strong {
    display: block;
    font-size: 14.5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.paa-alert-content p {
    margin: 0;
}

.paa-alert-content p + p {
    margin-top: 6px;
}

.paa-alert-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.paa-alert-info {
    background: #f0f9ff;
    border-color: #bae6fd;
    color: #0c4a6e;
}

.paa-alert-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.paa-alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

/* Pending Summary Grid */
.paa-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(12, 74, 110, 0.12);
}

.paa-summary-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.paa-summary-label {
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #0369a1;
    opacity: 0.85;
}

.paa-summary-value {
    font-size: 14px;
    font-weight: 600;
    color: #0c4a6e;
    word-break: break-word;
}

.paa-summary-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.02em;
}

/* Form Intro */
.paa-form-intro {
    margin-bottom: 22px;
}

.paa-form-intro h4 {
    margin: 0 0 6px;
    font-size: 16.5px;
    font-weight: 600;
    color: #0f172a;
}

.paa-form-intro p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #64748b;
}

/* Form Layout & Fields */
.paa-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
}

.paa-form-row {
    margin: 0;
    display: flex;
    flex-direction: column;
}

.paa-form-row--full {
    grid-column: 1 / -1;
}

.paa-application-box .paa-form-row label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 7px;
    line-height: 1.3;
}

.paa-required {
    color: #dc2626;
    font-weight: 700;
    margin-left: 2px;
}

.paa-optional {
    font-size: 11.5px;
    font-weight: 500;
    color: #94a3b8;
    margin-left: auto;
}

.paa-application-box .paa-form-row input[type="text"],
.paa-application-box .paa-form-row input[type="tel"],
.paa-application-box .paa-form-row textarea {
    width: 100%;
    padding: 11px 14px;
    font-size: 14.5px;
    line-height: 1.45;
    color: #0f172a;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
    box-shadow: none;
    outline: none;
    margin: 0;
}

.paa-application-box .paa-form-row input[type="text"]::placeholder,
.paa-application-box .paa-form-row input[type="tel"]::placeholder,
.paa-application-box .paa-form-row textarea::placeholder {
    color: #94a3b8;
}

.paa-application-box .paa-form-row input[type="text"]:hover,
.paa-application-box .paa-form-row input[type="tel"]:hover,
.paa-application-box .paa-form-row textarea:hover {
    border-color: #94a3b8;
}

.paa-application-box .paa-form-row input[type="text"]:focus,
.paa-application-box .paa-form-row input[type="tel"]:focus,
.paa-application-box .paa-form-row textarea:focus {
    background: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

.paa-application-box .paa-form-row textarea {
    resize: vertical;
    min-height: 108px;
}

.paa-field-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.45;
    color: #64748b;
}

/* Buttons */
.paa-form-actions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
}

.paa-application-box .paa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.paa-application-box .paa-btn-primary {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.16);
}

.paa-application-box .paa-btn-primary:hover {
    background: #1e293b;
    border-color: #1e293b;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.22);
    text-decoration: none;
}

.paa-application-box .paa-btn-primary:active {
    transform: translateY(0);
}

.paa-application-box .paa-btn-primary:focus-visible {
    outline: 2px solid #0f172a;
    outline-offset: 2px;
}

.paa-application-box .paa-submit-btn {
    width: 100%;
    padding: 13px 24px;
    font-size: 15px;
}

@media (max-width: 600px) {
    .paa-application-box {
        padding: 22px 18px;
        border-radius: 12px;
    }

    .paa-form-grid,
    .paa-summary-grid {
        grid-template-columns: 1fr;
    }

    .paa-account-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ================================================================
   Professional-Only Product Popup Modal
   ================================================================ */

.paa-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.55);
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.paa-modal-overlay.paa-modal-active {
    display: flex;
}

body.paa-modal-open {
    overflow: hidden;
}

.paa-modal-box {
    position: relative;
    background: #fff;
    border-radius: 10px;
    max-width: 480px;
    width: 100%;
    padding: 36px 32px 28px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    animation: paaModalIn 0.22s ease;
}

@keyframes paaModalIn {
    from {
        opacity: 0;
        transform: translateY(-18px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.paa-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #888;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.paa-modal-close:hover {
    color: #333;
    background: #f1f3f4;
}

.paa-modal-icon {
    font-size: 44px;
    margin-bottom: 12px;
    line-height: 1;
}

.paa-modal-box h2 {
    margin: 0 0 12px;
    font-size: 20px;
    color: #1d2327;
}

.paa-modal-box p {
    margin: 0 0 24px;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

.paa-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.paa-modal-btn {
    display: block;
    padding: 11px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    border: 2px solid transparent;
}

.paa-modal-btn-primary {
    background: #1d2327;
    color: #fff !important;
    border-color: #1d2327;
}

.paa-modal-btn-primary:hover {
    background: #3c434a;
    border-color: #3c434a;
    color: #fff !important;
}

.paa-modal-btn-secondary {
    background: #fff;
    color: #555;
    border-color: #ddd;
}

.paa-modal-btn-secondary:hover {
    background: #f8f9fa;
    border-color: #bbb;
    color: #333;
}

@media (max-width: 480px) {
    .paa-modal-box {
        padding: 28px 18px 20px;
    }
}

/* ================================================================
   Shop Access Badge Component ([paa_shop_badge])
   ================================================================ */

.paa-shop-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.01em;
    vertical-align: middle;
    white-space: nowrap;
}

.paa-shop-badge--sm {
    padding: 3px 9px;
    font-size: 11px;
    gap: 5px;
}

.paa-shop-badge--lg {
    padding: 7px 16px;
    font-size: 15px;
    gap: 8px;
}

.paa-shop-badge--pro {
    background: #e6f4ea;
    color: #137333;
    border-color: #b7dfb9;
}

.paa-shop-badge--mainstream {
    background: #f1f3f4;
    color: #3c4043;
    border-color: #dadce0;
}

.paa-shop-badge__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.paa-shop-badge--sm .paa-shop-badge__dot {
    width: 6px;
    height: 6px;
}

.paa-shop-badge--lg .paa-shop-badge__dot {
    width: 10px;
    height: 10px;
}

.paa-shop-badge--pro .paa-shop-badge__dot {
    background: #137333;
}

.paa-shop-badge--mainstream .paa-shop-badge__dot {
    background: #5f6368;
}

.paa-shop-badge--link {
    text-decoration: none;
    transition: opacity 0.15s ease, box-shadow 0.15s ease;
}

.paa-shop-badge--link:hover,
.paa-shop-badge--link:focus {
    opacity: 0.9;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    text-decoration: none;
}

/* ================================================================
   My Account Shortcut Header (Professional Account Registration CTA)
   ================================================================ */

.paa-shortcut-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 20px;
    padding: 16px 20px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    box-sizing: border-box;
}

.paa-shortcut-header--pending {
    border-color: #bae6fd;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.paa-shortcut-header__content {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.paa-shortcut-header__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #0f172a;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.paa-shortcut-header--pending .paa-shortcut-header__icon {
    background: #0369a1;
}

.paa-shortcut-header__text {
    min-width: 0;
}

.paa-shortcut-header__title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 3px;
    font-size: 15px;
    color: #0f172a;
    line-height: 1.3;
}

.paa-shortcut-header__badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #1e293b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.paa-shortcut-header__badge--pending {
    background: #bae6fd;
    color: #0c4a6e;
}

.paa-shortcut-header__desc {
    margin: 0;
    font-size: 13.5px;
    color: #475569;
    line-height: 1.45;
}

.paa-shortcut-header__action {
    flex-shrink: 0;
}

.paa-shortcut-header__btn {
    white-space: nowrap;
}

@media (max-width: 640px) {
    .paa-shortcut-header {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }

    .paa-shortcut-header__action,
    .paa-shortcut-header__btn {
        width: 100%;
    }
}
