/* Default: DARK by default */
  :root {
    --accent: #27ae60;

    /* Dark */
    --bgA: #0b1220;
    --bgB: #0f172a;
    --panel: rgba(255, 255, 255, 0.06);
    --panel2: rgba(255, 255, 255, 0.085);
    --text: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.66);
    --muted2: rgba(255, 255, 255, 0.48);
    --border: rgba(255, 255, 255, 0.10);
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
    --radius: 18px;
    --radius2: 22px;
    --focus: rgba(39, 174, 96, 0.35);
    --max: 820px;
  }

  :root[data-theme="light"] {
    --bgA: #f6f7fb;
    --bgB: #eef1f7;
    --panel: rgba(10, 14, 22, 0.05);
    --panel2: rgba(10, 14, 22, 0.075);
    --text: rgba(10, 14, 22, 0.92);
    --muted: rgba(10, 14, 22, 0.62);
    --muted2: rgba(10, 14, 22, 0.48);
    --border: rgba(10, 14, 22, 0.10);
    --shadow: 0 18px 55px rgba(10, 14, 22, 0.12);
    --focus: rgba(39, 174, 96, 0.22);
  }

  * { box-sizing: border-box; }
  html, body { height: 100%; }

  body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text);

    /* Background that won't "repeat" on small screens */
    background-color: var(--bgA);
    background-image:
      radial-gradient(1200px 700px at 20% 10%, rgba(39, 174, 96, 0.22), transparent 55%),
      radial-gradient(900px 600px at 90% 15%, rgba(79, 70, 229, 0.18), transparent 55%),
      linear-gradient(180deg, var(--bgA), var(--bgB));
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;

    min-height: 100vh;
    padding: 26px 16px 40px;
  }

  .wrap { max-width: var(--max); margin: 0 auto; }

  .top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 4px 18px;
  }

  .brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
  .logo { width: 44px; height: 44px; border-radius: 12px; }

  h1 { font-size: 22px; line-height: 1.15; margin: 0; letter-spacing: 0.2px; }

  .tagline {
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 1.35;
    color: var(--muted);
    max-width: 48ch;
  }

  .themeBtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 11px;
    border-radius: 999px;
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--muted);
    cursor: pointer;
    font-size: 12px;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
    flex: 0 0 auto;
  }
  .themeBtn:hover { background: var(--panel2); }
  .themeBtn:focus { outline: none; box-shadow: 0 0 0 4px var(--focus); }
  .themeIcon { font-size: 14px; line-height: 1; }

  .content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 0 4px;
  }

  .section {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius2);
    padding: 16px;
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
  }

  /* Make the section background readable in light mode */
  :root[data-theme="light"] .section {
    background: rgba(255,255,255,0.70);
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
  }

  .section-title {
    margin: 0 0 12px 0;
    font-size: 13px;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    color: var(--muted2);
  }

  .section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
  }

  .card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 14px;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
  }
  .card + .card { margin-top: 10px; }

  .card:hover {
    background: var(--panel2);
    transform: translateY(-1px);
    border-color: rgba(39, 174, 96, 0.35);
  }
  .card:focus { outline: none; box-shadow: 0 0 0 4px var(--focus); }

  .card.primary::before {
    content: "";
    position: absolute;
    inset: -2px;
    background:
      radial-gradient(500px 140px at 20% 0%, rgba(39, 174, 96, 0.16), transparent 55%),
      radial-gradient(500px 160px at 80% 100%, rgba(79, 70, 229, 0.12), transparent 55%);
    opacity: 0.9;
    pointer-events: none;
  }
  .card.primary { position: relative; overflow: hidden; }
  .card.primary > * { position: relative; }

  .card-title { font-size: 15px; font-weight: 650; margin: 0 0 6px; }
  .card-sub { font-size: 13px; color: var(--muted); line-height: 1.35; }
  .card-right { font-size: 18px; color: var(--muted); flex: 0 0 auto; }

  .list { display: grid; gap: 10px; }

  .grid { display: grid; gap: 10px; grid-template-columns: 1fr; }

  .chip {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 12px;
    border-radius: 16px;
    background: var(--panel);
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: background 140ms ease, transform 140ms ease, border-color 140ms ease;
  }
  .chip:hover { background: var(--panel2); transform: translateY(-1px); }
  .chip:focus { outline: none; box-shadow: 0 0 0 4px var(--focus); }
  .chip-sub { font-size: 12px; color: var(--muted); }

  /* Social icons */
  .social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .iconBtn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--panel);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
  }
  .iconBtn:hover {
    background: var(--panel2);
    transform: translateY(-1px);
    border-color: rgba(39, 174, 96, 0.35);
  }
  .iconBtn:focus { outline: none; box-shadow: 0 0 0 4px var(--focus); }
  .iconBtn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    color: var(--text);
    opacity: 0.92;
  }

  /* Support section */
  .support-text {
    margin: 0 0 12px 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
  }

  .support-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(39, 174, 96, 0.16);
    border: 1px solid rgba(39, 174, 96, 0.35);
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
  }
  .btn:hover { background: rgba(39, 174, 96, 0.22); }
  .btn:focus { outline: none; box-shadow: 0 0 0 4px var(--focus); }

  .wallets {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
  }

  :root[data-theme="light"] .wallets {
    background: rgba(10, 14, 22, 0.03);
  }

  .wallets-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
  }

  .wallets-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
  }

  .wallet {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
  }
  :root[data-theme="light"] .wallet {
    background: rgba(255,255,255,0.75);
  }

  .wallet + .wallet { margin-top: 10px; }

  .wallet-name { font-size: 13px; font-weight: 650; margin-bottom: 5px; }
  .wallet-addr { font-size: 12px; color: var(--muted); }

  .ghostBtn {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    cursor: pointer;
    flex: 0 0 auto;
  }
  .ghostBtn:hover { background: var(--panel2); }
  .ghostBtn:focus { outline: none; box-shadow: 0 0 0 4px var(--focus); }

  .note {
    margin-top: 10px;
    font-size: 12px;
    color: var(--muted2);
    line-height: 1.35;
  }

  .toast {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text);
    opacity: 0;
    transition: opacity 160ms ease;
  }
  .toast.show { opacity: 0.9; }

  .hint { margin: 10px 0 0; font-size: 12px; color: var(--muted2); }
  .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

  .footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 6px 2px;
  }

  .small { font-size: 12px; color: var(--muted2); text-decoration: none; }
  .link:hover { color: var(--text); }
  .sep { color: var(--muted2); padding: 0 6px; }

  @media (min-width: 720px) {
    body { padding-top: 34px; }
    .grid { grid-template-columns: 1fr 1fr; }
  }

  /* Mobile fix: background-attachment: fixed can be janky on iOS;
     if you see scroll issues on iPhone, uncomment below.
  */
  /*
  @supports (-webkit-touch-callout: none) {
    body { background-attachment: scroll; }
  }
  */