@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary:    #06060f;
  --bg-secondary:  #0a0a18;
  --bg-card:       rgba(255,255,255,0.03);
  --bg-card-hover: rgba(255,255,255,0.055);
  --border:        rgba(255,255,255,0.08);
  --border-hover:  rgba(255,255,255,0.18);
  --accent:        #7c3aed;
  --accent-light:  #a78bfa;
  --accent-glow:   rgba(124,58,237,0.3);
  --accent2:       #06b6d4;
  --danger:        #ef4444;
  --success:       #22c55e;
  --success-glow:  rgba(34,197,94,0.2);
  --warning:       #f59e0b;
  --text-primary:  #f0f0fa;
  --text-secondary:#8888aa;
  --text-muted:    #44445a;
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     20px;
  --radius-xl:     28px;
  --transition:    all 0.25s cubic-bezier(0.4,0,0.2,1);
  --font-display:  'Syne', sans-serif;
  --font-body:     'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(124,58,237,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 100%, rgba(6,182,212,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 40%, rgba(34,197,94,0.04) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}

body::after {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 0%, transparent 100%);
  pointer-events: none; z-index: 0;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 99px; }

/* ===== CARD ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  pointer-events: none;
}
.card:hover { border-color: var(--border-hover); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-md);
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  cursor: pointer; border: none; transition: var(--transition);
  text-decoration: none; white-space: nowrap; letter-spacing: 0.2px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #5b21b6);
  color: #fff; box-shadow: 0 4px 24px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px var(--accent-glow); }
.btn-secondary {
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-secondary:hover { border-color: var(--border-hover); color: var(--text-primary); background: rgba(255,255,255,0.08); }
.btn-danger { background: linear-gradient(135deg, var(--danger), #dc2626); color: #fff; box-shadow: 0 4px 20px rgba(239,68,68,0.3); }
.btn-danger:hover { transform: translateY(-2px); }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-sm { padding: 8px 16px; font-size: 12px; border-radius: 8px; }
.btn:active { transform: scale(0.97); }

/* ===== INPUTS ===== */
.input-group { display: flex; flex-direction: column; gap: 7px; }
.input-group label { font-size: 12px; font-weight: 500; color: var(--text-secondary); letter-spacing: 0.5px; }
.input-field {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 13px 16px; color: var(--text-primary);
  font-family: var(--font-body); font-size: 14px; transition: var(--transition); width: 100%;
}
.input-field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.input-field::placeholder { color: var(--text-muted); }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 64px;
  background: rgba(6,6,15,0.88);
  backdrop-filter: blur(28px);
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
  color: var(--text-primary); text-decoration: none; letter-spacing: -0.3px;
}
.nav-brand .shield-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, #1e3a8a, #4f8fff);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  box-shadow: 0 0 18px rgba(79,143,255,0.45);
}
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-user { font-size: 13px; color: var(--text-secondary); }

/* ===== PAGE ===== */
.page { position: relative; z-index: 1; }
.page-auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.page-main { padding-top: 64px; min-height: 100vh; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 40px; }

