:root {
      --bg: #0f1420;
      --panel: #141f33;
      --text: #f2f1eb;
      --muted: #c7c1af;
      --accent: #f0d494;
      --border: #334663;
    }
    * { box-sizing: border-box; }
    body {
      margin: 0;
      min-height: 100vh;
      padding: 24px;
      font-family: "Trebuchet MS", "Segoe UI", sans-serif;
      color: var(--text);
      background:
        radial-gradient(1000px 500px at 20% -10%, #2e405f 0%, transparent 60%),
        radial-gradient(900px 480px at 90% 0%, #2a2b44 0%, transparent 55%),
        linear-gradient(170deg, #1a2333 0%, var(--bg) 56%, #0b111a 100%);
    }
    main {
      width: min(900px, 100%);
      margin: 0 auto;
      border: 1px solid var(--border);
      border-radius: 14px;
      background: linear-gradient(180deg, rgba(17, 26, 43, 0.92), rgba(15, 22, 35, 0.97));
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
      padding: 0 22px 22px;
    }
    h1 { margin: 0 0 8px; color: var(--accent); }
    p { margin: 0 0 14px; color: var(--muted); }
    .hero {
      display: grid;
      gap: 16px;
      margin: 0 -22px 20px;
    }
    .profile-cover {
      position: relative;
      min-height: 180px;
      background:
        linear-gradient(180deg, rgba(8, 12, 18, 0.12), rgba(8, 12, 18, 0.58)),
        url('/qwertyhouse-assets/img/qwertyhouse-header-site.png') center / cover no-repeat;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .profile-avatar {
      position: absolute;
      left: 22px;
      bottom: -34px;
      width: 96px;
      height: 96px;
      border-radius: 999px;
      object-fit: cover;
      border: 4px solid #0f1420;
      background: #15243a;
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    }
    .hero-body {
      padding: 42px 22px 0;
    }
    .profile-handle {
      color: #9fb4d6;
      font-size: 0.95rem;
      margin: 6px 0 12px;
    }
    .profile-stats {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      margin-top: 14px;
      padding-top: 14px;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
    .profile-stat {
      display: inline-flex;
      gap: 6px;
      align-items: center;
      color: #bfd0ea;
      font-size: 0.9rem;
    }
    .profile-stat strong { color: #f7efe0; }
    .profile-tabs {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 16px;
    }
    .profile-tab {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 10px 14px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: rgba(16, 24, 38, 0.65);
      color: #d7e9ff;
      text-decoration: none;
      font-size: 0.88rem;
      font-weight: 600;
    }
    .profile-tab:hover, .profile-tab:focus-visible {
      background: #20385b;
      border-color: #6b90c2;
    }
    .card {
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 14px;
      background: #15243a;
      white-space: pre-wrap;
      line-height: 1.45;
    }
    .post-image {
      display: block;
      width: 100%;
      max-width: 480px;
      border-radius: 10px;
      margin-top: 10px;
      border: 1px solid #446086;
      object-fit: cover;
    }
    #posts { display: grid; gap: 10px; }
    .meta { margin: 0 0 10px; color: #bfd0ea; font-size: .95rem; }
    .links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
    .btn {
      display: inline-block;
      color: #d7e9ff;
      text-decoration: none;
      border: 1px solid #446086;
      border-radius: 8px;
      padding: 8px 10px;
      background: #15243a;
    }
    .btn:hover, .btn:focus-visible { text-decoration: underline; background: #20385b; border-color: #6b90c2; }
    @media (max-width: 700px) {
      .profile-cover {
        min-height: 145px;
      }
      .profile-avatar {
        width: 82px;
        height: 82px;
        bottom: -22px;
      }
      .hero-body {
        padding-top: 30px;
      }
    }
