/* =====  THEME TOKENS  ===== */
  :root {
    /* Light theme — warm paper, deep ink, single confident accent */
    --bg:            #f0f4f8;
    --bg-elev:       #f7f9fc;
    --bg-card:       #ffffff;
    --ink:           #0f1824;
    --ink-soft:      #3d4e63;
    --ink-mute:      #7a8fa8;
    --line:          rgba(0,0,0,0.08);
    --line-soft:     rgba(0,0,0,0.05);
    --accent:        #00a87a;       /* emerald green */
    --accent-soft:   rgba(0,168,122,0.14);
    --accent-ink:    #ffffff;
    --good:          #00a87a;
    --shadow-sm:     0 1px 2px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04);
    --shadow-md:     0 8px 24px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
    --shadow-lg:     0 30px 80px rgba(0,0,0,0.13), 0 8px 24px rgba(0,0,0,0.07);
    --grain-opacity: 0.04;
  }

  @media (prefers-color-scheme: dark) {
    :root {
      --bg:          #0a0e14;
      --bg-elev:     #0f1520;
      --bg-card:     #141c2e;
      --ink:         #e2e8f0;
      --ink-soft:    #8892a4;
      --ink-mute:    #4a5568;
      --line:        rgba(255,255,255,0.07);
      --line-soft:   rgba(255,255,255,0.04);
      --accent:      #00c896;
      --accent-soft: rgba(0,200,150,0.14);
      --accent-ink:  #ffffff;
      --good:        #00c896;
      --shadow-sm:   0 1px 2px rgba(0,0,0,0.4), 0 2px 6px rgba(0,0,0,0.3);
      --shadow-md:   0 8px 24px rgba(0,0,0,0.45), 0 2px 6px rgba(0,0,0,0.3);
      --shadow-lg:   0 30px 80px rgba(0,0,0,0.55), 0 8px 24px rgba(0,0,0,0.4);
      --grain-opacity: 0.06;
    }
  }

  /* =====  RESET  ===== */
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
  }

  /* Subtle paper grain */
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
    opacity: var(--grain-opacity);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    mix-blend-mode: multiply;
  }
  @media (prefers-color-scheme: dark) {
    body::before { mix-blend-mode: screen; }
  }

  a { color: inherit; text-decoration: none; }
  button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
  img, svg { display: block; max-width: 100%; }

  ::selection { background: var(--accent); color: var(--accent-ink); }

  /* =====  LAYOUT  ===== */
  .container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
  }
  @media (max-width: 640px) {
    .container { padding: 0 20px; }
  }

  /* =====  NAV  ===== */
  .nav {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    border-bottom: 1px solid transparent;
    transition: border-color .3s ease, background .3s ease;
  }
  .nav.scrolled {
    border-bottom-color: var(--line);
  }
  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 600;
    font-size: 22px;
    letter-spacing: -0.02em;
  }
  .brand-mark {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    transform: rotate(-4deg);
    transition: transform .4s cubic-bezier(.34,1.56,.64,1);
    position: relative;
  }
  .brand-mark svg { display: block; }
  .brand:hover .brand-mark { transform: rotate(4deg) scale(1.05); }

  /* Logo theme switching — hardcoded, no CSS variables inside SVG */
  /* Default (light theme): show dark logo, hide light logo */
  .brand-mark .logo-dark,
  .post-footer-brand .logo-dark  { display: block; }
  .brand-mark .logo-light,
  .post-footer-brand .logo-light { display: none;  }

  /* Dark theme via manual toggle */
  [data-theme="dark"] .brand-mark .logo-dark,
  [data-theme="dark"] .post-footer-brand .logo-dark  { display: none;  }
  [data-theme="dark"] .brand-mark .logo-light,
  [data-theme="dark"] .post-footer-brand .logo-light { display: block; }

  /* Dark theme via system preference (no manual override) */
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .brand-mark .logo-dark,
    :root:not([data-theme]) .post-footer-brand .logo-dark  { display: none;  }
    :root:not([data-theme]) .brand-mark .logo-light,
    :root:not([data-theme]) .post-footer-brand .logo-light { display: block; }
  }
  .brand-dot { color: var(--accent); }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 14px;
    font-weight: 500;
  }

  .nav-links a {
    color: var(--ink-soft);
    transition: color .2s ease;
    position: relative;
  }
  .nav-links a:hover { color: var(--ink); }
  .nav-links a.active { color: var(--ink); }

  .lang-switch {
    display: inline-flex;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
  }
  .lang-switch button,
  .lang-switch a.lang-btn {
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--ink-mute);
    transition: all .25s ease;
    text-decoration: none;
  }
  .lang-switch button.active,
  .lang-switch a.lang-btn.active {
    background: var(--ink);
    color: var(--bg);
  }

  .nav-cta {
    padding: 10px 18px;
    background: var(--accent);
    color: #ffffff; /* light theme: white text on muted green */
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    transition: transform .2s ease, box-shadow .25s ease, background .2s ease;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 35%, transparent);
  }
  .nav-cta:hover {
    background: color-mix(in srgb, var(--accent) 85%, var(--ink));
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 50%, transparent);
  }
  /* Dark theme: dark text on bright green */
  [data-theme="dark"] .nav-cta,
  [data-theme="dark"] .nav-cta:hover { color: #0a0e14; }

  /* ── nav-actions: always-visible right side ───────────────── */
  .nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  /* ── hamburger: hidden on desktop ─────────────────────────── */
  .nav-hamburger {
    display: none;
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    color: var(--ink);
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .2s, border-color .2s;
  }
  .nav-hamburger:hover { border-color: var(--accent); color: var(--accent); }

  /* ── mobile menu panel: hidden by default ─────────────────── */
  .mobile-menu {
    display: none;
  }

  /* =====  HERO  ===== */
  .hero {
    position: relative;
    padding: 80px 0 120px;
    overflow: hidden;
  }
  .hero::after {
    /* radiating accent glow behind device */
    content: "";
    position: absolute;
    right: -10%;
    top: 20%;
    width: 60%;
    height: 70%;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 60%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
  }
  @media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 60px; }
    .hero { padding: 48px 0 80px; }
  }

  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp .8s ease .1s forwards;
  }
  .eyebrow-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--good);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 25%, transparent);
    animation: pulse 2s ease-in-out infinite;
  }
  @keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 25%, transparent); }
    50%      { box-shadow: 0 0 0 7px color-mix(in srgb, var(--good) 0%, transparent); }
  }

  .hero h1 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(46px, 6.4vw, 84px);
    line-height: 0.98;
    letter-spacing: -0.02em;
    margin: 0 0 28px;
    color: var(--ink);
    opacity: 0;
    animation: fadeUp .9s ease .2s forwards;
  }
  .hero h1 em {
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
  }
  .hero h1 .underline {
    position: relative;
    white-space: nowrap;
  }
  .hero h1 .underline::after {
    content: "";
    position: absolute;
    left: -2%; right: -2%; bottom: 4px;
    height: 14px;
    background: var(--accent-soft);
    z-index: -1;
    border-radius: 4px;
    opacity: 0.55;
  }

  .hero-lede {
    font-size: clamp(17px, 1.4vw, 19px);
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 540px;
    margin: 0 0 40px;
    opacity: 0;
    animation: fadeUp .9s ease .35s forwards;
  }

  .hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    opacity: 0;
    animation: fadeUp .9s ease .5s forwards;
  }
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    transition: all .25s ease;
  }
  .btn-primary {
    background: var(--ink);
    color: var(--bg);
    box-shadow: var(--shadow-md);
  }
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }
  .btn-secondary {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
  }
  .btn-secondary:hover {
    border-color: var(--ink);
    background: var(--bg-card);
  }
  .btn svg { width: 16px; height: 16px; }

  .hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
    opacity: 0;
    animation: fadeUp .9s ease .7s forwards;
  }
  .hero-meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  .hero-meta-num {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--ink);
  }
  .hero-meta-label {
    font-size: 12px;
    color: var(--ink-mute);
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  /* =====  PHONE MOCKUP  ===== */
  .device-stage {
    position: relative;
    display: grid;
    place-items: center;
    perspective: 1500px;
    opacity: 0;
    animation: fadeUp 1s ease .4s forwards;
  }

  .device-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  .device-bg-shapes::before,
  .device-bg-shapes::after {
    content: "";
    position: absolute;
    border-radius: 50%;
  }
  .device-bg-shapes::before {
    width: 320px; height: 320px;
    top: 10%; left: -10%;
    border: 1px dashed var(--line);
    animation: spin 60s linear infinite;
  }
  .device-bg-shapes::after {
    width: 180px; height: 180px;
    bottom: 5%; right: 8%;
    background: var(--accent);
    opacity: 0.08;
    filter: blur(30px);
  }
  @keyframes spin { to { transform: rotate(360deg); } }

  .phone {
    position: relative;
    width: 320px;
    height: 660px;
    background: var(--ink);
    border-radius: 48px;
    padding: 12px;
    box-shadow:
      0 0 0 2px color-mix(in srgb, var(--ink) 80%, var(--bg-card)),
      var(--shadow-lg);
    transform: rotate(-3deg);
    transition: transform .6s cubic-bezier(.22,1,.36,1);
  }
  .phone:hover { transform: rotate(0deg) translateY(-6px); }

  .phone::before {
    /* side button */
    content: "";
    position: absolute;
    right: -3px;
    top: 140px;
    width: 4px;
    height: 64px;
    background: color-mix(in srgb, var(--ink) 70%, var(--bg));
    border-radius: 0 2px 2px 0;
  }
  .phone::after {
    /* volume buttons */
    content: "";
    position: absolute;
    left: -3px;
    top: 120px;
    width: 4px;
    height: 100px;
    background: color-mix(in srgb, var(--ink) 70%, var(--bg));
    border-radius: 2px 0 0 2px;
    box-shadow: 0 -50px 0 color-mix(in srgb, var(--ink) 70%, var(--bg));
  }

  .phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-elev);
    border-radius: 38px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
  }

  .phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 28px;
    background: var(--ink);
    border-radius: 999px;
    z-index: 10;
  }

  .chat-header {
    padding: 50px 18px 14px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-elev);
  }
  .chat-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--ink)));
    display: grid;
    place-items: center;
    color: var(--accent-ink);
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
    position: relative;
  }
  .chat-avatar::after {
    content: "";
    position: absolute;
    bottom: 0; right: 0;
    width: 10px; height: 10px;
    background: var(--good);
    border-radius: 50%;
    border: 2px solid var(--bg-elev);
  }
  .chat-meta {
    flex: 1;
    min-width: 0;
  }
  .chat-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
    margin-bottom: 2px;
  }
  .chat-status {
    font-size: 11px;
    color: var(--ink-mute);
    font-family: 'IBM Plex Mono', monospace;
  }
  .chat-icon-btn {
    width: 32px; height: 32px;
    display: grid;
    place-items: center;
    color: var(--ink-mute);
    border-radius: 8px;
    transition: background .2s;
  }
  .chat-icon-btn:hover { background: var(--line-soft); color: var(--ink); }

  .chat-body {
    flex: 1;
    overflow: hidden;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
  }
  .chat-body::before {
    /* faint pattern background */
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 40%),
      radial-gradient(circle at 80% 70%, color-mix(in srgb, var(--good) 8%, transparent) 0%, transparent 40%);
    pointer-events: none;
    opacity: 0.5;
  }

  .msg {
    max-width: 78%;
    padding: 9px 13px;
    border-radius: 18px;
    font-size: 13.5px;
    line-height: 1.4;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(8px);
    animation: msgIn .4s cubic-bezier(.22,1,.36,1) forwards;
    word-wrap: break-word;
  }
  .msg.them {
    align-self: flex-start;
    background: var(--bg-card);
    color: var(--ink);
    border-bottom-left-radius: 6px;
    box-shadow: var(--shadow-sm);
  }
  .msg.me {
    align-self: flex-end;
    background: var(--accent);
    color: var(--accent-ink);
    border-bottom-right-radius: 6px;
  }
  .msg-time {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-end;
    font-family: 'IBM Plex Mono', monospace;
  }
  .msg.them .msg-time { justify-content: flex-start; }
  .msg-icon        { width: 11px; height: 11px; opacity: 0.75; flex-shrink: 0; display: inline-block; vertical-align: middle; }
  .msg-icon.msg-tick { width: 17px; }

  .typing {
    align-self: flex-start;
    background: var(--bg-card);
    padding: 12px 16px;
    border-radius: 18px;
    border-bottom-left-radius: 6px;
    display: flex;
    gap: 4px;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    animation: msgIn .4s ease forwards;
  }
  .typing span {
    width: 6px; height: 6px;
    background: var(--ink-mute);
    border-radius: 50%;
    animation: typingBounce 1.2s ease-in-out infinite;
  }
  .typing span:nth-child(2) { animation-delay: .15s; }
  .typing span:nth-child(3) { animation-delay: .3s; }
  @keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30%           { transform: translateY(-5px); opacity: 1; }
  }
  @keyframes msgIn {
    to { opacity: 1; transform: translateY(0); }
  }

  .chat-input {
    padding: 12px 14px 18px;
    background: var(--bg-elev);
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: visible;
  }
  .chat-input-field {
    flex: 1;
    background: var(--bg-card);
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--ink);
    border: 1px solid var(--line);
    min-height: 38px;
    display: flex;
    align-items: center;
    position: relative;
    transition: border-color .2s, box-shadow .2s;
  }
  .chat-input-field.is-typing {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 20%, transparent);
  }
  /* Blinking cursor */
  .chat-input-cursor {
    display: inline-block;
    width: 2px;
    height: 14px;
    background: var(--accent);
    margin-left: 1px;
    vertical-align: middle;
    border-radius: 1px;
    opacity: 0;
    animation: none;
  }
  .chat-input-cursor.active {
    opacity: 1;
    animation: cursorBlink 0.7s ease infinite;
  }
  @keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
  }
  /* Key flash — small ripple above input on each keystroke */
  .key-flash {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 11px;
    font-family: 'IBM Plex Mono', monospace;
    color: var(--accent);
    pointer-events: none;
    opacity: 0;
    animation: keyPop .28s ease forwards;
    z-index: 10;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 30%, transparent);
  }
  @keyframes keyPop {
    0%   { opacity: 0; transform: translateX(-50%) translateY(6px) scale(0.85); }
    40%  { opacity: 1; transform: translateX(-50%) translateY(0)   scale(1.05); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-6px) scale(0.9); }
  }
  /* Send button active flash */
  .chat-input-btn {
    width: 38px; height: 38px;
    background: var(--accent);
    color: var(--accent-ink);
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: transform .15s ease, box-shadow .15s ease;
  }
  .chat-input-btn.is-sending {
    animation: sendPulse .35s ease forwards;
  }
  @keyframes sendPulse {
    0%   { transform: scale(1);    box-shadow: none; }
    40%  { transform: scale(1.25); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 35%, transparent); }
    100% { transform: scale(1);    box-shadow: none; }
  }
  /* Message fly-in from bottom */
  @keyframes msgFlyIn {
    0%   { opacity: 0; transform: translateY(18px) scale(0.95); }
    60%  { opacity: 1; transform: translateY(-3px) scale(1.01); }
    100% { opacity: 1; transform: translateY(0)    scale(1); }
  }
  .msg.fly-in {
    animation: msgFlyIn .38s cubic-bezier(.34,1.56,.64,1) forwards;
  }

  /* Floating side cards around the phone */
  .float-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: var(--shadow-md);
    font-size: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .float-card-1 {
    top: 12%;
    left: -10%;
    transform: rotate(-6deg);
    animation: float 6s ease-in-out infinite;
  }
  .float-card-2 {
    bottom: 18%;
    right: -8%;
    transform: rotate(5deg);
    animation: float 6s ease-in-out infinite 3s;
  }

  @keyframes float {
    0%, 100% { transform: translateY(0) rotate(var(--rot, -6deg)); }
    50%      { transform: translateY(-10px) rotate(var(--rot, -6deg)); }
  }
  .float-card-1 { --rot: -6deg; }
  .float-card-2 { --rot: 5deg; }

  .float-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
  }
  .float-icon.lock   { background: color-mix(in srgb, var(--good) 18%, transparent);   color: var(--good); }
  .float-icon.shield { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }

  

  .float-card-title { font-weight: 600; color: var(--ink); }
  .float-card-sub { color: var(--ink-mute); font-family: 'IBM Plex Mono', monospace; font-size: 10px; }

  @media (max-width: 980px) {
    .float-card-1 { left: 0; }
    .float-card-2 { right: 0; }
  }
  @media (max-width: 480px) {
    .phone { width: 280px; height: 580px; }
    .float-card { display: none; }
  }

  /* =====  SECTIONS  ===== */
  section { position: relative; padding: 100px 0; }
  @media (max-width: 768px) { section { padding: 72px 0; } }

  .section-head {
    margin-bottom: 64px;
    max-width: 700px;
  }
  .section-eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .section-eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--accent);
  }
  .section-title {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(36px, 4.5vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0 0 20px;
    color: var(--ink);
  }
  .section-title em { font-style: italic; color: var(--accent); }
  .section-sub {
    font-size: 17px;
    color: var(--ink-soft);
    line-height: 1.6;
  }

  /* =====  FEATURES  ===== */
  .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
  }
  @media (max-width: 880px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }

  .feature {
    background: var(--bg);
    padding: 36px 32px;
    transition: background .25s ease;
    position: relative;
    display: flex;
    flex-direction: column;
  }
  .feature:hover { background: var(--bg-elev); }

  .feature-num {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--ink-mute);
    letter-spacing: 0.1em;
    margin-bottom: 24px;
  }
  .feature-icon {
    width: 44px; height: 44px;
    display: grid;
    place-items: center;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    margin-bottom: 24px;
    transition: all .3s ease;
  }
  .feature:hover .feature-icon {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
    transform: rotate(-4deg);
  }
  .feature-icon svg { width: 22px; height: 22px; }

  .feature h3 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 500;
    font-size: 22px;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
    color: var(--ink);
  }
  .feature p {
    color: var(--ink-soft);
    line-height: 1.55;
    font-size: 14.5px;
    margin: 0;
    flex: 1;
  }
  .feature-link {
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap .2s ease;
  }
  .feature-link:hover { gap: 10px; }
  .feature-xmr-btn { cursor: pointer; }

  /* =====  DOWNLOADS  ===== */
  .downloads-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  @media (max-width: 880px) { .downloads-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) { .downloads-grid { grid-template-columns: 1fr; } }

  .download {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 28px;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
    position: relative;
    overflow: hidden;
  }
  /* Radial green glow from centre — matches tooltip balloon effect */
  .download::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: radial-gradient(
      circle at 50% 50%,
      color-mix(in srgb, var(--accent) 10%, transparent) 0%,
      transparent 70%
    );
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
  }
  /* Top accent line */
  .download::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: translateY(-4px);
    transition: transform .3s ease;
    z-index: 1;
  }
  .download:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
    box-shadow:
      var(--shadow-md),
      0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent);
  }
  .download:hover::before { transform: translateY(0); }
  .download:hover::after  { opacity: 1; }

  .download-os {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
  }
  .download-platform {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-mute);
  }
  .download-platform-icon {
    display: inline-flex;
    align-items: center;
    color: var(--ink-mute);
    transition: color .25s ease;
  }
  .download:hover .download-platform-icon { color: var(--ink); }
  .download-platform-icon svg {
    width: 22px;
    height: 22px;
    display: block;
  }
  .download-os-icon {
    color: var(--ink);
  }
  .download h3 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 500;
    font-size: 24px;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
  }
  .download p {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 20px;
  }
  .download-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .download-pill {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--ink-soft);
    transition: all .2s ease;
    font-weight: 500;
  }
  .download-pill:hover {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
  }

  /* =====  TECH MARQUEE  ===== */
  .tech {
    padding: 60px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
  }
  .tech-label {
    text-align: center;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 32px;
  }
  .tech-track {
    display: flex;
    gap: 60px;
    animation: marquee 40s linear infinite;
    width: max-content;
    cursor: default;
  }
  /* Pause on hover — no JS needed */
  .tech:hover .tech-track {
    animation-play-state: paused;
  }
  @keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }
  .tech-item {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 28px;
    letter-spacing: -0.02em;
    color: var(--ink-soft);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 60px;
  }
  .tech-item::after {
    content: "•";
    color: var(--accent);
  }

  /* =====  FOOTER  ===== */
  footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--line);
  }
  .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
  }
  @media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand-col { grid-column: 1 / -1; }
    .footer-col-contact { grid-column: 1 / -1; }
    .footer-col h4,
    .footer-col ul { text-align: center; align-items: center; width: 100%; }
    .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
    .contact-item { justify-content: center; width: 100%; }
    .hero-meta { justify-content: center; }
  }

  .footer-tagline {
    color: var(--ink-soft);
    margin: 16px 0 24px;
    max-width: 360px;
    line-height: 1.6;
  }
  .footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .footer-badge {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    padding: 5px 10px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink-soft);
    letter-spacing: 0.05em;
  }

  .footer-col h4 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin: 0 0 20px;
    font-weight: 500;
  }
  .footer-col ul {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .footer-col a {
    color: var(--ink-soft);
    font-size: 14px;
    transition: color .2s;
  }
  .footer-col a:hover { color: var(--accent); }

  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--ink-mute);
    flex-wrap: wrap;
    gap: 16px;
  }
  .footer-heart {
    display: inline-block;
    vertical-align: middle;
    margin: 0 2px;
    position: relative;
    top: -1px;
    fill: var(--accent);
    flex-shrink: 0;
  }

  /* =====  ANIMATIONS  ===== */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.22,1,.36,1);
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Reduced motion */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: .01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: .01ms !important;
    }
  }