/* ===== AUTH ===== */
.auth-box {
  width: 100%; max-width: 420px; padding: 44px;
  background: rgba(10,10,24,0.96); border: 1px solid var(--border);
  border-radius: var(--radius-xl); backdrop-filter: blur(24px);
}
.auth-logo { text-align: center; margin-bottom: 36px; }
.auth-logo .logo-icon {
  width: 64px; height: 64px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent), #5b21b6);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 14px;
  box-shadow: 0 8px 32px var(--accent-glow);
}
.auth-logo h1 { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.auth-logo p { font-size: 13px; color: var(--text-secondary); margin-top: 5px; }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-tabs { display: flex; background: rgba(255,255,255,0.04); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 24px; }
.auth-tab { flex: 1; padding: 9px; text-align: center; font-size: 13px; font-weight: 500; cursor: pointer; border-radius: 6px; transition: var(--transition); color: var(--text-secondary); }
.auth-tab.active { background: var(--accent); color: #fff; box-shadow: 0 2px 12px var(--accent-glow); }

/* ===== HERO ===== */
.hero-greeting {
  padding: 44px 0 8px;
  font-size: 11px; color: var(--accent-light);
  text-transform: uppercase; letter-spacing: 2.5px; font-weight: 700;
}
.hero-title {
  font-family: var(--font-display);
  font-size: 44px; font-weight: 800; line-height: 1.1; letter-spacing: -1.5px;
  margin-bottom: 32px;
}
.hero-title span {
  background: linear-gradient(90deg, #a78bfa, #818cf8, #6ee7b7);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* ===== STATUS CARDS ===== */
.status-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-bottom: 16px;
}
.status-card {
  padding: 26px 28px; border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 110px;
}
.status-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}
.status-card-deco {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  opacity: 0.1; font-size: 80px; pointer-events: none;
}
.sc-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.8px; font-weight: 700; }
.sc-value { font-size: 18px; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 10px; }
.dot-green { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 12px var(--success); flex-shrink: 0; animation: pulse-dot 2s infinite; }
.dot-blue { width: 9px; height: 9px; border-radius: 50%; background: #60a5fa; box-shadow: 0 0 12px #60a5fa; flex-shrink: 0; animation: pulse-dot 2s infinite; }
.id-mono { font-family: 'Courier New', monospace; font-size: 14px; color: #a5b4fc; letter-spacing: 0.5px; }
.btn-copy-id {
  font-size: 11px; padding: 4px 10px; border-radius: 6px; cursor: pointer;
  background: rgba(124,58,237,0.12); border: 1px solid rgba(124,58,237,0.3);
  color: var(--accent-light); font-family: var(--font-body); transition: var(--transition);
}
.btn-copy-id:hover { background: rgba(124,58,237,0.22); }

/* ===== DEVICE CARD ===== */
.device-card {
  padding: 28px 32px; border-radius: var(--radius-lg);
  display: flex; align-items: center; gap: 24px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(34,197,94,0.06) 0%, rgba(10,10,24,0.9) 50%, rgba(79,143,255,0.06) 100%);
  border: 1px solid rgba(34,197,94,0.2);
  backdrop-filter: blur(16px);
  position: relative; overflow: hidden; transition: var(--transition);
}
.device-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34,197,94,0.5), rgba(79,143,255,0.5), transparent);
}
.device-card.offline { border-color: rgba(239,68,68,0.2); }
.device-card.offline::before { background: linear-gradient(90deg, transparent, rgba(239,68,68,0.4), transparent); }
.device-icon-wrap {
  width: 60px; height: 60px; flex-shrink: 0; border-radius: 16px;
  background: linear-gradient(135deg, rgba(34,197,94,0.18), rgba(79,143,255,0.14));
  border: 1px solid rgba(34,197,94,0.28);
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  box-shadow: 0 0 24px rgba(34,197,94,0.12);
}
.device-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.8px; font-weight: 700; margin-bottom: 6px; }
.device-name { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--success); }
.device-name.offline { color: var(--danger); }
.device-sub { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

/* ===== STATUS BADGE ===== */
.status-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 99px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.2px;
}
.status-badge .dot-live {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success); animation: pulse-dot 1.5s infinite;
}
.status-badge.live { background: rgba(34,197,94,0.12); color: var(--success); border: 1px solid rgba(34,197,94,0.35); }
.status-badge.connecting { background: rgba(245,158,11,0.12); color: var(--warning); border: 1px solid rgba(245,158,11,0.3); }
.status-badge.offline { background: rgba(239,68,68,0.12); color: var(--danger); border: 1px solid rgba(239,68,68,0.3); }

