/* ═══════════════════════════════════════════════════
   UNIFIED MODAL — Theme-Adaptive Premium Design
   ═══════════════════════════════════════════════════ */

/* ── Core Variables & Shell ── */
.unified-modal {
    --glow: var(--color-accent-rgb, 102, 126, 234);
    --glow-alt: var(--color-accent-rgb, 118, 75, 162);
    --accent: var(--color-accent, #667eea);
    --accent-dark: color-mix(in srgb, var(--accent) 70%, #000);
    --g-xs: 0 0 8px rgba(var(--glow), .1);
    --g-sm: 0 0 14px rgba(var(--glow), .12);
    --g-md: 0 0 20px rgba(var(--glow), .15);
    background: var(--color-bg-primary, #0a0a0f);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,.6), 0 0 1px rgba(255,255,255,.05);
    position: relative;
}

/* Ambient glow */
.unified-modal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(var(--glow),.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.unified-modal .modal-body {
    padding: 1.25rem 1.75rem 1.5rem;
    position: relative;
    z-index: 1;
}

/* ── Close Button — Glassmorphism ── */
.unified-modal .btn-close {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    width: 34px; height: 34px;
    padding: 0; opacity: 1;
    position: absolute; top: 12px; right: 12px; z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    transition: all .25s cubic-bezier(.4,0,.2,1);
}

.unified-modal .btn-close::before,
.unified-modal .btn-close::after {
    content: '';
    position: absolute;
    width: 14px; height: 1.5px;
    background: rgba(255,255,255,.5);
    top: 50%; left: 50%;
    border-radius: 2px;
    transition: all .25s cubic-bezier(.4,0,.2,1);
}
.unified-modal .btn-close::before { transform: translate(-50%,-50%) rotate(45deg); }
.unified-modal .btn-close::after  { transform: translate(-50%,-50%) rotate(-45deg); }

.unified-modal .btn-close:hover {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.2);
    transform: rotate(90deg);
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.unified-modal .btn-close:hover::before,
.unified-modal .btn-close:hover::after { background: rgba(255,255,255,.9); width: 15px; }
.unified-modal .btn-close:active { transform: rotate(90deg) scale(.9); background: rgba(255,255,255,.15); }

/* Light theme close */
[data-theme="light"] .unified-modal .btn-close { background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.08); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
[data-theme="light"] .unified-modal .btn-close::before,
[data-theme="light"] .unified-modal .btn-close::after { background: rgba(0,0,0,.35); }
[data-theme="light"] .unified-modal .btn-close:hover { background: rgba(0,0,0,.08); border-color: rgba(0,0,0,.12); }
[data-theme="light"] .unified-modal .btn-close:hover::before,
[data-theme="light"] .unified-modal .btn-close:hover::after { background: rgba(0,0,0,.7); }

/* ── Tab Navigation ── */
.unified-tabs {
    display: flex; gap: 2px;
    margin-bottom: 1.5rem;
    position: relative;
    background: rgba(255,255,255,.03);
    border-radius: 14px;
    padding: 4px;
    border: 1px solid rgba(255,255,255,.06);
}

.unified-tabs .tab-indicator {
    position: absolute;
    height: calc(100% - 8px); top: 4px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    box-shadow: 0 2px 10px rgba(var(--glow),.3), 0 1px 4px rgba(var(--glow),.2);
    transition: left .35s cubic-bezier(.4,0,.2,1), width .35s cubic-bezier(.4,0,.2,1);
    z-index: 0; pointer-events: none;
}

.unified-tab {
    flex: 1; background: transparent; border: none;
    padding: 10px 6px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 2px;
    color: var(--text-secondary);
    cursor: pointer; border-radius: 10px;
    position: relative; z-index: 1;
    transition: color .25s ease;
}
.unified-tab span.tab-label { font-size: .6rem; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; white-space: nowrap; }
.unified-tab i { font-size: 1.05rem; transition: transform .3s cubic-bezier(.34,1.56,.64,1), color .25s ease; }
.unified-tab:hover { color: var(--text-primary); }
.unified-tab:hover i { transform: scale(1.15); }
.unified-tab.active { color: #fff; }
.unified-tab.active i { filter: drop-shadow(0 0 4px rgba(255,255,255,.5)); }

/* Tab tooltip */
.unified-tab::after {
    content: attr(title);
    position: absolute; bottom: calc(100% + 8px); left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: 5px 10px;
    background: rgba(15,23,42,.95); color: #f1f5f9;
    font-size: .7rem; font-weight: 600; letter-spacing: .3px; white-space: nowrap;
    border-radius: 6px; pointer-events: none;
    opacity: 0; z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
    transition: opacity .2s ease, transform .2s ease;
}
.unified-tab:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* PM badge */
.pm-tab-badge {
    position: absolute; top: 2px; right: 2px;
    min-width: 16px; height: 16px; padding: 0 4px;
    font-size: .6rem; font-weight: 700; line-height: 16px;
    text-align: center; color: #fff;
    background: #ef4444; border-radius: 8px;
    pointer-events: none; z-index: 2;
    box-shadow: 0 2px 6px rgba(239,68,68,.4);
}

/* ── Tab Content ── */
.tab-content-wrapper {
    position: relative;
    height: 460px;
    overflow-y: auto; overflow-x: hidden;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--glow),.2) transparent;
}
#profileModal .tab-content-wrapper { height: min(80vh - 120px, 700px); min-height: 350px; }

.tab-content-wrapper::-webkit-scrollbar { width: 6px; }
.tab-content-wrapper::-webkit-scrollbar-track { background: rgba(255,255,255,.03); border-radius: 10px; }
.tab-content-wrapper::-webkit-scrollbar-thumb { background: rgba(var(--glow),.3); border-radius: 10px; }
.tab-content-wrapper::-webkit-scrollbar-thumb:hover { background: rgba(var(--glow),.5); }

.tab-pane { display: none; opacity: 0; transform: translateY(8px); }
.tab-pane.active { display: block; animation: tabFadeIn .3s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes tabFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ── Tab Header ── */
.tab-header { text-align: center; margin-bottom: .75rem; position: relative; }
.tab-header::after {
    content: '';
    position: absolute; bottom: -6px; left: 50%;
    transform: translateX(-50%);
    width: 30px; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(var(--glow),.6), transparent);
    border-radius: 2px;
}
.tab-header h4 {
    color: var(--text-primary);
    font-size: 1rem; font-weight: 700; margin-bottom: .2rem;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.tab-header h4 i {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; font-size: .95rem;
}
.tab-header p { color: var(--text-secondary); font-size: .75rem; margin: 0; }

/* ── Form Styles ── */
.unified-form { max-width: 480px; margin: 0 auto; }
.form-group { margin-bottom: .7rem; position: relative; }
.form-row-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.form-row-between .text-link { font-size: .78rem; }
.form-row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }

.form-checks-row {
    display: flex; align-items: center; gap: 16px;
    padding: 8px 12px;
    background: rgba(255,255,255,.03);
    border-radius: 8px; border: 1px solid rgba(255,255,255,.05);
}
.form-checks-row .form-check-label { font-size: .78rem; }

.form-label {
    font-size: .75rem; font-weight: 600; margin-bottom: 4px;
    display: flex; align-items: center; gap: 4px; opacity: .7; letter-spacing: .2px;
}
.form-label i { font-size: .7rem; }

.input-icon { position: relative; }
.input-icon i {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: var(--text-secondary); font-size: .8rem; z-index: 2;
    transition: color .2s ease;
}
.input-icon .form-control, .input-icon select { padding-left: 42px; }
.input-icon:focus-within i { color: var(--accent); }

.unified-form .form-control, .unified-form select {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: .82rem;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.unified-form .form-control::placeholder { color: var(--text-secondary); opacity: .5; font-size: .8rem; }
.unified-form .form-control:focus, .unified-form select:focus {
    background: rgba(255,255,255,.07);
    border-color: rgba(var(--glow),.4);
    box-shadow: 0 0 0 2px rgba(var(--glow),.08);
    outline: none;
}
.unified-form textarea.form-control { resize: vertical; min-height: 70px; padding: 9px 12px; line-height: 1.5; }

.form-hint {
    display: flex; align-items: center; gap: 3px;
    color: var(--text-secondary);
    font-size: .65rem; margin-top: 3px; padding-left: 4px; opacity: .6;
}
.form-hint i { font-size: .6rem; }

/* ── Checkboxes & Toggle Switch ── */
.form-check { padding-left: 1.7rem; }
.form-check-input {
    width: 17px; height: 17px; margin-top: .1rem;
    background-color: rgba(255,255,255,.1);
    border: 1.5px solid rgba(255,255,255,.35);
    border-radius: 5px; cursor: pointer;
    transition: all .3s ease;
}
.form-check-input:checked {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-color: rgba(var(--glow),.6);
    box-shadow: 0 2px 8px rgba(var(--glow),.4), var(--g-sm);
}
.form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(var(--glow),.15), var(--g-xs);
    border-color: rgba(var(--glow),.5);
}
.form-check-label { color: var(--text-secondary); font-size: .82rem; cursor: pointer; font-weight: 500; margin-left: .5rem; }

/* iOS Toggle */
.unified-modal .form-switch { padding-left: 3rem; min-height: 1.6rem; }
.unified-modal .form-switch .form-check-input {
    width: 40px; height: 22px;
    margin-left: -3rem; margin-top: 0;
    border-radius: 11px; border: none;
    background-color: rgba(255,255,255,.12);
    background-image: none; appearance: none; -webkit-appearance: none;
    position: relative; cursor: pointer;
    transition: background-color .3s cubic-bezier(.4,0,.2,1), box-shadow .3s;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.3), 0 0 0 1px rgba(255,255,255,.08);
}
.unified-modal .form-switch .form-check-input::before {
    content: '';
    position: absolute; top: 2px; left: 2px;
    width: 18px; height: 18px; border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.3), 0 0 1px rgba(0,0,0,.1);
    transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s;
}
.unified-modal .form-switch .form-check-input:checked {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    box-shadow: inset 0 1px 3px rgba(0,0,0,.15), 0 0 12px rgba(var(--glow),.35), 0 0 0 1px rgba(var(--glow),.3);
    background-image: none;
}
.unified-modal .form-switch .form-check-input:checked::before {
    transform: translateX(18px);
    box-shadow: 0 1px 6px rgba(var(--glow),.4), 0 0 1px rgba(0,0,0,.1);
}
.unified-modal .form-switch .form-check-input:focus {
    box-shadow: inset 0 1px 3px rgba(0,0,0,.3), 0 0 0 3px rgba(var(--glow),.2); outline: none;
}
.unified-modal .form-switch .form-check-input:active::before { width: 22px; }
.unified-modal .form-switch .form-check-input:checked:active::before { transform: translateX(14px); }

/* ── Links ── */
.text-link {
    color: var(--accent); text-decoration: none;
    font-weight: 600; position: relative;
    transition: all .3s ease;
}
.text-link::after {
    content: '';
    position: absolute; bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    transition: width .3s ease;
}
.text-link:hover { color: var(--accent-dark); }
.text-link:hover::after { width: 100%; }

/* ── Captcha ── */
.captcha-wrapper { display: flex; gap: 12px; align-items: center; }
.captcha-img {
    height: 50px; border-radius: 10px;
    border: 1.5px solid rgba(var(--glow),.15);
    box-shadow: 0 2px 8px rgba(0,0,0,.15), var(--g-xs);
    transition: all .3s ease;
}
.captcha-img:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(0,0,0,.2), var(--g-md); }
.captcha-wrapper .form-control { flex: 1; }
.captcha-wrapper .btn {
    padding: 12px 16px; border-radius: 10px;
    border: 1.5px solid rgba(var(--glow),.12);
    background: rgba(255,255,255,.05); color: var(--text-primary);
    transition: all .3s ease;
}
.captcha-wrapper .btn:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(var(--glow),.4);
    transform: rotate(180deg);
    box-shadow: var(--g-sm);
}

