/* ── Wed User Profile ─────────────────────────────────────────────────────── */
#wup-app {
    box-sizing: border-box;
    font-family: inherit;
    width: 100%;
    padding: 0;
}

#wup-app *, #wup-app *::before, #wup-app *::after {
    box-sizing: inherit;
}

.wup-login-notice {
    text-align: center;
    padding: 24px;
    color: #555;
}

/* ── User Header ──────────────────────────────────────────────────────────── */
.wup-user-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 16px 14px;
}

.wup-header-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff8e1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wup-header-avatar img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

.wup-header-avatar svg {
    display: block;
    fill: #aab0bc;
}

.wup-header-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wup-header-name {
    font-size: 22px;
    font-weight: bold;
    color: #1a1a2e;
    line-height: 1.2;
}

.wup-header-status {
    font-size: 14px;
    color: #888;
}

/* ── Tabs Navigation ──────────────────────────────────────────────────────── */
#wup-app .wup-tabs-nav {
    display: flex;
    align-items: stretch;
    background: #dddddd;
    width: 100%;
    gap:2px;
    overflow-x: auto;
    flex-wrap: nowrap;
}

#wup-app .wup-tabs-nav .wup-tab-btn {
    all: unset;
    box-sizing: border-box;
    background: transparent;
    padding: 15px 10px;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.15s;
}

/* Gear icon tab — always yellow box */
#wup-app .wup-tabs-nav .wup-tab-btn:first-child {
    color: #333;
    padding: 10px 15px;
}

#wup-app .wup-tabs-nav .wup-tab-btn:first-child svg {
    fill: #1a1a2e;
    display: block;
}

#wup-app .wup-tabs-nav .wup-tab-btn.active {
    background: #FFD700;
    color: #333;
    font-weight: bold;
    border: 2px solid #0e0d0d;
}

#wup-app .wup-tabs-nav .wup-tab-btn:hover:not(.active) {
    color: #000;
}

/* ── Tab Panels ───────────────────────────────────────────────────────────── */
.wup-tab-panels {
    padding-top: 10px;
}


.wup-tab-panel {
    display: none;
}

.wup-tab-panel.active {
    display: block;
}

.wup-panel-placeholder {
    text-align: center;
    color: #9ca3af;
    padding: 48px 32px;
    font-size: 15px;
}

/* ── Card ─────────────────────────────────────────────────────────────────── */
.wup-card {
    background: #fff;
    border-radius: 12px;
    padding: 10px 24px;
}

/* ── Avatar ───────────────────────────────────────────────────────────────── */
.wup-avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wup-avatar-circle {
    width: 100px;
    height: 100px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff8e1;
    margin-bottom: 10px;
    border-radius: 50%;
}

.wup-avatar-circle img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.wup-avatar-icon {
    color: #FFD700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wup-avatar-icon svg {
    width: 56px;
    height: 56px;
}

/* ── Photo Save / Cancel ──────────────────────────────────────────────────── */
#wup-photo-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}

.wup-btn-photo-save,
.wup-btn-photo-cancel {
    all: unset;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.15s;
}

.wup-btn-photo-save {
    background: #10b981;
    color: #fff;
}

.wup-btn-photo-cancel {
    background: #ef4444;
    color: #fff;
}

.wup-btn-photo-save:hover,
.wup-btn-photo-cancel:hover {
    opacity: 0.88;
}

.wup-btn-photo-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wup-change-photo-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #6c6c6c;
    color: #fff;
    font-size: 7px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

#wup-photo-status {
    margin-top: 8px;
    font-size: 13px;
    min-height: 18px;
    text-align: center;
}

#wup-photo-status.success { color: #10b981; }
#wup-photo-status.error   { color: #ef4444; }

/* ── Form ─────────────────────────────────────────────────────────────────── */
#wup-profile-form .wup-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.wup-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wup-field label {
    font-size: 14px;
    font-weight: 400;
    color: #212529;
}

.wup-field input {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    color: #1a1a2e;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
}

.wup-field input:focus {
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15);
}

.wup-field input[readonly] {
    background: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
}

/* ── Toast ────────────────────────────────────────────────────────────────── */
#wup-toast-wrap {
    position: fixed;
    top: 28px;
    right: 28px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.wup-toast {
    padding: 12px 20px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
    animation: wup-toast-in .3s ease;
    min-width: 220px;
    max-width: 360px;
}

.wup-toast.success { background: #10b981; }
.wup-toast.error   { background: #ef4444; }
.wup-toast.info    { background: #3b82f6; }

@keyframes wup-toast-in {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: none; }
}

/* ── Push Notification Checkbox ──────────────────────────────────────────── */
.wup-push-notif-wrap {
    margin-bottom: 16px;
}

.wup-push-notif-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    font-weight: 400;
    color: #374151;
    cursor: pointer;
    line-height: 1.5;
}

.wup-push-notif-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    padding: 0;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    cursor: pointer;
    flex-shrink: 0;
}

