/* Tivro Passkeys Admin — v1.0 */
#tp,#tp *{box-sizing:border-box;margin:0;padding:0}
#tp{font-family:'Segoe UI',system-ui,sans-serif;font-size:14px;line-height:1.5;color:#e2e8f0;background:#070f1c;border-radius:10px;overflow:hidden;box-shadow:0 8px 40px rgba(0,0,0,.6)}
.tp-layout{display:flex;min-height:640px}
/* Sidebar */
.tp-sidebar{width:210px;background:#0d1f36;border-right:1px solid #0f2a45;flex-shrink:0;display:flex;flex-direction:column}
.tp-brand{padding:18px 16px 14px;border-bottom:1px solid #0f2a45;display:flex;align-items:center;gap:11px}
.tp-brand-icon{width:34px;height:34px;background:linear-gradient(135deg,#2563eb,#7c3aed);border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:17px;flex-shrink:0;box-shadow:0 2px 12px rgba(37,99,235,.35)}
.tp-brand-name{font-size:14px;font-weight:700;color:#f1f5f9;letter-spacing:-.2px}
.tp-brand-sub{font-size:11px;color:#1e4060;margin-top:1px}
.tp-lic-pill{margin:10px 14px 0;padding:5px 10px;border-radius:20px;font-size:11px;font-weight:700;display:flex;align-items:center;gap:7px;letter-spacing:.2px}
.tp-lic-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0}
.tp-pill-active{background:rgba(34,197,94,.1);color:#4ade80;border:1px solid rgba(34,197,94,.2)}
.tp-pill-active .tp-lic-dot{background:#4ade80;box-shadow:0 0 6px #4ade80}
.tp-pill-warn{background:rgba(234,179,8,.1);color:#fbbf24;border:1px solid rgba(234,179,8,.2)}
.tp-pill-warn .tp-lic-dot{background:#fbbf24}
.tp-pill-inactive{background:rgba(239,68,68,.1);color:#f87171;border:1px solid rgba(239,68,68,.2)}
.tp-pill-inactive .tp-lic-dot{background:#f87171}
.tp-nav{padding:14px 8px;flex:1}
.tp-nav-sec{font-size:10px;font-weight:700;letter-spacing:.9px;color:#1e3a5f;padding:6px 8px 4px;text-transform:uppercase}
.tp-nav-item{display:flex;align-items:center;gap:9px;padding:9px 10px;border-radius:7px;color:#4a6a8a;text-decoration:none!important;font-size:13px;font-weight:500;transition:all .14s;margin-bottom:2px;position:relative}
.tp-nav-item:hover{background:#0f2a45;color:#c8dff5}
.tp-nav-item.active{background:rgba(37,99,235,.15);color:#93c5fd;font-weight:600}
.tp-nav-item.active::before{content:'';position:absolute;left:0;top:7px;bottom:7px;width:3px;background:#2563eb;border-radius:0 3px 3px 0}
.nav-icon{font-size:14px;width:18px;text-align:center;flex-shrink:0}
.tp-upd-dot{width:6px;height:6px;background:#f59e0b;border-radius:50%;margin-left:auto;box-shadow:0 0 5px #f59e0b}
.tp-sidebar-foot{padding:12px 16px;border-top:1px solid #0f2a45;font-size:11px;color:#1e3a5f}
.tp-sidebar-foot a{color:#1e3a5f;text-decoration:none}
.tp-sidebar-foot a:hover{color:#4a6a8a}
/* Main */
.tp-main{flex:1;display:flex;flex-direction:column;min-width:0;background:#070f1c}
.tp-topbar{background:#0d1f36;border-bottom:1px solid #0f2a45;padding:13px 22px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0}
.tp-topbar-title{font-size:15px;font-weight:700;color:#f1f5f9}
.tp-topbar-sub{font-size:11px;color:#2a4a6a;margin-top:1px}
.tp-topbar-badge{font-size:11px;background:#0a1829;color:#1e3a5f;padding:3px 10px;border-radius:20px;border:1px solid #0f2a45}
/* Flash */
.tp-flash{padding:11px 16px;border-radius:8px;font-size:13px;display:flex;align-items:center;gap:10px;margin:16px 22px 0}
.tp-flash-success{background:rgba(34,197,94,.08);border:1px solid rgba(34,197,94,.2);color:#4ade80}
.tp-flash-error{background:rgba(239,68,68,.08);border:1px solid rgba(239,68,68,.2);color:#f87171}
.tp-flash-warning{background:rgba(234,179,8,.08);border:1px solid rgba(234,179,8,.2);color:#fbbf24}
.tp-flash-info{background:rgba(37,99,235,.08);border:1px solid rgba(37,99,235,.2);color:#60a5fa}
/* Content */
.tp-content{padding:20px 22px;flex:1}
/* Cards */
.tp-card{background:#0d1f36;border:1px solid #0f2a45;border-radius:9px;margin-bottom:16px;overflow:hidden}
.tp-card-header{padding:13px 18px;border-bottom:1px solid #0f2a45;font-size:13px;font-weight:600;color:#94b4cc;display:flex;align-items:center;justify-content:space-between;gap:10px;background:#0a1829}
.tp-card-header-left{display:flex;align-items:center;gap:8px}
.tp-card-header-actions{display:flex;gap:7px;align-items:center}
.tp-card-body{padding:18px}
.tp-card-body.p0{padding:0}
/* Stats */
.tp-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}
.tp-stat{background:#0d1f36;border:1px solid #0f2a45;border-radius:9px;padding:16px 18px;position:relative;overflow:hidden}
.tp-stat::after{content:'';position:absolute;top:0;left:0;right:0;height:3px}
.tp-stat:nth-child(1)::after{background:linear-gradient(90deg,#2563eb,#7c3aed)}
.tp-stat:nth-child(2)::after{background:linear-gradient(90deg,#7c3aed,#db2777)}
.tp-stat:nth-child(3)::after{background:linear-gradient(90deg,#059669,#0891b2)}
.tp-stat:nth-child(4)::after{background:linear-gradient(90deg,#d97706,#dc2626)}
.tp-stat-num{font-size:28px;font-weight:700;color:#f1f5f9;line-height:1;margin-bottom:4px}
.tp-stat-lbl{font-size:11px;color:#2a4a6a;font-weight:500}
.tp-stat-ico{font-size:22px;float:right;opacity:.2}
/* Status grid */
.tp-status-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:10px}
.tp-status-item{background:#070f1c;border:1px solid #0d1f36;border-radius:8px;padding:12px 14px}
.tp-status-label{display:block;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.6px;color:#1e3a5f;margin-bottom:6px}
/* Chips */
.tp-chip{display:inline-flex;align-items:center;gap:4px;padding:3px 9px;border-radius:20px;font-size:11px;font-weight:600}
.tp-chip-green{background:rgba(34,197,94,.1);color:#4ade80;border:1px solid rgba(34,197,94,.2)}
.tp-chip-red{background:rgba(239,68,68,.1);color:#f87171;border:1px solid rgba(239,68,68,.2)}
.tp-chip-yellow{background:rgba(234,179,8,.1);color:#fbbf24;border:1px solid rgba(234,179,8,.2)}
.tp-chip-blue{background:rgba(37,99,235,.1);color:#60a5fa;border:1px solid rgba(37,99,235,.2)}
.tp-chip-gray{background:rgba(100,116,139,.1);color:#64748b;border:1px solid rgba(100,116,139,.2)}
.tp-chip-orange{background:rgba(245,158,11,.1);color:#fbbf24;border:1px solid rgba(245,158,11,.2)}
/* Buttons */
.tp-btn{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;border-radius:7px;font-size:13px;font-weight:600;cursor:pointer;border:none;text-decoration:none!important;transition:all .14s;white-space:nowrap;line-height:1.2}
.tp-btn:hover{opacity:.85;transform:translateY(-1px)}
.tp-btn-primary{background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;box-shadow:0 2px 10px rgba(37,99,235,.3)}
.tp-btn-success{background:linear-gradient(135deg,#059669,#0891b2);color:#fff}
.tp-btn-secondary{background:#0a1829;color:#4a6a8a;border:1px solid #0f2a45}
.tp-btn-secondary:hover{color:#c8dff5;border-color:#1e4060}
.tp-btn-danger{background:rgba(239,68,68,.1);color:#f87171;border:1px solid rgba(239,68,68,.2)}
.tp-btn-danger:hover{background:rgba(239,68,68,.18)}
.tp-btn-sm{padding:5px 11px;font-size:12px}
/* Forms */
.tp-form-group{margin-bottom:16px}
.tp-label{display:block;font-size:11px;font-weight:700;color:#2a4a6a;margin-bottom:6px;text-transform:uppercase;letter-spacing:.5px}
.tp-input{width:100%;padding:9px 12px;background:#070f1c;border:1px solid #0f2a45;border-radius:7px;color:#e2e8f0;font-size:13px;transition:border .14s;font-family:inherit}
.tp-input:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.12)}
.tp-input-mono{font-family:'Courier New',monospace;letter-spacing:.5px}
.tp-input-sm{width:120px}
.tp-hint{font-size:12px;color:#1e3a5f;margin-top:5px;line-height:1.55}
.tp-link,.tp-hint a{color:#3b82f6;text-decoration:none}
.tp-link:hover{text-decoration:underline}
.tp-form-actions{display:flex;gap:10px;align-items:center;padding-top:4px}
select.tp-input{cursor:pointer}
/* License panel */
.tp-lic-panel{background:#070f1c;border:1px solid #0f2a45;border-radius:8px;overflow:hidden;margin-bottom:16px}
.tp-lic-row{display:flex;gap:12px;padding:11px 15px;border-bottom:1px solid #0a1829;align-items:flex-start}
.tp-lic-row:last-child{border-bottom:none}
.tp-lic-row-k{font-size:11px;font-weight:700;color:#1e3a5f;width:130px;flex-shrink:0;text-transform:uppercase;letter-spacing:.4px;padding-top:2px}
.tp-lic-row-v{font-size:13px;color:#94b4cc;flex:1}
.tp-lic-row-v code{background:#0d1f36;padding:2px 7px;border-radius:4px;font-size:12px;color:#7dd3fc;font-family:monospace}
/* Alerts */
.tp-alert{padding:12px 15px;border-radius:8px;font-size:13px;display:flex;gap:11px;align-items:flex-start;margin-bottom:14px;line-height:1.6}
.tp-alert-icon{flex-shrink:0;font-size:15px;margin-top:1px}
.tp-alert-body{flex:1}
.tp-alert-body strong{display:block;margin-bottom:2px}
.tp-alert-body a{color:inherit;font-weight:600}
.tp-alert-success{background:rgba(34,197,94,.08);border:1px solid rgba(34,197,94,.2);color:#4ade80}
.tp-alert-error{background:rgba(239,68,68,.08);border:1px solid rgba(239,68,68,.2);color:#f87171}
.tp-alert-warning{background:rgba(234,179,8,.08);border:1px solid rgba(234,179,8,.2);color:#fbbf24}
.tp-alert-info{background:rgba(37,99,235,.08);border:1px solid rgba(37,99,235,.2);color:#60a5fa}
/* Toggles */
.tp-toggle-row{display:flex;align-items:center;justify-content:space-between;padding:14px 0;border-bottom:1px solid #0a1829;gap:16px}
.tp-toggle-row:last-child{border-bottom:none}
.tp-toggle-info{flex:1}
.tp-toggle-name{font-size:13px;font-weight:600;color:#c8dff5;margin-bottom:2px}
.tp-toggle-desc{font-size:12px;color:#1e3a5f;line-height:1.5}
.tp-switch{position:relative;width:42px;height:23px;flex-shrink:0}
.tp-switch input{opacity:0;width:0;height:0;position:absolute}
.tp-switch-sl{position:absolute;inset:0;background:#0a1829;border:1px solid #0f2a45;border-radius:12px;cursor:pointer;transition:.18s}
.tp-switch-sl:before{content:'';position:absolute;width:17px;height:17px;left:2px;top:2px;background:#1e3a5f;border-radius:50%;transition:.18s}
.tp-switch input:checked+.tp-switch-sl{background:rgba(37,99,235,.3);border-color:rgba(37,99,235,.5)}
.tp-switch input:checked+.tp-switch-sl:before{transform:translateX(19px);background:#2563eb;box-shadow:0 0 8px rgba(37,99,235,.5)}
/* Tables */
.tp-table-wrap{overflow-x:auto}
.tp-table{width:100%;border-collapse:collapse;font-size:13px}
.tp-table th{padding:10px 14px;text-align:left;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.6px;color:#1e3a5f;background:#0a1829;border-bottom:1px solid #0f2a45;white-space:nowrap}
.tp-table td{padding:11px 14px;border-bottom:1px solid #0a1829;color:#7a9ab8;vertical-align:middle}
.tp-table tbody tr:hover{background:#0a1829}
.tp-table tbody tr:last-child td{border-bottom:none}
.tp-table code{background:#070f1c;padding:2px 6px;border-radius:4px;font-size:11px;color:#7dd3fc;font-family:monospace}
.tp-email{color:#3b82f6;font-size:12px}
.tp-date{font-size:12px;color:#1e3a5f;font-family:monospace}
.tp-ip{font-size:11px;color:#1e3a5f;font-family:monospace}
/* Pager */
.tp-pager{display:flex;gap:4px;padding:13px 18px;border-top:1px solid #0f2a45;flex-wrap:wrap}
.tp-page-btn{padding:5px 11px;border-radius:5px;font-size:12px;font-weight:600;color:#2a4a6a;text-decoration:none!important;border:1px solid #0f2a45;background:#070f1c;transition:.14s}
.tp-page-btn:hover{color:#c8dff5;border-color:#1e4060}
.tp-page-btn.active{background:#2563eb;color:#fff;border-color:#2563eb}
/* Empty */
.tp-empty{text-align:center;padding:52px 24px;color:#1e3a5f}
.tp-empty-ico{font-size:42px;margin-bottom:14px;opacity:.25;display:block}
.tp-empty p{font-size:13px}
/* Quick actions */
.tp-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}
.tp-action{display:flex;align-items:center;gap:9px;padding:13px 14px;background:#070f1c;border:1px solid #0f2a45;border-radius:8px;color:#4a6a8a;text-decoration:none!important;font-size:13px;font-weight:500;transition:.14s}
.tp-action:hover{background:#0a1829;color:#c8dff5;border-color:#1e4060}
.tp-action-ico{font-size:17px;flex-shrink:0}
/* Misc */
.tp-search{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.tp-count-badge{font-size:11px;font-weight:700;background:#070f1c;color:#2a4a6a;padding:2px 9px;border-radius:20px;border:1px solid #0f2a45}
hr.tp-divider{border:none;border-top:1px solid #0f2a45;margin:16px 0}
.tp-infobox{background:#0a1829;border:1px solid #0f2a45;border-left:3px solid #2563eb;border-radius:0 7px 7px 0;padding:11px 14px;font-size:12px;color:#1e3a5f;line-height:1.65;margin-top:14px}
.tp-infobox code{color:#7dd3fc;font-family:monospace}
.tp-cl ul{margin:6px 0 0 14px}
.tp-cl li{font-size:12px;margin-bottom:3px;opacity:.85}
/* License wall */
.tp-wall{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 40px;text-align:center;flex:1}
.tp-wall-ico{font-size:52px;margin-bottom:18px;opacity:.5}
.tp-wall-title{font-size:22px;font-weight:700;color:#f1f5f9;margin-bottom:10px}
.tp-wall-msg{font-size:13px;color:#2a4a6a;max-width:440px;margin-bottom:24px;line-height:1.7}
.tp-wall-help{margin-top:22px;font-size:12px;color:#1e3a5f;line-height:2}
/* responsive */
@media(max-width:700px){.tp-stats{grid-template-columns:repeat(2,1fr)}.tp-sidebar{width:180px}.tp-stat-num{font-size:22px}}
