/* PT Business Directory — Frontend Styles */
/* All selectors are scoped to .pt-bd-* to avoid theme conflicts */

/* ===== CSS Variables ===== */
:root {
    --pt-bd-primary:     #333333;
    --pt-bd-primary-dk:  #1a1a1a;
    --pt-bd-accent:      #f0a500;
    --pt-bd-featured:    #f0a500;
    --pt-bd-success:     #2d9c4a;
    --pt-bd-text:        #1a1a1a;
    --pt-bd-text-muted:  #666666;
    --pt-bd-border:      #dddddd;
    --pt-bd-bg:          #f5f5f5;
    --pt-bd-card-bg:     #ffffff;
    --pt-bd-radius:      10px;
    --pt-bd-shadow:      0 2px 12px rgba(0,0,0,0.08);
    --pt-bd-shadow-hover:0 8px 28px rgba(0,0,0,0.14);
    --pt-bd-transition:  0.22s ease;
}

/* ===== Dark Mode Variables ===== */
.pt-bd-dark {
    --pt-bd-primary:     #cccccc;
    --pt-bd-primary-dk:  #aaaaaa;
    --pt-bd-accent:      #f0a500;
    --pt-bd-featured:    #f0a500;
    --pt-bd-success:     #3dba5e;
    --pt-bd-text:        #e8e8e8;
    --pt-bd-text-muted:  #888888;
    --pt-bd-border:      #2a2a2a;
    --pt-bd-bg:          #000000;
    --pt-bd-card-bg:     #1a1a1a;
    --pt-bd-shadow:      0 2px 12px rgba(0,0,0,0.5);
    --pt-bd-shadow-hover:0 8px 28px rgba(0,0,0,0.7);
}


/* ===== Utility Reset (scoped) ===== */
.pt-bd-directory-wrap *,
.pt-bd-auth-wrap *,
.pt-bd-modal * {
    box-sizing: border-box;
}

/* ===== Auth wrap dark mode page background ===== */
.pt-bd-auth-wrap.pt-bd-dark {
    background: var(--pt-bd-bg);
    padding: 32px 16px;
    min-height: 100vh;
}

/* ===== Directory Wrapper ===== */
.pt-bd-directory-wrap {
    font-family: inherit;
    color: var(--pt-bd-text);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== Header ===== */
.pt-bd-header {
    margin-bottom: 24px;
}

.pt-bd-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.2;
    color: var(--pt-bd-text);
}

/* ===== Controls Bar ===== */
.pt-bd-controls {
    background: var(--pt-bd-card-bg);
    border: 1px solid var(--pt-bd-border);
    border-radius: var(--pt-bd-radius);
    padding: 0 24px 20px;
    margin-bottom: 24px;
    box-shadow: var(--pt-bd-shadow);
}

/* Search Bar */
.pt-bd-search-bar {
    display: flex;
    gap: 10px;
    padding-top: 20px;
    margin-bottom: 16px;
}

.pt-bd-search-input {
    flex: 1;
    padding: 10px 16px;
    border: 1.5px solid var(--pt-bd-border);
    border-radius: 6px;
    font-size: 15px;
    color: var(--pt-bd-text);
    background: var(--pt-bd-bg);
    outline: none;
    transition: border-color var(--pt-bd-transition);
}

.pt-bd-search-input:focus {
    border-color: var(--pt-bd-primary);
    background: var(--pt-bd-card-bg);
}

/* Filters Row */
.pt-bd-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.pt-bd-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 160px;
}

.pt-bd-filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--pt-bd-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pt-bd-select,
.pt-bd-filter-input {
    border: 1.5px solid var(--pt-bd-border);
    border-radius: 6px;
    font-size: 14px;
    color: var(--pt-bd-text);
    background: var(--pt-bd-bg);
    outline: none;
    transition: border-color var(--pt-bd-transition);
    width: 100%;
}

.pt-bd-select:focus,
.pt-bd-filter-input:focus {
    border-color: var(--pt-bd-primary);
    background: var(--pt-bd-card-bg);
}

.pt-bd-filter-actions {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    flex-shrink: 0;
}