/* =====================================================================
   ADDITIONS: theme toggle · scroll-to-top · QR card · obfuscated email
===================================================================== */

/* ── THEME TOKENS for data-theme override ─────────────────────────── */
[data-theme="dark"] {
  --bg:          #0a0e14;
  --bg-elev:     #0f1520;
  --bg-card:     #141c2e;
  --ink:         #e2e8f0;
  --ink-soft:    #8892a4;
  --ink-mute:    #4a5568;
  --line:        rgba(255,255,255,0.07);
  --line-soft:   rgba(255,255,255,0.04);
  --accent:      #00c896;
  --accent-soft: rgba(0,200,150,0.14);
  --accent-ink:  #ffffff;
  --good:        #00c896;
  --shadow-sm:   0 1px 2px rgba(0,0,0,0.4), 0 2px 6px rgba(0,0,0,0.3);
  --shadow-md:   0 8px 24px rgba(0,0,0,0.45), 0 2px 6px rgba(0,0,0,0.3);
  --shadow-lg:   0 30px 80px rgba(0,0,0,0.55), 0 8px 24px rgba(0,0,0,0.4);
}
[data-theme="light"] {
  --bg:            #f0f4f8;
  --bg-elev:       #f7f9fc;
  --bg-card:       #ffffff;
  --ink:           #0f1824;
  --ink-soft:      #3d4e63;
  --ink-mute:      #7a8fa8;
  --line:          rgba(0,0,0,0.08);
  --line-soft:     rgba(0,0,0,0.05);
  --accent:        #00a87a;
  --accent-soft:   rgba(0,168,122,0.14);
  --accent-ink:    #ffffff;
  --good:          #00a87a;
  --shadow-sm:     0 1px 2px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-md:     0 8px 24px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg:     0 30px 80px rgba(0,0,0,0.13), 0 8px 24px rgba(0,0,0,0.07);
}

