* { margin:0; padding:0; box-sizing:border-box; }
body { background:#080c0e; color:#d4d4d4; font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif; min-height:100vh; overflow-x:hidden; }
#particleCanvas { position:fixed; top:0; left:0; width:100%; height:100%; z-index:0; pointer-events:none; opacity:0.5; }
.loading { position:fixed; inset:0; background:#080c0e; display:flex; flex-direction:column; justify-content:center; align-items:center; z-index:9999; transition:opacity 0.8s; }
.spinner { width:48px; height:48px; border:3px solid rgba(0,230,118,0.12); border-top-color:#00e676; border-radius:50%; animation:spin 0.9s cubic-bezier(0.68,-0.55,0.27,1.55) infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.loading-text { margin-top:20px; color:#6a6a6a; font-size:13px; letter-spacing:2px; animation:pulseText 2s ease-in-out infinite; }
@keyframes pulseText { 0%,100% { opacity:0.4; } 50% { opacity:1; } }
#loginPage { position:relative; width:100vw; min-height:100vh; display:flex; justify-content:center; align-items:center; padding:20px; z-index:1; }
.login-logo { position:absolute; top:24px; left:24px; z-index:10; }
.login-logo img { height:50px; width:auto; max-height:60px; filter:drop-shadow(0 0 12px rgba(0,230,118,0.2)); }
.login-wrapper { display:flex; flex-direction:column; align-items:center; width:100%; max-width:500px; animation:slideUp 0.7s cubic-bezier(0.22,1,0.36,1); }
@keyframes slideUp { from { opacity:0; transform:translateY(30px) scale(0.97); } to { opacity:1; transform:translateY(0) scale(1); } }
.video-box { width:100%; max-width:480px; aspect-ratio:16/9; border-radius:20px 20px 0 0; overflow:hidden; background:#000; border:1px solid rgba(0,230,118,0.15); border-bottom:none; box-shadow:0 -8px 32px rgba(0,0,0,0.4); }
.video-box video { width:100%; height:100%; object-fit:cover; display:block; }
.login-card { width:100%; max-width:480px; padding:32px 28px 28px; border-radius:0 0 24px 24px; background:rgba(14,22,26,0.85); backdrop-filter:blur(16px); border:1px solid rgba(0,230,118,0.12); border-top:none; box-shadow:0 20px 60px rgba(0,0,0,0.7); }
.login-header { display:flex; align-items:baseline; justify-content:center; gap:12px; margin-bottom:6px; }
.brand { font-size:34px; font-weight:700; color:#00e676; letter-spacing:1px; }
.version { font-size:13px; color:#5a5a5a; }
.login-subtitle { text-align:center; color:#8a8a8a; font-size:14px; letter-spacing:2px; margin-bottom:28px; }
.login-footer { margin-top:20px; text-align:center; font-size:11px; color:#4a4a4a; letter-spacing:0.5px; }
.glass { background:rgba(14,22,26,0.75); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); border:1px solid rgba(0,230,118,0.08); box-shadow:0 8px 40px rgba(0,0,0,0.5); }
.field-group { margin-bottom:18px; }
.field-group label { display:block; font-size:12px; color:#b0b0b0; margin-bottom:5px; text-transform:uppercase; letter-spacing:0.5px; font-weight:600; }
.field-group input, .field-group select { width:100%; padding:14px 16px; background:rgba(0,0,0,0.3); border:1px solid rgba(255,255,255,0.06); border-radius:12px; color:#e0e0e0; font-size:15px; transition:border-color 0.25s, box-shadow 0.25s; }
.field-group input:focus, .field-group select:focus { outline:none; border-color:#00e676; box-shadow:0 0 0 3px rgba(0,230,118,0.08); }
.btn-primary { padding:14px 24px; background:linear-gradient(135deg, #00e676, #00c853); border:none; border-radius:12px; color:#080c0e; font-weight:700; font-size:15px; cursor:pointer; transition:transform 0.2s, box-shadow 0.3s; }
.btn-primary:hover { transform:scale(1.02); box-shadow:0 6px 24px rgba(0,230,118,0.3); }
.btn-block { width:100%; }
.btn-outline { background:transparent; border:1px solid #3a3a3a; color:#c0c0c0; padding:8px 20px; border-radius:30px; cursor:pointer; transition:border-color 0.25s, color 0.25s; font-size:13px; }
.btn-outline:hover { border-color:#00e676; color:#00e676; }
.btn-small { background:rgba(0,230,118,0.08); border:1px solid rgba(0,230,118,0.2); color:#00e676; padding:4px 14px; border-radius:20px; cursor:pointer; font-size:11px; transition:background 0.2s, color 0.2s; }
.btn-small:hover { background:#00e676; color:#080c0e; }
.form-error { color:#ff5252; margin-top:12px; font-size:13px; text-align:center; }
.form-info { color:#00e676; margin-top:10px; font-size:13px; text-align:center; }
.fullscreen-video { position:fixed; inset:0; z-index:9999; background:#000; display:flex; justify-content:center; align-items:center; }
.fullscreen-video video { width:100%; height:100%; object-fit:cover; }
.skip-btn { position:absolute; bottom:40px; right:40px; padding:12px 32px; background:rgba(0,230,118,0.15); border:1px solid rgba(0,230,118,0.3); border-radius:30px; color:#00e676; font-size:16px; font-weight:600; cursor:pointer; transition:all 0.3s; z-index:10; backdrop-filter:blur(8px); }
.skip-btn:hover { background:#00e676; color:#080c0e; }
.navbar { display:flex; justify-content:space-between; align-items:center; padding:14px 32px; position:sticky; top:0; z-index:100; border-bottom:1px solid rgba(0,230,118,0.05); }
.nav-left { display:flex; align-items:center; gap:12px; }
.nav-logo { height:32px; width:auto; }
.nav-left .brand { font-size:22px; }
.nav-left .version { font-size:12px; color:#5a5a5a; }
.nav-right { display:flex; align-items:center; gap:16px; }
.role-badge { background:rgba(0,230,118,0.12); padding:4px 16px; border-radius:30px; font-size:12px; color:#00e676; border:1px solid rgba(0,230,118,0.15); }
.app-container { display:flex; height:calc(100vh - 72px); overflow:hidden; }
.sidebar { width:200px; flex-shrink:0; padding:20px 0; border-right:1px solid rgba(255,255,255,0.04); overflow-y:auto; }
.tab { padding:14px 24px; cursor:pointer; color:#8a8a8a; transition:color 0.2s, background 0.2s, border-color 0.2s; border-left:3px solid transparent; font-size:14px; font-weight:500; }
.tab:hover { color:#e0e0e0; background:rgba(255,255,255,0.02); }
.tab.active { color:#00e676; border-left-color:#00e676; background:rgba(0,230,118,0.04); }
.content-area { flex:1; padding:28px 36px; overflow-y:auto; height:100%; }
.tab-pane { display:none; animation:fadeIn 0.4s ease; }
.tab-pane.active { display:block; }
@keyframes fadeIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
.section-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:24px; }
.section-head h2 { font-weight:400; color:#d0d0d0; font-size:22px; }
.badge-count { font-size:14px; color:#8a8a8a; }
.devices-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(200px,1fr)); gap:20px; }
.device-card { background:rgba(14,22,26,0.5); backdrop-filter:blur(4px); border:1px solid rgba(255,255,255,0.04); border-radius:18px; padding:20px 16px; text-align:center; cursor:pointer; transition:transform 0.25s, border-color 0.25s, box-shadow 0.3s; }
.device-card:hover { transform:translateY(-4px); border-color:rgba(0,230,118,0.3); box-shadow:0 12px 32px rgba(0,0,0,0.4); }
.device-icon { font-size:28px; line-height:1.2; }
.device-name { font-weight:600; font-size:15px; margin-top:10px; color:#e8e8e8; }
.device-status { font-size:13px; margin-top:4px; font-weight:500; }
.status-online { color:#00e676; }
.status-offline { color:#ff5252; }
.device-meta { font-size:11px; color:#6a6a6a; margin-top:8px; }
.profile-card { max-width:520px; padding:28px; border-radius:24px; }
.profile-row { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid rgba(255,255,255,0.04); }
.profile-label { width:100px; color:#8a8a8a; font-size:13px; font-weight:500; }
.profile-value { flex:1; color:#e0e0e0; font-weight:500; word-break:break-all; }
.divider { margin:24px 0 20px; border:none; height:1px; background:linear-gradient(to right, transparent, rgba(0,230,118,0.15), transparent); }
.profile-card h3 { font-weight:400; color:#c0c0c0; margin-bottom:18px; font-size:18px; }
.users-panel { padding:24px; border-radius:24px; }
.add-user-form { display:grid; grid-template-columns:repeat(auto-fill, minmax(180px,1fr)); gap:14px; margin-bottom:28px; }
.add-user-form .field-group { margin-bottom:0; }
.add-user-form .btn-primary { margin-top:6px; align-self:flex-end; }
.table-wrapper { overflow-x:auto; }
table { width:100%; border-collapse:collapse; font-size:14px; }
th, td { padding:12px 14px; text-align:left; border-bottom:1px solid rgba(255,255,255,0.04); }
th { color:#8a8a8a; font-weight:500; text-transform:uppercase; font-size:12px; letter-spacing:0.5px; }
.delete-btn { background:transparent; border:1px solid rgba(255,82,82,0.2); color:#ff5252; padding:4px 14px; border-radius:20px; cursor:pointer; transition:background 0.2s, color 0.2s; font-size:12px; }
.delete-btn:hover { background:#ff5252; color:#080c0e; border-color:#ff5252; }
.buy-container { padding:24px; border-radius:24px; }
.buy-tabs { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:24px; }
.buy-tab { padding:10px 24px; border-radius:30px; cursor:pointer; background:rgba(255,255,255,0.04); color:#8a8a8a; transition:all 0.25s; border:1px solid transparent; }
.buy-tab.active { background:rgba(0,230,118,0.12); color:#00e676; border-color:rgba(0,230,118,0.2); }
.buy-tab:hover { background:rgba(0,230,118,0.06); color:#e0e0e0; }
.buy-item { display:flex; justify-content:space-between; align-items:center; padding:12px 0; border-bottom:1px solid rgba(255,255,255,0.04); }
.buy-item .label { font-weight:500; color:#e0e0e0; }
.buy-item .price { color:#00e676; font-weight:600; }
.buy-item .btn-small { margin-left:16px; }
.chat-container { padding:24px; border-radius:24px; max-height:70vh; display:flex; flex-direction:column; }
.chat-messages { flex:1; overflow-y:auto; max-height:50vh; padding:8px 12px; background:rgba(0,0,0,0.2); border-radius:12px; margin-bottom:16px; }
.chat-message { padding:8px 12px; margin-bottom:6px; border-radius:12px; background:rgba(255,255,255,0.04); }
.chat-message .chat-user { font-weight:600; color:#00e676; font-size:12px; }
.chat-message .chat-text { color:#e0e0e0; font-size:14px; margin-top:2px; }
.chat-message .chat-time { font-size:10px; color:#6a6a6a; float:right; }
.chat-form { display:flex; gap:12px; }
.chat-form input { flex:1; padding:12px 16px; background:rgba(0,0,0,0.3); border:1px solid rgba(255,255,255,0.06); border-radius:12px; color:#e0e0e0; font-size:14px; }
.chat-form input:focus { outline:none; border-color:#00e676; }
.chat-form .btn-primary { padding:12px 24px; flex-shrink:0; }
.modal { position:fixed; inset:0; background:rgba(0,0,0,0.8); backdrop-filter:blur(12px); z-index:1000; display:flex; justify-content:center; align-items:center; padding:20px; }
.modal-content { width:90%; max-width:820px; max-height:90vh; border-radius:28px; background:rgba(12,18,20,0.9); backdrop-filter:blur(16px); border:1px solid rgba(0,230,118,0.12); display:flex; flex-direction:column; overflow:hidden; animation:modalIn 0.35s cubic-bezier(0.22,1,0.36,1); }
@keyframes modalIn { from { opacity:0; transform:scale(0.95) translateY(20px); } to { opacity:1; transform:scale(1) translateY(0); } }
.modal-header { display:flex; justify-content:space-between; align-items:center; padding:18px 28px; border-bottom:1px solid rgba(255,255,255,0.05); }
.modal-title { font-size:20px; font-weight:600; color:#00e676; }
.modal-close { background:none; border:none; color:#8a8a8a; font-size:32px; cursor:pointer; transition:all 0.2s; }
.modal-close:hover { color:#fff; transform:rotate(90deg); }
.rat-tools { padding:18px 28px; display:flex; flex-wrap:wrap; gap:10px; border-bottom:1px solid rgba(255,255,255,0.05); }
.tool-btn { background:rgba(0,0,0,0.3); border:1px solid rgba(255,255,255,0.08); color:#c0c0c0; padding:10px 20px; border-radius:30px; cursor:pointer; font-size:13px; transition:all 0.2s; }
.tool-btn:hover { background:#00e676; color:#080c0e; transform:translateY(-2px); box-shadow:0 8px 20px rgba(0,230,118,0.2); }
.rat-response { padding:20px 28px; height:280px; overflow-y:auto; background:rgba(0,0,0,0.2); font-family:'Courier New', monospace; font-size:13px; border-radius:0 0 28px 28px; }
.log-entry { padding:6px 0; border-bottom:1px solid rgba(255,255,255,0.03); color:#b0b0b0; }
.log-success { color:#00e676; }
.log-error { color:#ff5252; }
.log-file { color:#ffab00; padding-left:20px; }
.log-image { max-width:100%; max-height:240px; border-radius:12px; margin:8px 0; border:1px solid rgba(0,230,118,0.2); }
@media (max-width:768px) { .app-container { flex-direction:column; height:auto; } .sidebar { width:100%; border-right:none; border-bottom:1px solid rgba(255,255,255,0.05); display:flex; flex-wrap:wrap; padding:10px 0; } .tab { flex:1; text-align:center; border-left:none; border-bottom:3px solid transparent; padding:12px 8px; font-size:13px; } .tab.active { border-bottom-color:#00e676; } .content-area { padding:16px; } .login-card { padding:24px 20px; } .login-logo img { height:36px; } .video-box { max-width:100%; border-radius:16px 16px 0 0; } .login-card { border-radius:0 0 16px 16px; } .devices-grid { grid-template-columns:repeat(auto-fill, minmax(150px,1fr)); } .modal-content { width:100%; max-height:100vh; border-radius:0; } .rat-tools { padding:12px 16px; } .rat-response { height:200px; padding:12px 16px; } .skip-btn { bottom:20px; right:20px; padding:10px 24px; font-size:14px; } }
@media (max-width:480px) { .login-wrapper { max-width:100%; } .login-card { padding:20px 16px; } .profile-row { flex-wrap:wrap; } .profile-label { width:100%; } }