.admin-members-page{padding:20px;max-width:1800px;margin:0 auto}.admin-members-page.rtl{direction:rtl}.admin-members-header{margin-bottom:30px}.admin-members-header h1{margin:0 0 10px;color:#333;font-size:32px;font-weight:700}.subtitle{margin:0;color:#666;font-size:16px}.members-layout{display:grid;grid-template-columns:350px 1fr;gap:30px}.members-list{background:#fff;border-radius:16px;padding:20px;box-shadow:0 2px 8px #0000001a;height:fit-content;max-height:calc(100vh - 200px);overflow-y:auto}.members-list h2{margin:0 0 20px;color:#333;font-size:20px;font-weight:600}.member-card{display:flex;align-items:center;gap:15px;padding:15px;border-radius:12px;cursor:pointer;transition:all .3s ease;margin-bottom:10px;border:2px solid transparent}.member-card:hover{background:#f9f9f9;border-color:#e0e0e0}.member-card.selected{background:linear-gradient(135deg,#f0f9ff,#e0f2fe);border-color:#2196f3}.member-avatar{width:50px;height:50px;border-radius:50%;overflow:hidden;flex-shrink:0}.member-avatar img{width:100%;height:100%;object-fit:cover}.avatar-placeholder{width:100%;height:100%;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;align-items:center;justify-content:center;color:#fff;font-size:24px;font-weight:700}.member-info{flex:1}.member-info h3{margin:0 0 5px;color:#333;font-size:16px;font-weight:600}.role-badge{display:inline-block;padding:3px 10px;border-radius:12px;font-size:11px;font-weight:600;text-transform:uppercase}.role-badge.admin{background:linear-gradient(135deg,#ff9800,#ff5722);color:#fff}.role-badge.member{background:linear-gradient(135deg,#4caf50,#8bc34a);color:#fff}.member-stats-quick{display:flex;gap:10px}.stat-quick{display:flex;align-items:center;gap:5px;font-size:14px;font-weight:600;color:#666}.stat-icon{font-size:16px}.member-details-panel{background:#fff;border-radius:16px;padding:30px;box-shadow:0 2px 8px #0000001a;max-height:calc(100vh - 200px);overflow-y:auto}.member-detail-header{display:flex;align-items:center;gap:20px;margin-bottom:30px;padding-bottom:20px;border-bottom:2px solid #e0e0e0}.member-detail-avatar{width:80px;height:80px;border-radius:50%;overflow:hidden;flex-shrink:0}.member-detail-avatar img{width:100%;height:100%;object-fit:cover}.avatar-placeholder-large{width:100%;height:100%;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;align-items:center;justify-content:center;color:#fff;font-size:36px;font-weight:700}.member-detail-info{flex:1}.member-detail-info h2{margin:0 0 8px;color:#333;font-size:28px;font-weight:700}.member-email{margin:8px 0 0;color:#999;font-size:14px}.adjust-balance-btn{padding:12px 24px;background:linear-gradient(135deg,#2196f3,#00bcd4);color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:all .3s ease}.adjust-balance-btn:hover{transform:translateY(-2px);box-shadow:0 4px 12px #2196f366}.balance-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px;margin-bottom:30px}.balance-card-admin{display:flex;align-items:center;gap:20px;padding:20px;border-radius:16px;box-shadow:0 4px 12px #0000001a}.balance-card-admin.stars{background:linear-gradient(135deg,#fff9c4,#fff59d)}.balance-card-admin.money{background:linear-gradient(135deg,#c8e6c9,#a5d6a7)}.balance-card-admin .balance-icon{font-size:48px}.balance-data{flex:1}.balance-label{font-size:14px;color:#666;margin-bottom:5px;font-weight:500}.balance-value{font-size:32px;font-weight:700;color:#333;margin-bottom:5px}.balance-sub{font-size:12px;color:#999}.stats-section{margin-bottom:30px}.stats-section h3{margin:0 0 15px;color:#333;font-size:20px;font-weight:600}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:15px}.stat-card{padding:20px;background:#f9f9f9;border-radius:12px;text-align:center;border:2px solid transparent;transition:all .3s ease}.stat-card:hover{border-color:#4caf50;transform:translateY(-2px)}.stat-card.excellent{background:linear-gradient(135deg,#e8f5e9,#c8e6c9)}.stat-card.good{background:linear-gradient(135deg,#e3f2fd,#bbdefb)}.stat-label{font-size:13px;color:#666;margin-bottom:8px;font-weight:500}.stat-value{font-size:28px;font-weight:700;color:#333}.tasks-section{margin-bottom:30px}.tasks-section h3{margin:0 0 15px;color:#333;font-size:20px;font-weight:600}.tasks-table{display:flex;flex-direction:column;gap:10px}.task-row{display:flex;align-items:center;gap:15px;padding:15px;background:#f9f9f9;border-radius:12px;transition:all .3s ease}.task-row:hover{background:#f0f0f0}.task-main{flex:1}.task-station{font-size:15px;font-weight:600;color:#333;margin-bottom:5px}.task-date{font-size:12px;color:#999}.task-stars{display:flex;align-items:center;gap:10px}.stars-value{font-size:18px;font-weight:700;color:#ff9800}.quality-badge{padding:4px 10px;border-radius:12px;font-size:11px;font-weight:600;text-transform:uppercase}.quality-badge.excellent{background:#4caf50;color:#fff}.quality-badge.good{background:#2196f3;color:#fff}.quality-badge.acceptable{background:#ff9800;color:#fff}.quality-badge.needs_improvement{background:#f44336;color:#fff}.task-actions{display:flex;gap:8px}.btn-adjust,.btn-delete{padding:8px 16px;border:none;border-radius:6px;font-size:13px;font-weight:600;cursor:pointer;transition:all .3s ease}.btn-adjust{background:#2196f3;color:#fff}.btn-adjust:hover{background:#1976d2}.btn-delete{background:#f44336;color:#fff}.btn-delete:hover{background:#d32f2f}.adjustment-modal{background:#fff;border-radius:20px;padding:40px;max-width:500px;width:100%;position:relative}.adjustment-modal h2{margin:0 0 25px;color:#333;font-size:24px;font-weight:700}.form-group input,.form-group textarea{width:100%;padding:12px;border:2px solid #e0e0e0;border-radius:8px;font-size:14px;font-family:inherit;transition:all .3s ease}.form-group input:focus,.form-group textarea:focus{outline:none;border-color:#2196f3}.empty-state{text-align:center;padding:80px 20px}.empty-icon{font-size:80px;margin-bottom:20px;opacity:.5}.empty-state h3{margin:0 0 12px;color:#6b7280;font-size:24px;font-weight:600}.empty-state p{margin:0;color:#9ca3af;font-size:16px}.no-data{text-align:center;color:#999;padding:40px 20px}@media(max-width:1200px){.members-layout{grid-template-columns:1fr}.members-list{max-height:400px}}@media(max-width:768px){.admin-members-page{padding:15px}.admin-members-header h1{font-size:24px}.member-detail-header{flex-direction:column;text-align:center}.balance-grid{grid-template-columns:1fr}.stats-grid{grid-template-columns:repeat(2,1fr)}.task-row{flex-direction:column;align-items:flex-start}.task-actions{width:100%}.btn-adjust,.btn-delete{flex:1}}.admin-quests-page{padding:20px;height:100vh;display:flex;flex-direction:column;overflow:hidden;background:#f5f5f5}.admin-quests-page.rtl{direction:rtl}.admin-quests-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;padding:0 10px}.admin-quests-header h1{margin:0;color:#333;font-size:28px;font-weight:700}.btn-create{padding:10px 20px;background:linear-gradient(135deg,#4caf50,#8bc34a);color:#fff;border:none;border-radius:8px;font-size:15px;font-weight:600;cursor:pointer;transition:all .2s ease}.btn-create:hover{transform:translateY(-2px);box-shadow:0 4px 12px #4caf5066}.quest-maps-grid{flex:1;overflow-y:auto;background:#fff;border-radius:12px;box-shadow:0 2px 8px #0000001a}.quest-table{width:100%;border-collapse:collapse}.quest-table thead{position:sticky;top:0;background:linear-gradient(135deg,#667eea,#764ba2);z-index:10}.quest-table thead th{padding:15px 12px;text-align:left;color:#fff;font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;border-bottom:2px solid rgba(255,255,255,.2)}.quest-table tbody tr{border-bottom:1px solid #e0e0e0;transition:background .2s}.quest-table tbody tr:hover{background:#f9f9f9}.quest-table tbody td{padding:12px;font-size:14px;vertical-align:middle}.quest-name-cell{display:flex;align-items:center;gap:12px}.map-icon{font-size:28px;flex-shrink:0}.quest-name-text h3{margin:0 0 4px;font-size:16px;font-weight:700;color:#333}.quest-name-text .quest-type{font-size:12px;color:#666}.quest-preview-thumb{width:80px;height:50px;border-radius:6px;background-size:cover;background-position:center;background-color:#e0e0e0}.status-badge{display:inline-block;padding:4px 10px;border-radius:12px;font-size:11px;font-weight:700;text-transform:uppercase}.status-badge.active{background:#e8f5e9;color:#4caf50}.status-badge.inactive{background:#f5f5f5;color:#9e9e9e}.quest-rewards{display:flex;gap:8px;font-size:14px;font-weight:600}.reward-badge{display:inline-flex;align-items:center;gap:4px;padding:4px 8px;background:#fff3e0;border-radius:6px;color:#ff9800}.map-actions{display:flex;gap:6px;justify-content:flex-end}.btn-icon-action{width:36px;height:36px;border:none;border-radius:6px;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center;font-size:16px}.btn-map-editor{background:linear-gradient(135deg,#9c27b0,#673ab7);color:#fff;width:auto;padding:0 12px;font-size:12px;font-weight:700}.btn-map-editor:hover{background:linear-gradient(135deg,#7b1fa2,#512da8);transform:translateY(-1px)}.btn-view{background:#e3f2fd;color:#2196f3}.btn-view:hover{background:#2196f3;color:#fff}.btn-edit{background:#fff3e0;color:#ff9800}.btn-edit:hover{background:#ff9800;color:#fff}.btn-delete{background:#ffebee;color:#f44336}.btn-delete:hover{background:#f44336;color:#fff}.quest-modal{background:#fff;border-radius:20px;padding:40px;max-width:700px;width:100%;max-height:90vh;overflow-y:auto;position:relative}.quest-modal h2{margin:0 0 30px;color:#333;font-size:28px;font-weight:700}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-group{margin-bottom:20px}.form-group label{display:block;margin-bottom:8px;color:#666;font-size:14px;font-weight:600}.form-group input,.form-group select,.form-group textarea{width:100%;padding:12px;border:2px solid #e0e0e0;border-radius:8px;font-size:14px;font-family:inherit;transition:all .3s ease}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:#2196f3}.checkbox-group{display:flex;flex-direction:column;gap:10px;max-height:200px;overflow-y:auto;padding:10px;background:#f9f9f9;border-radius:8px}.checkbox-label{display:flex;align-items:center;gap:8px;cursor:pointer}.checkbox-inline{display:flex;align-items:center}.checkbox-inline label{display:flex;align-items:center;gap:8px;cursor:pointer}.stations-modal{background:#fff;border-radius:20px;padding:40px;max-width:800px;width:100%;max-height:90vh;overflow-y:auto;position:relative}.stations-modal h2{margin:0 0 20px;color:#333;font-size:28px;font-weight:700}.btn-add-station{width:100%;padding:12px;background:linear-gradient(135deg,#4caf50,#8bc34a);color:#fff;border:none;border-radius:8px;font-size:16px;font-weight:600;cursor:pointer;margin-bottom:20px;transition:all .3s ease}.btn-add-station:hover{transform:translateY(-2px);box-shadow:0 4px 12px #4caf5066}.stations-list{display:flex;flex-direction:column;gap:12px;margin-bottom:20px}.station-item{display:flex;align-items:center;gap:15px;padding:15px;background:#f9f9f9;border-radius:12px;transition:all .3s ease}.station-item:hover{background:#f0f0f0}.station-order{width:40px;height:40px;background:linear-gradient(135deg,#2196f3,#00bcd4);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;flex-shrink:0}.station-info{flex:1}.station-info h4{margin:0 0 8px;color:#333;font-size:16px;font-weight:600}.station-details{display:flex;gap:15px;font-size:13px;color:#666}.optional-badge{padding:2px 8px;background:#ff9800;color:#fff;border-radius:8px;font-weight:600}.btn-remove{padding:8px 16px;background:#f44336;color:#fff;border:none;border-radius:6px;font-size:13px;font-weight:600;cursor:pointer;transition:all .3s ease}.btn-remove:hover{background:#d32f2f}.add-station-form{margin-top:30px;padding:25px;background:#f9f9f9;border-radius:12px;border:2px dashed #e0e0e0}.add-station-form h3{margin:0 0 20px;color:#333;font-size:20px;font-weight:600}.modal-overlay{position:fixed;inset:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}.close-button{position:absolute;top:15px;right:15px;width:40px;height:40px;border:none;background:#f0f0f0;border-radius:50%;font-size:24px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .3s ease}.close-button:hover{background:#e0e0e0;transform:rotate(90deg)}.modal-actions{display:flex;gap:10px;margin-top:30px}.btn-cancel,.btn-submit{flex:1;padding:12px;border:none;border-radius:8px;font-size:16px;font-weight:600;cursor:pointer;transition:all .3s ease}.btn-cancel{background:#e0e0e0;color:#666}.btn-cancel:hover{background:#d0d0d0}.btn-submit{background:linear-gradient(135deg,#4caf50,#8bc34a);color:#fff}.btn-submit:hover{transform:translateY(-2px);box-shadow:0 4px 12px #4caf5066}.no-data{text-align:center;color:#999;padding:40px 20px;font-size:16px}.loading{display:flex;align-items:center;justify-content:center;min-height:400px;font-size:24px;color:#fbbf24;font-weight:700}@media(max-width:1024px){.quest-table thead th{font-size:11px;padding:12px 8px}.quest-table tbody td{padding:10px 8px;font-size:13px}.quest-name-text h3{font-size:14px}.map-icon{font-size:24px}.btn-map-editor{font-size:11px;padding:0 8px}}@media(max-width:768px){.admin-quests-page{padding:15px;height:auto}.admin-quests-header{flex-direction:column;gap:12px;align-items:stretch}.admin-quests-header h1{font-size:24px}.btn-create{width:100%}.quest-table{font-size:12px}.quest-table thead th:nth-child(2),.quest-table tbody td:nth-child(2),.quest-table thead th:nth-child(3),.quest-table tbody td:nth-child(3){display:none}.quest-name-cell{gap:8px}.map-icon{font-size:20px}.quest-name-text h3{font-size:13px}.quest-name-text .quest-type{font-size:11px}.map-actions{flex-direction:column;gap:4px}.btn-icon-action{width:100%;height:32px;font-size:14px}.btn-map-editor{width:100%}.form-row{grid-template-columns:1fr}.quest-modal,.stations-modal{padding:30px 20px;max-height:95vh}.station-item{flex-direction:column;align-items:flex-start}.btn-remove{width:100%}}.admin-users-page{padding:2rem;max-width:1600px;margin:0 auto}.page-header h1{font-size:2rem;font-weight:700;color:#fbbf24;margin:0;margin-bottom:.5rem}.btn-create{background:linear-gradient(135deg,#fbbf24,#f59e0b);color:#1f2937;border:none;padding:.875rem 1.75rem;border-radius:.75rem;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s;box-shadow:0 4px 12px #fbbf244d}.btn-create:hover{transform:translateY(-2px);box-shadow:0 6px 20px #fbbf2466}.filters-section{display:flex;gap:1rem;margin-bottom:2rem;padding:1.5rem;background:#1f293780;border-radius:1rem;border:1px solid rgba(251,191,36,.1);flex-wrap:wrap}.filter-group{flex:1;min-width:200px}.filter-group label{display:block;color:#d1d5db;font-size:.875rem;font-weight:600;margin-bottom:.5rem}.filter-input,.filter-select{width:100%;padding:.75rem;background:#374151;border:1px solid #4b5563;border-radius:.5rem;color:#f3f4f6;font-size:1rem}.filter-input:focus,.filter-select:focus{outline:none;border-color:#fbbf24;box-shadow:0 0 0 3px #fbbf241a}.btn-clear-filters{align-self:flex-end;padding:.75rem 1.5rem;background:#4b5563;color:#f3f4f6;border:none;border-radius:.5rem;font-size:.875rem;font-weight:600;cursor:pointer;transition:all .2s}.btn-clear-filters:hover{background:#6b7280}.users-table-container{background:#1f293780;border-radius:1rem;border:1px solid rgba(251,191,36,.1);overflow:hidden}.users-table{width:100%;border-collapse:collapse}.users-table thead{background:#fbbf241a}.users-table th{padding:1rem;text-align:left;font-size:.875rem;font-weight:700;color:#fbbf24;text-transform:uppercase;letter-spacing:.05em;border-bottom:2px solid rgba(251,191,36,.2)}.users-table tbody tr{border-bottom:1px solid rgba(75,85,99,.3);transition:background-color .2s}.users-table tbody tr:hover{background:#fbbf240d}.users-table tbody tr.inactive-row{opacity:.6}.users-table td{padding:1rem;color:#e5e7eb;font-size:.9375rem}.user-cell{display:flex;align-items:center;gap:.75rem}.user-avatar{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#fbbf24,#f59e0b);display:flex;align-items:center;justify-content:center;font-weight:700;color:#1f2937;font-size:1.125rem;flex-shrink:0}.user-username{font-weight:600;color:#f3f4f6}.user-id{font-size:.75rem;color:#9ca3af;font-family:monospace}.role-badge{display:inline-block;padding:.375rem .75rem;border-radius:.5rem;font-size:.8125rem;font-weight:600;color:#fff;white-space:nowrap}.status-badge{display:inline-block;padding:.375rem .75rem;border-radius:.5rem;font-size:.8125rem;font-weight:600}.status-badge.active{background:#10b981;color:#fff}.status-badge.inactive{background:#ef4444;color:#fff}.mfa-badge{display:inline-block;padding:.375rem .75rem;border-radius:.5rem;font-size:.8125rem;font-weight:600}.mfa-badge.enabled{background:#3b82f6;color:#fff}.mfa-badge.disabled{background:#6b7280;color:#e5e7eb}.family-count{color:#9ca3af;font-size:.875rem}.action-buttons{display:flex;gap:.5rem}.btn-edit-small,.btn-delete-small{padding:.5rem .75rem;border:none;border-radius:.5rem;cursor:pointer;font-size:1rem;transition:all .2s}.btn-edit-small{background:#3b82f6;color:#fff}.btn-edit-small:hover{background:#2563eb;transform:scale(1.1)}.btn-delete-small{background:#ef4444;color:#fff}.btn-delete-small:hover{background:#dc2626;transform:scale(1.1)}.modal-overlay{position:fixed;inset:0;background:#000000bf;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem}.modal-content{background:#1f2937;border-radius:1rem;max-width:600px;width:100%;max-height:90vh;border:1px solid rgba(251,191,36,.2);box-shadow:0 20px 60px #00000080;display:flex;flex-direction:column}.modal-content form{display:flex;flex-direction:column;max-height:calc(90vh - 8rem);overflow-y:auto;padding:0 2rem 2rem;margin:0 -2rem -2rem}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:0;padding:2rem 2rem 1rem;border-bottom:2px solid rgba(251,191,36,.2);flex-shrink:0}.modal-header h2{font-size:1.5rem;font-weight:700;color:#fbbf24;margin:0}.modal-close{background:none;border:none;font-size:2rem;color:#9ca3af;cursor:pointer;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:.5rem;transition:all .2s}.modal-close:hover{background:#ef44441a;color:#ef4444}.form-group{margin-bottom:1.5rem}.form-group label{display:block;color:#d1d5db;font-size:.875rem;font-weight:600;margin-bottom:.5rem}.form-input,.form-select{width:100%;padding:.875rem;background:#374151;border:1px solid #4b5563;border-radius:.5rem;color:#f3f4f6;font-size:1rem}.form-input:focus,.form-select:focus{outline:none;border-color:#fbbf24;box-shadow:0 0 0 3px #fbbf241a}.form-group small{display:block;margin-top:.5rem;color:#9ca3af;font-size:.8125rem}.checkbox-label{display:flex;align-items:center;gap:.75rem;cursor:pointer}.checkbox-label input[type=checkbox]{width:20px;height:20px;cursor:pointer;accent-color:#fbbf24}.checkbox-label span{font-size:1rem;color:#f3f4f6}.modal-actions{display:flex;gap:1rem;justify-content:flex-end;margin-top:2rem;padding-top:1.5rem;border-top:1px solid rgba(75,85,99,.3);position:sticky;bottom:0;background:#1f2937;flex-shrink:0}.btn-cancel{padding:.875rem 1.5rem;background:#4b5563;color:#f3f4f6;border:none;border-radius:.5rem;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s}.btn-cancel:hover{background:#6b7280}.btn-submit{padding:.875rem 1.5rem;background:linear-gradient(135deg,#fbbf24,#f59e0b);color:#1f2937;border:none;border-radius:.5rem;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s;box-shadow:0 4px 12px #fbbf244d}.btn-submit:hover{transform:translateY(-2px);box-shadow:0 6px 20px #fbbf2466}.empty-state{padding:4rem 2rem;text-align:center;color:#9ca3af;font-size:1.125rem}@media(max-width:1200px){.users-table-container{overflow-x:auto}.users-table{min-width:900px}}@media(max-width:768px){.admin-users-page{padding:1rem}.page-header{flex-direction:column;gap:1rem}.btn-create{width:100%}.filters-section{flex-direction:column}.filter-group{min-width:100%}}.admin-dashboard{padding:2rem;max-width:1600px;margin:0 auto}.admin-dashboard-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:2rem;padding-bottom:1.5rem;border-bottom:2px solid rgba(251,191,36,.2)}.admin-dashboard-header h1{font-size:2.5rem;font-weight:700;color:#fbbf24;margin:0;margin-bottom:.5rem}.subtitle{color:#9ca3af;font-size:1.125rem;margin:0}.user-info{display:flex;flex-direction:column;align-items:flex-end;gap:.5rem}.user-role{padding:.5rem 1rem;background:linear-gradient(135deg,#dc2626,#991b1b);color:#fff;border-radius:.5rem;font-size:.875rem;font-weight:600}.user-name{color:#d1d5db;font-size:.875rem}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem;margin-bottom:3rem}.stat-card{background:#1f293780;border-radius:1rem;padding:1.5rem;border:1px solid rgba(251,191,36,.1);display:flex;gap:1.5rem;align-items:center;transition:all .3s}.stat-card:hover{transform:translateY(-4px);border-color:#fbbf244d;box-shadow:0 8px 24px #fbbf241a}.stat-card.users .stat-icon{background:linear-gradient(135deg,#3b82f6,#1d4ed8)}.stat-card.families .stat-icon{background:linear-gradient(135deg,#10b981,#047857)}.stat-card.system .stat-icon{background:linear-gradient(135deg,#f59e0b,#d97706)}.stat-card.security .stat-icon{background:linear-gradient(135deg,#8b5cf6,#6d28d9)}.stat-icon{width:64px;height:64px;border-radius:1rem;display:flex;align-items:center;justify-content:center;font-size:2rem;flex-shrink:0}.stat-value{font-size:2rem;font-weight:700;color:#f3f4f6;line-height:1;margin-bottom:.5rem}.stat-label{font-size:.875rem;font-weight:600;color:#d1d5db;text-transform:uppercase;letter-spacing:.05em}.stat-subtext{font-size:.8125rem;color:#9ca3af;margin-top:.25rem}.quick-access-section{margin-bottom:3rem}.quick-access-section h2{font-size:1.5rem;font-weight:700;color:#f3f4f6;margin-bottom:1.5rem}.quick-access-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.5rem}.quick-access-card{background:#1f293780;border-radius:1rem;padding:1.5rem;border:1px solid rgba(251,191,36,.1);display:flex;gap:1rem;align-items:center;text-decoration:none;transition:all .3s;position:relative}.quick-access-card:hover{transform:translate(8px);border-color:#fbbf2466;background:#1f2937cc}.quick-access-icon{width:56px;height:56px;border-radius:.75rem;background:linear-gradient(135deg,#fbbf2433,#fbbf241a);display:flex;align-items:center;justify-content:center;font-size:1.75rem;flex-shrink:0}.quick-access-content{flex:1}.quick-access-content h3{font-size:1.125rem;font-weight:600;color:#f3f4f6;margin:0 0 .5rem;display:flex;align-items:center;gap:.5rem}.quick-access-content p{font-size:.875rem;color:#9ca3af;margin:0}.badge{padding:.25rem .625rem;background:linear-gradient(135deg,#fbbf24,#f59e0b);color:#1f2937;border-radius:.375rem;font-size:.75rem;font-weight:700}.quick-access-arrow{font-size:1.5rem;color:#6b7280;transition:all .3s}.quick-access-card:hover .quick-access-arrow{color:#fbbf24;transform:translate(4px)}.system-info{margin-bottom:3rem}.system-info h2{font-size:1.5rem;font-weight:700;color:#f3f4f6;margin-bottom:1.5rem}.info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;padding:1.5rem;background:#1f293780;border-radius:1rem;border:1px solid rgba(251,191,36,.1)}.info-item{display:flex;flex-direction:column;gap:.5rem}.info-label{font-size:.75rem;font-weight:600;color:#9ca3af;text-transform:uppercase;letter-spacing:.05em}.info-value{font-size:1rem;font-weight:600;color:#f3f4f6}.role-hierarchy{margin-bottom:3rem}.role-hierarchy h2{font-size:1.5rem;font-weight:700;color:#f3f4f6;margin-bottom:1.5rem}.hierarchy-tree{padding:2rem;background:#1f293780;border-radius:1rem;border:1px solid rgba(251,191,36,.1)}.hierarchy-node{padding:1.5rem;border-radius:.75rem;margin-bottom:1.5rem;border:2px solid}.hierarchy-node.super-admin{background:#dc26261a;border-color:#dc26264d}.hierarchy-node.support-admin{background:#f59e0b1a;border-color:#f59e0b4d}.hierarchy-node.standard{background:#10b9811a;border-color:#10b9814d}.node-header{display:flex;align-items:center;gap:.75rem;margin-bottom:.5rem}.node-icon{font-size:1.5rem}.node-title{font-size:1.125rem;font-weight:700;color:#f3f4f6}.node-description{font-size:.9375rem;color:#d1d5db;line-height:1.5}.hierarchy-level{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.5rem;margin-left:2rem;margin-bottom:1.5rem;padding-left:2rem;border-left:2px dashed rgba(251,191,36,.3)}.hierarchy-sublevel{margin-top:1rem;padding-top:1rem;border-top:1px dashed rgba(75,85,99,.5);display:flex;flex-direction:column;gap:.75rem}.hierarchy-subnode{display:flex;align-items:center;gap:.75rem;padding:.75rem;background:#0003;border-radius:.5rem;border:1px solid rgba(75,85,99,.3)}.subnode-icon{font-size:1.25rem}.subnode-title{font-size:.875rem;font-weight:600;color:#f3f4f6}.subnode-desc{font-size:.8125rem;color:#9ca3af;margin-left:auto}.loading{padding:4rem 2rem;text-align:center;color:#fbbf24;font-size:1.125rem}@media(max-width:768px){.admin-dashboard{padding:1rem}.admin-dashboard-header{flex-direction:column;gap:1rem}.user-info{align-items:flex-start}.stats-grid,.quick-access-grid{grid-template-columns:1fr}.hierarchy-level{grid-template-columns:1fr;margin-left:1rem;padding-left:1rem}}.family-management-page{padding:2rem;max-width:1400px;margin:0 auto}.page-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:2rem;padding-bottom:1.5rem;border-bottom:2px solid rgba(251,191,36,.2)}.page-header h1{font-size:2rem;color:#fff;margin:0 0 .5rem;font-weight:700}.page-subtitle{color:#9ca3af;font-size:1rem;margin:0}.header-actions{display:flex;gap:1rem}.btn-create-family{padding:.875rem 1.75rem;background:linear-gradient(135deg,#fbbf24,#f59e0b);color:#000;border:none;border-radius:.75rem;font-weight:600;font-size:1rem;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 12px #fbbf244d}.btn-create-family:hover{transform:translateY(-2px);box-shadow:0 6px 20px #fbbf2466}.search-section{margin-bottom:2rem}.search-box{position:relative;max-width:600px}.search-icon{position:absolute;left:1.25rem;top:50%;transform:translateY(-50%);font-size:1.25rem;pointer-events:none}.search-input{width:100%;padding:1rem 3.5rem;background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:1rem;color:#fff;font-size:1rem;transition:all .3s ease}.search-input:focus{outline:none;background:#ffffff14;border-color:#fbbf24;box-shadow:0 0 0 3px #fbbf241a}.search-input::placeholder{color:#6b7280}.clear-search{position:absolute;right:1rem;top:50%;transform:translateY(-50%);background:#ffffff1a;border:none;color:#9ca3af;width:28px;height:28px;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:1rem;transition:all .2s ease}.clear-search:hover{background:#ffffff26;color:#fff}.tree-container{background:#ffffff08;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.1);border-radius:1rem;padding:1.5rem;margin-bottom:2rem;min-height:400px}.tree-list{display:flex;flex-direction:column;gap:.5rem}.tree-item{position:relative}.tree-row{display:flex;align-items:center;gap:.75rem;padding:1rem;background:#ffffff0d;border:1px solid rgba(255,255,255,.08);border-radius:.75rem;transition:all .3s ease;position:relative}.tree-row:hover{background:#ffffff14;border-color:#fbbf244d;transform:translate(4px)}.family-row{background:linear-gradient(135deg,#fbbf241a,#fbbf240d);border-left:4px solid #fbbf24}.family-row:hover{background:linear-gradient(135deg,#fbbf2426,#fbbf2414)}.member-row{margin-left:2rem;background:#3b82f60d;border-left:3px solid rgba(59,130,246,.3)}.member-row:hover{background:#3b82f61a;border-left-color:#3b82f6}.member-row.empty{background:#6b72800d;border-left-color:#6b7280}.member-row.empty:hover{transform:none}.tree-toggle{background:#ffffff1a;border:1px solid rgba(255,255,255,.15);color:#fbbf24;width:32px;height:32px;border-radius:.5rem;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:.875rem;transition:all .2s ease;flex-shrink:0}.tree-toggle:hover{background:#fbbf2433;border-color:#fbbf24;transform:scale(1.1)}.tree-icon{width:40px;height:40px;border-radius:.75rem;display:flex;align-items:center;justify-content:center;font-size:1.5rem;flex-shrink:0;transition:all .3s ease}.family-icon{background:linear-gradient(135deg,#fbbf2433,#fbbf241a);border:1px solid rgba(251,191,36,.3)}.member-icon{background:linear-gradient(135deg,#3b82f633,#3b82f61a);border:1px solid rgba(59,130,246,.3);font-size:1.25rem}.tree-content{flex:1;min-width:0}.tree-main{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.tree-title{font-size:1.125rem;font-weight:600;color:#fff;margin:0}.family-slug{color:#6b7280;font-size:.875rem;font-family:Courier New,monospace;background:#0003;padding:.25rem .5rem;border-radius:.375rem}.username-sub{color:#6b7280;font-size:.875rem;font-weight:400;margin-left:.5rem}.member-email{color:#9ca3af;font-size:.875rem}.member-count{color:#9ca3af;font-size:.875rem;background:#ffffff0d;padding:.25rem .75rem;border-radius:1rem}.status-badge{padding:.25rem .75rem;border-radius:1rem;font-size:.75rem;font-weight:600;border:1px solid}.status-badge.active{background:#10b98126;color:#10b981;border-color:#10b9814d}.status-badge.inactive{background:#ef444426;color:#ef4444;border-color:#ef44444d}.role-badge{padding:.25rem .75rem;border-radius:1rem;font-size:.75rem;font-weight:600;border:1px solid}.role-badge.family_admin{background:#fbbf2426;color:#fbbf24;border-color:#fbbf244d}.role-badge.member{background:#3b82f626;color:#3b82f6;border-color:#3b82f64d}.role-select{padding:.375rem .75rem;border-radius:.5rem;font-size:.875rem;font-weight:600;border:1.5px solid;background:#1e293b80;color:#fff;cursor:pointer;transition:all .2s ease;outline:none}.role-select.family_admin{border-color:#fbbf2466;background:#fbbf241a;color:#fbbf24}.role-select.member{border-color:#3b82f666;background:#3b82f61a;color:#3b82f6}.role-select:hover{border-color:#fbbf2499;background:#1e293bb3}.role-select option{background:#1e293b;color:#fff}.tree-actions{display:flex;gap:.5rem;flex-shrink:0}.btn-tree-action{padding:.5rem 1rem;border:1px solid;border-radius:.5rem;font-size:.875rem;font-weight:600;cursor:pointer;transition:all .2s ease;white-space:nowrap}.btn-tree-action.btn-add{background:#10b9811a;color:#10b981;border-color:#10b9814d}.btn-tree-action.btn-add:hover{background:#10b98133;border-color:#10b981;transform:translateY(-2px)}.btn-tree-action.btn-edit{background:#3b82f61a;color:#3b82f6;border-color:#3b82f64d}.btn-tree-action.btn-edit:hover{background:#3b82f633;border-color:#3b82f6;transform:translateY(-2px)}.btn-tree-action.btn-delete,.btn-tree-action.btn-remove{background:#ef44441a;color:#ef4444;border-color:#ef44444d}.btn-tree-action.btn-delete:hover,.btn-tree-action.btn-remove:hover{background:#ef444433;border-color:#ef4444;transform:translateY(-2px)}.tree-children{margin-top:.5rem;display:flex;flex-direction:column;gap:.5rem}.tree-indent{width:2rem;flex-shrink:0}.tree-connector{position:absolute;left:4rem;width:2px;height:calc(100% - 1rem);background:#3b82f633;top:.5rem}.empty-members{color:#6b7280;font-style:italic;margin:0}.summary-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.5rem;margin-top:2rem}.stat-box{display:flex;align-items:center;gap:1rem;padding:1.5rem;background:linear-gradient(135deg,#ffffff0d,#ffffff05);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.1);border-radius:1rem;transition:all .3s ease}.stat-box:hover{transform:translateY(-4px);border-color:#fbbf244d;box-shadow:0 8px 24px #0003}.stat-icon{width:60px;height:60px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#fbbf2433,#fbbf241a);border-radius:1rem;font-size:2rem}.stat-content{flex:1}.stat-value{font-size:2rem;font-weight:700;color:#fbbf24;line-height:1;margin-bottom:.25rem}.stat-label{font-size:.875rem;color:#9ca3af;font-weight:500}.empty-state{text-align:center;padding:4rem 2rem;color:#9ca3af}.empty-icon{font-size:4rem;margin-bottom:1rem;opacity:.5}.empty-state h3{color:#fff;font-size:1.5rem;margin:0 0 .5rem}.empty-state p{color:#6b7280;margin:0}@media(max-width:1024px){.tree-actions{flex-direction:column}.btn-tree-action{width:100%}}@media(max-width:768px){.family-management-page{padding:1rem}.page-header{flex-direction:column;gap:1rem}.header-actions,.btn-create-family{width:100%}.tree-row{flex-wrap:wrap;gap:.5rem}.tree-toggle{width:28px;height:28px}.tree-icon{width:36px;height:36px;font-size:1.25rem}.tree-title{font-size:1rem}.tree-actions{width:100%;margin-top:.5rem}.btn-tree-action{flex:1;font-size:.75rem;padding:.5rem}.member-row{margin-left:1rem}.tree-indent{width:1rem}.summary-stats{grid-template-columns:1fr}}@media(max-width:480px){.tree-main{flex-direction:column;align-items:flex-start;gap:.5rem}.family-slug,.member-email,.member-count{font-size:.75rem}}