/* ── THEME TOGGLE BUTTON ──────────────────────────────────────────── */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, color .2s, transform .3s ease;
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: rotate(20deg);
}
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), opacity .25s ease;
}
/* default (light / system-light): show sun, hide moon */
.theme-toggle .icon-sun  { opacity: 1; transform: translateY(0) rotate(0deg); }
.theme-toggle .icon-moon { opacity: 0; transform: translateY(160%) rotate(30deg); }

/* when dark theme is active: hide sun, show moon */
[data-theme="dark"] .theme-toggle .icon-sun  { opacity: 0; transform: translateY(-160%) rotate(-30deg); }
[data-theme="dark"] .theme-toggle .icon-moon { opacity: 1; transform: translateY(0) rotate(0deg); }

/* system-level dark (no manual override) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .icon-sun  { opacity: 0; transform: translateY(-160%) rotate(-30deg); }
  :root:not([data-theme]) .theme-toggle .icon-moon { opacity: 1; transform: translateY(0) rotate(0deg); }
}

/* ── SCROLL TO TOP BUTTON ─────────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff; /* light theme: white arrow on muted green */
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 40%, transparent);
  border: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .3s ease, transform .3s ease, box-shadow .2s ease;
  pointer-events: none;
}
/* Dark theme: dark arrow on bright green */
[data-theme="dark"] .scroll-top { color: #0a0e14; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .scroll-top { color: #0a0e14; }
}
.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top:hover {
  box-shadow: 0 6px 24px color-mix(in srgb, var(--accent) 55%, transparent);
  transform: translateY(-2px);
}
@media (max-width: 640px) {
  .scroll-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .nav-cta,
  :root:not([data-theme]) .nav-cta:hover,
  :root:not([data-theme]) .mobile-menu-cta,
  :root:not([data-theme]) .mobile-menu-cta:hover { color: #0a0e14 !important; }
}

/* ── QR CODE CARD ─────────────────────────────────────────────────── */
.qr-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.qr-card {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 20px;
  margin-top: 32px;
  box-shadow: var(--shadow-sm);
  max-width: 400px;
  transition: box-shadow .25s ease, transform .25s ease;
  /* center within the hero-text column */
  display: flex;
  margin-left: auto;
  margin-right: auto;
}
.qr-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
/* Both QR images share base sizing */
.qr-img {
  width: 144px;
  height: 144px;
  border-radius: 12px;
  flex-shrink: 0;
  display: block;
}

/* Dark QR: shown by default and in dark mode */
.qr-img-dark  { display: block; }
.qr-img-light { display: none;  }

/* Light theme override — manual toggle */
[data-theme="light"] .qr-img-dark  { display: none;  }
[data-theme="light"] .qr-img-light { display: block; }

/* Light theme override — system preference (no manual choice) */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .qr-img-dark  { display: none;  }
  :root:not([data-theme]) .qr-img-light { display: block; }
}
.qr-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.qr-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.qr-sub {
  font-size: 12px;
  color: var(--ink-mute);
  font-family: 'IBM Plex Mono', monospace;
  line-height: 1.5;
}
@media (max-width: 480px) {
  .qr-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.qr-card { flex-direction: column; text-align: center; }
}

