/* ============================================================
   Website Builder -- User Panel CSS
   100% custom design. Bootstrap 5 base. No third-party themes.
   Font: IBM Plex Sans (matches admin panel)
   ============================================================ */

/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --up-primary:       #4f46e5;
    --up-primary-hover: #4338ca;
    --up-primary-rgb:   79, 70, 229;
    --up-sidebar-bg:    #0f172a;
    --up-sidebar-text:  #94a3b8;
    --up-sidebar-hover: rgba(255,255,255,.08);
    --up-sidebar-w:     260px;
    --up-topbar-h:      60px;
    --up-body-bg:       #f1f5f9;
    --up-card-shadow:   0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.05);
    --up-radius:        10px;
    --up-radius-sm:     6px;
    --up-font:          'IBM Plex Sans', 'Inter UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; }
body {
    font-family: var(--up-font);
    font-weight: 400;
    font-size: 1rem;
    background-color: var(--up-body-bg);
    color: #1e293b;
    min-height: 100%;
    margin: 0;
}

/* ===== SIDEBAR ===== */
.up-sidebar {
    position: fixed;
    top: 0; left: 0;
    width: var(--up-sidebar-w);
    height: 100vh;
    background: var(--up-sidebar-bg);
    display: flex;
    flex-direction: column;
    z-index: 1040;
    overflow: hidden;
    transition: transform .25s ease;
}
.up-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: var(--up-topbar-h);
    border-bottom: 1px solid rgba(255,255,255,.06);
    flex-shrink: 0;
}
.up-sidebar-logo img {
    max-height: 32px;
    max-width: 140px;
    object-fit: contain;
}
.up-sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    line-height: 1;
    align-items: center;
    justify-content: center;
}
.up-sidebar-toggle:hover { background: var(--up-sidebar-hover); color: #fff; }
.up-sidebar-toggle svg { width: 18px; height: 18px; }
.up-sidebar-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 0 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.1) transparent;
}
.up-sidebar-body::-webkit-scrollbar { width: 4px; }
.up-sidebar-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; }
/* ===== TOPBAR USER DROPDOWN ===== */
.up-user-menu { position: relative; }
.up-user-trigger {
    display: flex; align-items: center; gap: 9px;
    background: transparent; border: none; cursor: pointer;
    padding: 5px 8px; border-radius: 10px;
    transition: background .15s;
}
.up-user-trigger:hover { background: #f1f5f9; }
.up-user-avatar {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    overflow: hidden; background: var(--up-primary);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: .98rem;
    border: 2px solid #e2e8f0;
}
.up-user-avatar--lg { width: 40px; height: 40px; font-size: 1.1rem; }
.up-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.up-user-info { display: flex; flex-direction: column; text-align: left; line-height: 1.25; }
.up-user-name  { font-size: .84rem; font-weight: 700; color: #1e293b; white-space: nowrap; }
.up-user-handle { font-size: .76rem; color: #94a3b8; white-space: nowrap; }
.up-user-caret {
    width: 14px; height: 14px; color: #94a3b8; flex-shrink: 0;
    transition: transform .2s;
}
.up-user-trigger[aria-expanded=true] .up-user-caret { transform: rotate(180deg); }
/* Dropdown panel */
.up-user-dropdown {
    display: none;
    position: absolute; top: calc(100% + 8px); right: 0;
    min-width: 220px;
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(15,23,42,.12);
    z-index: 1100;
    overflow: hidden;
}
.up-user-dropdown.show { display: block; animation: upDropIn .15s ease; }
@keyframes upDropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.up-user-dropdown-header {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px 12px;
    background: linear-gradient(135deg,#f8fafc,#f1f5f9);
    border-bottom: 1px solid #e2e8f0;
}
.up-user-dropdown-name  { font-size: .84rem; font-weight: 700; color: #0f172a; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.up-user-dropdown-email { font-size: .75rem; color: #94a3b8; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.up-user-dropdown-body  { padding: 6px 0; }
.up-user-dropdown-footer { padding: 6px 0 0; border-top: 1px solid #f1f5f9; }
.up-user-dropdown-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 16px; font-size: .82rem; font-weight: 500;
    color: #374151; text-decoration: none;
    transition: background .12s, color .12s;
}
.up-user-dropdown-item svg { width: 16px; height: 16px; flex-shrink: 0; color: #94a3b8; transition: color .12s; }
.up-user-dropdown-item:hover { background: #f8fafc; color: var(--up-primary); }
.up-user-dropdown-item:hover svg { color: var(--up-primary); }
.up-user-dropdown-item.active { color: var(--up-primary); background: #eff6ff; }
.up-user-dropdown-item.active svg { color: var(--up-primary); }
.up-user-dropdown-item--danger { color: #ef4444; margin-bottom: 6px; }
.up-user-dropdown-item--danger svg { color: #fca5a5; }
.up-user-dropdown-item--danger:hover { background: #fff5f5; color: #dc2626; }
.up-user-dropdown-item--danger:hover svg { color: #dc2626; }
.up-nav-label {
    font-size: .76rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    color: #475569; padding: 16px 20px 5px; margin: 0;
}
.up-nav { list-style: none; margin: 0; padding: 0; }
.up-nav-item { position: relative; }
.up-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px;
    color: var(--up-sidebar-text);
    text-decoration: none;
    font-size: .84rem;
    font-weight: 500;
    transition: color .15s, background .15s;
    position: relative;
}
.up-nav-link svg { width: 17px; height: 17px; flex-shrink: 0; opacity: .7; }
.up-nav-link:hover { color: #fff; background: var(--up-sidebar-hover); text-decoration: none; }
.up-nav-link:hover svg { opacity: 1; }
.up-nav-item.active > .up-nav-link {
    color: #fff;
    background: linear-gradient(90deg, rgba(79,70,229,.3) 0%, rgba(79,70,229,.06) 100%);
}
.up-nav-item.active > .up-nav-link::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--up-primary);
    border-radius: 0 2px 2px 0;
}
.up-nav-item.active > .up-nav-link svg { opacity: 1; color: var(--up-primary); }
.up-nav-sub {
    list-style: none; margin: 0; padding: 0;
    background: rgba(0,0,0,.15);
    overflow: hidden; max-height: 0;
    transition: max-height .25s ease;
}
.up-nav-sub.open { max-height: 400px; }
.up-nav-sub .up-nav-link { padding-left: 46px; font-size: .82rem; }
.up-nav-item.has-sub > .up-nav-link .up-arrow {
    margin-left: auto;
    transition: transform .2s;
    width: 14px; height: 14px; opacity: .5;
}
.up-nav-item.has-sub.open > .up-nav-link .up-arrow { transform: rotate(180deg); }

/* ===== MAIN WRAPPER ===== */
.up-main {
    margin-left: var(--up-sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left .25s ease;
}

/* ===== TOPBAR ===== */
.up-topbar {
    position: sticky; top: 0;
    height: var(--up-topbar-h);
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; z-index: 1030;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.up-topbar-left { display: flex; align-items: center; gap: 10px; }
.up-topbar-right { display: flex; align-items: center; gap: 4px; }
.up-menu-btn {
    display: none;
    background: none; border: none; color: #64748b; cursor: pointer;
    padding: 6px; border-radius: 6px; line-height: 1;
    align-items: center; justify-content: center;
}
.up-menu-btn:hover { background: #f1f5f9; }
.up-menu-btn svg { width: 20px; height: 20px; }
.up-topbar-page-title { font-size: 1.1rem; font-weight: 600; color: #1e293b; margin: 0; }
.up-topbar-icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 8px;
    color: #64748b; text-decoration: none;
    background: transparent; border: none; cursor: pointer;
    transition: background .15s, color .15s;
}
.up-topbar-icon-btn:hover { background: #f1f5f9; color: #1e293b; }
.up-topbar-icon-btn svg { width: 18px; height: 18px; }
.up-lang-select {
    height: 34px; font-size: .96rem;
    border: 1px solid #e2e8f0; border-radius: 6px;
    padding: 0 10px; background: #fff; color: #374151;
}

/* ===== PAGE CONTENT ===== */
.up-content { flex: 1; padding: 24px; }
.up-page-header { margin-bottom: 20px; }
.up-page-header h4 { font-size: 1.32rem; font-weight: 700; color: #0f172a; margin: 0 0 4px; }
.up-breadcrumb {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 6px; font-size: .92rem; color: #64748b;
    margin: 0; padding: 0; list-style: none;
}
.up-breadcrumb li + li::before { content: '/'; margin-right: 6px; }
.up-breadcrumb a { color: var(--up-primary); text-decoration: none; }
.up-breadcrumb a:hover { text-decoration: underline; }

/* ===== CARDS ===== */
.card {
    border: 0; border-radius: var(--up-radius);
    box-shadow: var(--up-card-shadow);
    background: #fff; margin-bottom: 20px;
}
.card-header {
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    border-radius: var(--up-radius) var(--up-radius) 0 0 !important;
    padding: 14px 20px; font-weight: 600;
    font-size: 1.1rem; color: #0f172a;
    display: flex; align-items: center; gap: 8px;
}
.card-header svg { width: 16px; height: 16px; color: var(--up-primary); }
.card-body   { padding: 20px; }
.card-footer { background: #fff; border-top: 1px solid #f1f5f9; padding: 14px 20px; }

.stat-card {
    border: 0; border-radius: var(--up-radius);
    box-shadow: var(--up-card-shadow);
    padding: 20px 22px; background: #fff;
    display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
}
.stat-card-icon {
    width: 52px; height: 52px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-card-icon svg { width: 24px; height: 24px; color: #fff; }
.stat-card-info h3 { font-size: 1.62rem; font-weight: 700; margin: 0 0 2px; color: #0f172a; }
.stat-card-info p  { font-size: .92rem; color: #64748b; margin: 0; }

/* ===== BUTTONS ===== */
.btn {
    font-family: var(--up-font); padding: 9px 22px;
    font-size: 1rem; font-weight: 400;
    border-radius: var(--up-radius-sm); transition: all .2s;
}
.btn-sm { padding: 3px 12px; font-size: .75rem; font-weight: 400; }
.btn--base, .btn-primary {
    background: var(--up-primary) !important;
    border-color: var(--up-primary) !important;
    color: #fff !important;
}
.btn--base:hover, .btn-primary:hover {
    background: var(--up-primary-hover) !important;
    border-color: var(--up-primary-hover) !important;
    color: #fff !important;
}
.btn--base:focus, .btn-primary:focus { box-shadow: 0 0 0 3px rgba(79,70,229,.25); }
.btn-outline-primary { color: var(--up-primary); border-color: var(--up-primary); }
.btn-outline-primary:hover { background: var(--up-primary); color: #fff; }

/* ===== FORMS ===== */
.form-label { font-size: .84rem; font-weight: 700; color: #374151; margin-bottom: 5px; }
label.required::after { content: ' *'; color: #ef4444; }
.form-control, .form--control {
    border: 1px solid #d1d5db; border-radius: var(--up-radius-sm);
    height: 44px; font-size: .84rem; font-weight: 400; color: #1e293b;
    transition: border-color .15s, box-shadow .15s; padding: 8px 12px;
}
textarea.form-control, textarea.form--control { height: auto; }
.form-control:focus, .form--control:focus {
    border-color: var(--up-primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,.12); outline: none;
}
.form-control::placeholder, .form--control::placeholder { font-size: .84rem; font-weight: 400; color: #9ca3af; }
.form-select { font-size: .84rem; font-weight: 400; color: #1e293b; }
.form-group { margin-bottom: 16px; }

/* ===== BADGES ===== */
.badge--success, .badge--warning, .badge--danger,
.badge--primary, .badge--dark, .badge--pending {
    display: inline-flex; align-items: center;
    padding: 2px 9px; border-radius: 999px;
    font-size: .72rem; font-weight: 400; letter-spacing: .03em;
    line-height: 1.6; text-transform: capitalize;
}
.badge--success  { background: rgba(16,185,129,.1);  color: #059669; border: 1px solid #059669; }
.badge--warning,
.badge--pending  { background: rgba(245,158,11,.1);  color: #d97706; border: 1px solid #d97706; }
.badge--danger   { background: rgba(239,68,68,.1);   color: #dc2626; border: 1px solid #dc2626; }
.badge--primary  { background: rgba(79,70,229,.1);   color: var(--up-primary); border: 1px solid var(--up-primary); }
.badge--dark     { background: #1e293b;              color: #f1f5f9; border: 1px solid #1e293b; }

/* ===== TABLES ===== */
.badge { font-weight: 400; font-size: 0.75rem; }
.select2-container .select2-selection { font-size: .84rem; font-weight: 400; }
.select2-container .select2-selection__rendered { font-size: .84rem; font-weight: 400; }
.select2-dropdown .select2-results__option { font-size: .84rem; font-weight: 400; }
.table th, .table td,
.table thead th, .table tbody td,
.table tfoot td {
    font-size: .84rem;
    font-family: var(--up-font);
    font-weight: 400;
}
.table thead th {
    font-weight: 600;
    color: #374151;
    letter-spacing: .02em;
}
.table tbody td {
    color: #374151;
    vertical-align: middle;
    font-weight: 400;
}
.custom--table {
    width: 100%; border-collapse: separate; border-spacing: 0;
    background: #fff; border-radius: var(--up-radius); overflow: hidden;
}
.custom--table thead th {
    background: var(--up-primary); color: #fff;
    font-size: .96rem; font-weight: 600; letter-spacing: .03em;
    padding: 12px 16px; border: none; white-space: nowrap;
}
.custom--table thead th:last-child { text-align: right; }
.custom--table tbody td {
    padding: 12px 16px; font-size: 1rem;
    vertical-align: middle; border-bottom: 1px solid #f1f5f9; color: #374151;
}
.custom--table tbody td:last-child { text-align: right; }
.custom--table tbody tr:last-child td { border-bottom: none; }
.custom--table tbody tr:hover { background: #fafbff; }

/* ===== SELECT2 ===== */
.select2-container--default .select2-selection--single {
    height: 44px; border: 1px solid #d1d5db;
    border-radius: var(--up-radius-sm); padding: 4px 8px; font-size: 1.05rem;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 34px; color: #1e293b;
}
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px; }
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open  .select2-selection--single {
    border-color: var(--up-primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}
.select2-image { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #e2e8f0; object-fit: cover; }
.select2-title { font-size: .98rem; font-weight: 600; color: #0f172a; margin: 0; }
.select2-subtitle { font-size: .88rem; color: #64748b; margin: 0; }

/* ===== GATEWAY SELECTOR ===== */
.gateway-list { max-height: 340px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.gateway-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; border: 1px solid #e2e8f0;
    border-radius: 8px; cursor: pointer; margin-bottom: 8px;
    background: #fff; transition: border-color .15s, box-shadow .15s, background .15s;
}
.gateway-item:hover { border-color: var(--up-primary); box-shadow: 0 0 0 3px rgba(79,70,229,.07); }
.gateway-item:has(.gateway-input:checked) {
    border-color: var(--up-primary);
    background: rgba(79,70,229,.04);
    box-shadow: 0 0 0 3px rgba(79,70,229,.1);
}
.gateway-item img  { width: 42px; height: 42px; border-radius: 8px; object-fit: contain; border: 1px solid #e2e8f0; }
.gateway-item-name { flex: 1; font-size: 1rem; font-weight: 600; color: #1e293b; }
.gateway-input     { accent-color: var(--up-primary); width: 16px; height: 16px; }
.amount-summary { background: #f8f9ff; border: 1px solid #e0e3ff; border-radius: 8px; padding: 16px; }
.amount-summary-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.amount-summary-row:last-child { margin-bottom: 0; }
.amount-summary-label { font-size: .96rem; color: #64748b; }
.amount-summary-value { font-size: 1rem; font-weight: 600; color: #0f172a; }

/* ===== AUTH LAYOUT ===== */
.auth-wrapper { min-height: 100vh; display: flex; background: var(--up-body-bg); }
.auth-left {
    flex: 0 0 42%; max-width: 42%;
    background: linear-gradient(145deg, var(--up-primary) 0%, #1e40af 100%);
    display: flex; flex-direction: column;
    padding: 40px 48px; position: relative; overflow: hidden;
}
.auth-left::before {
    content: ''; position: absolute;
    width: 500px; height: 500px; border-radius: 50%;
    background: rgba(255,255,255,.05); top: -120px; right: -120px;
}
.auth-left::after {
    content: ''; position: absolute;
    width: 300px; height: 300px; border-radius: 50%;
    background: rgba(255,255,255,.05); bottom: -60px; left: -60px;
}
/* Logo pinned to top of left panel */
.auth-left-logo {
    display: block; position: relative; z-index: 1;
    flex-shrink: 0; margin-bottom: 0;
}
.auth-left-logo img {
    height: 36px; width: auto; max-width: 160px; object-fit: contain;
    filter: brightness(0) invert(1);
}
/* Content centred in remaining space */
.auth-left-content {
    position: relative; z-index: 1; max-width: 380px;
    flex: 1; display: flex; flex-direction: column; justify-content: center;
    padding-top: 20px;
}
.auth-left-icon {
    width: 72px; height: 72px; border-radius: 20px;
    background: rgba(255,255,255,.15);
    display: flex; align-items: center; justify-content: center; margin-bottom: 28px;
}
.auth-left-icon svg { width: 36px; height: 36px; color: #fff; }
.auth-left-title { color: #fff; font-size: 1.9rem; font-weight: 700; margin-bottom: 14px; line-height: 1.3; }
.auth-left-text  { color: rgba(255,255,255,.78); font-size: .95rem; line-height: 1.75; }
.auth-left-link {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 28px; color: rgba(255,255,255,.8); font-size: .875rem;
    text-decoration: none; position: relative; z-index: 1;
}
.auth-left-link:hover { color: #fff; text-decoration: underline; }
/* Right panel */
.auth-right {
    flex: 1; display: flex; align-items: center;
    justify-content: center; padding: 48px 40px; background: #fff;
}
.auth-box { width: 100%; max-width: 440px; }
/* Logo on right: hidden on desktop (left panel has logo), shown on mobile */
.auth-logo { display: none; margin-bottom: 28px; }
.auth-logo img { height: 36px; width: auto; max-width: 180px; object-fit: contain; }
/* Headings */
.auth-title    { font-size: 1.55rem; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.auth-subtitle { font-size: .9rem; color: #64748b; margin-bottom: 28px; line-height: 1.6; }
/* Form controls */
.auth-box .form-label {
    font-size: .82rem; font-weight: 600; color: #374151;
    margin-bottom: 6px; letter-spacing: .01em; text-transform: uppercase;
}
.auth-box .form-control {
    border: 1.5px solid #e2e8f0; border-radius: 8px;
    padding: 10px 14px; font-size: .95rem; color: #0f172a;
    background: #f8fafc;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.auth-box .form-control:focus {
    border-color: var(--up-primary); background: #fff;
    box-shadow: 0 0 0 3px rgba(var(--up-primary-rgb),.12);
    outline: none;
}
.auth-box .form-control::placeholder { color: #94a3b8; }
/* Forgot password link */
.forgot-pass {
    font-size: .82rem; font-weight: 600; color: var(--up-primary);
    text-decoration: none; letter-spacing: .01em;
}
.forgot-pass:hover { color: var(--up-primary-hover); text-decoration: underline; }
/* Submit button */
.auth-box .btn--base {
    background: var(--up-primary); border-color: var(--up-primary);
    color: #fff; font-weight: 600; border-radius: 8px;
    padding: 11px 20px; font-size: .95rem; letter-spacing: .02em;
    transition: background .2s, box-shadow .2s, transform .1s;
}
.auth-box .btn--base:hover {
    background: var(--up-primary-hover); border-color: var(--up-primary-hover);
    box-shadow: 0 4px 16px rgba(var(--up-primary-rgb),.35);
    transform: translateY(-1px);
}
.auth-box .btn--base:active { transform: translateY(0); box-shadow: none; }
/* Remember me checkbox */
.auth-box .form-check-input:checked {
    background-color: var(--up-primary); border-color: var(--up-primary);
}
.auth-box .form-check-label { font-size: .875rem; color: #64748b; }
/* "Don't have an account?" */
.auth-footer-link {
    text-align: center; font-size: .9rem; color: #64748b; margin-top: 20px;
}
.auth-footer-link a {
    color: var(--up-primary); font-weight: 600; text-decoration: none;
}
.auth-footer-link a:hover { color: var(--up-primary-hover); text-decoration: underline; }
/* Back-to-website footer */
.auth-footer {
    text-align: center; font-size: .875rem; color: #94a3b8;
    margin-top: 24px; border-top: 1px solid #f1f5f9; padding-top: 18px;
}
.auth-footer a {
    color: #64748b; font-weight: 500; text-decoration: none;
    display: inline-flex; align-items: center; gap: 4px;
}
.auth-footer a:hover { color: var(--up-primary); }
/* Back to login link (password pages) */
.auth-back-link {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: .875rem; font-weight: 500; color: #64748b;
    text-decoration: none; margin-top: 20px;
    padding: 9px 16px; border-radius: 8px;
    border: 1.5px solid #e2e8f0; background: #f8fafc;
    transition: color .2s, border-color .2s, background .2s;
}
.auth-back-link svg { width: 14px; height: 14px; flex-shrink: 0; transition: transform .2s; }
.auth-back-link:hover {
    color: var(--up-primary); border-color: var(--up-primary);
    background: rgba(var(--up-primary-rgb),.06);
}
.auth-back-link:hover svg { transform: translateX(-2px); }
.auth-back-link-wrap { text-align: center; margin-top: 20px; }
/* Social login: hidden from UI but kept in DOM for future use */
.social-login-hidden { display: none !important; }

@media (max-width: 991px) {
    .auth-left { flex: 0 0 45%; max-width: 45%; padding: 40px 28px; }
}
@media (max-width: 767px) {
    .auth-left { display: none !important; }
    .auth-right { padding: 28px 20px; background: var(--up-body-bg); }
    .auth-box {
        background: #fff; padding: 28px 24px;
        border-radius: 12px; border: 1px solid #e2e8f0;
        box-shadow: var(--up-card-shadow);
    }
    .auth-logo { display: block !important; }
}

/* ===== SIDEBAR OVERLAY (mobile) ===== */
.up-sidebar-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.5); z-index: 1039;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .up-sidebar { transform: translateX(calc(-1 * var(--up-sidebar-w))); }
    .up-sidebar.open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0,0,0,.2); }
    .up-sidebar-overlay.show { display: block; }
    .up-main { margin-left: 0 !important; }
    .up-menu-btn { display: inline-flex !important; }
    .up-sidebar-toggle { display: inline-flex !important; }
}
@media (max-width: 575px) {
    .up-content { padding: 14px; }
    .up-topbar  { padding: 0 14px; }
}

/* ===== MISC ===== */
.pagination { margin-bottom: 0; }
.responsive-filter-card { display: none; }
.bg--base { background: var(--up-primary) !important; }

.cookies-card {
    position: fixed; bottom: 20px; right: 20px; left: 20px;
    max-width: 400px; margin-left: auto;
    background: #fff; border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.15);
    padding: 24px; z-index: 9999; transition: opacity .3s;
}
.cookies-card.hide { opacity: 0; pointer-events: none; }
.cookies-card__icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px; background: var(--up-primary);
}
.cookies-card__icon i, .cookies-card__icon svg { color: #fff; }
.cookies-card__content { font-size: 1rem; color: #374151; text-align: center; }

@media (max-width: 767px) {
    .custom--table thead { display: none; }
    .custom--table tbody tr {
        border: 1px solid #e2e8f0; border-radius: 8px;
        margin-bottom: 12px; display: block;
    }
    .custom--table tbody td {
        display: flex; justify-content: space-between;
        text-align: right !important; padding: 8px 14px; font-size: .88rem;
    }
    .custom--table tbody td::before {
        content: attr(data-label); float: left;
        font-weight: 600; color: #374151; font-size: .84rem;
    }
}