/* ===== Buttons ===== */
.pt-bd-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background var(--pt-bd-transition), color var(--pt-bd-transition), border-color var(--pt-bd-transition), transform 0.1s;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
}

.pt-bd-btn:active {
    transform: scale(0.97);
}

.pt-bd-btn-primary {
    background: var(--pt-bd-primary);
    color: #fff;
    border-color: var(--pt-bd-primary);
}

.pt-bd-btn-primary:hover {
    background: var(--pt-bd-primary-dk);
    border-color: var(--pt-bd-primary-dk);
    color: #fff;
}

.pt-bd-btn-secondary {
    background: transparent;
    color: var(--pt-bd-text-muted);
    border-color: var(--pt-bd-border);
}

.pt-bd-btn-secondary:hover {
    background: var(--pt-bd-bg);
    color: var(--pt-bd-text);
    border-color: #888888;
}

.pt-bd-btn-outline {
    background: transparent;
    color: var(--pt-bd-primary);
    border-color: var(--pt-bd-primary);
}

.pt-bd-btn-outline:hover {
    background: var(--pt-bd-primary);
    color: #fff;
}

.pt-bd-btn-featured {
    background: var(--pt-bd-featured);
    color: #111111;
    border-color: var(--pt-bd-featured);
    font-size: 15px;
    padding: 12px 24px;
}

.pt-bd-btn-featured:hover {
    background: #d99200;
    border-color: #d99200;
    color: #111111;
}

.pt-bd-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--pt-bd-primary);
    border: none;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 6px 16px;
    text-decoration: none;
    transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}

.pt-bd-link-btn:hover {
    background: var(--pt-bd-primary-dk);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.pt-bd-link-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0,0,0,0.10);
}

.pt-bd-reveal-email.pt-bd-email-loading {
    opacity: 0.6;
    cursor: wait;
}

.pt-bd-reveal-email.pt-bd-email-error {
    color: #c0392b;
    text-decoration: none;
    cursor: default;
    font-size: 0.85em;
}

/* ===== Results Summary ===== */
.pt-bd-results-summary {
    font-size: 14px;
    color: var(--pt-bd-text-muted);
    margin-bottom: 16px;
}

/* ===== Loading State ===== */
.pt-bd-loading {
    text-align: center;
    padding: 48px 16px;
    color: var(--pt-bd-text-muted);
    font-size: 15px;
}

.pt-bd-spinner {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 3px solid var(--pt-bd-border);
    border-top-color: var(--pt-bd-primary);
    border-radius: 50%;
    animation: pt-bd-spin 0.7s linear infinite;
    margin-bottom: 8px;
}

@keyframes pt-bd-spin {
    to { transform: rotate(360deg); }
}

/* ===== Grid Layout ===== */
.pt-bd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

/* ===== Listing Card ===== */
.pt-bd-card {
    background: var(--pt-bd-card-bg);
    border: 1.5px solid var(--pt-bd-border);
    border-radius: var(--pt-bd-radius);
    overflow: hidden;
    box-shadow: var(--pt-bd-shadow);
    transition: transform var(--pt-bd-transition), box-shadow var(--pt-bd-transition);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.pt-bd-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pt-bd-shadow-hover);
}

.pt-bd-card--featured {
    border-color: var(--pt-bd-featured);
    box-shadow: 0 0 0 2px rgba(240,165,0,0.18), var(--pt-bd-shadow);
}

.pt-bd-card--featured:hover {
    box-shadow: 0 0 0 2px rgba(240,165,0,0.28), var(--pt-bd-shadow-hover);
}