/* ── OBFUSCATED EMAIL ─────────────────────────────────────────────── */
/* Rendered by JS — styled to match existing footer links */
.obf-email a {
  color: var(--ink-soft);
  font-size: 14px;
  transition: color .2s;
}
.obf-email a:hover { color: var(--accent); }

/* ── Webchat note (below download cards) ─────────────────────────── */
.dl-webchat-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  color: var(--ink-soft);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
}
.dl-webchat-body {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: center;
  justify-content: center;
}
.dl-webchat-body p { margin: 0; }
.dl-webchat-logo {
  flex-shrink: 0;
  filter: invert(62%) sepia(60%) saturate(400%) hue-rotate(116deg) brightness(95%);
}
.dl-webchat-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
}
@media (max-width: 640px) {
  .dl-webchat-body { flex-direction: column; text-align: center; }
  .dl-webchat-btn { width: 100%; justify-content: center; }
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-icon {
  flex-shrink: 0;
  color: var(--ink-mute);
  position: relative;
  top: 1px;
}

/* =====================================================================
   BLOG — list page, post cards, single post, pagination
   Card style mirrors "Get the apps" download cards exactly.
===================================================================== */

/* ── Blog hero ────────────────────────────────────────────────────── */
.blog-hero {
  padding: 80px 0 56px;
  position: relative;
  overflow: hidden;
}
.blog-hero::after {
  content: "";
  position: absolute;
  right: -10%; top: 0;
  width: 50%; height: 100%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.blog-hero .container { position: relative; z-index: 1; }

.blog-hero-title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 16px 0 16px;
  color: var(--ink);
  opacity: 0;
  animation: fadeUp .8s ease .1s forwards;
}
.blog-hero-title em { font-style: italic; color: var(--accent); }
.blog-hero-sub {
  font-size: 18px;
  color: var(--ink-soft);
  margin: 0;
  max-width: 560px;
  opacity: 0;
  animation: fadeUp .8s ease .25s forwards;
}

/* ── Post grid — identical to .downloads-grid ─────────────────────── */
.blog-list { padding: 24px 0 100px; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 880px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .post-grid { grid-template-columns: 1fr; } }

/* ── Post card — identical to .download ──────────────────────────── */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.post-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateY(-4px);
  transition: transform .3s ease;
}
.post-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  box-shadow:
    var(--shadow-md),
    0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent);
}
.post-card:hover::before { transform: translateY(0); }
.post-card:hover::after  { opacity: 1; }
.post-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: radial-gradient(
    circle at 50% 50%,
    color-mix(in srgb, var(--accent) 10%, transparent) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}

