    /* ── Login View — "Nordic Aurora" ── */
    .login-wrapper {
      min-height: 100vh; display: grid; grid-template-columns: 1fr 440px;
      position: relative; overflow: hidden;
      background: #0C1220;
    }

    /* Left: immersive hero */
    .login-hero {
      position: relative; display: flex; flex-direction: column;
      justify-content: center; align-items: center;
      padding: 60px; overflow: hidden;
    }

    /* Aurora gradient orbs */
    .aurora { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(120px); }
    .aurora-1 { width: 600px; height: 600px; background: rgba(56,189,248,0.12); top: -15%; left: -10%; animation: auroraFloat1 14s ease-in-out infinite; }
    .aurora-2 { width: 500px; height: 500px; background: rgba(99,102,241,0.1); bottom: -10%; right: -5%; animation: auroraFloat2 18s ease-in-out infinite; }
    .aurora-3 { width: 350px; height: 350px; background: rgba(34,211,238,0.08); top: 40%; left: 50%; animation: auroraFloat3 11s ease-in-out infinite; }
    @keyframes auroraFloat1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,60px) scale(1.15); } }
    @keyframes auroraFloat2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-50px,-40px) scale(1.1); } }
    @keyframes auroraFloat3 { 0%,100% { transform: translate(0,0) scale(0.9); } 50% { transform: translate(30px,-50px) scale(1.05); } }

    /* Dot grid overlay */
    .dot-grid {
      position: absolute; inset: 0; pointer-events: none; opacity: 0.06;
      background-image: radial-gradient(circle, #fff 1px, transparent 1px);
      background-size: 32px 32px;
    }

    /* Hero content */
    .hero-content { position: relative; z-index: 2; max-width: 520px; }
    .hero-logo {
      width: 150px; height: 150px; filter: brightness(0) invert(1); opacity: 0.9;
      object-fit: cover; border-radius: 22px;
      position: absolute; top: -30px; left: 16px; z-index: 3;
    }
    .hero-tagline {
      font-size: 42px; font-weight: 700; line-height: 1.15;
      color: #FFFFFF; letter-spacing: -0.02em; margin-bottom: 16px;
    }
    .hero-tagline em {
      font-style: normal;
      background: linear-gradient(135deg, #38BDF8, #818CF8, #34D399);
      -webkit-background-clip: text; -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    .hero-desc {
      font-size: 16px; color: rgba(255,255,255,0.45); line-height: 1.7; margin-bottom: 48px;
      max-width: 400px;
    }

    /* Glassmorphic feature pills */
    .hero-features { display: flex; flex-wrap: wrap; gap: 10px; }
    .hero-pill {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 10px 18px; border-radius: 999px;
      background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
      backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
      color: rgba(255,255,255,0.75); font-size: 13px; font-weight: 500;
      transition: all 0.3s var(--ease);
    }
    .hero-pill:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.15); color: #fff; transform: translateY(-2px); }
    .hero-pill svg { width: 16px; height: 16px; flex-shrink: 0; }

    /* Floating illustration */
    .hero-illustration {
      position: absolute; bottom: 40px; right: 40px; width: 320px; opacity: 0.18;
      z-index: 1; pointer-events: none;
      animation: illustFloat 20s ease-in-out infinite;
    }
    @keyframes illustFloat { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-15px) rotate(2deg); } }

    /* Right: form panel */
    .login-panel {
      display: flex; flex-direction: column; justify-content: center;
      padding: 0 52px; background: #FFFFFF; position: relative; z-index: 3;
      box-shadow: -20px 0 60px rgba(0,0,0,0.15);
    }
    .login-panel-inner { max-width: 340px; margin: 0 auto; width: 100%; }

    .login-panel h1 {
      font-size: 26px; font-weight: 700; color: var(--text-primary);
      margin-bottom: 6px; letter-spacing: -0.01em;
    }
    .login-panel .sub {
      font-size: 14px; color: var(--text-muted); margin-bottom: 32px; line-height: 1.5;
    }

    /* Input fields */
    .login-input-wrap { position: relative; margin-bottom: 16px; }
    .login-input-label {
      display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary);
      margin-bottom: 6px;
    }
    .login-input-wrap .input-icon {
      position: absolute; left: 16px; bottom: 18px;
      width: 18px; height: 18px; color: #94A3B8; pointer-events: none;
    }
    .login-input-wrap .t-input {
      padding-left: 46px; padding-right: 16px;
      border-radius: 14px; height: 54px; font-size: 15px;
      background: #F1F5F9; border: 2px solid transparent;
      transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    }
    .login-input-wrap .t-input:focus {
      border-color: var(--accent); background: #FFFFFF;
      box-shadow: 0 0 0 4px rgba(30,41,59,0.06);
    }
    .login-input-wrap .toggle-pw {
      position: absolute; right: 16px; bottom: 17px;
      background: none; border: none; cursor: pointer; color: #94A3B8; padding: 4px;
      transition: color 0.15s;
    }
    .login-input-wrap .toggle-pw:hover { color: #475569; }

    /* Forgot link inline */
    .login-forgot {
      display: block; text-align: right; font-size: 13px; color: var(--accent);
      text-decoration: none; font-weight: 500; margin: -4px 0 20px;
      transition: opacity 0.15s;
    }
    .login-forgot:hover { opacity: 0.7; }

    /* CTA button */
    .login-btn-pill {
      width: 100%; padding: 17px; font-size: 14px; font-weight: 700;
      letter-spacing: 0.1em; text-transform: uppercase; color: #FFFFFF;
      background: #0F172A;
      border: none; border-radius: 14px; cursor: pointer;
      font-family: inherit; transition: all 0.25s var(--ease);
      position: relative; overflow: hidden;
      box-shadow: 0 4px 16px rgba(15,23,42,0.2);
    }
    .login-btn-pill::after {
      content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
      transition: left 0.5s ease;
    }
    .login-btn-pill:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(15,23,42,0.3); }
    .login-btn-pill:hover::after { left: 100%; }
    .login-btn-pill:active { transform: translateY(0); }
    .login-btn-pill:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

    /* Divider */
    .login-divider {
      display: flex; align-items: center; gap: 16px; margin: 28px 0;
    }
    .login-divider::before, .login-divider::after {
      content: ''; flex: 1; height: 1px; background: #E2E8F0;
    }
    .login-divider span { font-size: 11px; color: #94A3B8; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }

    /* Trust badges */
    .login-trust {
      display: flex; justify-content: center; gap: 24px; margin-top: 0;
    }
    .login-trust-item {
      display: flex; align-items: center; gap: 6px; font-size: 12px; color: #94A3B8;
    }
    .login-trust-item svg { width: 14px; height: 14px; flex-shrink: 0; }

    /* Back link */
    .login-back {
      display: block; text-align: center; margin-top: 28px;
      font-size: 13px; color: var(--text-muted); text-decoration: none;
      transition: color 0.15s;
    }
    .login-back:hover { color: var(--accent); }

    /* ── Verification pulse dots ── */
    .pulse-dot {
      width: 10px; height: 10px; border-radius: 50%; background: #8B5CF6;
      animation: pulseDot 1.4s ease-in-out infinite;
    }
    @keyframes pulseDot {
      0%, 80%, 100% { transform: scale(0.4); opacity: 0.3; }
      40% { transform: scale(1); opacity: 1; }
    }

    /* ── Sidebar (desktop) ── */
    .sidebar {
      width: 260px; min-height: 100vh; position: fixed; left: 0; top: 0;
      background: linear-gradient(180deg, #1A2536, #1E293B);
      display: flex; flex-direction: column; padding: 24px 16px;
      z-index: 50;
    }
    .sidebar-logo-wrap {
      display: flex; align-items: center; gap: 10px;
      padding: 0 8px; margin-bottom: 24px;
      overflow: hidden; height: 48px;
    }
    .sidebar-logo {
      width: 120px; height: 120px; filter: brightness(0) invert(1);
      object-fit: cover; flex-shrink: 0;
      margin: -36px -15px -36px -15px;
    }
    .sidebar-logo-badge {
      font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.4);
      background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
      padding: 3px 8px; border-radius: 6px; letter-spacing: 0.05em;
    }
    .sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 4px; }
    .nav-item {
      display: flex; align-items: center; gap: 12px; padding: 12px 16px;
      border-radius: 12px; color: rgba(255,255,255,0.65); font-size: 14px;
      font-weight: 500; cursor: pointer; transition: all 0.15s var(--ease);
      border: none; background: none; width: 100%; text-align: left; font-family: inherit;
    }
    .nav-item:hover { color: #fff; background: rgba(255,255,255,0.06); }
    .nav-item.active { color: #fff; background: rgba(255,255,255,0.12); font-weight: 600; }
    .nav-item svg { width: 20px; height: 20px; flex-shrink: 0; }
    .sidebar-footer {
      border-top: 1px solid rgba(255,255,255,0.08); padding-top: 16px; margin-top: 16px;
    }
    .sidebar-user {
      display: flex; align-items: center; gap: 12px; padding: 12px 12px; margin-bottom: 12px;
      border-radius: 14px; background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.06);
    }
    .sidebar-user-avatar {
      width: 38px; height: 38px; border-radius: 50%; display: flex;
      align-items: center; justify-content: center; font-size: 14px;
      font-weight: 700; color: #fff; flex-shrink: 0; position: relative;
    }
    .sidebar-user-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
    .sidebar-user-dot {
      position: absolute; bottom: -1px; right: -1px; width: 11px; height: 11px;
      border-radius: 50%; border: 2px solid #1E293B; background: #10B981;
    }
    .sidebar-user-info { flex: 1; min-width: 0; }
    .sidebar-user-name {
      font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.9);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .sidebar-user-email {
      font-size: 11px; color: rgba(255,255,255,0.4);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .sidebar-logout {
      display: flex; align-items: center; justify-content: center; gap: 8px;
      padding: 10px 16px; border-radius: 12px;
      color: rgba(239,68,68,0.7); font-size: 13px; font-weight: 500;
      cursor: pointer; background: transparent;
      border: 1.5px solid rgba(239,68,68,0.15);
      width: 100%; text-align: center; font-family: inherit;
      transition: all 0.2s var(--ease);
    }
    .sidebar-logout:hover {
      color: #EF4444; background: rgba(239,68,68,0.08);
      border-color: rgba(239,68,68,0.3);
    }

    /* ── Main content ── */
    .main-content {
      margin-left: 260px; min-height: 100vh; padding: 32px 40px;
      position: relative; z-index: 1; overflow-x: hidden;
    }
    .main-content.map-active {
      height: 100vh; overflow: hidden; padding-bottom: 0;
    }
    .page-header { margin-bottom: 28px; }
    .page-header h2 { font-size: 24px; font-weight: 700; color: var(--text-primary); }
    .page-header p { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

    /* ── Password section expandable ── */
    /* ── Settings 2-column layout ── */
    .settings-layout {
      display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start;
    }
    .settings-left { min-width: 0; }
    .settings-right { position: sticky; top: 32px; }
    .settings-profile-card {
      background: #FFFFFF; border: 1.5px solid rgba(0,0,0,0.08); border-radius: 20px;
      padding: 32px 24px; text-align: center; margin-bottom: 16px;
    }
    .settings-profile-avatar {
      width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 14px;
      display: flex; align-items: center; justify-content: center;
      font-size: 24px; font-weight: 700; color: #fff;
      background: linear-gradient(135deg, var(--accent), var(--accent-light));
      overflow: hidden;
    }
    .settings-profile-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
    .settings-profile-name { font-size: 18px; font-weight: 700; color: var(--text-primary); }
    .settings-profile-email { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
    .settings-info-card {
      background: #FFFFFF; border: 1.5px solid rgba(0,0,0,0.08); border-radius: 16px;
      padding: 8px 0; margin-bottom: 16px;
    }
    .settings-info-card .section-label { padding: 12px 20px 4px; }
    .settings-info-row {
      display: flex; align-items: center; gap: 10px; padding: 10px 20px;
      border-bottom: 1px solid rgba(0,0,0,0.04);
    }
    .settings-info-row:last-child { border-bottom: none; }
    .settings-info-label { font-size: 12px; color: var(--text-muted); width: 100px; flex-shrink: 0; }
    .settings-info-value { font-size: 13px; font-weight: 500; color: var(--text-primary); flex: 1; text-align: right; }

    .settings-expandable { cursor: pointer; }
    .settings-expandable-content {
      max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease);
    }
    .settings-expandable-content.open { max-height: 400px; }

    /* ── Profile Tabs ── */
    .profile-tabs {
      display: flex; gap: 4px; margin: 0 0 16px; padding: 4px;
      background: #F1F5F9; border-radius: 12px;
    }
    .profile-tab {
      flex: 1; padding: 8px 12px; font-size: 13px; font-weight: 600;
      font-family: inherit; border: none; background: transparent;
      color: var(--text-muted); border-radius: 10px; cursor: pointer;
      transition: all 0.15s;
    }
    .profile-tab.active {
      background: #FFFFFF; color: var(--text-primary);
      box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    }

    /* ── Bottom nav (mobile) ── */
    .bottom-nav {
      display: none; position: fixed; bottom: 0; left: 0; right: 0;
      background: linear-gradient(180deg, #1A2536, #1E293B);
      padding: 8px 0 max(8px, env(safe-area-inset-bottom));
      z-index: 50; justify-content: space-around;
    }
    .bottom-nav-item {
      display: flex; flex-direction: column; align-items: center; gap: 3px;
      padding: 6px 12px; border-radius: 10px; border: none; background: none;
      color: rgba(255,255,255,0.5); font-size: 10px; font-weight: 500;
      font-family: inherit; cursor: pointer; transition: all 0.15s;
    }
    .bottom-nav-item.active { color: #fff; }
    .bottom-nav-item svg { width: 22px; height: 22px; }

    /* ── Upload button ── */
    .upload-btn {
      margin-top: 12px; display: inline-flex; align-items: center; gap: 8px;
      padding: 10px 20px; font-size: 13px; font-weight: 600; font-family: inherit;
      background: #EDF0F4; color: var(--text-primary); border: 1.5px dashed var(--border-default);
      border-radius: var(--radius-md); cursor: pointer; transition: all 0.2s;
    }
    .upload-btn:hover { background: var(--bg-surface-hover); border-color: var(--accent); }
    .upload-btn input[type="file"] { display: none; }

    /* ── Responsive (mobile) ── */
    @media (max-width: 767px) {
      .sidebar { display: none; }
      .bottom-nav { display: flex; }
      .main-content { margin-left: 0; padding: 20px 16px 100px; }
      .grid-2 { grid-template-columns: 1fr; }
      .login-wrapper { grid-template-columns: 1fr; }
      .login-hero { display: none; }
      .login-panel { box-shadow: none; padding: 0 24px; }
      .toast-container { bottom: 80px; right: 16px; left: 16px; }
      .toast { min-width: auto; }
      .map-container { border-radius: 0; margin: -20px -16px 0; width: calc(100% + 32px); }
      #page-map .page-header { display: none; }
      #page-map.active { height: calc(100vh - 70px); }
      .main-content.map-active { padding: 0; height: calc(100vh - 70px); }
      .settings-layout { grid-template-columns: 1fr; }
      .settings-right { position: static; }
      .quick-actions { flex-direction: column; }
      .ov-stats-row { flex-wrap: wrap; }
      .ov-stat { min-width: 80px; }
      .stats-row { flex-direction: column; }
      .stat-card { min-width: auto; }
      /* Person panel as bottom sheet on mobile */
      .person-panel {
        top: auto; bottom: -65vh; right: 0; left: 0;
        width: 100%; height: 60vh;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -8px 30px rgba(0,0,0,0.12);
        transition: bottom 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      }
      .person-panel.open { bottom: 0; right: 0; }
      .map-container.panel-open .map-controls { right: 16px; }
      .map-container.panel-open .map-zoom-slider-wrap { right: 16px; }
      .family-info-cards { grid-template-columns: 1fr; }
      .family-code-boxes { gap: 4px; }
      .family-code-box { width: 36px; height: 44px; }
      .family-code-box .dot { font-size: 24px; }
      .family-code-box .digit { font-size: 20px; }
      .family-name-display { font-size: 22px; }
      .fm-chip-address { max-width: 120px; }
    }