/* Card Banner */
.pt-bd-card-banner {
    height: 140px;
    background: linear-gradient(135deg, var(--pt-bd-border) 0%, var(--pt-bd-bg) 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
}

.pt-bd-card-banner--empty {
    background: linear-gradient(135deg, var(--pt-bd-bg) 0%, var(--pt-bd-border) 100%);
}

/* Card Body */
.pt-bd-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Card Header: logo + title */
.pt-bd-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.pt-bd-card-logo {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1.5px solid var(--pt-bd-border);
    background: var(--pt-bd-card-bg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pt-bd-card-has-banner .pt-bd-card-logo {
    margin-top: 1px;
}

.pt-bd-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pt-bd-card-logo--placeholder {
    background: var(--pt-bd-primary);
}

.pt-bd-card-logo--placeholder span {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
}

.pt-bd-card-title-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 2px;
}

.pt-bd-card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: var(--pt-bd-text);
    line-height: 1.3;
}

/* Category Pills */
.pt-bd-card-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.pt-bd-cat-pill {
    display: inline-block;
    padding: 2px 10px;
    background: var(--pt-bd-bg);
    color: var(--pt-bd-primary);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 1px solid var(--pt-bd-border);
}

/* Card Meta List */
.pt-bd-card-meta {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    font-size: 13px;
    color: var(--pt-bd-text-muted);
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.pt-bd-card-meta li {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.4;
}

.pt-bd-meta-icon {
    flex-shrink: 0;
    font-size: 14px;
    width: 18px;
    text-align: center;
}

.pt-bd-card-meta a {
    color: var(--pt-bd-primary);
    text-decoration: none;
    word-break: break-all;
}

.pt-bd-card-meta a:hover {
    text-decoration: underline;
}

/* Card Footer */
.pt-bd-card-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--pt-bd-border);
    display: flex;
    justify-content: center;
}

/* ===== Badges ===== */
.pt-bd-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pt-bd-badge--featured {
    background: var(--pt-bd-featured);
    color: #111111;
    position: absolute;
    top: 10px;
    left: 10px;
}

.pt-bd-badge--verified {
    background: var(--pt-bd-success);
    color: #fff;
    position: absolute;
    top: 10px;
    right: 10px;
}

.pt-bd-badge--claimed {
    background: #e8e8e8;
    color: #333333;
}

.pt-bd-dark .pt-bd-badge--claimed {
    background: #2a2a2a;
    color: #cccccc;
}

/* ===== No Results ===== */
.pt-bd-no-results {
    text-align: center;
    padding: 64px 16px;
    color: var(--pt-bd-text-muted);
    font-size: 16px;
    background: var(--pt-bd-card-bg);
    border: 1.5px dashed var(--pt-bd-border);
    border-radius: var(--pt-bd-radius);
}

/* ===== Pagination ===== */
.pt-bd-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    padding: 8px 0 24px;
}

.pt-bd-page-btn {
    padding: 7px 14px;
    border: 1.5px solid var(--pt-bd-border);
    border-radius: 6px;
    background: var(--pt-bd-card-bg);
    color: var(--pt-bd-text);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background var(--pt-bd-transition), border-color var(--pt-bd-transition), color var(--pt-bd-transition);
}

.pt-bd-page-btn:hover {
    border-color: var(--pt-bd-primary);
    color: var(--pt-bd-primary);
}

.pt-bd-page-btn.active {
    background: var(--pt-bd-primary);
    border-color: var(--pt-bd-primary);
    color: #fff;
}

/* ===== Alert ===== */
.pt-bd-alert {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 12px;
}

.pt-bd-alert--success {
    background: #e6f4ea;
    color: #1e7e34;
    border: 1px solid #b8dfc5;
}

.pt-bd-dark .pt-bd-alert--success {
    background: #1a3a24;
    color: #5dcc7a;
    border-color: #2a6040;
}

.pt-bd-alert--error {
    background: #fde8e8;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.pt-bd-dark .pt-bd-alert--error {
    background: #3a1a1a;
    color: #f87171;
    border-color: #7a2a2a;
}

/* ===== Modal Dark Mode ===== */
.pt-bd-modal.pt-bd-dark .pt-bd-form-group input {
    background: var(--pt-bd-bg);
    color: var(--pt-bd-text);
    border-color: var(--pt-bd-border);
}

.pt-bd-modal.pt-bd-dark .pt-bd-form-group label {
    color: var(--pt-bd-text);
}

.pt-bd-modal.pt-bd-dark h3 {
    color: var(--pt-bd-text);
}

.pt-bd-modal.pt-bd-dark p {
    color: var(--pt-bd-text-muted);
}

/* ===== Modal ===== */
.pt-bd-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99990;
    align-items: center;
    justify-content: center;
}

.pt-bd-modal.is-open {
    display: flex;
}

.pt-bd-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
}