.post-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
}

/* Blog card image ────────────────────────────────────────────────── */
.post-card-img {
  margin: -28px -28px 20px -28px;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-elev);
}
.post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .4s ease;
}
.post-card:hover .post-card-img img {
  transform: scale(1.04);
}

/* Platform label row — mirrors .download-os ──────────────────────── */
.post-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.post-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.post-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.post-tag + .post-tag::before { content: "·"; margin-right: 6px; }

/* Title — mirrors .download h3 ───────────────────────────────────── */
.post-title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--ink);
  line-height: 1.25;
}

/* Excerpt — mirrors .download p ─────────────────────────────────── */
.post-excerpt {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 20px;
  flex: 1;
}

/* Read more pill — mirrors .download-pill ────────────────────────── */
.post-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  transition: all .2s ease;
  font-weight: 500;
  align-self: flex-start;
}
.post-card:hover .post-readmore {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* ── Empty state ──────────────────────────────────────────────────── */
.blog-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--ink-mute);
  font-size: 17px;
}

/* ── Pagination ───────────────────────────────────────────────────── */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.blog-page-info {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--ink-mute);
}

/* ── Single post layout ───────────────────────────────────────────── */
.post-full { padding: 48px 0 100px; }
.post-container { max-width: 900px; }

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 40px;
  transition: all .2s ease;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.post-back:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.post-header { margin-bottom: 48px; }