/* ── Response Time Badge ── */
.response-time {
    text-align: center; margin-top: 1.75rem;
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(var(--glow),.1), rgba(var(--glow-alt),.1));
    border-radius: 14px;
    border: 1px solid rgba(var(--glow),.2);
    color: var(--text-secondary);
    font-size: .9rem; font-weight: 500;
    box-shadow: 0 2px 8px rgba(var(--glow),.1), var(--g-xs);
    animation: glowSoft 4s ease-in-out infinite;
}
.response-time i { color: var(--accent); margin-right: 8px; animation: pulse 2s ease-in-out infinite; }
.response-time strong { color: var(--accent); font-weight: 700; }

/* ── Alert Toasts ── */
#alertContainer {
    position: fixed; top: 20px; right: 20px;
    z-index: 99999; max-width: 400px; pointer-events: none;
}
.custom-alert {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 16px 20px; margin-bottom: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
    display: flex; align-items: center; gap: 12px;
    animation: slideInRight .4s cubic-bezier(.68,-.55,.265,1.55);
    pointer-events: auto; min-width: 320px;
    backdrop-filter: blur(10px);
}
.custom-alert-icon { font-size: 24px; flex-shrink: 0; }
.custom-alert-content { flex: 1; color: #f8fafc; font-size: .95rem; line-height: 1.4; }
.custom-alert-close {
    background: none; border: none; color: #94a3b8;
    font-size: 20px; cursor: pointer; padding: 0;
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px; flex-shrink: 0;
    transition: all .2s ease;
}
.custom-alert-close:hover { background: rgba(255,255,255,.1); color: #f8fafc; }

/* Alert variants */
.custom-alert.alert-success { border-left: 4px solid #10b981; background: linear-gradient(135deg, rgba(16,185,129,.1), rgba(5,150,105,.05)); box-shadow: 0 8px 32px rgba(0,0,0,.4), 0 0 20px rgba(16,185,129,.12); }
.custom-alert.alert-error   { border-left: 4px solid #ef4444; background: linear-gradient(135deg, rgba(239,68,68,.1), rgba(220,38,38,.05));   box-shadow: 0 8px 32px rgba(0,0,0,.4), 0 0 20px rgba(239,68,68,.12); }
.custom-alert.alert-warning { border-left: 4px solid #f59e0b; background: linear-gradient(135deg, rgba(245,158,11,.1), rgba(217,119,6,.05));  box-shadow: 0 8px 32px rgba(0,0,0,.4), 0 0 20px rgba(245,158,11,.12); }
.custom-alert.alert-info    { border-left: 4px solid #3b82f6; background: linear-gradient(135deg, rgba(59,130,246,.1), rgba(37,99,235,.05));   box-shadow: 0 8px 32px rgba(0,0,0,.4), 0 0 20px rgba(59,130,246,.12); }
.custom-alert.alert-success .custom-alert-icon { color: #10b981; }
.custom-alert.alert-error   .custom-alert-icon { color: #ef4444; }
.custom-alert.alert-warning .custom-alert-icon { color: #f59e0b; }
.custom-alert.alert-info    .custom-alert-icon { color: #3b82f6; }

/* ── Buttons ── */
.unified-form .btn-lg {
    padding: 14px 20px; font-size: .95rem; font-weight: 700;
    border-radius: 12px; margin-top: .5rem;
    position: relative; overflow: hidden;
    border: none; letter-spacing: .3px;
    box-shadow: 0 4px 12px rgba(var(--glow),.2), 0 1px 4px rgba(0,0,0,.2);
    transition: all .3s cubic-bezier(.4,0,.2,1);
}
.unified-form .btn-lg::before {
    content: ''; position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
    transition: left .6s ease;
}
.unified-form .btn-lg:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(var(--glow),.25), 0 2px 6px rgba(0,0,0,.2); }
.unified-form .btn-lg:hover::before { left: 100%; }
.unified-form .btn-lg:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(var(--glow),.2); }
.unified-form .btn-lg i { margin-right: 8px; transition: transform .3s ease; }
.unified-form .btn-lg:hover i { transform: scale(1.1); }

.btn-outline-primary {
    background: rgba(var(--glow),.1);
    border: 1.5px solid rgba(var(--glow),.3);
    color: var(--accent);
    font-size: .85rem; font-weight: 600;
    padding: 10px 16px; border-radius: 10px;
    transition: all .3s ease;
    box-shadow: var(--g-xs);
}
.btn-outline-primary:hover {
    background: rgba(var(--glow),.2);
    border-color: rgba(var(--glow),.5);
    color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--glow),.2), var(--g-sm);
}
.btn-outline-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.btn-success { background: linear-gradient(135deg, #22c55e, #16a34a) !important; border: none !important; color: white !important; }
.text-success { color: #22c55e !important; }

/* Loading spinner */
.btn-lg.loading { pointer-events: none; color: transparent !important; }
.btn-lg.loading::after {
    content: ''; position: absolute;
    width: 20px; height: 20px;
    top: 50%; left: 50%;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%; border-top-color: #fff;
    animation: spin .8s linear infinite;
}

/* ── Alerts (inline) ── */
.alert {
    border-radius: 10px; padding: 10px 14px; margin-bottom: 1rem;
    font-size: .8rem; border: none; font-weight: 500;
    display: flex; align-items: center; gap: 10px;
    animation: slideDown .4s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.alert i { font-size: 1.2rem; }
.alert-danger  { background: linear-gradient(135deg, rgba(239,68,68,.15), rgba(220,38,38,.1)); color: #fca5a5; border-left: 4px solid #ef4444; box-shadow: 0 4px 12px rgba(0,0,0,.1), 0 0 16px rgba(239,68,68,.1); }
.alert-success { background: linear-gradient(135deg, rgba(34,197,94,.15), rgba(22,163,74,.1));  color: #86efac; border-left: 4px solid #22c55e; box-shadow: 0 4px 12px rgba(0,0,0,.1), 0 0 16px rgba(34,197,94,.1); }

/* ── Keyframes ── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slideInRight { from { transform: translateX(400px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOutRight { from { transform: translateX(0); opacity: 1; } to { transform: translateX(400px); opacity: 0; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes glowSoft {
    0%, 100% { box-shadow: 0 2px 8px rgba(var(--glow),.1), var(--g-xs); border-color: rgba(var(--glow),.2); }
    50% { box-shadow: 0 2px 8px rgba(var(--glow),.15), var(--g-sm); border-color: rgba(var(--glow),.3); }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */

@media (min-width: 1440px) { #profileModal .modal-dialog { max-width: 980px; } }
@media (min-width: 1200px) { #profileModal .modal-dialog { max-width: 920px; } #profileModal .tab-content-wrapper { height: min(82vh - 120px, 750px); } }
@media (min-width: 992px) and (max-width: 1199.98px) { #profileModal .modal-dialog { max-width: 850px; } }
@media (min-width: 768px) and (max-width: 991.98px) { #profileModal .modal-dialog { max-width: 90%; } #profileModal .tab-content-wrapper { height: min(75vh - 100px, 600px); } }

@media (min-width: 577px) and (max-width: 767.98px) {
    #profileModal .modal-dialog { max-width: 95%; margin: .5rem auto; }
    #profileModal .tab-content-wrapper { height: min(70vh - 90px, 550px); }
    .unified-modal .modal-body { padding: 1rem 1.25rem 1.25rem; }
}

@media (max-width: 576px) {
    #profileModal .modal-dialog { max-width: 100%; margin: .25rem; }
    #profileModal .tab-content-wrapper { height: calc(100dvh - 160px); min-height: 300px; }
    .unified-modal { border-radius: 16px; }
    .unified-modal .modal-body { padding: .75rem 1rem 1rem; }
    .unified-tabs { padding: 3px; gap: 1px; margin-bottom: 1rem; }
    .unified-tab { padding: 8px 3px; }
    .unified-tab i { font-size: .95rem; }
    .unified-tab span.tab-label { font-size: .5rem; letter-spacing: 0; }
    .unified-tab::after { display: none; }
    .tab-header h4 { font-size: .9rem; }
    .tab-header p { font-size: .7rem; }
    .unified-form { max-width: 100%; }
    .captcha-wrapper { flex-wrap: wrap; }
    .captcha-img { flex: 1 1 auto; width: 100%; max-width: 180px; }
    .captcha-wrapper .form-control { flex: 1 1 auto; min-width: 120px; }
}

@media (max-width: 480px) { .form-row-2col { grid-template-columns: 1fr; gap: 0; } }

@media (max-width: 400px) {
    .unified-tab span.tab-label { display: none; }
    #profileModal .modal-dialog { margin: 0; }
    .unified-modal { border-radius: 0; min-height: 100dvh; }
    .unified-modal::before { height: 200px; }
    #profileModal .tab-content-wrapper { height: calc(100dvh - 140px); min-height: 280px; }
    .unified-modal .modal-body { padding: .5rem .75rem .75rem; }
    .unified-tabs { border-radius: 10px; margin-bottom: .75rem; }
    .tab-header h4 { font-size: .85rem; }
}