.pt-bd-modal-content {
    position: relative;
    background: var(--pt-bd-card-bg);
    border-radius: 14px;
    padding: 32px;
    max-width: 680px;
    width: 92%;
    max-height: 88vh;
    overflow-y: auto;
    z-index: 1;
    box-shadow: 0 24px 60px rgba(0,0,0,0.22);
    animation: pt-bd-modal-in 0.2s ease;
}

.pt-bd-modal-sm {
    max-width: 420px;
}

@keyframes pt-bd-modal-in {
    from { opacity: 0; transform: scale(0.94) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.pt-bd-modal-close {
    position: sticky;
    float: right;
    top: 0;
    right: 0;
    margin: -32px -32px 0 0;
    z-index: 10;
    background: rgba(0,0,0,0.55);
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 0 14px 0 8px;
    transition: background var(--pt-bd-transition);
    backdrop-filter: blur(4px);
}

.pt-bd-modal-close:hover {
    background: rgba(0,0,0,0.8);
    color: #ffffff;
}

/* ===== Single Listing (modal / standalone page) ===== */
.pt-bd-single-listing {
    font-size: 15px;
}

.pt-bd-single-banner {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.pt-bd-single-banner .pt-bd-banner-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.pt-bd-single-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.pt-bd-single-logo {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--pt-bd-border);
    background: var(--pt-bd-card-bg);
    box-shadow: var(--pt-bd-shadow);
}

.pt-bd-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pt-bd-logo-zoomable {
    cursor: zoom-in;
    transition: opacity 0.15s ease;
}

.pt-bd-logo-zoomable:hover {
    opacity: 0.85;
}

.pt-bd-single-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.pt-bd-single-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pt-bd-single-badges .pt-bd-badge {
    position: static;
}

.pt-bd-single-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.pt-bd-single-details {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 10px 16px;
    margin-bottom: 24px;
}

.pt-bd-single-details dt {
    font-weight: 600;
    color: var(--pt-bd-text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding-top: 2px;
}

.pt-bd-single-details dd {
    margin: 0;
    color: var(--pt-bd-text);
}

.pt-bd-single-details a {
    color: var(--pt-bd-primary);
    text-decoration: none;
    word-break: break-all;
}

.pt-bd-single-details a:hover {
    text-decoration: underline;
}

.pt-bd-location-list {
    margin: 0;
    padding: 0 0 0 16px;
}

.pt-bd-location-list li {
    margin-bottom: 2px;
}

/* Upsell Box */
.pt-bd-single-upsell {
    background: linear-gradient(135deg, #fffbeb 0%, #fff8db 100%);
    border: 2px solid var(--pt-bd-featured);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

.pt-bd-dark .pt-bd-single-upsell {
    background: linear-gradient(135deg, #2a2000 0%, #1e1800 100%);
}

.pt-bd-single-upsell h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #7a4f00;
}

.pt-bd-dark .pt-bd-single-upsell h3 {
    color: #f0c060;
}

.pt-bd-single-upsell p {
    margin: 0 0 14px;
    color: #6b4c00;
    font-size: 14px;
    line-height: 1.5;
}

.pt-bd-dark .pt-bd-single-upsell p {
    color: #c8a050;
}

/* Claim Box */
.pt-bd-single-claim {
    text-align: center;
    padding: 12px;
    background: var(--pt-bd-bg);
    border-radius: 8px;
    font-size: 13px;
    color: var(--pt-bd-text-muted);
}

/* ===== Claim Form ===== */
.pt-bd-form-group {
    margin-bottom: 14px;
}

.pt-bd-form-group label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
    color: var(--pt-bd-text);
}

.pt-bd-form-group input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--pt-bd-border);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color var(--pt-bd-transition);
}

.pt-bd-form-group input:focus {
    border-color: var(--pt-bd-primary);
}

#pt-bd-claim-form h3 {
    margin-top: 0;
}

/* ===== Success Banner ===== */
.pt-bd-success-banner {
    background: #e6f4ea;
    border: 1.5px solid #b8dfc5;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
    color: #1e7e34;
    font-weight: 500;
    font-size: 15px;
}

.pt-bd-dark .pt-bd-success-banner {
    background: #1a3a24;
    border-color: #2a6040;
    color: #5dcc7a;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .pt-bd-title {
        font-size: 1.5rem;
    }

    .pt-bd-controls {
        padding: 16px;
    }

    .pt-bd-search-bar {
        flex-direction: column;
    }

    .pt-bd-filters-row {
        flex-direction: column;
    }

    .pt-bd-filter-group {
        min-width: 100%;
    }

    .pt-bd-filter-actions {
        width: 100%;
        justify-content: stretch;
    }

    .pt-bd-filter-actions .pt-bd-btn {
        flex: 1;
        justify-content: center;
    }

    .pt-bd-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pt-bd-single-details {
        grid-template-columns: 1fr;
    }

    .pt-bd-single-details dt {
        margin-top: 10px;
    }

    .pt-bd-modal-content {
        padding: 20px 16px;
        width: 96%;
    }
}