/* Post meta on single page */
.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.post-reading-time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
}

.post-full-title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: clamp(30px, 4.5vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--ink);
}
.post-full-desc {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 28px;
  font-style: italic;
}
.post-full-img {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 28px;
}
.post-full-img img { width: 100%; height: auto; display: block; }

/* ── Post body typography ─────────────────────────────────────────── */
.post-content {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 40px;
  margin-bottom: 48px;
}
.post-content h2 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 48px 0 16px;
}
.post-content h3 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
  margin: 36px 0 12px;
}
.post-content p { margin: 0 0 20px; }
.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-content a:hover { text-decoration: none; }
.post-content strong { color: var(--ink); font-weight: 600; }
.post-content em { font-style: italic; }
.post-content ul, .post-content ol { padding-left: 24px; margin: 0 0 20px; }
.post-content li { margin-bottom: 8px; }
.post-content blockquote {
  margin: 28px 0;
  padding: 16px 24px;
  border-left: 3px solid var(--accent);
  background: var(--bg-elev);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--ink);
}
.post-content blockquote p { margin: 0; }
.post-content code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  background: var(--bg-elev);
  padding: 2px 7px;
  border-radius: 5px;
  color: var(--accent);
  border: 1px solid var(--line);
}
.post-content pre {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  overflow-x: auto;
  margin: 0 0 24px;
}
.post-content pre code { background: none; padding: 0; border: none; color: var(--ink); font-size: 14px; }
.post-content hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }
.post-content img { max-width: 100%; border-radius: 12px; margin: 8px 0 24px; display: block; }
.post-content table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 15px; }
.post-content th, .post-content td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; }
.post-content th { background: var(--bg-elev); font-weight: 600; color: var(--ink); }

/* ── Post footer line ─────────────────────────────────────────────── */
.post-footer-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
  font-size: 13px;
  color: var(--ink-mute);
}
.post-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
}

/* ── Prev / Next navigation ───────────────────────────────────────── */
.post-nav-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .post-nav-inner { grid-template-columns: 1fr; } }
.post-nav-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 28px;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: inherit;
}
.post-nav-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--accent);
  transform: translateY(-4px);
  transition: transform .3s ease;
}
.post-nav-item:hover {
  transform: translateY(-3px);
  border-color: var(--ink-mute);
  box-shadow: var(--shadow-md);
}
.post-nav-item:hover::before { transform: translateY(0); }
.post-nav-next { text-align: right; }
.post-nav-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 6px;
}
.post-nav-next .post-nav-label { justify-content: flex-end; }
.post-nav-title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.25;
}


/* =====================================================================
   MOBILE NAV — responsive rules (outside all nesting)
===================================================================== */

