/* PushCare Admin Panel - Enhanced UI */
:root, [data-theme="light"] {
    --bg: #f1f5f9;
    --bg-card: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --success: #059669;
    --warning: #d97706;
    --error: #dc2626;
    --sidebar-bg: #1e293b;
    --sidebar-text: #e2e8f0;
    --sidebar-active: #2563eb;
    --input-bg: #ffffff;
    --shadow: 0 1px 3px rgba(0,0,0,.08);
    --shadow-lg: 0 10px 40px -10px rgba(0,0,0,.15);
}

[data-theme="dark"] {
    --bg: #0f172a;
    --bg-card: #1e293b;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #334155;
    --primary: #3b82f6;
    --primary-hover: #60a5fa;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --sidebar-bg: #0f172a;
    --sidebar-text: #cbd5e1;
    --sidebar-active: #60a5fa;
    --input-bg: #334155;
    --shadow: 0 1px 3px rgba(0,0,0,.3);
    --shadow-lg: 0 10px 40px -10px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }
body { margin: 0; font-family: 'DM Sans', -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; min-height: 100vh; }
#app { min-height: 100vh; }

/* Login */
.login-screen {
    min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
    position: relative; overflow: hidden;
}
.login-screen::before {
    content: ''; position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(ellipse 600px 300px at 20% 50%, rgba(37,99,235,.15), transparent),
        radial-gradient(ellipse 400px 400px at 80% 20%, rgba(99,102,241,.12), transparent),
        radial-gradient(ellipse 300px 300px at 70% 80%, rgba(14,165,233,.1), transparent);
    animation: loginBgShift 12s ease-in-out infinite alternate;
}
@keyframes loginBgShift {
    0% { opacity: .7; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}
.login-card {
    width: 100%; max-width: 420px; background: var(--bg-card); border-radius: 20px;
    padding: 2.5rem 2.25rem; box-shadow: 0 25px 60px -12px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.06);
    position: relative; z-index: 1;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.08);
    animation: loginCardIn .5s ease both;
}
@keyframes loginCardIn {
    from { opacity: 0; transform: translateY(24px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.login-logo {
    display: flex; align-items: center; justify-content: center; gap: .75rem;
    font-size: 1.625rem; font-weight: 700; color: var(--primary); margin-bottom: .5rem;
}
.login-logo i {
    font-size: 2rem;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 6px rgba(59,130,246,.35));
}
.login-logo span {
    background: linear-gradient(135deg, #3b82f6, #818cf8);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.login-card h1 { margin: 0 0 .25rem; font-size: 1.5rem; text-align: center; font-weight: 700; }
.login-sub { color: var(--text-muted); margin: 0 0 1.75rem; font-size: .9375rem; text-align: center; }
.login-divider {
    display: flex; align-items: center; gap: .75rem; margin: 0 0 1.5rem; font-size: .8125rem; color: var(--text-muted);
}
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.alert { padding: .75rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-size: .875rem; display: flex; align-items: center; gap: .5rem; }
.alert-error { background: rgba(220,38,38,.12); color: var(--error); border: 1px solid rgba(220,38,38,.2); }
.alert-success { background: rgba(5,150,105,.12); color: var(--success); border: 1px solid rgba(5,150,105,.2); }
.login-form .input-wrap {
    position: relative; margin-bottom: 1rem;
}
.login-form .input-wrap i:first-child {
    position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-muted);
    transition: color .2s;
}
.login-form .input-wrap:focus-within i:first-child { color: var(--primary); }
.login-form input[type="email"], .login-form input[type="password"] {
    width: 100%; padding: .875rem 1rem .875rem 2.75rem;
    border: 1.5px solid var(--border); border-radius: 10px; font-size: 1rem;
    background: var(--input-bg); color: var(--text);
    transition: border-color .2s, box-shadow .2s;
}
.login-form input[type="email"]:focus, .login-form input[type="password"]:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.login-form .toggle-pw {
    position: absolute; right: .75rem; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--text-muted); cursor: pointer; padding: .375rem;
    border-radius: 6px; transition: color .2s, background .2s;
}
.login-form .toggle-pw:hover { color: var(--primary); background: rgba(37,99,235,.08); }
.checkbox-wrap { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; margin-bottom: 1.25rem; cursor: pointer; }
.login-footer {
    margin-top: 1.5rem; text-align: center; font-size: .8125rem; color: var(--text-muted);
}
.login-footer a { color: var(--primary); text-decoration: none; }
.login-footer a:hover { text-decoration: underline; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .625rem 1.25rem; border-radius: 10px; font-size: .9375rem; font-weight: 500; cursor: pointer; border: none; transition: background .2s, color .2s, box-shadow .2s, transform .1s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(135deg, #2563eb, #4f46e5); color: #fff; box-shadow: 0 2px 8px rgba(37,99,235,.3); }
.btn-primary:hover { background: linear-gradient(135deg, #1d4ed8, #4338ca); box-shadow: 0 4px 16px rgba(37,99,235,.35); }
.btn-secondary { background: var(--border); color: var(--text); }
.btn-ghost { background: transparent; color: var(--sidebar-text); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* Loading states */
.loading-spinner { display: inline-block; width: 1.25rem; height: 1.25rem; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: middle; margin-right: .5rem; }
.loading-spinner.small { width: 1rem; height: 1rem; margin-right: .375rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-skeleton .label, .loading-skeleton .value { color: var(--text-muted); }
.loading-skeleton .value { opacity: .7; }
.loading-cell { padding: 1.5rem !important; text-align: center; color: var(--text-muted); }
.loading-cell .loading-spinner { margin-right: .5rem; }

/* Main panel - Fixed sidebar and header */
.main-panel { display: flex; min-height: 100vh; }
.sidebar { 
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 100;
    width: 260px; background: var(--sidebar-bg); color: var(--sidebar-text); 
    display: flex; flex-direction: column; flex-shrink: 0;
    overflow: hidden;
}
.sidebar-brand { padding: 1.25rem 1.5rem; font-weight: 700; font-size: 1.25rem; display: flex; align-items: center; gap: .75rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.sidebar-brand i { font-size: 1.5rem; color: var(--primary); }
.sidebar-nav { flex: 1; padding: .75rem 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.1) transparent; }
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }
.nav-link { display: flex; align-items: center; gap: .75rem; padding: .75rem 1.5rem; color: var(--sidebar-text); text-decoration: none; transition: background .15s, color .15s, border-left .15s; border-left: 3px solid transparent; }
.nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-link.active { background: rgba(37,99,235,.18); color: #93c5fd; border-left-color: var(--primary); }
.nav-link i { width: 1.25rem; text-align: center; opacity: .85; }
.sidebar-footer { padding: 1rem 1.5rem; border-top: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.1); }
.status-line { display: flex; align-items: center; gap: .5rem; font-size: .75rem; color: var(--text-muted); margin-bottom: .75rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warning); animation: pulse 2s infinite; }
.status-dot.online { background: var(--success); }
.status-dot.offline { background: var(--error); }
@keyframes pulse { 0%,100%{ opacity:1 } 50%{ opacity:.5 } }
.sidebar-footer .btn-block { justify-content: flex-start; }

.content-wrap { flex: 1; display: flex; flex-direction: column; min-width: 0; margin-left: 260px; }
.topbar { 
    position: sticky; top: 0; z-index: 50;
    height: 60px; padding: 0 1.5rem; display: flex; align-items: center; gap: 1rem; 
    background: var(--bg-card); border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px); background: rgba(var(--bg-card-rgb, 255,255,255), .95);
}
[data-theme="light"] .topbar { background: rgba(255,255,255,.95); }
[data-theme="dark"] .topbar { background: rgba(30,41,59,.95); }
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text); font-size: 1.25rem; cursor: pointer; padding: .5rem; border-radius: 8px; transition: background .15s; }
.mobile-menu-btn:hover { background: var(--border); }
.breadcrumb { font-weight: 600; font-size: 1.0625rem; letter-spacing: -.01em; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: .375rem; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: none; background: transparent; color: var(--text); cursor: pointer; position: relative; transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--border); color: var(--primary); }
.icon-btn .badge { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; font-size: .7rem; background: var(--error); color: #fff; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; }
.user-btn { display: flex; align-items: center; gap: .5rem; padding: .5rem .75rem; border: none; background: transparent; color: var(--text); cursor: pointer; border-radius: 10px; font-size: .9375rem; transition: background .15s; }
.user-btn:hover { background: var(--border); }
.notifications-wrap { position: relative; }
.dropdown { position: absolute; top: 100%; right: 0; margin-top: .5rem; width: 320px; max-height: 400px; overflow-y: auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 100; display: none; }
.dropdown.show { display: block; animation: dropIn .2s ease; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.dropdown-body { padding: .5rem; }
.dropdown-item { padding: .75rem; border-radius: 8px; font-size: .875rem; transition: background .15s; }
.dropdown-item:hover { background: var(--border); }
.dropdown-empty { padding: 1.5rem; text-align: center; color: var(--text-muted); }

.page-content { flex: 1; padding: 1.5rem 2rem; overflow-y: auto; }
.page { display: none; }
.page.active { display: block; animation: pageIn .25s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.page-back-row { margin-bottom: 1rem; }
.page-back-row .btn { padding: .5rem .75rem; font-size: .875rem; }

/* Dashboard sections */
.dashboard-section { margin-bottom: 1.5rem; }
.section-title { font-size: 1rem; font-weight: 600; color: var(--text); margin: 0 0 1rem; display: flex; align-items: center; gap: .5rem; }
.section-title i { color: var(--primary); font-size: .9rem; }
.dashboard-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.25rem; margin-bottom: 1.25rem; }
.flex-1 { flex: 1; }

.card { background: var(--bg-card); border-radius: 14px; padding: 1.25rem 1.5rem; margin-bottom: 1.25rem; box-shadow: var(--shadow); border: 1px solid var(--border); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.card h3 { margin: 0 0 1rem; font-size: 1rem; font-weight: 600; color: var(--text); }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: var(--bg-card); border-radius: 14px; padding: 1.25rem 1.5rem; border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.1); }
.stat-card .label { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: .375rem; font-weight: 500; }
.stat-card .value { font-size: 1.75rem; font-weight: 700; line-height: 1.2; }
.stat-card .sub { font-size: .8125rem; color: var(--text-muted); margin-top: .375rem; }

.charts-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.25rem; margin-bottom: 1.5rem; }
.chart-card { min-height: 240px; }
.chart-card h3 { margin-bottom: .75rem; }
.chart-card canvas { max-height: 200px; }

.activity-list { font-size: .9375rem; }
.activity-item { display: flex; align-items: flex-start; gap: .75rem; padding: .875rem 0; border-bottom: 1px solid var(--border); transition: background .15s; }
.activity-item:last-child { border-bottom: none; }
.activity-item i { color: var(--primary); margin-top: .2rem; width: 1.25rem; text-align: center; }
.activity-item .time { font-size: .8125rem; color: var(--text-muted); }

.toolbar { display: flex; gap: .75rem; margin-bottom: 1.25rem; flex-wrap: wrap; align-items: center; }
.toolbar select { padding: .625rem 1rem; border: 1px solid var(--border); border-radius: 10px; background: var(--input-bg); color: var(--text); font-size: .9375rem; min-width: 160px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .form-group { grid-column: span 1; }
.form-grid .form-actions { grid-column: 1 / -1; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: .5rem; color: var(--text); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--border); border-radius: 10px; font-size: .9375rem; background: var(--input-bg); color: var(--text); transition: border-color .2s, box-shadow .2s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-actions { display: flex; gap: .75rem; margin-top: 1.25rem; }
.muted { color: var(--text-muted); font-size: .875rem; margin: 0 0 .5rem; }
.code-block { background: var(--bg); padding: 1rem 1.25rem; border-radius: 10px; font-family: 'JetBrains Mono', monospace; font-size: .8125rem; overflow-x: auto; margin: 0; border: 1px solid var(--border); }
.settings-dl { margin: 0; }
.settings-dl dt { font-size: .75rem; color: var(--text-muted); margin-top: 1rem; text-transform: uppercase; letter-spacing: .03em; }
.settings-dl dt:first-child { margin-top: 0; }
.settings-dl dd { margin: .375rem 0 0; font-size: .9375rem; font-weight: 500; }

.table-wrap { overflow-x: auto; margin: -.25rem; padding: .25rem; }
.data-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.data-table th, .data-table td { padding: .875rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.data-table th { font-weight: 600; color: var(--text-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; background: var(--bg); }
.data-table tbody tr { transition: background .15s; }
.data-table tbody tr:hover td { background: rgba(37,99,235,.04); }
.data-table .actions { display: flex; gap: .5rem; }
.data-table .btn-sm { padding: .5rem .875rem; font-size: .8125rem; border-radius: 8px; }
.tag { display: inline-flex; align-items: center; padding: .25rem .625rem; border-radius: 6px; font-size: .75rem; font-weight: 600; }
.tag.online, .tag.active { background: rgba(5,150,105,.15); color: var(--success); }
.tag.offline, .tag.inactive { background: rgba(100,116,139,.15); color: var(--text-muted); }
.tag.sent { background: rgba(37,99,235,.15); color: var(--primary); }
.tag.scheduled { background: rgba(217,119,6,.15); color: var(--warning); }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 1rem; }
.modal { background: var(--bg-card); border-radius: 16px; width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.modal-header h2 { margin: 0; font-size: 1.25rem; }
.modal-close { background: none; border: none; font-size: 1.5rem; color: var(--text-muted); cursor: pointer; line-height: 1; padding: 0 .25rem; }
.modal-close:hover { color: var(--text); }
.modal form { padding: 1.5rem; }

.api-docs { font-size: .9375rem; }
.api-doc-item { padding: .75rem 0; border-bottom: 1px solid var(--border); }
.api-doc-item:last-child { border-bottom: none; }
.api-doc-item code { background: var(--bg); padding: .2rem .4rem; border-radius: 4px; font-size: .875rem; }
.api-doc-item .method { font-weight: 600; margin-right: .5rem; }
.api-doc-item .method.get { color: var(--success); }
.api-doc-item .method.post { color: var(--primary); }
.api-doc-item .method.put { color: var(--warning); }
.api-doc-item .method.delete { color: var(--error); }

/* Toasts */
.toast-container { position: fixed; top: 1rem; right: 1rem; z-index: 2000; display: flex; flex-direction: column; gap: 0.5rem; max-width: min(360px, calc(100vw - 2rem)); pointer-events: none; }
.toast { padding: 0.875rem 1rem; border-radius: 10px; font-size: 0.9375rem; box-shadow: var(--shadow-lg); pointer-events: auto; animation: toastIn 0.25s ease; display: flex; align-items: flex-start; gap: 0.5rem; }
.toast.toast-success { background: var(--success); color: #fff; }
.toast.toast-error { background: var(--error); color: #fff; }
.toast.toast-info { background: var(--primary); color: #fff; }
.toast.toast-warning { background: var(--warning); color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateX(1rem); } to { opacity: 1; transform: translateX(0); } }

/* Confirm modal */
.confirm-overlay { align-items: center; justify-content: center; }
.confirm-modal { max-width: 400px; }
.confirm-message { margin: 0 1.5rem 1.25rem; color: var(--text); }
.btn-danger { background: var(--error); color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }

/* Pagination */
.pagination-wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.pagination-info { font-size: 0.875rem; color: var(--text-muted); }
.pagination-btns { display: flex; gap: 0.5rem; }
.pagination-btns .btn { min-height: 38px; }
.pagination-btns .btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ========== Mobile-first & touch-friendly ========== */
@media (max-width: 900px) {
    .sidebar {
        position: fixed; left: -280px; top: 0; bottom: 0; z-index: 300;
        width: 280px; max-width: 85vw;
        transition: left 0.25s ease, box-shadow 0.25s ease;
        box-shadow: none;
    }
    .sidebar.open {
        left: 0;
        box-shadow: 0 0 0 100vmax rgba(0,0,0,0.4);
    }
    .sidebar.open + .sidebar-backdrop { display: block; }
    .sidebar-backdrop {
        display: none;
        position: fixed; inset: 0; z-index: 250;
        background: rgba(0,0,0,0.4);
        backdrop-filter: blur(2px);
    }
    .content-wrap { margin-left: 0; }
    .mobile-menu-btn {
        display: inline-flex;
        min-width: 44px; min-height: 44px;
        align-items: center; justify-content: center;
    }
    .nav-link { padding: 0.875rem 1.5rem; min-height: 48px; }
    .form-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .stat-card { padding: 1rem; }
    .stat-card .value { font-size: 1.5rem; }
    .topbar { padding: 0 1rem; min-height: 60px; }
    .breadcrumb { font-size: 0.9375rem; }
    .icon-btn { min-width: 44px; min-height: 44px; }
    .user-btn { min-height: 44px; padding: 0 0.75rem; }
    .page-content { padding: 1rem; }
    .card { padding: 1rem 1.25rem; margin-bottom: 1rem; }
    .dropdown { width: min(320px, calc(100vw - 2rem)); max-height: 70vh; }
    .charts-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .stats-grid { grid-template-columns: 1fr; }
    .chart-card { min-height: 280px; }
    .chart-card canvas { max-height: 240px; }
    .toolbar { flex-direction: column; align-items: stretch; }
    .toolbar select, .toolbar .btn { width: 100%; min-height: 44px; }
    .data-table thead { display: none; }
    .data-table tr { display: block; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 0.75rem; padding: 1rem; background: var(--bg-card); }
    .data-table td { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; border: none; gap: 0.5rem; }
    .data-table td::before { content: attr(data-label); font-weight: 600; font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; flex-shrink: 0; }
    .data-table td.actions { flex-wrap: wrap; }
    .data-table .btn-sm { min-height: 40px; padding: 0.5rem 0.75rem; }
    .modal { max-width: 100%; margin: 0.5rem; max-height: 85vh; }
    .modal form { padding: 1rem; }
    .form-actions { flex-direction: column; }
    .form-actions .btn { width: 100%; min-height: 44px; }
    .login-card { margin: 0.75rem; padding: 1.75rem 1.5rem; border-radius: 16px; }
    .login-form input, .login-form .btn { min-height: 48px; }
    .login-logo { font-size: 1.375rem; }
    .login-logo i { font-size: 1.625rem; }
    .login-card h1 { font-size: 1.35rem; }
}
/* Hide user name on very small screens, keep icon */
@media (max-width: 400px) {
    .user-btn span { display: none; }
}