@media (max-width: 480px) {
    .pt-bd-card-header {
        flex-wrap: wrap;
    }
}

/* ===== Auth Forms: Register & Login ===== */
.pt-bd-auth-wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 16px;
    font-family: inherit;
    color: var(--pt-bd-text);
}

.pt-bd-auth-wrap--wide {
    max-width: 720px;
}

/* Form sections */
.pt-bd-reg-section {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1.5px solid var(--pt-bd-border);
}

.pt-bd-reg-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pt-bd-reg-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--pt-bd-text);
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}

.pt-bd-reg-section-desc {
    font-size: 13px;
    color: var(--pt-bd-text-muted);
    margin: 0 0 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Specialty categories checkbox grid */
.pt-bd-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    padding: 12px;
    background: var(--pt-bd-bg);
    border: 1.5px solid var(--pt-bd-border);
    border-radius: 7px;
}

.pt-bd-checkbox-label--inline {
    font-size: 13px;
    font-weight: 500;
    color: var(--pt-bd-text);
    padding: 4px 2px;
}

/* File upload zone */
.pt-bd-upload-zone {
    position: relative;
    border: 2px dashed var(--pt-bd-border);
    border-radius: 8px;
    background: var(--pt-bd-bg);
    cursor: pointer;
    transition: border-color var(--pt-bd-transition), background var(--pt-bd-transition);
    overflow: hidden;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pt-bd-upload-zone:hover,
.pt-bd-upload-zone.is-dragging {
    border-color: var(--pt-bd-primary);
    background: var(--pt-bd-bg);
}

.pt-bd-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.pt-bd-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 20px;
    text-align: center;
    pointer-events: none;
    z-index: 1;
}

.pt-bd-upload-icon {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 4px;
}

.pt-bd-upload-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--pt-bd-primary);
}

.pt-bd-upload-hint {
    font-size: 11px;
    color: var(--pt-bd-text-muted);
}

/* Upload preview */
.pt-bd-upload-preview {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.pt-bd-upload-preview img {
    max-height: 120px;
    max-width: 100%;
    border-radius: 6px;
    object-fit: contain;
}

.pt-bd-upload-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    line-height: 1;
    transition: background var(--pt-bd-transition);
}

.pt-bd-upload-remove:hover {
    background: rgba(0,0,0,0.8);
}

.pt-bd-upload-zone--banner {
    min-height: 140px;
}

.pt-bd-upload-preview--banner img {
    max-height: 160px;
    max-width: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 6px;
}

@media (max-width: 600px) {
    .pt-bd-checkbox-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.pt-bd-auth-box {
    background: var(--pt-bd-card-bg);
    border: 1.5px solid var(--pt-bd-border);
    border-radius: 14px;
    padding: 36px 40px;
    box-shadow: var(--pt-bd-shadow);
}

.pt-bd-auth-header {
    margin-bottom: 24px;
    text-align: center;
}

.pt-bd-auth-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--pt-bd-text);
    line-height: 1.2;
}

.pt-bd-auth-subtitle {
    font-size: 14px;
    color: var(--pt-bd-text-muted);
    margin: 0;
    line-height: 1.5;
}