.wup-push-notif-label span {
    flex: 1;
}

/* strip paragraph margin that TinyMCE wraps content in */
.wup-cb-content p {
    margin: 0;
}

.wup-terms-link {
    color: #0028ff;
    text-decoration: underline;
}

.wup-terms-link:hover {
    text-decoration: none;
}

/* ── Submit ───────────────────────────────────────────────────────────────── */
.wup-submit-wrap {
    display: flex;
    justify-content: center;
}

.wup-btn-primary {
    background: #FFD700;
    color: #1a1a2e;
    border: none;
    border-radius: 6px;
    padding: 10px 40px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, transform 0.1s;
}

.wup-btn-primary:hover {
    background: #f0c800;
}

.wup-btn-primary:active {
    transform: scale(0.98);
}

.wup-btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ── Spinner ──────────────────────────────────────────────────────────────── */
.wup-btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(26, 26, 46, 0.3);
    border-top-color: #1a1a2e;
    border-radius: 50%;
    animation: wup-spin 0.7s linear infinite;
}

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

/* ── Profile Tab ───────────────────────────────────────────────────────────── */
#wup-app .wup-profile-tab {
    font-family: Arial, sans-serif;
    color: #333;
}

#wup-app .wup-profile-tab h2 {
    color: #212529;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 17px;
}

#wup-app .wup-pt-sub-text {
    margin-bottom: 20px;
    font-size: 14px;
}

#wup-app .wup-pt-link {
    color: #0028ff;
    cursor: pointer;
}

/* ── Vendor Card Grid ──────────────────────────────────────────────────────── */
#wup-app .wup-pt-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

#wup-app .wup-pt-no-vendors {
    color: #666;
    font-size: 14px;
    grid-column: 1 / -1;
}

#wup-app .wup-pt-card {
    display: block;
    background: #fff;
    border: 1px solid #ccc;
    padding: 5px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s;
}

#wup-app .wup-pt-card:hover {
    transform: translateY(-5px);
}

#wup-app .wup-pt-card img {
    width: 100%;
    height: 170px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

#wup-app .wup-pt-card-body {
    padding: 5px;
    text-align: center;
}

#wup-app .wup-pt-card-body h3 {
    margin-bottom: 5px;
    color: #212529;
    font-size: 16px;
    font-weight: 600;
}

#wup-app .wup-pt-card-body p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* ── Following / Blocked Cards ─────────────────────────────────────────────── */
#wup-app .wup-pt-follow-section {
    margin-bottom: 30px;
}

#wup-app .wup-follow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 15px;
}

#wup-app .wup-follow-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

#wup-app .wup-follow-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

#wup-app .wup-follow-name {
    font-weight: 600;
    font-size: 16px;
    color: #212529;
    text-decoration: none;
}

#wup-app .wup-follow-name:hover {
    text-decoration: underline;
}

#wup-app .wup-follow-status {
    font-size: 14px;
    color: #666;
}

#wup-app .wup-follow-action-btn {
    background: #ffd700;
    color: #212529;
    border: none;
    border-radius: 5px;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
    transition: background 0.2s;
}

#wup-app .wup-follow-action-btn:hover {
    background: #d49a1e;
}

@media (max-width: 900px) {
    #wup-app .wup-follow-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    #wup-app .wup-follow-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ── Pagination ────────────────────────────────────────────────────────────── */
#wup-app .wup-pt-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

#wup-app .wup-pt-page-btn {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    color: #212529;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
    user-select: none;
}

#wup-app .wup-pt-page-btn:hover {
    background: transparent;
}

#wup-app .wup-pt-page-btn.active {
    color: #212529;
    border-radius: 4px;
}
#wup-app .wup-pt-page-ellipsis { color: #9ca3af; padding: 0 2px; font-size: 13px; display: flex; align-items: center; }
#wup-app .wup-pt-page-btn.wup-pt-page-prev,
#wup-app .wup-pt-page-btn.wup-pt-page-next { min-width: 48px; }

/* ── Conversation Sections ─────────────────────────────────────────────────── */
/* #wup-app .wup-pt-convo-section,
#wup-app .wup-pt-activity-section {
    margin-top: 20px;
} */

#wup-app .wup-pt-convo-section h2,
#wup-app .wup-pt-activity-section h2 {
    font-size: 24px;
    font-weight: 500;
    color: #212529;
    margin-bottom: 17px;
}

#wup-app .wup-pt-empty {
    color: #666;
    font-size: 14px;
}

#wup-app .wup-pt-convo-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,.08);
    padding: 20px;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 16px;
}

#wup-app .wup-pt-cc-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#wup-app .wup-pt-cc-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: #ddd;
    display: block;
}

