/* === User Profile Manager — Main Stylesheet === */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* Base */
.upm-wrap { max-width: 900px; margin: 0 auto; padding: 20px; font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.upm-wrap *, .upm-wrap *::before, .upm-wrap *::after { box-sizing: border-box; }

/* ── Theme-proofing ──────────────────────────────────────────────
   Active theme stylesheets (Elementor global kit CSS especially) are
   enqueued at the same priority and can print AFTER this file in
   <head>, which silently overrides our form/button/font styling on
   equal-specificity selectors. The rules below repeat the class
   selector (.upm-wrap.upm-wrap) to raise specificity without an
   !important war on every line, and pin the properties themes most
   commonly clobber (font, box-sizing, input width/shadow). */
.upm-wrap.upm-wrap,
.upm-wrap.upm-wrap * {
    box-sizing: border-box;
}
.upm-wrap.upm-wrap,
.upm-wrap.upm-wrap input,
.upm-wrap.upm-wrap textarea,
.upm-wrap.upm-wrap select,
.upm-wrap.upm-wrap button {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}
.upm-wrap.upm-wrap input[type="text"],
.upm-wrap.upm-wrap input[type="email"],
.upm-wrap.upm-wrap input[type="password"],
.upm-wrap.upm-wrap input[type="tel"],
.upm-wrap.upm-wrap input[type="number"],
.upm-wrap.upm-wrap textarea,
.upm-wrap.upm-wrap select {
    width: 100% !important;
    box-shadow: none !important;
}

/* ── Register / Login wrapper centring ── */
.upm-register-wrap,
.upm-login-wrap {
    max-width: 600px;
    margin: 48px auto;
    padding: 0 16px;
}

/* ── Already logged in state ── */
.upm-already-logged-in {
    text-align: center;
    padding: 44px 36px 40px;
}
.upm-already-icon {
    width: 56px; height: 56px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #059669;
    font-size: 26px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #a7f3d0;
}
.upm-already-title { margin: 0 0 8px; font-size: 22px; font-weight: 800; color: #111827; letter-spacing: -.4px; }
.upm-already-sub { margin: 0 0 28px; color: #6b7280; font-size: 14.5px; }
.upm-already-sub strong { color: #111827; }
.upm-already-actions { display: flex; flex-direction: column; gap: 10px; max-width: 280px; margin: 0 auto; }

/* Card */
.upm-card {
    background: #ffffff;
    border: 1px solid #e8eaed;
    border-radius: 20px;
    padding: 40px 36px 32px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,.04), 0 12px 32px -4px rgba(0,0,0,.07);
}

/* ── Card header with accent bar ── */
.upm-card-header {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    padding-bottom: 24px;
}
.upm-card-header::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #1a56db, #1a1a2e);
    border-radius: 99px;
    margin: 16px auto 0;
}

/* Brand star mark — removed */
.upm-card-header::before {
    content: none;
}

.upm-card-header h2 { margin: 0 0 6px; font-size: 26px; font-weight: 800; color: #111827; letter-spacing: -.5px; }
.upm-card-header p  { margin: 0; color: #6b7280; font-size: 14.5px; font-weight: 400; }
.upm-card-footer { text-align: center; margin-top: 24px; font-size: 14px; color: #6b7280; }
.upm-card-footer a { color: #1a56db; text-decoration: none; font-weight: 600; transition: color .15s; }
.upm-card-footer a:hover { color: #0d47a1; text-decoration: underline; }

/* ── Divider ── */
.upm-divider {
    display: flex; align-items: center; gap: 12px;
    color: #9ca3af; font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .08em;
    margin: 4px 0;
}
.upm-divider::before, .upm-divider::after {
    content: ''; flex: 1; height: 1px; background: #e5e7eb;
}

/* Form */
.upm-form { display: flex; flex-direction: column; gap: 14px; }
.upm-form-row { display: flex; gap: 12px; }
.upm-two-col > * { flex: 1; }
.upm-field { display: flex; flex-direction: column; gap: 6px; }

.upm-field label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    letter-spacing: .01em;
}

.upm-field input,
.upm-field textarea,
.upm-field select {
    border: 1.5px solid #e0e3e8;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 15px;
    font-family: inherit;
    color: #111827;
    background: #f9fafb;
    transition: border-color .18s, box-shadow .18s, background .18s;
    width: 100%;
}

.upm-field input::placeholder,
.upm-field textarea::placeholder { color: #b0b7c3; }

.upm-field input:hover,
.upm-field textarea:hover { border-color: #c4c9d4; background: #f5f6f8; }

.upm-field input:focus,
.upm-field textarea:focus {
    outline: none;
    border-color: #1a56db;
    box-shadow: 0 0 0 3px rgba(26,86,219,.12);
    background: #fff;
}

.upm-field textarea { resize: vertical; min-height: 80px; }
.upm-field-hint { font-size: 12px; margin-top: 2px; }
.upm-field-hint.success { color: #16a34a; }
.upm-field-hint.error   { color: #dc2626; }
.upm-req { color: #ef4444; font-weight: 700; }

/* Remember me */
.upm-remember { flex-direction: row; align-items: center; gap: 8px; }
.upm-remember label {
    font-size: 14px; font-weight: 400; color: #374151;
    cursor: pointer; display: flex; align-items: center; gap: 8px;
}
.upm-remember input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: #1a56db;
    cursor: pointer;
}

/* Password toggle */
.upm-pass-wrap { position: relative; display: flex; align-items: center; }
.upm-pass-wrap input { padding-right: 46px; flex: 1; }
.upm-pass-toggle {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; padding: 4px;
    line-height: 0; color: #9ca3af; border-radius: 4px; transition: color .15s;
}
.upm-pass-toggle:hover { color: #374151; }
.upm-pass-toggle svg { display: block; pointer-events: none; }

.upm-form-actions { display: flex; gap: 12px; }
.upm-section { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px; margin-bottom: 20px; }
.upm-section h3 { margin: 0 0 16px; font-size: 18px; font-weight: 700; letter-spacing: -.2px; }
.upm-section h4 { margin: 16px 0 8px; font-size: 15px; font-weight: 700; color: #374151; }

/* ── Buttons ── */
.upm-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: 10px; font-size: 15px; font-weight: 700;
    font-family: inherit; cursor: pointer; border: 2px solid transparent;
    transition: all .18s; text-decoration: none; white-space: nowrap; letter-spacing: .01em;
}
.upm-btn-block { width: 100%; }

.upm-btn-primary {
    background: #111827;
    color: #fff;
    border-color: #1a1a2e;
    box-shadow: 0 2px 8px rgba(26,86,219,.2);
}
.upm-btn-primary:hover {
    background: #0d47a1;
    border-color: #0d47a1;
    box-shadow: 0 4px 16px rgba(26,86,219,.3);
    transform: translateY(-1px);
}
.upm-btn-primary:active { transform: translateY(0); box-shadow: none; }

.upm-btn-google {
    background: #fff;
    color: #191919;
    border-color: #dfe3ea;
    margin-bottom: 18px;
}
.upm-btn-google:hover {
    background: #f6f7f9;
    border-color: #c9ced8;
}
.upm-social-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 4px 0 16px; color: #8a8f98; font-size: 13px; font-weight: 600;
}
.upm-social-divider::before,
.upm-social-divider::after { content: ''; flex: 1; height: 1px; background: #e5e7eb; }

.upm-btn-outline { background: transparent; color: #374151; border-color: #e0e3e8; }
.upm-btn-outline:hover { background: #f9fafb; border-color: #c4c9d4; }

.upm-btn-danger { background: #dc2626; color: #fff; border-color: #dc2626; }
.upm-btn-danger:hover { background: #b91c1c; border-color: #b91c1c; }
.upm-btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* Messages */
.upm-messages { border-radius: 10px; padding: 12px 16px; font-size: 14px; margin-top: 4px; }
.upm-messages.success { background: #eff6ff; border: 1px solid #93c5fd; color: #1e40af; }
.upm-messages.error   { background: #fef2f2; border: 1px solid #fca5a5; color: #dc2626; }
.upm-messages ul { margin: 0; padding-left: 18px; }

/* Tabs */
.upm-tabs, .upm-account-nav {
    display: flex; gap: 4px;
    background: #f3f4f6;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 24px;
    border: none;
}
.upm-tab {
    flex: 1;
    background: none; border: none;
    padding: 9px 16px; font-size: 14px; font-weight: 600;
    font-family: inherit;
    color: #6b7280; cursor: pointer;
    border-radius: 8px;
    transition: all .18s;
}
.upm-tab.active { background: #fff; color: #111827; box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.upm-tab:hover:not(.active) { color: #374151; background: rgba(255,255,255,.6); }
.upm-tab-content { display: none; }
.upm-tab-content.active { display: block; }

/* Profile */
.upm-cover { height: 220px; background: linear-gradient(135deg, #1a1a2e 0%, #0d47a1 55%, #6c5ce7 100%); border-radius: 20px 20px 0 0; position: relative; overflow: hidden; margin-bottom: 0; background-size: cover; background-position: center; }
.upm-cover::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 15%, rgba(255,255,255,.16) 0%, transparent 45%), linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.25) 100%); pointer-events: none; }
.upm-cover-edit { position: absolute; bottom: 12px; right: 12px; display: flex; align-items: center; gap: 6px; background: rgba(17,24,39,.72); color: #fff; padding: 7px 14px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; backdrop-filter: blur(2px); }
.upm-icon { font-size: 13px; }

.upm-profile-card {
    background: #fff;
    border: 1px solid #e8eaed;
    border-top: none;
    border-radius: 0 0 20px 20px;
    padding: 0 28px 24px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,.04), 0 12px 32px -4px rgba(0,0,0,.07);
    margin-bottom: 20px;
}

.upm-profile-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: -58px; flex-wrap: wrap; }
.upm-avatar-wrap { position: relative; flex-shrink: 0; }
.upm-profile-avatar { width: 128px; height: 128px; border-radius: 50%; border: 5px solid #fff; object-fit: cover; background: #e5e7eb; box-shadow: 0 0 0 3px rgba(108,92,231,.35), 0 6px 20px rgba(0,0,0,.14); }
.upm-avatar-edit { position: absolute; bottom: 4px; right: 4px; background: linear-gradient(135deg,#6c5ce7,#5a4bd1); color: #fff; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.18); transition: transform .15s; }
.upm-avatar-edit:hover { transform: scale(1.08); }
.upm-profile-meta { flex: 1; padding-bottom: 6px; min-width: 180px; }
.upm-profile-meta h1 { margin: 0 0 4px; font-size: 21px; font-weight: 800; letter-spacing: -.3px; color: #111827; }
.upm-username { color: #6b7280; font-size: 13.5px; margin: 0; }
.upm-location { color: #6b7280; font-size: 14px; margin: 0 0 4px; }
.upm-profile-actions { display: flex; gap: 10px; align-items: center; padding-bottom: 6px; flex-wrap: wrap; }

/* Stats row */
.upm-profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.upm-stat-card { background: #f9fafb; border-radius: 12px; padding: 14px; text-align: center; }
.upm-stat-clickable { border: 1.5px solid transparent; cursor: pointer; font-family: inherit; width: 100%; transition: background .18s, border-color .18s, transform .12s; }
.upm-stat-clickable:hover { background: #f1efff; border-color: #d9d4ff; transform: translateY(-1px); }
.upm-stat-clickable.upm-stat-active { background: #f1efff; border-color: #6c5ce7; }
.upm-stat-clickable .upm-stat-label::after { content: ' \25be'; color: #9ca3af; font-size: 11px; }
.upm-stat-clickable.upm-stat-active .upm-stat-label::after { content: ' \25b4'; color: #6c5ce7; }
.upm-reviews-section { display: none; }
.upm-reviews-section.upm-section-open { display: block; animation: upmFadeIn .22s ease; }
.upm-stat-value { display: block; font-size: 19px; font-weight: 800; color: #111827; }
.upm-stat-label { display: block; font-size: 12px; color: #6b7280; margin-top: 2px; font-weight: 500; }

.upm-social-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.upm-social-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #f9fafb; border: 1.5px solid #e5e7eb; color: #6b7280 !important; text-decoration: none !important; transition: all .18s; }
.upm-social-icon:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,.1); }
.upm-social-icon.upm-social-web:hover { background: #eef2ff; border-color: #6366f1; color: #4338ca !important; }
.upm-social-icon.upm-social-fb:hover { background: #e7f0ff; border-color: #1877F2; color: #1877F2 !important; }
.upm-social-icon.upm-social-tw:hover { background: #f3f4f6; border-color: #111; color: #111 !important; }
.upm-social-icon.upm-social-ig:hover { background: #fdf2f8; border-color: #d6249f; color: #d6249f !important; }
.upm-social-icon.upm-social-li:hover { background: #e8f3ff; border-color: #0a66c2; color: #0a66c2 !important; }

/* Reviews written on profile */
.upm-section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.upm-section-heading h3 { margin: 0; }
.upm-section-count { font-size: 12.5px; color: #9ca3af; font-weight: 500; }
.upm-review-item { padding: 16px 0; border-top: 1px solid #f1f2f4; }
.upm-review-item:first-of-type { border-top: none; padding-top: 0; }
.upm-review-item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.upm-review-company { margin: 0 0 4px; font-size: 14.5px; font-weight: 700; color: #111827; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.upm-review-company a { color: #111827; text-decoration: none; }
.upm-review-company a:hover { color: #1a56db; text-decoration: underline; }
.upm-review-excerpt { margin: 8px 0 0; font-size: 13.5px; color: #4b5563; line-height: 1.5; display: none; }
.upm-review-item.upm-review-open .upm-review-excerpt { display: block; animation: upmFadeIn .18s ease; }
@keyframes upmFadeIn { from { opacity: 0; transform: translateY(-2px); } to { opacity: 1; transform: translateY(0); } }
.upm-review-date { margin: 8px 0 0; font-size: 12px; color: #9ca3af; }
.upm-review-toggle { display: inline-flex; align-items: center; gap: 5px; background: #f1efff; color: #6c5ce7; border: none; border-radius: 20px; padding: 5px 14px; font-size: 12.5px; font-weight: 700; cursor: pointer; margin-top: 6px; transition: background .15s, color .15s; font-family: inherit; }
.upm-review-toggle:hover { background: #6c5ce7; color: #fff; }
.upm-review-toggle .upm-review-toggle-arrow { display: inline-block; transition: transform .2s; font-size: 10px; }
.upm-review-item.upm-review-open .upm-review-toggle .upm-review-toggle-arrow { transform: rotate(180deg); }
.upm-review-delete { flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 14px; color: #dc2626; background: #fef2f2; transition: background .15s; }
.upm-review-delete:hover { background: #fee2e2; }

.upm-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 20px; }
.upm-badge-pending { background: #fffbeb; color: #b45309; border: 1px solid #fcd34d; }

/* Directory */
.upm-directory-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.upm-directory-header h2 { margin: 0; font-size: 26px; font-weight: 700; }
.upm-search-bar { flex: 1; max-width: 400px; }
.upm-search-bar input { width: 100%; border: 1.5px solid #e0e3e8; border-radius: 24px; padding: 10px 20px; font-size: 15px; background: #f9fafb; transition: border-color .2s, box-shadow .2s; }
.upm-search-bar input:focus { outline: none; border-color: #1a1a2e; box-shadow: 0 0 0 3px rgba(26,86,219,.12); background: #fff; }
.upm-member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.upm-member-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.upm-member-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-2px); }
.upm-member-card a { text-decoration: none; color: inherit; display: block; }
.upm-member-avatar { height: 160px; overflow: hidden; background: #f3f4f6; }
.upm-member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.upm-member-info { padding: 14px; }
.upm-member-info h3 { margin: 0 0 5px; font-size: 16px; font-weight: 600; color: #111; }
.upm-member-info .upm-location { font-size: 13px; color: #6b7280; margin: 0 0 5px; }
.upm-member-info .upm-bio { font-size: 13px; color: #6b7280; margin: 0; }
.upm-no-results { text-align: center; padding: 60px 20px; color: #6b7280; grid-column: 1/-1; }

/* Pagination */
.upm-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
.upm-page-btn { background: #fff; border: 1.5px solid #e5e7eb; border-radius: 8px; padding: 8px 14px; font-size: 14px; font-weight: 600; cursor: pointer; color: #374151; transition: all .2s; }
.upm-page-btn:hover { border-color: #1a56db; color: #1a56db; }
.upm-page-btn.active { background: #1a56db; border-color: #1a56db; color: #fff; }

/* Danger zone */
.upm-danger-item { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px; background: #fef2f2; border: 1px solid #fca5a5; border-radius: 8px; flex-wrap: wrap; }

/* Loading */
.upm-loading { text-align: center; padding: 60px; color: #9ca3af; font-size: 16px; grid-column: 1/-1; }

/* Responsive */
@media (max-width: 640px) {
    .upm-form-row { flex-direction: column; }
    .upm-profile-header { flex-direction: column; align-items: flex-start; }
    .upm-profile-actions { padding-top: 0; }
    .upm-profile-stats { grid-template-columns: 1fr; }
    .upm-review-item { flex-direction: column; }
    .upm-directory-header { flex-direction: column; align-items: stretch; }
    .upm-search-bar { max-width: 100%; }
    .upm-card { padding: 20px; }
}


/* ================================================================
   UPM FIX: Hide WordPress Admin Bar for Frontend Users
   The PHP show_admin_bar(false) handles it — this CSS is a
   safety net in case any theme/plugin re-enables it.
   The body class .upm-frontend-user is added by the plugin's JS
   enqueue (see below). We also target #wpadminbar directly.
   ================================================================ */

body.upm-hide-adminbar #wpadminbar {
    display: none !important;
}

body.upm-hide-adminbar {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ================================================================
   UPM Account Page — Redesign
   ================================================================ */

.upm-account-wrap { max-width: 720px; margin: 0 auto; padding: 24px 16px; }

/* Account Header */
.upm-account-header {
    display: flex; align-items: center; gap: 16px;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
    padding: 20px 24px; margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.upm-account-avatar {
    width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
    background: linear-gradient(135deg, #1a1a2e, #1a56db);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 22px; font-weight: 700; border: 3px solid #e5e7eb;
}
.upm-account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.upm-account-header h2 { margin: 0 0 4px; font-size: 20px; font-weight: 700; letter-spacing: -.2px; color: #111827; }
.upm-account-email { margin: 0; color: #6b7280; font-size: 14px; }

/* Tabs */
.upm-account-tabs {
    display: flex; gap: 4px; background: #f3f4f6; border-radius: 10px;
    padding: 4px; margin-bottom: 20px;
}
.upm-account-tabs .upm-tab {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 16px; border: none; border-radius: 8px; font-size: 14px;
    font-weight: 500; cursor: pointer; background: transparent; color: #6b7280;
    transition: all .2s;
}
.upm-account-tabs .upm-tab.active {
    background: #fff; color: #111827; box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

/* Settings Card */
.upm-settings-card {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
    overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.upm-settings-card-header {
    padding: 20px 24px 0; border-bottom: 1px solid #f3f4f6; margin-bottom: 0;
}
.upm-settings-card-header h3 { margin: 0 0 6px; font-size: 16px; color: #111827; }
.upm-settings-card-header p { margin: 0 0 16px; color: #6b7280; font-size: 14px; }
.upm-settings-card .upm-form { padding: 20px 24px 24px; }
.upm-settings-card #upm-password-messages { margin: 0 0 12px; }

/* Danger Card */
.upm-danger-card { border-color: #fca5a5 !important; }
.upm-danger-card .upm-settings-card-header { background: #fff5f5; border-bottom-color: #fca5a5; }
.upm-danger-card .upm-settings-card-header h3 { color: #dc2626; }

.upm-danger-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; padding: 20px 24px; flex-wrap: wrap;
}
.upm-danger-info strong { display: block; color: #111827; font-size: 15px; margin-bottom: 4px; }
.upm-danger-info p { margin: 0; color: #6b7280; font-size: 13px; max-width: 420px; }

/* Modal */
.upm-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 99999;
    display: flex; align-items: center; justify-content: center; padding: 16px;
}
.upm-modal-box {
    background: #fff; border-radius: 16px; padding: 32px 28px; max-width: 420px;
    width: 100%; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.2);
    animation: upm-modal-in .2s ease;
}
@keyframes upm-modal-in {
    from { transform: scale(.92) translateY(12px); opacity: 0; }
    to   { transform: scale(1)   translateY(0);    opacity: 1; }
}
.upm-modal-icon { font-size: 40px; margin-bottom: 12px; }
.upm-modal-box h3 { margin: 0 0 10px; font-size: 20px; color: #111827; }
.upm-modal-box p  { color: #6b7280; font-size: 14px; margin: 0 0 10px; }
.upm-modal-box #upm-delete-confirm-input {
    width: 100%; box-sizing: border-box; padding: 10px 14px; border: 2px solid #e5e7eb;
    border-radius: 8px; font-size: 14px; margin: 6px 0 18px; text-align: center;
    letter-spacing: 2px; font-weight: 700; transition: border-color .2s;
}
.upm-modal-box #upm-delete-confirm-input:focus { outline: none; border-color: #dc2626; }
.upm-modal-actions { display: flex; gap: 10px; justify-content: center; }
.upm-modal-actions .upm-btn { min-width: 120px; }
.upm-btn-outline {
    background: #fff; color: #374151; border: 1px solid #d1d5db;
}
.upm-btn-outline:hover { background: #f9fafb; }

/* ===== OTP Styles ===== */
.upm-phone-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.upm-phone-input-row input[type="tel"] {
    flex: 1;
    min-width: 120px;
}
.upm-country-select {
    flex: 0 0 auto;
    max-width: 150px;
    padding: 12px 10px;
    border: 1.5px solid #e0e3e8;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    background: #fff;
    color: #111827;
    cursor: pointer;
}
.upm-country-select:focus { outline: none; border-color: #1a56db; }
.upm-country-custom {
    flex: 0 0 70px;
    width: 70px;
    padding: 12px 10px;
    border: 1.5px solid #e0e3e8;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    text-align: center;
}
.upm-country-custom:focus { outline: none; border-color: #1a56db; }
.upm-btn-sm {
    padding: 10px 16px !important;
    font-size: 13px !important;
    white-space: nowrap;
    min-width: 100px;
}
.upm-otp-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.upm-otp-inputs {
    display: flex;
    gap: 8px;
}
.upm-otp-digit {
    width: 44px !important;
    height: 48px !important;
    text-align: center !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    border: 2px solid #d1d5db !important;
    border-radius: 8px !important;
    padding: 0 !important;
    transition: border-color .2s, box-shadow .2s;
    background: #fff;
}
.upm-otp-digit:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,.15) !important;
    outline: none !important;
}
.upm-otp-digit:disabled {
    background: #f3f4f6 !important;
    color: #6b7280 !important;
}
.upm-otp-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}
.upm-otp-timer {
    font-size: 12px;
    color: #f59e0b;
    font-weight: 500;
}
.upm-link-btn {
    background: none;
    border: none;
    color: #6366f1;
    cursor: pointer;
    font-size: 13px;
    text-decoration: underline;
    padding: 0;
}
.upm-link-btn:hover { color: #4f46e5; }
.upm-field-hint.success { color: #10b981; font-size: 12px; margin-top: 4px; display: block; }
.upm-field-hint.error   { color: #ef4444; font-size: 12px; margin-top: 4px; display: block; }
.upm-field input[readonly] { background: #f3f4f6; color: #6b7280; cursor: default; }