.pt-bd-auth-notice {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.pt-bd-auth-notice--success {
    background: #e6f4ea;
    border: 1px solid #b8dfc5;
    color: #1a5c2a;
}

.pt-bd-dark .pt-bd-auth-notice--success {
    background: #1a3a24;
    border-color: #2a6040;
    color: #5dcc7a;
}

.pt-bd-auth-notice--error {
    background: #fde8e8;
    border: 1px solid #fca5a5;
    color: #b91c1c;
}

.pt-bd-dark .pt-bd-auth-notice--error {
    background: #3a1a1a;
    border-color: #7a2a2a;
    color: #f87171;
}

.pt-bd-auth-notice--info {
    background: #f0f0f0;
    border: 1px solid #cccccc;
    color: #333333;
}

.pt-bd-dark .pt-bd-auth-notice--info {
    background: #1a1a1a;
    border-color: #333333;
    color: #aaaaaa;
}

.pt-bd-auth-form {
    margin: 0;
}

.pt-bd-auth-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.pt-bd-auth-row--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.pt-bd-auth-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pt-bd-auth-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--pt-bd-text);
    display: flex;
    align-items: center;
    gap: 4px;
}

.pt-bd-required {
    color: #d32f2f;
    font-size: 14px;
}

.pt-bd-auth-field input[type="text"],
.pt-bd-auth-field input[type="email"],
.pt-bd-auth-field input[type="password"] {
    padding: 10px 14px;
    border: 1.5px solid var(--pt-bd-border);
    border-radius: 7px;
    font-size: 15px;
    color: var(--pt-bd-text);
    background: var(--pt-bd-bg);
    outline: none;
    transition: border-color var(--pt-bd-transition), box-shadow var(--pt-bd-transition);
    width: 100%;
    line-height: 1.4;
}

.pt-bd-auth-field input:focus {
    border-color: var(--pt-bd-primary);
    background: var(--pt-bd-card-bg);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}

.pt-bd-field-hint {
    font-size: 11px;
    color: var(--pt-bd-text-muted);
    line-height: 1.4;
}

/* Password field with show/hide toggle */
.pt-bd-password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.pt-bd-password-wrap input {
    flex: 1;
    padding-right: 42px !important;
}

.pt-bd-toggle-pw {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    color: var(--pt-bd-text-muted);
    line-height: 1;
    opacity: 0.65;
    transition: opacity var(--pt-bd-transition);
}

.pt-bd-toggle-pw:hover {
    opacity: 1;
}

/* Remember me + forgot password row */
.pt-bd-auth-remember {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.pt-bd-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--pt-bd-text);
    line-height: 1.5;
    cursor: pointer;
}

.pt-bd-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    cursor: pointer;
    accent-color: var(--pt-bd-primary);
}

.pt-bd-forgot-link {
    color: var(--pt-bd-primary);
    font-size: 13px;
    text-decoration: none;
}

.pt-bd-forgot-link:hover {
    text-decoration: underline;
}

/* Terms row */
.pt-bd-auth-terms {
    margin-bottom: 20px;
    font-size: 13px;
}

.pt-bd-auth-terms a {
    color: var(--pt-bd-primary);
    text-decoration: underline;
}

/* Submit button */
.pt-bd-auth-submit {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 8px;
}

/* Switch link (login ↔ register) */
.pt-bd-auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--pt-bd-text-muted);
}

.pt-bd-auth-switch a {
    color: var(--pt-bd-primary);
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}

.pt-bd-auth-switch a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .pt-bd-auth-box {
        padding: 24px 20px;
    }
    .pt-bd-auth-row--split {
        grid-template-columns: 1fr;
    }
    .pt-bd-auth-title {
        font-size: 1.3rem;
    }
}

/* Show/hide password JS helper */
.pt-bd-pw-visible {
    opacity: 1;
}

/* ===== Logo Lightbox ===== */
.pt-bd-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pt-bd-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    cursor: pointer;
}

.pt-bd-lightbox-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 90vh;
}

.pt-bd-lightbox-img {
    display: block;
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    animation: pt-bd-lb-in 0.18s ease;
}

@keyframes pt-bd-lb-in {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

.pt-bd-lightbox-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    color: #333;
    z-index: 2;
    transition: background 0.15s ease;
}

.pt-bd-lightbox-close:hover {
    background: #f0f0f0;
}