/* ===== MODULE GRID ===== */
.module-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; padding-bottom: 32px;
}
.module-card {
  padding: 30px 26px;
  cursor: pointer; text-decoration: none; color: inherit;
  display: flex; align-items: flex-start; gap: 20px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: var(--transition);
  position: relative; overflow: hidden;
  min-height: 130px;
}
.module-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}
.module-card:hover { background: rgba(255,255,255,0.045); border-color: var(--border-hover); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.module-card:hover .module-arrow-btn { opacity: 1; transform: scale(1); }
.module-icon {
  width: 56px; height: 56px; border-radius: 16px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.module-content { flex: 1; min-width: 0; }
.module-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.module-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.module-arrow-btn {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: rgba(255,255,255,0.07); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 15px;
  opacity: 0.5; transform: scale(0.9);
  transition: var(--transition); align-self: center;
}

/* ===== SECURITY CARD ===== */
.security-card {
  padding: 28px 36px; border-radius: var(--radius-lg);
  display: flex; align-items: center; gap: 28px;
  background: rgba(124,58,237,0.05);
  border: 1px solid rgba(124,58,237,0.15);
  backdrop-filter: blur(12px);
  margin-bottom: 48px;
  position: relative; overflow: hidden;
}
.security-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.4), transparent);
}
.security-icon { font-size: 60px; flex-shrink: 0; }
.security-info { flex: 1; }
.security-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 7px; }
.security-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.security-badge {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 22px; border-radius: var(--radius-md);
  background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.25); flex-shrink: 0;
}
.security-badge-icon { font-size: 22px; }
.security-badge-text { font-size: 13px; }
.security-badge-title { color: var(--accent-light); font-weight: 600; }
.security-badge-sub { color: var(--text-secondary); margin-top: 3px; }

/* ===== STREAM PAGES ===== */
.stream-page { padding: 88px 40px 48px; max-width: 1100px; margin: 0 auto; }
.stream-header { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.btn-back {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition); font-size: 16px;
  color: var(--text-primary); text-decoration: none;
}
.btn-back:hover { border-color: var(--accent); background: rgba(124,58,237,0.1); }
.stream-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.stream-subtitle { font-size: 13px; color: var(--text-secondary); margin-top: 3px; }
.stream-box {
  background: #000; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; position: relative; aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
}
.stream-canvas, .stream-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.stream-loading {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: rgba(0,0,0,0.88);
}
.spinner {
  width: 48px; height: 48px;
  border: 3px solid rgba(124,58,237,0.2); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
.stream-controls { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }
.stream-controls .btn { padding: 8px 16px; font-size: 12px; border-radius: 8px; font-weight: 500; }

/* ===== NOTIFICATIONS ===== */
.notif-list { display: flex; flex-direction: column; gap: 12px; }
.notif-item { padding: 18px 22px; border-radius: var(--radius-md); animation: slideInUp 0.3s ease; background: rgba(255,255,255,0.04); border: 1px solid var(--border); }
.notif-app { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--accent-light); }
.notif-title { font-size: 15px; font-weight: 600; margin-top: 6px; color: var(--text-primary); }
.notif-text { font-size: 14px; color: var(--text-secondary); margin-top: 5px; line-height: 1.6; word-break: break-word; }
.notif-time { font-size: 11px; color: var(--text-muted); margin-top: 8px; }
.notif-empty { text-align: center; padding: 100px 20px; color: var(--text-muted); font-size: 14px; }
.notif-empty .empty-icon { font-size: 56px; margin-bottom: 16px; opacity: 0.25; }

/* ===== GALLERY ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.gallery-item {
  aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden;
  cursor: pointer; position: relative;
  background: var(--bg-secondary); border: 1px solid var(--border); transition: var(--transition);
}
.gallery-item:hover { transform: scale(1.04); border-color: var(--accent); box-shadow: 0 8px 28px rgba(124,58,237,0.2); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition); font-size: 28px;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-name {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 24px 12px 10px; font-size: 11px; color: #fff;
  opacity: 0; transition: var(--transition);
}
.gallery-item:hover .gallery-name { opacity: 1; }

/* ===== AUDIO ===== */
.audio-visualizer { display: flex; align-items: flex-end; justify-content: center; gap: 5px; height: 88px; margin: 36px auto; }
.audio-bar {
  width: 6px; border-radius: 3px;
  background: linear-gradient(to top, var(--accent), var(--accent2));
  animation: audioBar 0.8s ease-in-out infinite alternate;
}
.audio-bar:nth-child(2) { animation-delay: 0.1s; }
.audio-bar:nth-child(3) { animation-delay: 0.2s; }
.audio-bar:nth-child(4) { animation-delay: 0.3s; }
.audio-bar:nth-child(5) { animation-delay: 0.4s; }
.audio-bar:nth-child(6) { animation-delay: 0.3s; }
.audio-bar:nth-child(7) { animation-delay: 0.2s; }
.audio-bar:nth-child(8) { animation-delay: 0.1s; }
.audio-bar:nth-child(9) { animation-delay: 0s; }
.audio-paused .audio-bar { animation-play-state: paused; height: 4px !important; }