@media (max-width: 880px) {
  /* Hide desktop nav links */
  .nav-links { display: none !important; }

  /* Show hamburger */
  .nav-hamburger { display: flex !important; }

  /* Hide lang-switch on mobile — it's in the mobile menu */
  .nav-actions .lang-switch { display: none; }

  /* Mobile menu panel */
  .mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    background: var(--bg);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    z-index: 99;
    overflow-y: auto;
    max-height: calc(100vh - 72px);
  }
  .mobile-menu.is-open {
    display: block;
  }
  .mobile-menu-inner {
    display: flex;
    flex-direction: column;
    padding: 16px 24px 32px;
    gap: 4px;
  }
  .mobile-menu-inner a {
    font-size: 18px;
    font-weight: 600;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    display: block;
    transition: color .2s, padding-left .2s;
  }
  .mobile-menu-inner a:hover {
    color: var(--accent);
    padding-left: 8px;
  }
  .mobile-menu-inner a:last-child {
    border-bottom: none;
  }
  .mobile-menu-cta {
    margin-top: 16px;
    display: inline-flex !important;
    align-items: center;
    padding: 10px 18px !important;
    background: var(--accent);
    color: #ffffff !important; /* light: white on muted green */
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    border-bottom: none !important;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 35%, transparent);
    width: fit-content;
  }
  .mobile-menu-cta:hover {
    padding-left: 18px !important;
    color: #ffffff !important;
    background: color-mix(in srgb, var(--accent) 85%, var(--ink));
  }
  [data-theme="dark"] .mobile-menu-cta,
  [data-theme="dark"] .mobile-menu-cta:hover { color: #0a0e14 !important; }
}

/* Mobile lang-switch inside mobile menu */
.mobile-lang-switch {
  margin-top: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.mobile-lang-switch .lang-btn {
  font-size: 13px;
  padding: 6px 14px;
  border-bottom: none !important;
}

/* ── Clickable city name in footer tagline ───────────────────────── */
.footer-city {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: color .2s, text-decoration-color .2s;
}
.footer-city:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* =====================================================================
   CALL SCREEN OVERLAY
===================================================================== */

.call-screen {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s ease;
  overflow: hidden;
}
.call-screen.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Blurred dark background */
.call-screen-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #0d1f1a 0%, #0a1410 60%, #061210 100%);
  opacity: 0.97;
}

.call-screen-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  width: 100%;
}

/* Avatar with pulsing rings */
.call-avatar-ring {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

/* Pulsing ring around avatar */
.call-avatar-pulse {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, #00c896 50%, transparent);
  animation: callRingPulse 1.8s ease-in-out infinite;
}
.call-avatar-pulse::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, #00c896 28%, transparent);
  animation: callRingPulse 1.8s ease-in-out .4s infinite;
}
.call-avatar-pulse::after {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, #00c896 15%, transparent);
  animation: callRingPulse 1.8s ease-in-out .8s infinite;
}
@keyframes callRingPulse {
  0%   { transform: scale(0.95); opacity: 0.8; }
  50%  { transform: scale(1.08); opacity: 0.4; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.call-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a3a30, #0d2018);
  border: 2px solid #00c896;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: #00c896;
  font-family: 'IBM Plex Sans', sans-serif;
}

.call-name {
  font-size: 18px;
  font-weight: 600;
  color: #e2e8f0;
  font-family: 'IBM Plex Sans', sans-serif;
  letter-spacing: -0.01em;
  margin-top: 4px;
}

.call-status {
  font-size: 12px;
  color: #00c896;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.call-duration {
  font-size: 20px;
  font-weight: 600;
  color: #e2e8f0;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.08em;
  min-height: 28px;
}

/* Accept + Decline buttons */
.call-actions {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  margin-top: 12px;
}

.call-action-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.call-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.call-btn:hover { transform: scale(1.08); }

.call-btn-accept {
  background: #00c896;
  box-shadow: 0 4px 20px rgba(0, 200, 150, 0.45);
  animation: callBtnPulse 1.8s ease-in-out infinite;
}
@keyframes callBtnPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(0,200,150,.45); }
  50%       { box-shadow: 0 4px 32px rgba(0,200,150,.7); }
}

.call-btn-decline {
  background: #e05555;
  box-shadow: 0 4px 20px rgba(224, 85, 85, 0.4);
  /* Rotate icon 135deg to show hang-up position */
  transform: rotate(135deg);
}
.call-btn-decline:hover { transform: rotate(135deg) scale(1.08); }

.call-btn-label {
  font-size: 11px;
  color: rgba(226, 232, 240, 0.6);
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.04em;
}

/* =====================================================================
   ANDROID PHONE FRAME — used in blog post guides
===================================================================== */
.android-frame-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 28px auto;
  max-width: 280px;
}
.android-frame {
  position: relative;
  width: 260px;
  background: #111;
  border-radius: 38px;
  padding: 14px 10px 18px;
  box-shadow:
    0 0 0 2px #2a2a2a,
    0 0 0 4px #1a1a1a,
    0 24px 64px rgba(0,0,0,0.55);
}
/* Camera punch-hole */
.android-frame::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  background: #222;
  border-radius: 50%;
  margin: 0 auto 8px;
  border: 1.5px solid #333;
}
/* Home bar */
.android-frame::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #333;
  border-radius: 999px;
  margin: 10px auto 0;
}
.android-frame-screen {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  display: block;
  line-height: 0;
}
.android-frame-screen img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.android-frame-caption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-mute);
  text-align: center;
  font-family: 'IBM Plex Sans', sans-serif;
  line-height: 1.4;
  padding: 0 8px;
}
.android-frame-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
  margin-bottom: 6px;
  flex-shrink: 0;
}