#wup-app .wup-pt-join-btn {
    display: inline-block;
    background: #FFD700;
    color: #212529;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;
}

#wup-app .wup-pt-join-btn:hover {
    background: #f0c800;
}

#wup-app .wup-pt-cc-title {
    font-size: 21px;
    font-weight: 400;
    color: #212529;
    margin: 0 0 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#wup-app .wup-pt-cc-title a {
    color: inherit;
    text-decoration: none;
}

#wup-app .wup-pt-cc-title a:hover {
    text-decoration: underline;
}

#wup-app .wup-pt-cc-meta {
    font-size: 12.6px;
    color: #666;
    margin: 0 0 5px;
}

#wup-app .wup-pt-cc-desc {
    font-size: 14px;
    color: #212529;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#wup-app .wup-pt-cc-footer {
    display: flex;
    gap: 12.6px;
    margin-top: 16px;
    font-size: 13px;
    color: #212529;
    flex-wrap: wrap;
}

#wup-app .wup-pt-cc-comments {
    background: #eef0f4;
    padding: 5px 15px;
    border-radius: 20px;
    color: #212529;
}

#wup-app .wup-pt-cc-lc-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

#wup-app .wup-pt-cc-lc-name {
    font-weight: 400;
    color: #212529;
}

#wup-app .wup-pt-cc-dot {
    color: #212529;
}

#wup-app .wup-pt-activity-icon i {
    font-size: 13px;
    color: #ffd700;
    padding: 0px 6px 0px 0px;
}

/* ── View More ─────────────────────────────────────────────────────────────── */
#wup-app .wup-pt-view-more-wrap {
    margin-top: 12px;
    text-align: center;
}

#wup-app .wup-pt-view-more-btn {
    all: unset;
    box-sizing: border-box;
    display: inline-block;
    padding: 10px 20px;
    background: #FFD700;
    color: #212529;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

#wup-app .wup-pt-view-more-btn:hover {
    background: #f0c800;
}

/* ── Activity Section ──────────────────────────────────────────────────────── */
#wup-app .wup-pt-activity-item {
    display: flex;
    gap: 12px;
    padding: 6px 0;
    align-items: flex-start;
}

#wup-app .wup-pt-activity-item:last-child {
    border-bottom: none;
}

#wup-app .wup-pt-activity-icon {
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

#wup-app .wup-pt-activity-text {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

#wup-app .wup-pt-activity-time {
    font-size: 12px;
    color: #808080;
    margin-top: 6px;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    #wup-app .wup-pt-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    #wup-app .wup-pt-card-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 560px) {
    .wup-card {
        padding: 28px 16px 24px;
    }

    #wup-profile-form .wup-row {
        grid-template-columns: 1fr;
    }
}

/* ── 3-Dot Menu ───────────────────────────────────────────────────────────── */
.wup-user-header {
    position: relative;
}

.wup-dots-wrap {
    position: relative;
    flex-shrink: 0;
}

.wup-dots-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    font-size: 18px;
    color: #555;
    border-radius: 50%;
    line-height: 1;
    transition: background 0.15s;
}

.wup-dots-btn:hover {
    background: #f5f5f5;
    color: #222;
}

.wup-dots-menu {
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    min-width: 148px;
    z-index: 999;
    overflow: hidden;
}

.wup-dots-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: none;
    border: none;
    padding: 10px 16px;
    font-size: 16px;
    color: #212529;
    cursor: pointer;
    text-align: left;
    transition: background 0.12s;
}

.wup-dots-item:hover {
    background: #f5f5f5;
}

.wup-dots-item i {
    color: #f0b429;
    font-size: 14px;
    width: 16px;
}

.wup-dots-danger {
    color: #c0392b;
}

.wup-dots-danger i {
    color: #c0392b;
}

.wup-hidden {
    display: none !important;
}

/* ── Unblock Confirm Modal ─────────────────────────────────────────────────── */
.wup-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}
.wup-modal-box {
    background: #fff;
    width: 360px;
    max-width: 94vw;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    overflow: hidden;
}
.wup-modal-header {
    background: #ffd700;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.wup-modal-title {
    font-weight: 600;
    font-size: 18px;
    color: #222;
}
.wup-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    line-height: 1;
    padding: 0 4px;
}
.wup-modal-body {
    padding: 20px 18px 10px;
    font-size: 14px;
    color: #333;
}
.wup-modal-footer {
    padding: 12px 18px 18px;
    display: flex;
    gap: 10px;
    justify-content: center;
}
.wup-modal-btn {
    padding: 8px 28px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.wup-modal-btn-no  { background: transparent; color: #212529; }
.wup-modal-btn-yes { background: #f0b429; color: #222; }
.wup-modal-btn:hover { opacity: .85; }
