*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* Remove touch tap highlight & persistent focus box on taps/clicks while preserving keyboard accessibility */
button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
[role="button"]:focus:not(:focus-visible) {
  outline: none;
}
    :root {
      --font-body:    'Instrument Sans', system-ui, sans-serif;
      --font-display: 'Space Grotesk', sans-serif;
      --font-mono:    'JetBrains Mono', monospace;
      --cyan:      #00A8D8;
      --cyan-dk:   #007FA8;
      --cyan-lt:   #E6F7FC;
      --navy:      #0D1B2A;
      --white:     #FFFFFF;
      --g50:       #F7F9FB;
      --g100:      #EEF1F5;
      --g200:      #DDE3EC;
      --g300:      #C5CFD9;
      --g500:      #7A8899;
      --g700:      #3D4A5C;
      --g900:      #1A2332;
      --green:     #25D366;
      --red:       #E53E3E;
      --orange:    #F97316;
      --r8:        14px;
      --r4:        8px;
      --sh-md:     0 4px 16px rgba(0,0,0,.09);
      --sh-lg:     0 12px 40px rgba(0,0,0,.13);
      /* Fluid type & spacing tokens (scale smoothly across viewports) */
      --fs-hero:   clamp(25px, 6vw, 30px);
      --fs-title:  clamp(20px, 4.5vw, 24px);
      --fs-modal:  clamp(20px, 4vw, 22px);
      --space-page: clamp(16px, 4vw, 28px);
    }

    html { font-size: 100%; scroll-behavior: smooth; }
    /* Hide scrollbar on all devices - comprehensive coverage */
    *::-webkit-scrollbar {
      width: 0;
      height: 0;
      display: none;
    }
    html::-webkit-scrollbar,
    body::-webkit-scrollbar,
    .profile-save-confirmation-container::-webkit-scrollbar,
    .profile-save-confirmation-overlay::-webkit-scrollbar {
      width: 0;
      height: 0;
      display: none;
    }
    html {
      -ms-overflow-style: none;  /* IE and Edge */
      scrollbar-width: none;  /* Firefox */
    }
    body {
      font-family: var(--font-body);
      background: var(--g50);
      color: var(--g900);
      overflow-x: hidden;
      min-height: 100vh;
      min-height: 100dvh;
      line-height: 1;
      -ms-overflow-style: none;  /* IE and Edge */
      scrollbar-width: none;  /* Firefox */
    }
    /* Additional scrollbar hiding for all elements */
    * {
      -ms-overflow-style: none;  /* IE and Edge */
      scrollbar-width: none;  /* Firefox */
    }

    /* Loading */
    #loadingOverlay {
      /* Start visible so the page is never white while Firebase resolves the
         auth state (especially after a sign-in redirect back). The
         onAuthStateChanged listener hides this once routing completes. */
      display: flex; position: fixed; inset: 0;
      background: rgba(255,255,255,.85);
      backdrop-filter: blur(4px);
      z-index: 9999;
      flex-direction: column;
      align-items: center; justify-content: center; gap: 16px;
    }
    .spinner {
      width: 42px; height: 42px;
      border: 3px solid var(--g100);
      border-top-color: var(--cyan);
      border-radius: 50%;
      animation: spin .7s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }
    #loadingMsg { font-size: 13px; color: var(--g500); font-weight: 500; }

    /* Toast */
    .toast {
      position: fixed; bottom: 24px; right: 24px;
      padding: 13px 20px;
      border-radius: var(--r4);
      font-size: 13px; font-weight: 600;
      box-shadow: var(--sh-lg);
      opacity: 0; transform: translateY(16px);
      transition: all .3s cubic-bezier(.4,0,.2,1);
      z-index: 10000; pointer-events: none;
    }
    .toast.show { opacity: 1; transform: translateY(0); }
    .toast-success { background: var(--g900); color: #fff; }
    .toast-error   { background: var(--red);  color: #fff; }
    .toast-info    { background: var(--cyan);  color: #fff; }

    /* ── PAGES ── */
    #page-login, #page-profile, #page-publicView, #page-lockConfirm, #page-dashboard { display: none; }

    /* ── LOGIN ── */
    #page-login {
      min-height: 100vh;
      min-height: 100dvh;
      display: none;
      align-items: center; justify-content: center;
      padding: 24px;
      background: white;
      position: relative;
      overflow: hidden;
      box-sizing: border-box;
      background-image: url();
      background-repeat: no-repeat;
      background-position: top center;
      background-size: 100% auto;
    }
    #page-login[style*="block"] { display: flex !important; }
    #page-login {
      overflow-y: auto !important;
      -webkit-overflow-scrolling: touch;
    }
    /* Allow body scroll when login page is visible */
    body:has(#page-login[style*="display: block"]) {
      overflow-y: auto !important;
      position: relative !important;
      width: auto !important;
      height: auto !important;
    }
    html:has(#page-login[style*="display: block"]) {
      overflow-y: auto !important;
      -webkit-overflow-scrolling: touch;
    }

    .login-card {
      background: white;
      border-radius: 0;
      padding: 16px;
      width: min(393px, 100%);
      height: auto;
      min-height: auto;
      max-height: none;
      box-shadow: none;
      text-align: center;
      animation: fadeUp .5s ease both;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: center;
      border: none;
 outline: none;
      overflow: visible !important;
    }
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(22px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .login-brand {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 8px;
      margin-bottom: 16px;
      padding-top: 0px;
    }
    .brand-logo-link {
      display: inline-block;
      text-decoration: none;
      cursor: pointer;
    }
    .brand-logo {
      width: 100%;
      max-width: 361px;
      height: auto;
      display: block;
      flex-shrink: 0;
    }
    .brand-mascot {
      width: 135.77px;
      height: 88px;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .login-card h1 {
      font-family: var(--font-display);
      font-size: 32px;
      font-weight: 700;
      line-height: 1.2;
      text-align: center;
      margin: 0;
    }
    .login-card .brand-text-catchup {
      color: #0B1025;
    }
    .login-card .brand-text-buddei {
      color: #3693FF;
    }
    .login-hero {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0px;
      margin-bottom: 8px;
      width: 100%;
      flex: 0 1 auto;
      justify-content: flex-start;
      padding-top: 24px;
    }
    .login-hero-title {
      font-family: var(--font-display);
      font-size: 24px;
      color: #0B1025;
      font-weight:  700;
      line-height: 1.1;
      text-align: center;
      width: 100%;
      margin-bottom: 2px;
    }
    .login-hero-title:last-of-type {
      margin-bottom: 20px;
    }
    .login-hero-subtitle {
      font-size: 16px;
      color: var(--Grey-(600), #4F595F);
      font-family: "Space Grotesk", sans-serif;
      font-weight: 400;
      line-height: 1.3;
      text-align: center;
      width: 100%;
      word-wrap: break-word;
      margin-bottom: 2px;
    }
    .login-hero-subtitle:last-of-type {
      margin-bottom: 160px;
    }
    .google-btn {
      width: 100%;
      padding: 12px 24px;
      display: flex; align-items: center; justify-content: center; gap: 8px;
      border: none; border-radius: 8px;
      background: var(--white);
      font-family: 'Roboto', var(--font-body);
      font-size: 18px; font-weight: 500; line-height: 20px;
      color: #3D3D3D;
      cursor: pointer; transition: all .2s;
      min-height: 44px;
      word-wrap: break-word;
    }

    .google-btn-container {
      width: 124.5%;
      border: 1px solid #0076FE;
      border-radius: 8px;
      padding: 2px 4px;
      background: #ffffff;
      margin-left: -12.25%;
      margin-right: -12.25%;
    }
    .google-btn svg { width: 20px; height: 20px; }
    .google-btn:hover { background: #f8f9fa; box-shadow: 0 2px 8px rgba(0,118,254,.15); }
    .login-note {
      margin-top: 8px;
      font-size: 12px;
      color: #4F595F;
      font-weight: 400;
      text-align: center;
      line-height: 1.4;
    }
    .login-note a {
      color: #A7AEB3;
      text-decoration: underline;
      font-weight: 500;
    }
    .login-note a:hover {
      color: #4F595F;
    }
    .signin-label {
      font-size: 12px;
      color: var(--Grey-(600), #4F595F);
      font-family: "Space Grotesk", sans-serif;
      font-weight: 400;
      margin-bottom: 4px;
      text-align: center;
      word-wrap: break-word;
    }
    .login-legal {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0;
      margin-top: 8px;
      padding-bottom: 12px;
      text-align: center;
    }
    .login-legal-text {
      font-size: 12px;
      color: var(--Grey-(400)-(Main), #A7AEB3);
      font-family: "Space Grotesk", sans-serif;
      font-weight: 500;
      word-wrap: break-word;
    }
    .login-legal-text a {
      color: var(--Grey-(400)-(Main), #A7AEB3) !important;
      text-decoration: underline;
      font-weight: 500;
      font-family: "Space Grotesk", sans-serif;
      word-wrap: break-word;
    }
    .login-legal-text a:link,
    .login-legal-text a:visited,
    .login-legal-text a:hover,
    .login-legal-text a:active {
      color: var(--Grey-(400)-(Main), #A7AEB3) !important;
    }

    /* Not found */
    .not-found {
      display: flex; flex-direction: column;
      align-items: center; gap: 14px;
      padding: 32px 24px; text-align: center;
      min-height: 100vh;
      min-height: 100dvh;
      justify-content: center;
      box-sizing: border-box;
    }
    .nf-icon { font-size: 52px; }
    .not-found h2 { font-family: var(--font-display); font-size: 22px; }
    .not-found p  { font-size: 14px; color: var(--g500); }

    /* ── TOPBAR ── */
    .topbar {
      background: var(--white);
      border-bottom: 1px solid var(--g100);
      padding: 63px 28px;
      display: flex; align-items: center; justify-content: space-between;
      position: sticky; top: 0; z-index: 50;
    }
    .topbar-brand {
      font-family: var(--font-display);
      font-size: 18px; font-weight: 600;
      display: flex; align-items: center; gap: 10px;
      margin-left: -1.9%;
      text-decoration: none;
      cursor: pointer;
      color: inherit;
    }
    .topbar-brand .brand-text-catchup {
      color: #0B1025;
    }
    .topbar-brand .brand-text-buddei {
      color: #3693FF;
    }
    .topbar-logo { width: 48px; height: auto; display: block; }
    .topbar-brand small {
      font-family: var(--font-mono);
      font-size: 11px; font-weight: 600;
      color: var(--g500); margin-left: 6px;
      text-transform: uppercase; letter-spacing: .5px;
    }
    .signout-btn {
      padding: 6px 20px;
      border: 2px solid #0076FE;
      border-radius: 8px;
      background: #0076FE;
      font-family: 'Instrument Sans', var(--font-body);
      font-size: 16px; font-weight: 500; color: white;
      line-height: 20px;
      cursor: pointer; transition: all .2s;
      height: 45.5px;
      word-wrap: break-word;
      margin-right: -1.8%;
    }
    .signout-btn:hover {
      background: #0066E0; /* Darker blue on hover */
      border-color: #0066E0;
    }

    /* Topbar actions & buttons */
    .topbar-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-right: -1.8%;
    }

    /* Lock button */
    .lock-btn {
      padding: 8px;
      border: 1px solid #f59135;
      border-radius: 50%;
      background: #fdedd6;
      cursor: pointer;
      transition: all .3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      box-sizing: border-box;
    }
    .lock-btn img {
      width: 20px;
      height: 20px;
      display: block;
      transition: transform 0.3s ease;
    }
    .lock-btn:hover {
      background: #fcd9b0;
    }
    .lock-btn:hover img {
      transform: scale(1.08);
    }
    .lock-btn.locked {
      background: #e5ffd6;
      border: 1px solid #549620;
    }
    .lock-btn.locked:hover {
      background: #d4f8bf;
    }

    /* Three dots button */
    .three-dots-btn {
      padding: 8px;
      border: none;
      border-radius: 50%;
      background: #f5f5f5;
      cursor: pointer;
      transition: all .3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
    }
    .three-dots-btn i,
    .three-dots-btn img {
      width: 20px;
      height: 20px;
      display: block;
      transition: transform 0.3s ease, color 0.3s ease, filter 0.3s ease;
    }
    .three-dots-btn img {
      filter: brightness(0);
    }
    .three-dots-btn i {
      font-size: 20px;
      color: #333;
    }
    .three-dots-btn:hover {
      background: #e8e8e8;
    }
    .three-dots-btn:hover i {
      color: #0076FE;
    }
    .three-dots-btn:hover img {
      filter: none;
    }
    .three-dots-btn.active,
    .three-dots-btn:active {
      background: #e8e8e8;
    }
    .three-dots-btn.active i,
    .three-dots-btn.active img,
    .three-dots-btn:active img {
      transform: rotate(90deg);
    }
    .three-dots-btn.active i,
    .three-dots-btn:active i {
      color: #0076FE;
    }
    .three-dots-btn.active img,
    .three-dots-btn:active img {
      filter: none;
    }

    /* Profile Locked Overlay */
    .profile-lock-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(255, 255, 255, 0.7);
      backdrop-filter: blur(2px);
      -webkit-backdrop-filter: blur(2px);
      z-index: 45; /* Below topbar (z-index: 50) and dropdown (z-index: 10000) */
      pointer-events: auto;
    }
    .profile-lock-overlay.active {
      display: block;
    }
    .profile-unlock-bar {
      position: fixed;
      bottom: 24px;
      left: 0;
      right: 0;
      display: flex;
      justify-content: center;
      padding: 0 20px;
      box-sizing: border-box;
      z-index: 46;
      pointer-events: auto;
    }
    .btn-unlock-card {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      box-sizing: border-box;
      padding: 12px 24px;
      background: #ffffff;
      color: #2a76fe;
      border: 1.5px solid #2a76fe;
      border-radius: 8px;
      font-family: "Space Grotesk", sans-serif;
      font-size: 16px;
      font-weight: 500;
      line-height: 20px;
      cursor: pointer;
      box-shadow: 0 4px 16px rgba(42, 118, 254, 0.15);
      transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
      text-align: center;
    }
    .btn-unlock-card:hover {
      background: #f0f6ff;
      box-shadow: 0 6px 20px rgba(42, 118, 254, 0.25);
    }
    .btn-unlock-card:active {
      transform: scale(0.98);
    }

    /* ── Lock Confirmation Page ── */
    #page-lockConfirm {
      min-height: 100vh;
      min-height: 100dvh;
      position: relative;
      background: #ffffff;
      box-sizing: border-box;
      animation: lockPageFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    #page-lockConfirm[style*="block"] {
      display: flex !important;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }
    .lock-confirm-container {
      max-width: 440px;
      width: 100%;
      margin: auto;
      padding: 32px 20px 100px 20px;
      box-sizing: border-box;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      animation: lockContentSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    .lock-confirm-illustration {
      margin-bottom: 24px;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .lock-confirm-logo {
      width: 135px;
      height: 126px;
      display: block;
      object-fit: contain;
    }
    .lock-confirm-title {
      font-family: "Space Grotesk", sans-serif;
      font-size: 24px;
      font-weight: 700;
      color: var(--Buddei-dark-(buddy), #0B1025);
      text-align: center;
      line-height: 100%;
      margin: 0 0 16px 0;
      white-space: nowrap;
    }
    .lock-confirm-body {
      display: flex;
      flex-direction: column;
      gap: 12px;
      align-items: center;
      text-align: center;
      width: 100%;
    }
    .lock-confirm-desc {
      font-family: "Space Grotesk", sans-serif;
      font-size: 16px;
      font-weight: 400;
      color: var(--Grey-(600), #4F595F);
      text-align: center;
      line-height: 1.4;
      margin: 0;
    }
    .lock-confirm-desc-single {
      white-space: nowrap;
    }
    .lock-desc-desktop {
      display: block;
    }
    .lock-desc-compact {
      display: none;
    }
    .lock-desc-line {
      display: block;
    }
    @media (max-width: 389px) {
      .lock-desc-desktop {
        display: none;
      }
      .lock-desc-compact {
        display: block;
      }
    }
    @media (max-width: 340px) {
      .lock-confirm-desc-single {
        white-space: normal;
      }
      .lock-desc-compact .lock-desc-line {
        display: inline;
      }
    }
    .lock-confirm-bottom-bar {
      position: fixed;
      bottom: 24px;
      left: 0;
      right: 0;
      display: flex;
      justify-content: center;
      gap: 16px;
      padding: 0 20px;
      box-sizing: border-box;
      max-width: 480px;
      margin: 0 auto;
      z-index: 50;
      animation: lockBarSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    .btn-lock-cancel {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 12px 24px;
      background: white;
      color: #0076FE;
      border: 1.5px solid #0076FE;
      border-radius: 8px;
      font-size: 16px;
      font-family: 'Space Grotesk', var(--font-display);
      font-weight: 200;
      line-height: 20px;
      cursor: pointer;
      transition: all 0.2s;
      text-align: center;
      box-sizing: border-box;
    }
    .btn-lock-cancel:hover {
      background: #F5F9FF;
      box-shadow: 0 2px 8px rgba(0, 118, 254, 0.15);
    }
    .btn-lock-cancel:active {
      transform: scale(0.98);
    }
    .btn-lock-confirm {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 12px 24px;
      background: #0076FE;
      color: white;
      border: none;
      border-radius: 8px;
      font-size: 16px;
      font-family: 'Space Grotesk', var(--font-display);
      font-weight: 200;
      line-height: 20px;
      cursor: pointer;
      transition: background 0.2s, transform 0.1s;
      box-shadow: 0 4px 16px rgba(0, 118, 254, 0.25);
      text-align: center;
      box-sizing: border-box;
    }
    .btn-lock-confirm:hover {
      background: #0066E0;
    }
    .btn-lock-confirm:active {
      transform: scale(0.98);
    }

    @keyframes lockPageFadeIn {
      from { opacity: 0; }
      to   { opacity: 1; }
    }
    @keyframes lockContentSlideUp {
      from { opacity: 0; transform: translateY(16px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes lockBarSlideUp {
      from { opacity: 0; transform: translateY(24px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* ── DASHBOARD PAGE ── */
    #page-dashboard {
      min-height: 100vh;
      min-height: 100dvh;
      background: #faf8ff;
      padding-bottom: 60px;
    }
    .dashboard-wrap {
      max-width: 600px;
      margin: 0 auto;
      padding: 32px 20px;
      width: 100%;
      box-sizing: border-box;
    }
    .dashboard-header-section {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 24px;
      flex-wrap: wrap;
      gap: 12px;
    }
    .dashboard-heading {
      font-family: 'Space Grotesk', var(--font-display);
      font-size: 28px;
      font-weight: 700;
      color: #0f172a;
      line-height: 1.2;
    }
    .dashboard-subheading {
      font-size: 15px;
      color: #64748b;
      margin-top: 4px;
    }
    .dashboard-badge {
      display: inline-flex;
      align-items: center;
      background: #eff6ff;
      color: #0076FE;
      border: 1px solid #bfdbfe;
      padding: 6px 14px;
      border-radius: 20px;
      font-size: 13px;
      font-weight: 600;
      font-family: var(--font-mono);
    }
    .dashboard-cards-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 16px;
      width: 100%;
    }
    .dashboard-card-item {
      background: #ffffff;
      border: 1.5px solid #e2e8f0;
      border-radius: 20px;
      padding: 22px 24px;
      cursor: pointer;
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      position: relative;
      overflow: hidden;
      box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
      width: 100%;
      box-sizing: border-box;
    }
    .dashboard-card-item:hover {
      transform: translateY(-3px);
      border-color: #3693FF;
      box-shadow: 0 12px 28px rgba(0, 118, 254, 0.12);
    }
    .dashboard-card-item:active {
      transform: scale(0.99);
    }
    .dashboard-card-top {
      display: flex;
      align-items: center;
      gap: 16px;
      width: 100%;
    }
    .dashboard-card-avatar {
      width: 64px;
      height: 64px;
      min-width: 64px;
      border-radius: 50%;
      background: linear-gradient(135deg, #0076FE, #0056C7);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      font-weight: 700;
      color: white;
      border: 2px solid #e0f2fe;
      overflow: hidden;
      box-shadow: 0 4px 8px rgba(0, 118, 254, 0.15);
      flex-shrink: 0;
    }
    .dashboard-card-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .dashboard-card-info {
      flex: 1;
      min-width: 0;
      font-family: 'Space Grotesk', var(--font-display);
    }
    .dashboard-card-name-row {
      display: flex;
      align-items: baseline;
      gap: 8px;
      flex-wrap: wrap;
    }
    .dashboard-card-name {
      font-family: 'Space Grotesk', var(--font-display);
      font-size: 20px;
      font-weight: 700;
      line-height: 24px;
      color: #0f172a;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      max-width: 100%;
    }
    .dashboard-card-chinese {
      font-size: 15px;
      font-weight: 500;
      color: #64748b;
    }
    .dashboard-card-position {
      font-family: 'Space Grotesk', var(--font-display);
      font-size: 16px;
      font-weight: 600;
      line-height: 20px;
      color: #000000;
      margin-top: 8px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .dashboard-card-department {
      font-family: 'Space Grotesk', var(--font-display);
      font-size: 14px;
      font-weight: 400;
      line-height: 16px;
      color: #94A3B8;
      margin-top: 1px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .dashboard-card-company {
      font-family: 'Space Grotesk', var(--font-display);
      font-size: 14px;
      font-weight: 600;
      color: #0076FE;
      margin-top: 2px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .dashboard-card-role {
      font-family: 'Space Grotesk', var(--font-display);
      font-size: 13.5px;
      color: #475569;
      margin-top: 2px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .dashboard-card-email {
      font-family: 'Space Grotesk', var(--font-display);
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 14px;
      line-height: 16px;
      color: #64748B;
      margin-top: 13px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      min-width: 0;
    }
    .dashboard-card-email-icon,
    .dashboard-card-email img {
      width: 14px;
      height: 14px;
      display: block;
      flex-shrink: 0;
    }
    .dashboard-card-email span {
      font-family: 'Space Grotesk', var(--font-display);
      color: #64748B;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      min-width: 0;
    }
    .dashboard-card-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      min-width: 36px;
      border-radius: 50%;
      background: #f8fafc;
      border: 1.5px solid #e2e8f0;
      cursor: pointer;
      transition: all 0.2s ease;
      flex-shrink: 0;
      padding: 0;
      margin-left: 8px;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    }
    .dashboard-card-btn-icon {
      width: 16px;
      height: 16px;
      display: block;
      transition: transform 0.2s ease;
    }
    .dashboard-card-item:hover .dashboard-card-btn {
      background: #0076FE;
      border-color: #0076FE;
      box-shadow: 0 3px 8px rgba(0, 118, 254, 0.28);
    }
    .dashboard-card-item:hover .dashboard-card-btn-icon {
      filter: brightness(0) invert(1);
      transform: translateX(1px);
    }
    .dashboard-card-details {
      display: flex;
      flex-direction: column;
      gap: 8px;
      font-size: 13px;
      color: #64748b;
      margin-top: 12px;
      padding-top: 12px;
      border-top: 1px solid #f1f5f9;
    }
    .dashboard-card-detail-item {
      display: flex;
      align-items: center;
      gap: 8px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      min-width: 0;
    }
    .dashboard-card-detail-item span {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      min-width: 0;
    }
    .dashboard-card-detail-item i {
      width: 14px;
      color: #94a3b8;
      text-align: center;
      flex-shrink: 0;
    }
    @media (max-width: 480px) {
      .dashboard-wrap {
        padding: 20px 16px;
      }
      .dashboard-cards-grid {
        grid-template-columns: 1fr;
        gap: 14px;
      }
      .dashboard-heading {
        font-size: 22px;
      }
      .dashboard-card-item {
        padding: 16px;
        border-radius: 16px;
      }
      .dashboard-card-top {
        gap: 12px;
      }
      .dashboard-card-avatar {
        width: 52px;
        height: 52px;
        min-width: 52px;
        font-size: 20px;
      }
      .dashboard-card-chinese {
        font-size: 13px;
      }
      .dashboard-card-btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
        margin-left: 4px;
      }
      .dashboard-card-btn-icon {
        width: 14px;
        height: 14px;
      }
      .btn-add-another-account {
        max-width: 100%;
        padding: 12px 20px;
        font-size: 14px;
      }
    }

    /* ── Dashboard Add Account & Linked Accounts ── */
    .dashboard-add-account-section {
      margin-top: 28px;
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 16px;
      width: 100%;
      box-sizing: border-box;
    }
    .btn-add-another-account {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 14px 28px;
      background: #ffffff;
      color: #475569;
      border: 2px dashed #cbd5e1;
      border-radius: 14px;
      font-family: 'Space Grotesk', var(--font-display);
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
      box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
    }
    .btn-add-icon-wrap {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: #eff6ff;
      border: none;
      flex-shrink: 0;
      transition: background 0.2s ease;
    }
    .btn-add-icon,
    .btn-add-icon-wrap img {
      width: 14px;
      height: 14px;
      display: block;
    }
    .btn-add-another-account:hover {
      background: #ffffff;
      border-color: #94a3b8;
      box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
      transform: translateY(-1px);
    }
    .btn-add-another-account:hover .btn-add-icon-wrap {
      background: #dbeafe;
    }
    .btn-add-another-account:active {
      transform: translateY(0);
      background: #f8fafc;
    }
    .dashboard-card-account-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: 11px;
      font-weight: 600;
      color: #475569;
      background: #f1f5f9;
      border: 1px solid #e2e8f0;
      padding: 3px 8px;
      border-radius: 6px;
      margin-top: 6px;
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .dashboard-card-account-badge i {
      color: #4285f4;
      font-size: 11px;
    }
    .linked-accounts-section {
      width: 100%;
      max-width: 100%;
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      padding: 16px;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
      box-sizing: border-box;
    }
    .linked-accounts-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
      gap: 8px;
    }
    .linked-accounts-title {
      font-family: 'Space Grotesk', var(--font-display);
      font-size: 13px;
      font-weight: 600;
      color: #64748b;
      text-transform: uppercase;
      letter-spacing: 0.6px;
      line-height: 16px;
      margin: 0;
    }
    .linked-accounts-count {
      font-family: 'Space Grotesk', var(--font-display);
      font-size: 12px;
      font-weight: 400;
      line-height: 16.5px;
      color: #94A3B8;
      background: transparent;
      border: none;
      padding: 0;
      display: inline-flex;
      align-items: center;
      white-space: nowrap;
    }
    .linked-accounts-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .linked-account-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 12px;
      background: #f8fafc;
      border-radius: 8px;
      border: 1px solid #f1f5f9;
      gap: 12px;
    }
    .linked-account-info {
      display: flex;
      align-items: center;
      gap: 8px;
      flex: 1;
      min-width: 0;
    }
    .linked-account-info i,
    .linked-account-info img,
    .linked-account-google-icon,
    .linked-account-provider-icon {
      color: #4285f4;
      font-size: 14px;
      width: 16px;
      height: 16px;
      display: block;
      flex-shrink: 0;
    }
    .linked-account-email {
      font-family: 'Space Grotesk', var(--font-display);
      font-size: 14px;
      font-weight: 500;
      line-height: 20px;
      color: #1e293b;
      white-space: normal;
      word-break: break-word;
      overflow-wrap: anywhere;
      flex: 1;
      min-width: 0;
    }
    .linked-account-status {
      font-size: 11px;
      padding: 2px 6px;
      border-radius: 4px;
      font-weight: 600;
      flex-shrink: 0;
    }
    .linked-account-status.verified {
      background: #dcfce7;
      color: #15803d;
    }
    .linked-account-status.pending {
      background: #fef3c7;
      color: #b45309;
    }
    .btn-unlink-account {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: #ffffff;
      border: 1px solid #e2e8f0;
      color: #475569;
      cursor: pointer;
      padding: 5px 12px;
      border-radius: 9999px;
      font-family: 'Space Grotesk', var(--font-display);
      font-size: 12px;
      font-weight: 500;
      line-height: 16px;
      transition: all 0.2s ease;
      flex-shrink: 0;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    }
    .btn-unlink-account span {
      color: #475569;
    }
    .btn-unlink-account .btn-unlink-icon,
    .btn-unlink-account img {
      width: 13px;
      height: 13px;
      display: block;
      flex-shrink: 0;
    }
    .btn-unlink-account:hover {
      color: #ef4444;
      border-color: #fca5a5;
      background: #fef2f2;
      box-shadow: 0 2px 4px rgba(239, 68, 68, 0.08);
    }
    .btn-unlink-account:hover .btn-unlink-icon,
    .btn-unlink-account:hover img {
      filter: invert(32%) sepia(85%) saturate(2250%) hue-rotate(338deg) brightness(96%) contrast(92%);
    }

    /* ── Public Locked State ── */
    .pub-locked-wrap {
      min-height: calc(100vh - 70px);
      min-height: calc(100dvh - 70px);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 32px 24px 100px 24px;
      text-align: center;
      position: relative;
      box-sizing: border-box;
    }
    .pub-locked-container {
      max-width: 440px;
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      margin: auto 0;
      transform: translateY(-10%);
    }
    .pub-locked-logo {
      margin-bottom: 24px;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .pub-locked-logo-img {
      width: 194.04px;
      height: 168.84px;
      display: block;
      object-fit: contain;
    }
    .pub-locked-title {
      font-family: "Space Grotesk", sans-serif;
      font-size: 24px;
      font-weight: 700;
      color: #1e293b;
      line-height: 100%;
      text-align: center;
    }
    .pub-locked-title-desktop {
      display: block;
    }
    .pub-locked-title-mobile {
      display: none;
    }
    .pub-locked-subtitle {
      font-family: "Space Grotesk", sans-serif;
      font-size: 16px;
      font-weight: 200;
      font-style: normal;
      color: #64748b;
      margin-top: 8px;
      line-height: 100%;
      text-align: center;
    }
    .pub-locked-sub-desktop {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    .pub-locked-sub-mobile {
      display: none;
      flex-direction: column;
      gap: 4px;
    }
    @media (max-width: 387px) {
      .pub-locked-title-desktop {
        display: none;
      }
      .pub-locked-title-mobile {
        display: block;
      }
      .pub-locked-sub-desktop {
        display: none;
      }
      .pub-locked-sub-mobile {
        display: flex;
      }
    }
    .pub-locked-notice {
      font-family: "Space Grotesk", sans-serif;
      font-size: 16px;
      font-weight: 200;
      font-style: normal;
      color: #64748b;
      margin-top: 14px;
      line-height: 100%;
      text-align: center;
    }
    .pub-locked-bottom-bar {
      position: fixed;
      bottom: 24px;
      left: 0;
      right: 0;
      display: flex;
      justify-content: center;
      padding: 0 20px;
      box-sizing: border-box;
      z-index: 50;
    }
    .pub-locked-back-btn {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      box-sizing: border-box;
      padding: 12px 24px;
      background: #0076FE;
      color: white;
      border: none;
      border-radius: 8px;
      font-family: "Space Grotesk", sans-serif;
      font-size: 16px;
      font-weight: 200;
      line-height: 20px;
      cursor: pointer;
      box-shadow: 0 4px 16px rgba(0, 118, 254, 0.25);
      transition: background 0.2s, transform 0.1s;
      text-align: center;
    }
    .pub-locked-back-btn:hover {
      background: #0066E0;
    }
    .pub-locked-back-btn:active {
      transform: scale(0.98);
    }

    /* Dropdown overlay */
    .dropdown-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.5);
      z-index: 10000;
      padding: 0;
    }
    .dropdown-overlay.open {
      display: flex;
      animation: fadeIn .2s ease;
    }

    /* Dropdown menu */
    .dropdown-menu {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: white;
      border-radius: 16px 16px 0 0;
      box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
      padding: 12px 16px;
      transform: translateY(100%);
      transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .dropdown-overlay.open .dropdown-menu {
      transform: translateY(0);
    }

    /* Dropdown items */
    .dropdown-item {
      width: 100%;
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 16px;
      border: none;
      border-radius: 8px;
      background: transparent;
      cursor: pointer;
      transition: all .2s;
      font-family: 'Instrument Sans', var(--font-body);
      font-size: 16px;
      font-weight: 500;
      color: #333;
      text-align: left;
    }
    .dropdown-item i {
      font-size: 18px;
      color: #666;
      transition: color .2s;
    }
    .dropdown-item:hover {
      background: rgba(0, 0, 0, 0.05);
    }
    #btnMyCardsDropdown:hover {
      background: rgba(122, 171, 245, 0.18);
    }
    #btnMyCardsDropdown:active {
      background: rgba(122, 171, 245, 0.28);
      transform: scale(0.98);
    }
    #btnSignOutDropdown {
      color: #dc2525;
    }
    #btnSignOutDropdown span {
      color: #dc2525;
    }
    #btnSignOutDropdown i {
      color: #dc2525;
    }
    #btnSignOutDropdown:hover {
      background: rgba(220, 37, 37, 0.1);
      color: #dc2525;
    }
    #btnSignOutDropdown:hover i,
    #btnSignOutDropdown:hover span {
      color: #dc2525;
    }
    #btnSignOutDropdown:active {
      background: rgba(220, 37, 37, 0.18);
      color: #dc2525;
      transform: scale(0.98);
    }
    #btnSignOutDropdown:active i,
    #btnSignOutDropdown:active span {
      color: #dc2525;
    }

    /* Fade in animation */
    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }


    /* ── PROFILE CARD ── */
    .page-wrap {
      max-width: 660px; margin: 0 auto; padding: 0; /* Remove margins/padding for full-width mobile */
    }
    .card {
      background: white; /* Use solid white instead of var(--white) */
      border-radius: 0; /* Remove border-radius */
      box-shadow: none; /* Remove shadow */
      overflow: hidden;
      animation: fadeUp .5s ease both;
      min-height: 100vh; /* Fill entire viewport height */
      display: flex;
      flex-direction: column;
    }

    /* Hero */
    .hero {
      background: linear-gradient(150deg, #0D1B2A 0%, #0f2744 100%);
      padding: 44px 36px 38px;
      text-align: center; position: relative;
    }
    .hero::after {
      content: ""; position: absolute;
      bottom: -1px; left: 0; right: 0;
      height: 26px;
      background: var(--white);
      border-radius: 26px 26px 0 0;
    }

    .avatar {
      width: clamp(86px, 24vw, 108px); height: clamp(86px, 24vw, 108px);
      border-radius: 50%;
      background: linear-gradient(135deg, var(--cyan), var(--cyan-dk));
      display: flex; align-items: center; justify-content: center;
      font-size: 36px; font-weight: 700; color: var(--white);
      margin: 0 auto 20px;
      border: 4px solid rgba(255,255,255,.14);
      box-shadow: 0 8px 28px rgba(0,168,216,.28);
      overflow: hidden;
    }
    .avatar img { width: 100%; height: 100%; object-fit: cover; }

    .hero-name {
      font-family: var(--font-display);
      font-size: var(--fs-hero); color: var(--white);
      margin-bottom: 0px; line-height: 1.2;
    }
    .hero-pos {
      font-family: var(--font-mono);
      font-size: 12px; font-weight: 700;
      color: var(--cyan);
      text-transform: uppercase; letter-spacing: 1.3px;
      margin-bottom: 4px;
    }
    .hero-dept {
      font-size: 13px; color: rgba(255,255,255,.42);
    }

    /* Action bar */
    .action-bar {
      display: flex; gap: 10px;
      padding: 28px 28px 0; flex-wrap: wrap;
    }
    .btn {
      flex: 1; min-width: 120px;
      padding: 12px 16px;
      border: none; border-radius: var(--r4);
      font-family: var(--font-body);
      font-size: 13px; font-weight: 600;
      cursor: pointer;
      display: flex; align-items: center; justify-content: center; gap: 7px;
      transition: all .2s ease;
    }
    .btn-primary { background: var(--cyan); color: var(--white); }
    .btn-primary:hover { background: var(--cyan-dk); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,168,216,.28); }
    .btn-outline { background: var(--g50); color: var(--g700); border: 1.5px solid var(--g200); }
    .btn-outline:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-lt); }
    .btn:active { transform: translateY(0) !important; }

    /* Sections */
    .sect { padding: 24px 28px 0; }
    .sect-title {
      font-family: var(--font-mono);
      font-size: 11px; font-weight: 700;
      text-transform: uppercase; letter-spacing: 1px;
      color: var(--g500);
      margin-bottom: 14px;
      padding-bottom: 10px;
      border-bottom: 1.5px solid var(--g100);
    }

    /* Contact rows */
    .contact-row {
      display: flex; align-items: flex-start; gap: 14px;
      padding: 12px 0;
      border-bottom: 1px solid var(--g100);
      transition: padding-left .2s;
    }
    .contact-row:last-child { border-bottom: none; }
    .contact-row:hover { padding-left: 5px; }
    .contact-row.clickable-row {
      cursor: pointer;
      position: relative;
    }
    .contact-row.clickable-row:hover {
      background-color: rgba(245, 247, 250, 0.5);
      border-radius: 4px;
    }
    .clickable-row-link {
      pointer-events: none; /* Let clicks pass through to the row */
    }
    .ci { font-size: 18px; width: 24px; flex-shrink: 0; margin-top: 2px; }
    .cb { flex: 1; min-width: 0; }
    .cl {
      font-family: var(--font-mono);
      display: block; font-size: 11px; font-weight: 700;
      text-transform: uppercase; letter-spacing: .6px;
      color: var(--cyan); margin-bottom: 3px;
    }
    .cv {
      font-size: 14px; color: var(--g700);
      display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    }
    .clink {
      color: var(--g900); text-decoration: none;
      border-bottom: 1px solid transparent;
      transition: all .2s; cursor: pointer;
    }
    .clink:hover { border-color: var(--cyan); color: var(--cyan); }

    .wa-btn {
      padding: 5px 12px;
      background: var(--green); color: #fff;
      border: none; border-radius: 6px;
      font-family: var(--font-body);
      font-size: 12px; font-weight: 600;
      cursor: pointer; transition: all .2s;
      display: inline-flex; align-items: center; gap: 5px;
    }
    .wa-btn i { font-size: 14px; line-height: 1; }
    .wa-btn:hover { background: #1ebe5a; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,211,102,.3); }

    /* Social */
    .social-links { display: flex; gap: 10px; flex-wrap: wrap; padding-bottom: 4px; }
    .social-ic { display: inline-flex; align-items: center; }
    .social-ic svg { display: block; }
    .social-btn {
      display: inline-flex; align-items: center; justify-content: center;
      width: 44px; height: 44px;
      background: var(--g50); border: 1.5px solid var(--g200);
      border-radius: var(--r4);
      color: var(--g700);
      text-decoration: none; transition: all .2s;
    }
    .social-btn:hover {
      background: var(--cyan); color: var(--white);
      border-color: var(--cyan);
      transform: translateY(-2px);
      box-shadow: 0 4px 14px rgba(0,168,216,.22);
    }

    /* Secure link box */
    .secure-box {
      margin: 24px 28px 28px;
      background: var(--g50);
      border: 1.5px solid var(--g100);
      border-radius: var(--r4);
      padding: 16px 18px;
    }
    .secure-label {
      font-family: var(--font-mono);
      font-size: 11px; font-weight: 700;
      text-transform: uppercase; letter-spacing: .8px;
      color: var(--g500); margin-bottom: 10px;
      display: flex; align-items: center; gap: 6px;
    }
    .secure-row { display: flex; gap: 8px; align-items: center; }
    .secure-row input {
      flex: 1; padding: 9px 12px;
      border: 1px solid var(--g200); border-radius: 6px;
      font-size: 12px; color: var(--g500);
      background: var(--white); font-family: var(--font-body);
    }
    .secure-row input:focus { outline: none; border-color: var(--cyan); }
    .copy-btn {
      padding: 9px 16px;
      background: var(--cyan); color: var(--white);
      border: none; border-radius: 6px;
      font-family: var(--font-body);
      font-size: 12px; font-weight: 600;
      cursor: pointer; white-space: nowrap; transition: background .2s;
    }
    .copy-btn:hover { background: var(--cyan-dk); }
    .secure-note {
      font-size: 11px; color: var(--g500); margin-top: 8px;
    }
    .reset-link {
      color: var(--cyan); cursor: pointer;
      background: none; border: none;
      font-family: var(--font-body);
      font-size: 11px; text-decoration: underline;
    }

    /* ── MODALS ── */

    /* ── NEW PROFILE STYLES ── */
    /* New Hero with soft purple gradient */
    .hero-new {
      position: relative;
      min-height: 195px; /* Changed from height to min-height for dynamic extension */
      height: auto; /* Allow automatic height extension */
      padding: 16px;
      background-image: url('/assets/background.png');
      background-size: cover;
      background-position: right top;
      background-repeat: no-repeat;
      border-top-left-radius: 0; /* Remove rounded corners for full-width */
      border-top-right-radius: 0; /* Remove rounded corners for full-width */
    }
    .hero-content {
      position: relative;
      display: flex;
      flex-direction: column;
      gap: 8px;
      height: 100%;
    }
    .hero-left {
      display: flex;
      align-items: flex-start;
    }
    .avatar-new {
      width: 92px; /* 71px + 30% = 92.3px, rounded to 92px */
      height: 92px; /* 71px + 30% = 30% = 92.3px, rounded to 92px */
      border-radius: 50%;
      background: linear-gradient(135deg, #0076FE, #0056C7);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 36px; /* Larger font for bigger avatar (28px + 30% ≈ 36px) */
      font-weight: 700;
      color: white;
      border: 1px solid #01A9D9;
      overflow: hidden;
      box-shadow: 0 4px 4px rgba(112.71, 106.91, 217.17, 0.15);
      position: absolute;
      top: 2.4px; /* Move 60% up more: 6px - (6px * 0.60) = 2.4px */
      left: 1.2px; /* Move 40% left more: 2px - (2px * 0.40) = 1.2px */
      transform: none; /* Remove transform since not centering */
    }
    .avatar-new img { width: 100%; height: 100%; object-fit: cover; }
    .hero-info {
      display: flex;
      flex-direction: column;
      gap: 4px;
      align-items: flex-start; /* Align left */
      text-align: left; /* Left text alignment */
      margin-left: 2.22px; /* Move 40% left more: 3.70px - (3.70px * 0.40) = 2.22px */
      padding-top: 98.7px; /* 105px - 6% = 98.7px */
      width: 100%;
      box-sizing: border-box;
    }
    .hero-name-row {
      display: flex;
      flex-direction: column;
      gap: 4px; /* Negative gap to bring English and Chinese names closer together */
    }
    .hero-name {
      color: #0B1025;
      font-size: 24px;
      font-family: 'Space Grotesk', var(--font-display);
      font-weight: 700;
      word-wrap: break-word;
    }
    .hero-chinese {
      color: var(--Grey-(600), #4F595F);
      font-size: 14px;
      font-family: 'Noto Sans Simplified Chinese', var(--font-display);
      font-weight: 500;
      word-wrap: break-word;
      margin-bottom: 8px;
    }
    .hero-role-company {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      justify-content: center; /* Center the role/company row */
    }
    .hero-role-company span {
      color: var(--Grey-(600), #4F595F);
      font-size: 14px;
      font-family: 'Space Grotesk', var(--font-display);
      font-weight: 500;
      word-wrap: break-word;
    }
    .hero-divider {
      width: 4px;
      height: 4px;
      background: #4F595F;
      border-radius: 50%;
      flex-shrink: 0;
    }

    /* New layout for profile information rows */
    .hero-company-row {
      display: block;
      text-align: left;
      margin-bottom: 4px;
    }
    .hero-company-row span {
      color: var(--Grey-(900), #0B1025);
      font-size: 16px;
      font-family: 'Space Grotesk', var(--font-display);
      font-weight: 700; /* Bold */
      word-wrap: break-word;
    }
    .hero-position-row {
      display: block;
      text-align: left;
      margin-bottom: 0px;
    }
    .hero-position-row span {
      color: var(--Grey-(600), #4F595F);
      font-size: 16px;
      font-family: 'Space Grotesk', var(--font-display);
      font-weight: 550;
      word-wrap: break-word;
    }
    .hero-department-row {
      display: block;
      text-align: left;
      margin-bottom: 6px;
    }
    .hero-department-row span {
      color: #94A3B8;
      font-size: 14px;
      font-family: 'Space Grotesk', var(--font-display);
      font-weight: 400;
      word-wrap: break-word;
    }
    .hero-position-dept-row {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      justify-content: flex-start; /* Left-align */
      margin-bottom: 4px;
      max-width: 100%;
      box-sizing: border-box;
    }
    .hero-position-dept-row span {
      color: var(--Grey-(600), #4F595F);
      font-size: 14px;
      font-family: 'Space Grotesk', var(--font-display);
      font-weight: 500;
      word-wrap: break-word;
    }
    .hero-position-dept-row.equal-distribution {
      display: inline-flex;
      max-width: 100%;
      align-items: flex-start;
      gap: 8px;
    }
    .hero-position-dept-row.equal-distribution > span:not(.hero-divider) {
      flex: 0 1 auto;
      max-width: calc(50% - 10px);
      min-width: 0;
      word-break: break-word;
      overflow-wrap: break-word;
    }
    .hero-position-dept-row.equal-distribution .hero-divider {
      flex: 0 0 4px;
      margin-top: 7px;
    }
    .hero-description-row {
      display: block;
      text-align: left;
      margin-top: 4px;
    }
    .hero-description-row span {
      color: var(--Grey-(500), #6B7280);
      font-size: 13px;
      font-family: 'Space Grotesk', var(--font-display);
      font-weight: 400;
      word-wrap: break-word;
      line-height: 1.4;
    }
    .edit-btn {
      position: absolute;
      top: 4px; /* Move slightly higher (was 16px) */
      right: 40px; /* Move to left of Share button */
      width: 30px; /* Make button bigger (was 24px) */
      height: 30px; /* Make button bigger (was 24px) */
      background: white;
      border: 1px solid #E6E8EA; /* Add smaller border */
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 4px 4px rgba(112.71, 106.91, 217.17, 0.15);
      transition: transform 0.2s;
    }
    .edit-btn:hover {
      transform: scale(1.1);
    }
    .edit-btn img {
      width: 20px; /* Larger icon for bigger button */
      height: 20px;
      display: block;
    }

    .share-btn-new {
      position: absolute;
      top: 4px;
      right: 4px; /* Position to the right of Edit button */
      width: 30px;
      height: 30px;
      background: white;
      border: 1px solid #E6E8EA;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 4px 4px rgba(112.71, 106.91, 217.17, 0.15);
      transition: transform 0.2s;
    }
    .share-btn-new:hover {
      transform: scale(1.1);
      background: #F5F9FF; /* Light blue on hover */
    }
    .share-btn-new img {
      width: 20px;
      height: 20px;
      display: block;
      filter: brightness(0) invert(0.4) sepia(1) saturate(10) hue-rotate(180deg); /* Convert icon to blue */
    }

    /* Public profile Share button positioning (matches Edit button position) */
    #page-publicView .share-btn-new {
      right: 4px; /* Same position as Edit button in editable profile */
    }

    /* New Action Bar */
    .action-bar-new {
      display: flex;
      gap: 16px;
      padding: 16px;
    }
    .btn-primary-new {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 12px 24px;
      background: #0076FE;
      color: white;
      border: none;
      border-radius: 8px;
      font-size: 16px;
      font-family: 'Space Grotesk', var(--font-display);
      font-weight: 500;
      line-height: 20px;
      cursor: pointer;
      transition: background 0.2s;
      word-wrap: break-word;
    }
    .btn-primary-new:hover {
      background: #0066E0;
    }
    .btn-primary-new i {
      font-size: 20px;
    }
    .btn-icon {
      width: 20px;
      height: 20px;
      display: inline-block;
      vertical-align: middle;
    }
    .btn-icon img {
      width: 100%;
      height: 100%;
      display: block;
    }
    .btn-secondary-new {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 12px 24px;
      background: white;
      color: #0076FE;
      border: 1px solid #0076FE;
      border-radius: 8px;
      font-size: 16px;
      font-family: 'Space Grotesk', var(--font-display);
      font-weight: 500;
      line-height: 20px;
      cursor: pointer;
      transition: all 0.2s;
      word-wrap: break-word;
    }
    .btn-secondary-new:hover {
      background: #F5F9FF;
      box-shadow: 0 2px 8px rgba(0, 118, 254, 0.15);
    }
    .btn-secondary-new i {
      font-size: 15px;
    }
    .brand-logo-custom {
      width: 276px;
      height: 56px;
      display: block;
    }
    .editable-logo {
      width: 193px;
      height: 39px;
      display: block;
    }
    .public-logo {
      width: 276px;
      height: 56px;
      display: block;
      max-width: none;
      flex-shrink: 0;
    }

    /* New Section Styles */
    .sect-new {
      padding: 0 16px;
      margin-bottom: 16px;
    }

    /* Main content wrapper to push secure box to bottom */
    .profile-main-content {
      flex: 0 1 auto;
      display: flex;
      flex-direction: column;
    }
    .sect-title-new {
      color: #6E767D;
      font-size: 14px;
      font-family: 'Space Grotesk', var(--font-display);
      font-weight: 500;
      padding: 4px 16px; /* Add padding to extend line */
      padding-bottom: 8px;
      border-bottom: 1px solid #E6E8EA;
      margin-bottom: 16px; /* Match spacing: action-bar padding (16px) = 16px */
      margin-left: -16px; /* Negative margin to extend to left edge */
      margin-right: -16px; /* Negative margin to extend to right edge */
      display: block; /* Change from inline-flex to block for full width */
      width: calc(100% + 32px); /* Extend line beyond container edges */
    }

    /* New Contact Row Styles */
    .contact-row-new {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      padding: 12px 0;
      margin-bottom: 12px; /* Reduced from 24px to bring items closer */
    }
    .contact-row-new:last-child {
      margin-bottom: 0;
    }
    .contact-row-new.clickable-row {
      cursor: pointer;
      transition: background-color 0.2s ease;
      border-radius: 8px;
      padding: 12px 8px; /* Add padding for better click area */
    }
    .contact-row-new.clickable-row:hover {
      background-color: rgba(245, 247, 250, 0.8);
    }
    .contact-row-new.clickable-row:active {
      background-color: rgba(245, 247, 250, 0.5);
    }
    .contact-icon-new {
      width: 32px;
      height: 32px;
      background: #EDF5FF;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .contact-icon-new svg {
      width: 20px;
      height: 20px;
    }
    .contact-info-new {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 4px;
      align-items: flex-start;
    }
    .contact-label-new {
      color: #6E767D;
      font-size: 14px;
      font-family: 'Space Grotesk', var(--font-display);
      font-weight: 500;
      word-wrap: break-word;
    }
    .contact-value-new {
      color: #232D33;
      font-size: 16px;
      font-family: 'Space Grotesk', var(--font-display);
      font-weight: 500;
      word-wrap: break-word;
    }
    .contact-value-new a {
      color: #1AA9FF;
      text-decoration: none;
    }
    .contact-value-new a:hover {
      text-decoration: underline;
    }
    .copy-icon {
      transition: opacity 0.2s ease;
    }
    .copy-icon:hover {
      opacity: 0.7;
    }
    .contact-value-container {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .chat-btn-new {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 4px 8px;
      background: #00BC39;
      color: white;
      border: none;
      border-radius: 8px;
      font-size: 14px;
      font-family: 'Space Grotesk', var(--font-display);
      font-weight: 500;
      line-height: 20px;
      cursor: pointer;
      transition: background 0.2s;
      word-wrap: break-word;
      transform: translateY(-57.34%); /* Move button 60% more: -35.84% - (35.84% * 0.60) = -57.34% */
    }
    .chat-btn-new:hover {
      background: #00A833;
    }
    .chat-btn-new svg {
      width: 16px;
      height: 16px;
    }

    /* New Social Scroll Styles */
    .social-scroll {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: clamp(12px, 3.5vw, 20px);
      flex-wrap: wrap;
      padding: 8px 0;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }
    .social-scroll::-webkit-scrollbar {
      display: none;
    }
    .social-icon-new {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      text-decoration: none;
      transition: transform 0.2s;
    }
    .social-icon-new:hover {
      transform: scale(1.1);
    }
    .social-icon-new svg {
      width: 24px;
      height: 24px;
      display: block;
    }

    /* New Secure Box Styles */
    .secure-box-new {
      margin: 20px 16px 4px 16px;
      background: #F5F5F5;
      border-radius: 6px;
      padding: 10px;
    }
    .secure-label-new {
      font-family: 'Space Grotesk', var(--font-display);
      font-size: 9px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.6px;
      color: #5F6368;
      margin-bottom: 6px;
      display: flex;
      align-items: center;
      gap: 4px;
    }
    .secure-row-new {
      display: flex;
      gap: 6px;
      align-items: center;
    }
    .secure-row-new input {
      flex: 1;
      padding: 8px 12px;
      border: 1px solid #DADCE0;
      border-radius: 6px;
      font-size: 12px;
      color: #5F6368;
      background: white;
      font-family: 'Space Grotesk', var(--font-display);
    }
    .secure-row-new input:focus {
      outline: none;
      border-color: #0076FE;
    }
    .copy-btn-new {
      padding: 8px 16px;
      background: #0076FE;
      color: white;
      border: none;
      border-radius: 6px;
      font-family: 'Space Grotesk', var(--font-display);
      font-size: 14px;
      font-weight: 500;
      line-height: 18px;
      cursor: pointer;
      white-space: nowrap;
      transition: background 0.2s;
    }
    .copy-btn-new:hover {
      background: #0066E0;
    }

    /* New Footer Styles */
    .footer-new {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      padding: 6px 16px 20px;
      color: #A7AEB3;
      font-size: 12px;
      font-family: 'Space Grotesk', var(--font-display);
      font-weight: 500;
      word-wrap: break-word;
    }
    .footer-new a {
      color: #A7AEB3;
      text-decoration: underline;
    }
    .footer-new a:hover {
      color: #4F595F;
    }

    /* ── MODALS ── */
    .modal-overlay {
      display: none; position: fixed; inset: 0;
      background: var(--white);
      z-index: 10003; padding: 0;
      align-items: stretch; justify-content: stretch;
    }
    .modal-overlay.open {
      display: flex;
      animation: fadeIn .25s ease;
    }
    @keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

    .modal {
      background: var(--white);
      border-radius: 0;
      padding: clamp(48px, 8vw, 64px);
      width: 100%;
      height: 100%;
      max-height: 100vh; overflow-y: auto;
      box-shadow: none;
      animation: none;
      margin: 0;
      scrollbar-width: none; /* Firefox */
      -ms-overflow-style: none; /* IE and Edge */
    }
    .modal-overlay.open .modal {
      animation: slideUp .25s cubic-bezier(.4, 0, .2, 1);
    }
    .modal::-webkit-scrollbar {
      display: none; /* Chrome, Safari and Opera */
    }
    @keyframes slideUp {
      from { opacity:0; transform:translateY(26px); }
      to   { opacity:1; transform:translateY(0); }
    }
    .modal-head {
      display: flex; justify-content: space-between; align-items: center;
      margin-bottom: 28px;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      background: var(--white);
      z-index: 1000;
      padding: 16px;
    }
    .modal-body {
      margin-top: 40px;
      padding-bottom: 140px;
      padding-top: 60px;
    }
    .modal-title {
      font-family: var(--font-display);
      font-size: 22px; color: var(--g900);
    }
    .modal-close {
      width: 32px; height: 32px;
      border: none; background: var(--g100); border-radius: 50%;
      cursor: pointer; font-size: 18px;
      display: flex; align-items: center; justify-content: center;
      color: var(--g500); transition: all .2s;
    }
    .modal-close:hover { background: var(--g200); color: var(--g900); }

    /* Fixed footer for Save and Delete buttons */
    .modal-footer-fixed {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: white;
      padding: 16px 20px;
      border-top: 1px solid var(--g100);
      box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
      z-index: 1000;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .btn-save-fixed {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 12px 24px;
      background: #0076FE;
      color: white;
      border: none;
      border-radius: 8px;
      font-size: 16px;
      font-family: 'Space Grotesk', var(--font-display);
      font-weight: 500;
      line-height: 20px;
      cursor: pointer;
      transition: background 0.2s;
    }
    .btn-save-fixed:hover {
      background: #0066E0;
    }
    .btn-delete-fixed {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 12px 24px;
      background: #EB4335;
      color: white;
      border: none;
      border-radius: 8px;
      font-size: 16px;
      font-family: 'Space Grotesk', var(--font-display);
      font-weight: 500;
      line-height: 20px;
      cursor: pointer;
      transition: background 0.2s;
    }
    .btn-delete-fixed:hover {
      background: #D32F2F;
    }

    /* ── DELETE CARD CONFIRMATION MODAL ── */
    .delete-modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.45);
      z-index: 10005;
      padding: 16px;
      align-items: center;
      justify-content: center;
      backdrop-filter: blur(2px);
    }
    .delete-modal-overlay.open {
      display: flex;
      animation: fadeIn .25s ease;
    }
    .delete-modal-card {
      background: #FFFFFF;
      border-radius: 16px;
      padding: 32px 24px 24px;
      max-width: 380px;
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
      animation: slideUp .25s cubic-bezier(.4, 0, .2, 1);
      box-sizing: border-box;
    }
    .delete-modal-img {
      width: 154px;
      height: 134px;
      max-width: 100%;
      object-fit: contain;
      margin-bottom: 20px;
      display: block;
    }
    .delete-modal-msg {
      font-family: 'Space Grotesk', var(--font-display);
      font-size: 18px;
      font-weight: 700;
      line-height: 24px;
      color: #1A202C;
      margin: 0 0 24px 0;
      text-align: center;
    }
    .delete-modal-actions {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      gap: 12px;
      width: 100%;
    }
    .delete-modal-btn {
      flex: 1;
      padding: 12px 16px;
      border-radius: 8px;
      font-size: 15px;
      font-family: 'Space Grotesk', var(--font-display);
      font-weight: 500;
      line-height: 20px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
    }
    .btn-delete-cancel {
      background: #F1F3F5;
      color: #495057;
      border: 1px solid #DEE2E6;
    }
    .btn-delete-cancel:hover {
      background: #E9ECEF;
      color: #212529;
    }
    .btn-delete-confirm {
      background: #EB4335;
      color: #FFFFFF;
      border: none;
    }
    .btn-delete-confirm:hover {
      background: #D32F2F;
    }
    .btn-delete-primary {
      background: #0076FE;
      color: #FFFFFF;
      border: none;
    }
    .btn-delete-primary:hover {
      background: #005ecb;
    }

    /* ── AUTH PROVIDER MODALS (Sign In & Add Account) ── */
    .auth-modal-card {
      font-family: 'Space Grotesk', var(--font-display);
      background: #FFFFFF;
      border-radius: 20px;
      padding: 28px 24px;
      max-width: 380px;
      width: 100%;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
      animation: slideUp .25s cubic-bezier(.4, 0, .2, 1);
      box-sizing: border-box;
      text-align: left;
    }
    .auth-modal-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 6px;
    }
    .auth-modal-title {
      font-family: 'Space Grotesk', var(--font-display);
      font-size: 20px;
      font-weight: 700;
      color: #1A202C;
      margin: 0;
    }
    .auth-modal-subtitle {
      font-family: 'Space Grotesk', var(--font-display);
      font-size: 14px;
      color: #64748B;
      margin: 0 0 20px 0;
      line-height: 1.4;
    }
    .auth-modal-buttons {
      display: flex;
      flex-direction: column;
      gap: 12px;
      width: 100%;
    }
    .auth-provider-btn {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      background: #FFFFFF;
      border: 1.5px solid #E2E8F0;
      border-radius: 12px;
      padding: 13px 20px;
      font-family: 'Space Grotesk', var(--font-display);
      font-size: 15px;
      font-weight: 600;
      color: #1E293B;
      cursor: pointer;
      transition: all 0.2s ease;
      box-sizing: border-box;
    }
    .auth-provider-btn:hover {
      background: #F8FAFC;
      border-color: #CBD5E1;
      box-shadow: 0 2px 8px rgba(0, 118, 254, 0.12);
    }
    .auth-provider-btn:active {
      transform: scale(0.99);
    }
    .auth-provider-btn img,
    .auth-provider-btn svg {
      width: 20px;
      height: 20px;
      flex-shrink: 0;
    }

    /* Edit form */
    .fg { margin-bottom: 18px; }

    .optional-section {
      margin: 16px 0;
    }
    .optional-title {
      font-family: var(--font-display);
      font-size: 13px;
      color: #6E767D;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.6px;
      margin-bottom: 8px;
      padding-bottom: 10px;
      border-bottom: 1.5px solid #E6E8EA;
    }
    .optional-divider {
      height: 0px;
      background: transparent;
      width: 100%;
    }
    /* Grouping card for the core profile fields (Full Name → Company Website) */
    .form-card {
      background: var(--g100);
      border: 1px solid rgba(26, 35, 50, 0.12);   /* subtle near-black border */
      border-radius: var(--r4);
      padding: 20px 20px 2px;                      /* bottom balanced by .fg margin */
      margin-bottom: 20px;
    }
    .fl {
      font-family: var(--font-body);
      display: block; font-size: 11px; font-weight: 700;
      text-transform: uppercase; letter-spacing: .6px;
      color: var(--cyan); margin-bottom: 7px;
    }
    .fi {
      width: 100%; padding: 11px 14px;
      border: 1.5px solid var(--g200); border-radius: var(--r4);
      font-family: var(--font-body);
      font-size: 16px; color: var(--g900);
      transition: all .2s;
    }
    .fi:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,168,216,.1); }
    .fi.invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(229,62,62,.12); }
    .fi.readonly { background: var(--g50); color: var(--g500); cursor: not-allowed; }
    .field-hint-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 5px;
      min-height: 16px;
    }
    .field-limit-warning {
      font-size: 11px;
      font-family: var(--font-body);
      color: var(--red);
      font-weight: 500;
      display: none;
    }
    .field-limit-warning.show {
      display: inline-block;
    }
    .field-char-count {
      margin-left: auto;
      font-size: 11px;
      font-family: var(--font-body);
      color: var(--g500);
      font-variant-numeric: tabular-nums;
      font-weight: 500;
      transition: color .2s ease;
    }
    .field-char-count.at-limit {
      color: var(--red);
      font-weight: 600;
    }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
    .form-row.full { grid-template-columns: 1fr; }
    .field-with-icon { display: flex; align-items: stretch; gap: 0; }
    .field-with-icon .field-icon { width: 20px; text-align: center; color: var(--g500); font-size: 16px; flex-shrink: 0; align-self: center; margin-right: 10px; }
    .field-with-icon .field-icon svg { display: inline-block; vertical-align: middle; }
    .field-with-icon .url-prefix {
      display: flex; align-items: center; justify-content: flex-start; flex-shrink: 0;
      min-width: 150px;                 /* sized to the longest prefix (linkedin.com/in/) */
      padding: 0 12px;
      background: var(--g50); color: var(--g500);
      border: 1px solid var(--g200); border-right: none;
      border-radius: 8px 0 0 8px;
      font: 500 13px/1 "JetBrains Mono", monospace;
      white-space: nowrap;
      overflow: hidden;
    }
    .field-with-icon .url-prefix + .fi { border-radius: 0 8px 8px 0; flex: 1; }
    .field-with-icon .fi:not(.url-prefix + .fi) { flex: 1; }
    .phone-row { display: grid; grid-template-columns: 88px 1fr; gap: 10px; }
    .country-select {
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      background-color: white;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%237A8899' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 8px center;
      padding-left: 8px;
      padding-right: 22px;
      cursor: pointer;
    }
    .country-select::-ms-expand {
      display: none;
    }
    .form-divider {
      font-family: var(--font-mono);
      font-size: 11px; font-weight: 700;
      text-transform: uppercase; letter-spacing: .8px;
      color: var(--g500);
      margin: 2px 0 4px;
      padding-bottom: 6px;
      border-bottom: 1.5px solid var(--g100);
    }
    /* Collapsible section (drop-down) */
    .form-collapse > summary {
      list-style: none;            /* hide default marker */
      cursor: pointer;
      display: flex; align-items: center; justify-content: space-between;
      width: 100%;
      user-select: none;
      /* Separating line — darker than the card background so it's visible */
      border-bottom: 1.5px solid var(--g200);
      padding-bottom: 6px;
      margin: 2px 0 4px;
    }
    .form-collapse > summary::-webkit-details-marker { display: none; }
    .form-collapse > summary:focus-visible { outline: 2px solid var(--g200); outline-offset: 2px; border-radius: 4px; }
    .collapse-chevron { font-size: 10px; color: var(--g500); transition: transform .2s ease; }
    .form-collapse[open] > summary .collapse-chevron { transform: rotate(180deg); }
    .form-collapse-body { padding-top: 14px; }
    .form-actions {
      display: flex; gap: 10px;
      margin-top: 26px; padding-top: 20px;
      border-top: 1.5px solid var(--g100);
    }

    /* Share modal */
    #shareModal {
      justify-content: center;
    }
    #shareModal .modal {
      max-width: 660px;
      width: 100%;
      margin: 0 auto;
      box-sizing: border-box;
      position: relative;
    }
    #shareModal .modal-head {
      position: sticky;
      top: 0;
      left: 0;
      right: 0;
      background: var(--white);
      z-index: 10;
      width: 100%;
      box-sizing: border-box;
      padding: 0 0 24px 0;
      margin-bottom: 0;
    }
    #shareModal,
    #shareModal *:not(i):not([class*="fa-"]) {
      font-family: 'Space Grotesk', var(--font-display), sans-serif !important;
    }
    .share-opt { margin-bottom: 20px; }
    .share-lbl {
      font-family: 'Space Grotesk', var(--font-display), sans-serif;
      font-size: 11px; font-weight: 700;
      text-transform: uppercase; letter-spacing: .7px;
      color: var(--g500); margin-bottom: 10px;
    }
    .share-row { display: flex; gap: 8px; }
    .share-row input {
      flex: 1; padding: 8px 12px;
      border: 1px solid var(--g200); border-radius: 6px;
      font-family: 'Space Grotesk', var(--font-display), sans-serif;
      font-size: 12px; background: var(--white); color: #5F6368;
    }
    .share-row input:focus {
      outline: none;
      border-color: #0076FE;
    }
    .share-row .copy-btn,
    #shareModal .copy-btn {
      padding: 8px 16px;
      background: #0076FE;
      color: #FFFFFF;
      border: none;
      border-radius: 6px;
      font-family: 'Space Grotesk', var(--font-display), sans-serif;
      font-size: 14px;
      font-weight: 500;
      line-height: 18px;
      cursor: pointer;
      white-space: nowrap;
      transition: background 0.2s;
    }
    .share-row .copy-btn:hover,
    #shareModal .copy-btn:hover {
      background: #0066E0;
    }
    .share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
    .share-btn {
      padding: 10px 16px;
      border: 1.5px solid var(--g200); border-radius: var(--r4);
      background: var(--white);
      font-family: 'Space Grotesk', var(--font-display), sans-serif;
      font-size: 12px; font-weight: 600; color: var(--g700);
      cursor: pointer; display: flex; align-items: center; gap: 6px;
      transition: all .2s;
    }
    .share-btn:hover { border-color: #0076FE; color: #0076FE; background: #EEF6FF; }
    .share-qr { display: flex; justify-content: center; padding: 14px; background: #fff; border: 1.5px solid var(--g200); border-radius: var(--r4); }
    .share-qr img { display: block; width: clamp(150px, 45vw, 176px); height: clamp(150px, 45vw, 176px); }

    .reset-warn {
      margin-top: 20px; padding: 14px 16px;
      background: #FFF8F0; border: 1.5px solid #FDDCB4;
      border-radius: var(--r4);
      font-size: 13px; color: #9A5C00;
      display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    }
    .reset-warn p { flex: 1; }
    .reset-warn button {
      padding: 8px 14px; background: var(--orange); color: #fff;
      border: none; border-radius: 6px;
      font-family: var(--font-body);
      font-size: 12px; font-weight: 600; cursor: pointer;
      white-space: nowrap; flex-shrink: 0; transition: background .2s;
    }
    .reset-warn button:hover { background: #EA6C0A; }

    /* Public topbar */
    .pub-topbar {
      background: #072A53;
      border-bottom: 1px solid var(--g100);
      padding: 14px 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      overflow: hidden;
      position: sticky;
      top: 0;
      z-index: 50;
    }
    .pub-brand {
      font-family: var(--font-display);
      font-size: 18px; font-weight: 600;
      display: inline-flex; align-items: center; gap: 10px;
      min-width: 0;
      flex-shrink: 1;
      text-decoration: none;
      cursor: pointer;
      color: inherit;
    }
    .pub-brand .brand-text-catchup {
      color: #0B1025;
    }
    .pub-brand .brand-text-buddei {
      color: #3693FF;
    }
    .pub-logo { width: 54px; height: auto; display: block; }
    .pub-badge {
      display: inline-block;
      padding: 3px 10px;
      background: var(--cyan-lt); color: var(--cyan-dk);
      border-radius: 20px;
      font-size: 11px; font-weight: 600; margin-left: 8px;
    }

    /* Public Log In button */
    .btn-login {
      padding: 8px 24px; 
      background: #0076FE;
      border-radius: 8px;
      border: none;
      cursor: pointer;
      display: inline-flex;
      justify-content: center;
      align-items: center;
      gap: 12px;
      transition: background-color 0.2s ease;
      font-family: "Space Grotesk", sans-serif;
      font-size: 16px;
      font-weight: 200;
      font-style: normal;
      line-height: 20px;
      color: white;
      margin-right: -5px;
      white-space: nowrap;
      flex-shrink: 0;
      position: relative;
      z-index: 2;
    }
    .btn-login:hover {
      background: #0062D4;
    }
    .btn-login:active {
      background: #004BA0;
    }

    /* ── Responsive: 4 tiers ── */

    /* Tablet (≤ 900px): tighter spacing, keep 2-column grids */
    @media (max-width: 900px) {
      .phone-row { grid-template-columns: 88px 1fr; }
      .page-wrap { margin: 26px auto; }
      .topbar, .pub-topbar { padding: 21px var(--space-page); }
      .modal-overlay { padding: 16px; }
      .btn-login { padding: 10px 20px; font-size: 16px; }
    }

    /* Phone (≤ 600px): collapse grids to one column, action buttons 2-per-row */
    @media (max-width: 600px) {
      .hero { padding: 34px 22px 28px; }
      .action-bar { padding: 20px 20px 0; flex-wrap: wrap; }
      .action-bar .btn { min-width: calc(50% - 5px); flex: 1 1 calc(50% - 5px); }
      .sect { padding: 18px 20px 0; }
      .secure-box { margin: 20px 20px 24px; }
      .form-row { grid-template-columns: 1fr 1fr; }
      .form-row.full { grid-template-columns: 1fr; }
      .phone-row { grid-template-columns: 88px 1fr; }
      .modal { padding: 12.4625px 31px 83px 31px; }
      .modal-body { margin-top: 16px; padding-top: 32px; padding-bottom: 27px; }
      #ef-position, #ef-dept, #ef-description, #ef-location { width: 100% !important; }
      .toast { left: 16px; right: 16px; bottom: 16px; }
      .login-card { padding: 36px 24px; }
      .btn-login { padding: 10px 18px; font-size: 16px; }

      /* Login page phone-specific styles */
      .login-card {
        justify-content: space-between !important;
        overflow: hidden !important;
      }
      .login-brand {
        margin-bottom: 12px !important;
        padding-top: 0px !important;
        transform: none !important;
      }
      .login-hero {
        margin-bottom: 4px !important;
        gap: 1px !important;
        flex: 0 1 auto !important;
        justify-content: flex-start !important;
        padding-top: 18px !important;
      }
      .login-hero-title {
        font-size: 22px !important;
        font-weight: 700 !important;
        line-height: 1.1 !important;
        margin-bottom: 2px !important;
      }
      .login-hero-title:last-of-type {
        margin-bottom: 8px !important;
      }
      .login-hero-subtitle {
        font-size: 13px !important;
        font-weight: 400 !important;
        line-height: 1.2 !important;
        margin-top: 0 !important;
        margin-bottom: 1px !important;
        white-space: nowrap !important;
      }
      .login-hero-subtitle:last-of-type {
        margin-bottom: 128px !important;
      }
      .signin-label {
        margin-bottom: 2px !important;
      }
      .login-legal {
        margin-top: 4px !important;
        padding-bottom: 8px !important;
      }
      .login-legal-text {
        font-size: 12px !important;
        font-weight: 700 !important;
        line-height: 1.4 !important;
        white-space: nowrap !important;
      }
      .brand-text-catchup, .brand-text-buddei {
        font-weight: 700 !important;
      }
      .google-btn {
        font-weight: 700 !important;
      .brand-text-catchup, .brand-text-buddei {
        font-weight: 700 !important;
      }
      .google-btn {
        font-weight: 700 !important;
      }
    }
  }

    /* Screen sizes 601px - 767px: reduce modal header vertical distance by 70% */
    @media (min-width: 601px) and (max-width: 767px) {
      .modal {
        padding-top: clamp(14.4px, 2.4vw, 19.2px);
      }
      .modal-body {
        margin-top: 24px;
        padding-top: 20px;
        margin-bottom: 18px;
        padding-bottom: 40px;
      }
    }

    /* Screen sizes 481px - 600px: reduce vertical distance between "Instantly share your contact with anyone." and "Sign in to your account" by 50% (128px * 0.5 = 64px) */
    @media (min-width: 481px) and (max-width: 600px) {
      .login-hero-subtitle:last-of-type {
        margin-bottom: 64px !important;
      }
    }

    /* Screen sizes 601px - 1024px: reduce vertical distance between "Instantly share your contact with anyone." and "Sign in to your account" by 50% (160px * 0.5 = 80px) */
    @media (min-width: 601px) and (max-width: 1024px) {
      .login-hero-subtitle:last-of-type {
        margin-bottom: 80px !important;
      }
    }

    /* iPad specific styles (768px - 1024px) */
    @media (min-width: 768px) and (max-width: 1024px) {
      .login-brand {
        transform: translateY(10px) !important;
      }
      /* Reduce topbar height for iPad */
      .topbar {
        padding: 28px 32px;
      }
      /* Move display name lower from profile image for iPad */
      .hero-info {
        padding-top: 98.7px; /* 105px - 6% = 98.7px */
      }
      /* Reduce modal header gap extremely for iPad */
      .modal-body {
        margin-top: 8px; /* Reduced by 80%: 40px × 0.2 = 8px */
        padding-top: 12px; /* Reduced by 80%: 60px × 0.2 = 12px */
      }
    }

    /* Screen sizes 768px - 900px: reduce modal header vertical distance by 50% */
    @media (min-width: 768px) and (max-width: 900px) {
      .modal {
        padding-top: clamp(24px, 4vw, 32px);
      }
      .modal-body {
        margin-top: 15px;
        padding-top: 16px;
        margin-bottom: 15px;
        padding-bottom: 29px;
      }
    }

    /* Small phone (≤ 420px): stack action buttons full-width, tightest gutters */
    /* iPhone 14 Pro Max and similar large phones (430px) */
    @media (max-width: 480px) {
      .page-wrap { padding: 0; margin: 0; max-width: 100%; } /* Full width on mobile */
      .card { border-radius: 0; min-height: 100vh; min-height: 100dvh; } /* Remove card styling on mobile */
      .hero-new { padding: 16px; min-height: 195px; height: auto; border-radius: 0; } /* Keep hero styling consistent */
      .hero-info { margin-left: 2.54px; padding-top: 87.87px; text-align: left; align-items: flex-start; } /* 84.49px + 4% = 87.87px */
      .topbar-actions, .three-dots-btn { margin-right: -4.8%; } /* Move 3% more to right: -1.8% - 3% = -4.8% */
      .action-bar-new { gap: 16px; padding: 16px; } /* Maintain action button spacing */
      .sect-new { padding: 0 16px; margin-bottom: 16px; } /* Add padding to sections */
      .hero { padding: 28px 16px 24px; }
      .action-bar { padding: 16px 14px 0; }
      .action-bar .btn { min-width: 100%; flex: 1 1 100%; }
      .sect { padding: 16px 14px 0; }
      .secure-box { margin: 16px 14px 20px; }

      /* Ensure modal extends to full edges on mobile */
      .modal-overlay { padding: 0; }
      .modal { padding-top: 35.8px; padding-bottom: 16px; width: 100%; max-width: 100%; }
      .modal-body { padding-bottom: 112px; }
      .modal-footer-fixed { padding: 16px; }
    }

    @media (max-width: 420px) {
      .page-wrap { padding: 0; margin: 0; max-width: 100%; } /* Full width on mobile */
      .card { border-radius: 0; min-height: 100vh; min-height: 100dvh; } /* Remove card styling on mobile */
      .hero-new { padding: 16px; min-height: 195px; height: auto; border-radius: 0; } /* Keep hero styling consistent */
      .hero-info { margin-left: 2.54px; padding-top: 78.96px; text-align: left; align-items: flex-start; } /* 84px - 6% = 78.96px */
      .topbar-actions, .three-dots-btn { margin-right: -4.8%; } /* Move 3% more to right: -1.8% - 3% = -4.8% */
      .action-bar-new { gap: 16px; padding: 16px; } /* Maintain action button spacing */
      .sect-new { padding: 0 16px; margin-bottom: 16px; } /* Add padding to sections */
      .hero { padding: 28px 16px 24px; }
      .action-bar { padding: 16px 14px 0; }
      .action-bar .btn { min-width: 100%; flex: 1 1 100%; }
      .sect { padding: 16px 14px 0; }
      .secure-box { margin: 16px 14px 20px; }

      /* Ensure modal extends to full edges on mobile */
      .modal-overlay { padding: 0; }
      .modal { width: 100%; max-width: 100%; }
      .login-card {
        padding: 16px;
        width: min(393px, 100%);
        height: auto;
        max-height: 100%;
      }
      .login-brand { padding-top: 0px; margin-bottom: 12px; }
      .login-card h1 { font-size: 47px; }
      .login-hero { margin-bottom: 4px; gap: 1px; flex: 0 1 auto; justify-content: flex-start; padding-top: 18px; }
      .login-hero-title { font-size: 17px; line-height: 1.1; }
      .login-hero-subtitle { font-size: 11px; white-space: nowrap; margin-bottom: 1px; }
      .login-hero-subtitle:last-of-type { margin-bottom: 112px; }
      .signin-label { margin-bottom: 2px; }
      .login-legal { margin-top: 4px; padding-bottom: 8px; }
      .google-btn { font-size: 18px; padding: 12px 24px; min-height: 44px; }
      .social-btn { width: 44px; height: 44px; }
      .modal { padding: 36.6px 16px 16px 16px; width: 100%; max-width: 100%; }
      .modal-body { padding-bottom: 113px; }
      .modal-footer-fixed { padding: 16px; }

      /* New profile small phone styles */
      .hero-new { padding: 10px; }
      .avatar-new { width: 71.1111px; height: 71.1111px; font-size: 24px; }
      .hero-name { font-size: 24px; }
      .hero-chinese { font-size: 14px; }
      .hero-role-company span { font-size: 14px; }
      .hero-company-row span { font-size: 16px; }
      .hero-position-row span { font-size: 16px; }
      .hero-department-row span { font-size: 14px; }
      .hero-position-dept-row span { font-size: 14px; }
      .hero-description-row span { font-size: 13px; }
      .action-bar-new { gap: 10px; padding: 10px; }
      .btn-primary-new, .btn-secondary-new { padding: 8px 16px; font-size: 14px; }
      .sect-new { padding: 0 10px; }
      .contact-row-new { padding: 8px 0; }
      .secure-box-new { margin: 16px 10px 2px 10px; padding: 10px; }
      .footer-new { font-size: 11px; padding: 6px 10px 16px; }
      .profile-unlock-bar { padding: 0 10px; bottom: 16px; }
      .btn-unlock-card { padding: 12px 16px; font-size: 15px; }
      .lock-confirm-bottom-bar { padding: 0 10px; bottom: 16px; gap: 10px; }
      .btn-lock-cancel, .btn-lock-confirm { padding: 8px 16px; font-size: 14px; }
    }

    /* Login page specific responsive styles */
    @media (max-width: 480px) {
      /* Edit Profile modal - move components up by 60% */
      .modal-body {
        margin-top: 16px; /* Reduced from 40px to 16px (60% reduction: 40 * 0.4 = 16) */
        padding-top: 24px; /* Reduced from 60px to 24px (60% reduction: 60 * 0.4 = 24) */
      }
      .modal-head {
        margin-bottom: 11px; /* Reduced from 28px to 11px (60% reduction: 28 * 0.4 = 11.2) */
      }
      .fg {
        margin-bottom: 8px; /* Reduce form group spacing by 60% */
      }
      .form-row {
        gap: 6px; /* Reduce form row gap by 60% */
        margin-bottom: 8px; /* Reduce margin by 60% */
      }

      .topbar { padding: 21px 28px; }
      .topbar-brand { margin-left: -5.9%; }
      .login-card {
        width: min(393px, 100%);
        height: auto;
        min-height: auto;
        max-height: 100%;
        justify-content: center !important;
        padding-top: 0;
      }
      .login-brand {
        padding-top: 0px;
        margin-bottom: 12px;
        transform: none;
      }
      .login-hero {
        flex: 0 1 auto;
        justify-content: flex-start;
        gap: 1px;
        margin-bottom: 4px;
        padding-top: 18px;
      }
      .signin-label {
        margin-bottom: 2px;
        margin-top: -30px;
      }
      .login-signin-section {
        margin-top: -30px;
      }
      .google-btn-container {
        width: 124.5%;
        border: 1px solid #0076FE !important;
        border-radius: 8px !important;
        padding: 2px 4px !important;
        background: #ffffff !important;
        margin-left: -12.25%;
        margin-right: -12.25%;
      }
      .login-legal {
        margin-top: 4px;
        padding-bottom: 8px;
      }
      .login-hero-title {
        font-size: 18px;
        line-height: 1.1;
      }
      .login-hero-title:last-of-type {
        margin-bottom: 60px !important;
      }
      .login-hero-subtitle {
        font-size: 12px;
        white-space: nowrap;
      }
      .brand-logo, .brand-mascot {
        width: 100%;
        max-width: 361px;
        height: auto;
      }
      .brand-mascot svg {
        width: 100%;
        height: 100%;
      }
    }

    /* Fix logo size for screens smaller than 458px to maintain its 458px size */
    @media (max-width: 458px) {
      .login-brand {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        overflow: visible !important;
      }
      .brand-logo,
      .login-brand .brand-logo {
        width: 345px !important;
        min-width: 345px !important;
        max-width: 345px !important;
        height: auto !important;
        flex-shrink: 0 !important;
      }
    }

    /* Dynamically shrink button width starting from 411px down to keep left & right borders fully visible */
    @media (max-width: 411px) {
      .login-signin-section {
        width: 100% !important;
        box-sizing: border-box !important;
      }
      .google-btn-container {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
      }
    }

    /* Screen sizes ≥ 901px: reduce vertical distance between GitHub URL and footer by 50% */
    @media (min-width: 901px) {
      .modal-body {
        padding-bottom: 62px;
      }
    }

    /* Large desktop (≥ 1280px): give the card a touch more breathing room */
    @media (min-width: 1280px) {
      .page-wrap { max-width: 720px; }
      #shareModal .modal { max-width: 720px; }
    }

    /* Laptop and desktop screens (≥ 1025px): reduce topbar height */
    @media (min-width: 1025px) {
      /* Reduce topbar height for laptop/desktop */
      .topbar {
        padding: 24px 32px;
      }
      /* Move display name lower from profile image for laptop/desktop */
      .hero-info {
        padding-top: 98.7px; /* 105px - 6% = 98.7px */
      }
      /* Reduce modal header gap extremely for laptop/desktop */
      .modal-body {
        margin-top: 8px; /* Reduced by 80%: 40px × 0.2 = 8px */
        padding-top: 12px; /* Reduced by 80%: 60px × 0.2 = 12px */
      }

      /* Sign-in page laptop view adjustments */
      .login-brand {
        transform: none;
      }
      .login-hero {
        padding-top: 12px;
      }
      .login-hero-subtitle:last-of-type {
        margin-bottom: 57px; /* Move sign-in button up 40% more (96px * 0.6 = 57.6px, rounded to 57px) */
      }
    }

    /* ── Edit Profile Modal WITHOUT Delete Profile button ── */
    /* Reduce vertical distance between GitHub URL and footer by an additional 50% (75% total reduction) specifically when Delete Profile is hidden */
    #editModal.no-delete-btn .modal-body {
      padding-bottom: 35px; /* 50% of 70px */
    }

    @media (min-width: 901px) {
      #editModal.no-delete-btn .modal-body {
        padding-bottom: 15.5px; /* 50% of 31px */
      }
    }

    @media (min-width: 768px) and (max-width: 900px) {
      #editModal.no-delete-btn .modal-body {
        margin-bottom: -5px;
        padding-bottom: 0px; 
      }
    }

    @media (min-width: 601px) and (max-width: 767px) {
      #editModal.no-delete-btn .modal-body {
        margin-bottom: -5px;
        padding-bottom: 5px; 
      }
    }

    @media (max-width: 600px) {
      #editModal.no-delete-btn .modal-body {
        margin-bottom: -30px;
        padding-bottom: 0px; 
      }
    }

    @media (max-width: 480px) {
      #editModal.no-delete-btn .modal-body {
        margin-bottom: 0px;
        padding-bottom: 60px; /* 50% of 56px */
      }
    }

    @media (max-width: 420px) {
      #editModal.no-delete-btn .modal-body {
        margin-bottom: 30px;
        padding-bottom: 28.25px; /* 50% of 56.5px */
      }
    }

    /* ── CARD CLAIMED SUCCESS PAGE ── */
    :root {
      --claimed-gap: 8px;
    }

    .card-claimed-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: white;
      z-index: 10001;
      padding: 0;
      overflow-y: auto;
      overflow-x: hidden;
    }
    .card-claimed-overlay.open {
      display: flex;
      justify-content: center;
      align-items: flex-start;
      animation: fadeIn .3s ease;
    }

    .card-claimed-container {
      background: white;
      width: 100%;
      min-height: 100vh;
      min-height: 100dvh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      padding: 24px 16px;
      box-sizing: border-box;
      animation: slideUp .3s cubic-bezier(.4, 0, .2, 1);
      position: relative;
      overflow-y: auto;
      overflow-x: hidden;
      max-width: 430px;
      margin: 0 auto;
    }

    /* Centered content wrapper for the 4 main elements */
    .claimed-main {
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      margin: auto 0;
      flex-shrink: 0;
    }

    /* Mascot illustration section - phone view standard */
    .claimed-illustration {
      width: 189px;
      height: 176px;
      max-width: 80vw;
      position: relative;
      margin-top: 0 !important;
      margin-bottom: -2px !important;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-shrink: 0;
    }
    .claimed-illustration img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    /* Success message containing title and subtitle */
    .claimed-message {
      align-self: stretch;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px !important;
      text-align: center;
      width: 100%;
      max-width: 360px;
      margin-top: 0 !important;
      margin-bottom: 0 !important;
      margin-left: auto !important;
      margin-right: auto !important;
      transform: none !important;
      flex-shrink: 0;
    }
    .claimed-title {
      align-self: stretch;
      text-align: center;
      color: var(--Buddei-dark-(buddy), #0B1025) !important;
      font-size: 24px !important;
      font-family: 'Space Grotesk', var(--font-display) !important;
      font-weight: 700 !important;
      line-height: 1.3 !important;
      word-wrap: break-word !important;
      white-space: pre-line !important;
      margin: 0 !important;
      transform: none !important;
    }
    .claimed-subtitle {
      align-self: stretch;
      text-align: center;
      color: var(--Grey-(600), #4F595F) !important;
      font-size: 16px !important;
      font-family: 'Space Grotesk', var(--font-display) !important;
      font-weight: 400 !important;
      line-height: 1.4 !important;
      word-wrap: break-word !important;
      white-space: pre-line !important;
      margin: 0 !important;
      transform: none !important;
    }

    /* Share link container - light gray card */
    .claimed-share-card {
      width: 100%;
      max-width: 360px;
      background: #F5F5F5;
      border-radius: 6px;
      padding: 12px;
      margin-top: 29px !important;
      margin-bottom: 0 !important;
      margin-left: auto !important;
      margin-right: auto !important;
      box-sizing: border-box;
      flex-shrink: 0;
    }
    .claimed-secure-label {
      font-family: 'Space Grotesk', var(--font-display);
      font-size: 9px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.6px;
      color: #5F6368;
      margin-bottom: 6px;
      display: flex;
      align-items: center;
      gap: 4px;
    }
    .claimed-secure-row {
      display: flex;
      gap: 8px;
      align-items: center;
      width: 100%;
    }
    .claimed-secure-row input {
      flex: 1;
      padding: 10px 12px;
      border: 1px solid #DADCE0;
      border-radius: 8px;
      font-size: 12px;
      color: #5F6368;
      background: white;
      font-family: 'Space Grotesk', var(--font-display);
      min-width: 0;
    }
    .claimed-secure-row input:focus {
      outline: none;
      border-color: #0076FE;
      background: white;
    }
    .claimed-copy-btn {
      padding: 8px 16px;
      background: #0076FE;
      color: white;
      border: none;
      border-radius: 8px;
      font-family: 'Space Grotesk', var(--font-display);
      font-size: 14px;
      font-weight: 500;
      line-height: 20px;
      cursor: pointer;
      white-space: nowrap;
      transition: background .2s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      flex-shrink: 0;
    }
    .claimed-copy-btn:hover {
      background: #0066E0;
    }
    .claimed-copy-btn:active {
      background: #0056C7;
    }

    /* Spacer to push buttons to bottom */
    .claimed-spacer {
      flex: 1;
      min-height: 24px;
    }

    /* Action buttons - at bottom of container */
    .claimed-actions {
      width: 100%;
      max-width: 360px;
      display: flex;
      justify-content: flex-start;
      align-items: flex-start;
      gap: 8px;
      margin-top: auto;
      margin-bottom: 8px;
      flex-shrink: 0;
      box-sizing: border-box;
    }
    .claimed-action-group {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: flex-start;
      gap: 16px;
    }
    .claimed-btn {
      width: 100%;
      height: 44px;
      padding: 12px 24px;
      border: none;
      border-radius: 8px;
      font-family: 'Space Grotesk', var(--font-display);
      font-size: 16px;
      font-weight: 500;
      line-height: 20px;
      cursor: pointer;
      transition: all .2s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      box-sizing: border-box;
    }
    .claimed-btn-secondary {
      background: white;
      border: 1px solid #0076FE;
      color: #0076FE;
    }
    .claimed-btn-secondary:hover {
      background: #F5F9FF;
      box-shadow: 0 2px 8px rgba(0, 118, 254, 0.15);
    }
    .claimed-btn-primary {
      background: #0076FE;
      color: white;
    }
    .claimed-btn-primary:hover {
      background: #0066E0;
      box-shadow: 0 2px 8px rgba(0, 118, 254, 0.2);
    }
    .claimed-btn:active {
      transform: translateY(1px);
    }

    /* ── PROFILE SAVE CONFIRMATION PAGE ── */
    .profile-save-confirmation-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: white;
      z-index: 10004;
      padding: 0;
    }
    .profile-save-confirmation-overlay.open {
      display: flex;
    }

    .profile-save-confirmation-container {
      background: white;
      width: 100%;
      min-height: 100vh;
      min-height: 100dvh;
      height: 100vh;
      height: 100dvh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      padding: 24px 16px 80px 16px;
      gap: 0;
      animation: slideUp .3s cubic-bezier(.4, 0, .2, 1);
      position: relative;
      overflow-y: auto;
      max-width: 600px;
      margin: 0 auto;
      box-sizing: border-box;
    }

    /* Confirmation illustration laptop*/
    .confirmation-illustration {
      width: 199px;
      height: 162px;
      position: relative;
      margin-bottom: 24px;
      margin-top: 20vh;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-shrink: 0;
    }

    /* Phone view: enlarge logo by 25% and position 20% lower */
    @media (max-width: 1024px) {
      /* Confirmation illustration phone */
      .confirmation-illustration {
        width: 248.75px;  /* 199px * 1.25 = 248.75px (25% enlargement) */
        height: 202.5px;  /* 162px * 1.25 = 202.5px (25% enlargement) */
        margin-top: 16.6vh; /* Adjusted for 10% distance reduction to Done button on 430x932 reference */
        margin-bottom: 24px; /* Fixed vertical distance between mascot and text */
        flex-shrink: 0;
      }
      .confirmation-illustration img {
        width: 100%;
        height: 100%;
        object-fit: contain;
      }
      /* Confirmation messaging section */
      .confirmation-messaging {
        gap: 4px; /* Gap between title and subtitle */
        margin-top: 0;
        margin-bottom: 0;
        transform: none;
        flex-shrink: 0;
      }
      /* Fixed distance: disable top spacer so distance never changes with screen height */
      .confirmation-spacer-top {
        display: none;
      }
      .confirmation-spacer-bottom {
        flex: 1; /* Absorbs vertical screen height changes to keep Done button at bottom */
        min-height: 20px;
      }
      /* Fixed layout container */
      .profile-save-confirmation-container {
        min-height: 100vh;
        min-height: 100dvh;
        height: 100vh;
        height: 100dvh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        padding: 24px 16px 80px 16px; /* Extra space for fixed button */
        box-sizing: border-box;
      }
      .confirmation-actions {
        width: 100%;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 16px;
        background: white;
        box-sizing: border-box;
        z-index: 1000;
        display: flex;
        justify-content: center;
        align-items: center;
      }
    }

    /* Sparkle stars */
    .sparkle-star {
      position: absolute;
      background: #F5DC34;
      clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    }

    .sparkle-1 {
      width: 13.61px;
      height: 13.30px;
      left: 150.62px;
      top: 0px;
    }

    .sparkle-2 {
      width: 13.55px;
      height: 13.66px;
      left: 69px;
      top: -2px;
    }

    .sparkle-3 {
      width: 20.73px;
      height: 21.14px;
      left: 118px;
      top: 53px;
    }

    /* Purple digital card */
    .digital-card {
      width: 37.33px;
      height: 56px;
      position: absolute;
      left: 88.06px;
      top: 7.41px;
      transform: rotate(16deg);
      transform-origin: top left;
      background: #AC8BFF;
      border-radius: 4px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding: 6px;
      box-shadow: 0 4px 12px rgba(172, 139, 255, 0.3);
    }

    .digital-card-inner {
      width: 28px;
      height: 20px;
      background: #F4F0FF;
      border-radius: 2px;
      margin-bottom: 3px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .digital-card-lines {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .digital-card-line {
      height: 2px;
      background: #5C2DD2;
      border-radius: 1px;
    }

    .digital-card-line.short {
      width: 12px;
    }

    .digital-card-line.medium {
      width: 16px;
    }

    .digital-card-line.long {
      width: 20px;
    }

    /* Blue monster mascot */
    .monster-mascot {
      width: 140.25px;
      height: 88px;
      position: absolute;
      left: 25.78px;
      top: 74.06px;
    }

    .monster-body {
      position: absolute;
      background: #3693FF;
      border-radius: 8px;
    }

    .monster-head {
      width: 84px;
      height: 40.62px;
      left: 26.83px;
      top: 4.37px;
      transform: rotate(10deg);
      transform-origin: top left;
    }

    .monster-torso {
      width: 94.45px;
      height: 33.73px;
      left: 25.23px;
      top: 33.24px;
      transform: rotate(10deg);
      transform-origin: top left;
    }

    .monster-legs {
      width: 94.45px;
      height: 20.24px;
      left: 22.96px;
      top: 46.54px;
      transform: rotate(10deg);
      transform-origin: top left;
      background: #0F54A3;
    }

    .monster-arm-left {
      width: 6.29px;
      height: 36.42px;
      left: 96.27px;
      top: 54.71px;
      transform: rotate(-123deg);
      transform-origin: top left;
      background: #3693FF;
      border-radius: 3px;
    }

    .monster-arm-right {
      width: 6.18px;
      height: 35.79px;
      left: 10.60px;
      top: 17.65px;
      transform: rotate(-34deg);
      transform-origin: top left;
      background: #3693FF;
      border-radius: 3px;
    }

    .monster-hand-left {
      width: 18.75px;
      height: 18.75px;
      left: 133.27px;
      top: 42.25px;
      transform: rotate(-158deg);
      transform-origin: top left;
      background: #3693FF;
      border-radius: 50%;
    }

    .monster-hand-right {
      width: 18.43px;
      height: 18.43px;
      left: 2.10px;
      top: 3.37px;
      transform: rotate(1deg);
      transform-origin: top left;
      background: #3693FF;
      border-radius: 50%;
    }

    .monster-face {
      width: 22.53px;
      height: 13.34px;
      left: 51.15px;
      top: 27.53px;
      background: #CDDBEA;
      border-radius: 6px;
      position: absolute;
    }

    .monster-eye {
      width: 10.12px;
      height: 6.75px;
      position: absolute;
      transform: rotate(11deg);
      transform-origin: top left;
    }

    .monster-eye-left {
      left: 38.26px;
      top: 17.62px;
    }

    .monster-eye-right {
      left: 80.07px;
      top: 25.37px;
    }

    .eye-pupil {
      width: 3.97px;
      height: 3.97px;
      background: #2F3039;
      border-radius: 50%;
      position: absolute;
    }

    .eye-shine {
      width: 3.52px;
      height: 3.65px;
      background: #2F3039;
      border-radius: 50%;
      position: absolute;
    }

    /* Confirmation messaging */
    .confirmation-messaging {
      display: flex;
      flex-direction: column;
      gap: 8px;
      text-align: center;
      width: 100%;
      max-width: 361px;
      margin-top: 0;
      margin-bottom: 0;
      transform: none;
      flex-shrink: 0;
    }
    /* Fixed distance: disable top spacer so distance never changes with screen height */
    .confirmation-spacer-top {
      display: none;
    }
    .confirmation-spacer-bottom {
      flex: 1;
      min-height: 20px;
    }

    .confirmation-title {
      font-family: "Space Grotesk", sans-serif;
      font-size: 24px;
      font-weight: 700;
      color: var(--Buddei-dark-(buddy), #0B1025);
      text-align: center;
      line-height: 1.3;
      word-wrap: break-word;
      white-space: pre-line; /* Allows line breaks with '\n' */
    }

    .confirmation-subtitle {
      font-family: "Space Grotesk", sans-serif;
      font-size: 16px;
      font-weight: 400;
      color: var(--Grey-(600), #4F595F);
      text-align: center;
      line-height: 1.4;
      word-wrap: break-word;
      white-space: pre-line; /* Allows line breaks with '\n' */
    }

    /* Confirmation actions - full-width white container covering the back */
    .confirmation-actions {
      width: 100%;
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 16px;
      background: white;
      box-sizing: border-box;
      z-index: 1000;
      display: flex;
      justify-content: center;
      align-items: center;
      margin-top: auto;
      flex-shrink: 0;
    }

    /* Done button - kept at original size */
    .done-button {
      width: 100%;
      max-width: 361px;
      height: 44px;
      padding: 12px 24px;
      background: #0076FE;
      color: white;
      font-family: "Space Grotesk", sans-serif;
      font-size: 16px;
      font-weight: 500;
      line-height: 20px;
      border: none;
      outline: none;
      border-radius: 8px;
      cursor: pointer;
      transition: background-color 0.2s ease, transform 0.1s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    .done-button:hover {
      background: #0062E6;
    }

    .done-button:active {
      transform: scale(0.98);
    }

    .done-button:focus {
      outline: none;
    }

    .done-button:focus-visible {
      outline: 2px solid #0076FE;
      outline-offset: 2px;
    }

    /* Animation for celebration */
    @keyframes float {
      0%, 100% {
        transform: translateY(0px);
      }
      50% {
        transform: translateY(-10px);
      }
    }

    @keyframes sparkle {
      0%, 100% {
        opacity: 1;
        transform: scale(1);
      }
      50% {
        opacity: 0.7;
        transform: scale(1.1);
      }
    }

    .confirmation-illustration {
      animation: float 3s ease-in-out infinite;
    }

    .sparkle-star {
      animation: sparkle 2s ease-in-out infinite;
    }

    .sparkle-star:nth-child(2) {
      animation-delay: 0.3s;
    }

    .sparkle-star:nth-child(3) {
      animation-delay: 0.6s;
    }

    /* Confirmation responsive styles */
    @media (max-width: 480px) {
      .profile-save-confirmation-container {
        padding: 24px 16px 80px 16px;
      }
      /* Keep font sizes as requested - 24px and 16px */
      .confirmation-title {
        font-size: 24px;
      }
      .confirmation-subtitle {
        font-size: 16px;
      }
      .confirmation-actions {
        width: 100%;
        max-width: 100%;
        left: 0;
        right: 0;
        transform: none;
      }
    }

    @media (max-width: 420px) {
      .profile-save-confirmation-container {
        padding: 24px 12px 80px 12px;
      }
      /* Keep font sizes as requested - 24px and 16px */
      .confirmation-title {
        font-size: 24px;
      }
      .confirmation-subtitle {
        font-size: 16px;
      }
      .done-button {
        font-size: 15px;
        padding: 10px 20px;
      }
      .confirmation-actions {
        width: 100%;
        max-width: 100%;
        left: 0;
        right: 0;
        transform: none;
      }
    }

    @media (max-width: 420px) {
      .copyable {
        cursor: pointer !important;
        user-select: none;
      }
      .copyable:hover {
        opacity: 0.7;
      }
    }