/* ===== WHATSAPP ===== */
.wp-list { display: flex; flex-direction: column; gap: 12px; }
.wp-item { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: var(--radius-md); cursor: pointer; transition: var(--transition); }
.wp-item:hover { background: rgba(124,58,237,0.07); border-color: var(--border-hover); }
.wp-icon { width: 48px; height: 48px; border-radius: 50%; background: rgba(37,211,102,0.12); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.wp-info { flex: 1; min-width: 0; }
.wp-name { font-size: 14px; font-weight: 600; }
.wp-file { font-size: 12px; color: var(--text-secondary); margin-top: 3px; }
.wp-time { font-size: 11px; color: var(--text-muted); flex-shrink: 0; }

/* ===== TOAST ===== */
.toast-container { position: fixed; bottom: 28px; right: 28px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  padding: 13px 20px; border-radius: var(--radius-md);
  background: #1a1a2e; border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(20px); font-size: 13px; color: #e2e8f0;
  display: flex; align-items: center; gap: 10px;
  animation: slideInRight 0.3s ease; max-width: 340px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.toast.success { border-color: rgba(34,197,94,0.5); background: #0f2818; }
.toast.error   { border-color: rgba(239,68,68,0.5); background: #2d0f0f; }
.toast.info    { border-color: rgba(124,58,237,0.5); background: #1a0f2e; }
.toast.warning { border-color: rgba(245,158,11,0.5); background: #2d200f; }

/* ===== DIVIDER ===== */
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 12px; margin: 4px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ===== ANIMATIONS ===== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}
@keyframes slideInUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes audioBar { from { height: 8px; } to { height: 70px; } }
.animate-in { animation: slideInUp 0.4s ease both; }

@media (max-width: 900px) {
  .module-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .status-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 30px; }
  .stream-page { padding: 88px 20px 32px; }
  .container { padding: 0 20px; }
  .nav { padding: 0 20px; }
}
@media (max-width: 600px) {
  .module-grid { grid-template-columns: 1fr; gap: 10px; }
  .module-card { padding: 16px 16px; gap: 12px; min-height: auto; }
  .module-icon { width: 44px; height: 44px; font-size: 20px; border-radius: 12px; }
  .module-title { font-size: 14.5px; }
  .module-desc { font-size: 12.5px; line-height: 1.4; }
  .module-arrow-btn { display: none; }
  .nav-user { display: none; }
  .nav { padding: 0 14px; height: 52px; }
  .nav-brand { font-size: 14px; gap: 8px; }
  .nav-brand .shield-icon { width: 28px; height: 28px; font-size: 13px; }
  .container { padding: 0 14px; }
  .hero-greeting { font-size: 10px; letter-spacing: 1.8px; padding-top: 20px; }
  .hero-title { font-size: 24px; line-height: 1.05; margin-bottom: 16px; }
  .status-grid { gap: 10px; margin-bottom: 12px; }
  .status-card { padding: 14px 16px; min-height: auto; gap: 8px; }
  .status-card-deco { font-size: 38px; opacity: 0.06; right: 10px; }
  .sc-label { font-size: 10px; letter-spacing: 1.2px; }
  .sc-value { font-size: 14px; gap: 8px; }
  .id-mono { font-size: 12px; }
  .btn-copy-id { font-size: 10px; padding: 3px 8px; }
  .device-card { flex-direction: row; align-items: center; gap: 12px; padding: 16px; }
  .device-icon-wrap { width: 44px; height: 44px; font-size: 22px; border-radius: 12px; }
  .device-name { font-size: 15px; }
  .device-sub { font-size: 12px; }
  .device-label { font-size: 9px; }
  .security-card { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
  .stream-page { padding: 68px 14px 24px; }
}