/* ── Sound toggle — matches theme-toggle style ───────────────────── */
.sound-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.sound-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  position: relative;
  transition: border-color .2s, color .2s, background .2s;
  flex-shrink: 0;
}
.sound-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}
/* Both icons stacked — only one visible at a time */
.sound-toggle .icon-sound-off,
.sound-toggle .icon-sound-on {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity .2s ease, transform .2s ease;
  line-height: 0;
}
/* OFF state (default): muted icon visible, sound icon hidden */
.sound-toggle .icon-sound-off { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.sound-toggle .icon-sound-on  { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }

/* ON state: sound icon visible, muted icon hidden */
.sound-toggle.is-on .icon-sound-off { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
.sound-toggle.is-on .icon-sound-on  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.sound-toggle.is-on {
  border-color: var(--accent);
  color: var(--accent);
}

.sound-toggle-label {
  font-size: 11px;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  transition: color .2s;
}
.sound-toggle-wrap:has(.sound-toggle.is-on) .sound-toggle-label {
  color: var(--accent);
}

/* Phone vibrate during incoming call */
@keyframes phoneVibrate {
  0%   { transform: rotate(0deg)    translateX(0); }
  15%  { transform: rotate(-1.5deg) translateX(-3px); }
  30%  { transform: rotate(1.5deg)  translateX(3px); }
  45%  { transform: rotate(-1deg)   translateX(-2px); }
  60%  { transform: rotate(1deg)    translateX(2px); }
  75%  { transform: rotate(-0.5deg) translateX(-1px); }
  100% { transform: rotate(0deg)    translateX(0); }
}
.phone.is-ringing {
  animation: phoneVibrate 0.4s ease;
}

/* =====================================================================
   TECH TOOLTIP BALLOON
===================================================================== */

/* Hoverable tech items get a pointer and subtle highlight */
.tech-item[data-tech] {
  cursor: default;
  transition: color .2s, transform .2s;
}
.tech-item[data-tech]:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

/* Tooltip balloon */
.tech-tooltip {
  position: fixed;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition: opacity .2s ease, transform .2s cubic-bezier(.34,1.56,.64,1);
  max-width: 260px;
}
.tech-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Glass-morphism card matching site theme */
.tech-tooltip-inner {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow:
    var(--shadow-md),
    0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent),
    inset 0 1px 0 rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Accent top border line */
.tech-tooltip-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 20px; right: 20px;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    var(--accent),
    transparent);
  border-radius: 0 0 2px 2px;
}

.tech-tooltip-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.tech-tooltip-body {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Arrow pointing down toward the item */
.tech-tooltip-arrow {
  width: 12px;
  height: 7px;
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
}
.tech-tooltip-arrow::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 2px;
  transform: rotate(45deg);
  top: -6px;
  left: 0;
  box-shadow: var(--shadow-sm);
}

/* ── XMPP logo icon — theme switching ───────────────────────────── */
.xmpp-icon {
  display: inline-flex;
  align-items: center;
  position: relative;
  top: 1px;
}
.xmpp-icon img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}
/* Light theme: show dark logo, hide light logo */
.xmpp-icon .xmpp-icon-dark  { display: block; }
.xmpp-icon .xmpp-icon-light { display: none;  }

/* Dark theme via manual toggle */
[data-theme="dark"] .xmpp-icon .xmpp-icon-dark  { display: none;  }
[data-theme="dark"] .xmpp-icon .xmpp-icon-light { display: block; }

/* Dark theme via system preference */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .xmpp-icon .xmpp-icon-dark  { display: none;  }
  :root:not([data-theme]) .xmpp-icon .xmpp-icon-light { display: block; }
}

/* =====================================================================
   XMR DONATION POPUP
===================================================================== */
.xmr-donate-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 6px;
  /* On narrow screens, take full width so it centres properly */
  width: 100%;
}
@media (min-width: 600px) {
  .xmr-donate-wrap {
    width: auto;
  }
}

.xmr-donate-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--ink-mute);
  cursor: pointer;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color .2s, border-color .2s;
  user-select: none;
}
.xmr-donate-trigger:hover {
  color: var(--ink-soft);
  border-color: var(--line);
}
.xmr-monero-symbol {
  font-size: 13px;
  font-style: italic;
  color: var(--ink-mute);
  transition: color .2s;
  line-height: 1;
}
.xmr-donate-trigger:hover .xmr-monero-symbol {
  color: var(--ink);
}

/* Popup balloon */
.xmr-donate-popup {
  position: fixed;
  width: min(280px, calc(100vw - 24px));
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
  z-index: 1000;
}
.xmr-donate-popup.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.xmr-popup-inner {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow:
    var(--shadow-md),
    0 0 0 1px color-mix(in srgb, #f60 12%, transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

/* Monero orange top accent line */
.xmr-popup-top-line {
  position: absolute;
  top: 0; left: 20px; right: 20px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f60, transparent);
  border-radius: 0 0 2px 2px;
}

/* QR code */
.xmr-qr-wrap {
  background: #000;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.xmr-qr-wrap img {
  display: block;
  border-radius: 6px;
}

.xmr-popup-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f60;
}

.xmr-popup-note {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
  color: var(--ink-mute);
  text-align: center;
  line-height: 1.4;
}

/* Address + copy button */
.xmr-address-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 8px;
}
.xmr-address {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: var(--ink-soft);
  word-break: break-all;
  flex: 1;
  line-height: 1.4;
  user-select: all;
}
.xmr-copy-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 10px;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--ink-mute);
  cursor: pointer;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.xmr-copy-btn:hover {
  color: #f60;
  border-color: color-mix(in srgb, #f60 40%, transparent);
}
.xmr-copy-btn.copied {
  color: var(--accent);
  border-color: var(--accent);
}

/* Arrow pointing down */
.xmr-popup-arrow {
  width: 14px;
  height: 8px;
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
}
.xmr-popup-arrow::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 2px;
  transform: rotate(45deg);
  top: -6px;
  left: 1px;
  box-shadow: var(--shadow-sm);
}
