﻿:root{
    --page-bg: #0a0810;
    --panel: #17141f;
    --panel-2: #1f1c2a;
    --row-bg: #16131e;
    --row-divider: #100e18;
    --border: #0a0812;
    --text: #b6b1c3;
    --text-bright: #ece7f5;
    --text-dim: #8a839a;
    --text-dim2: #6b6580;
    --link: #8c78c9;
    --link-bright: #a891e6;
    /* Legacy names kept so older rules continue to work - colors are purple. */
    --olive-green: #b48af0;
    --underline-green: #7c4fbf;
    --chat-name: #c8a4ff;
    --premium-red: #cc3232;
    --accent: #b48af0;
    --accent-dark: #7c4fbf;
    --accent-soft-bg: #2a1f42;
    --accent-soft-border: #4b3775;
    --accent-pink: #ff6fb5;
    --radius: 6px;
    --heading-font: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --body-font: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --mono-font: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  }
  *{ box-sizing: border-box; }
  html,body{ height:100%; }
  body{
    margin:0;
    background: var(--page-bg);
    color: var(--text);
    font-family: var(--body-font);
    font-size: 12px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    letter-spacing: 0.1px;
  }
  .heading-font{ font-family: var(--heading-font); }
  /* Distinctive thin animated purple bar at the top of every page. */
  .top-bar-extra{ display: none; }
  .wrap{
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 8px 48px;
  }
  /* The old .rainbow-bar was removed (previously an animated purple/pink
   * sliver at y=0 of the viewport). Leaving the rules absent — do not
   * re-introduce without an explicit ask. */

  /* ---------- Header (obsession brand) ---------- */
  .header{
    background:
      radial-gradient(400px 200px at 12% 0%, rgba(180,138,240,0.14), transparent 70%),
      linear-gradient(180deg, #1c1826 0%, #14111c 100%);
    border: 1px solid #1e1a2a;
    border-radius: 12px 12px 0 0;
    padding: 18px 22px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 1px 0 rgba(180,138,240,0.1) inset;
  }
  .header::before{
    content:"";
    position:absolute;
    top:0; left:0; right:0;
    height:1px;
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(180,138,240,0.8) 30%,
      rgba(255,111,181,0.9) 50%,
      rgba(180,138,240,0.8) 70%,
      transparent 100%);
    pointer-events:none;
  }
  .logo{
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-family: var(--heading-font);
  }
  .logo-mark{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    filter: drop-shadow(0 0 12px rgba(180,138,240,0.55));
    animation: obs-mark-spin 26s linear infinite;
  }
  @keyframes obs-mark-spin { to { transform: rotate(360deg); } }
  .logo-wordmark{
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
    gap: 3px;
  }
  .logo-word{
    font-family: var(--heading-font);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.6px;
    background: linear-gradient(90deg, #ece7f5 0%, #d4b0ff 55%, #b48af0 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
            color: transparent;
  }
  .logo-tag{
    font-family: var(--mono-font);
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.75;
  }
  /* Header user chip on the right */
  a.header-user-chip{ text-decoration: none; }
  .header-user-chip{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    background: linear-gradient(180deg, rgba(180,138,240,0.10) 0%, rgba(180,138,240,0.04) 100%);
    border: 1px solid rgba(180,138,240,0.20);
    border-radius: 999px;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
  }
  .header-user-chip:hover{
    background: linear-gradient(180deg, rgba(180,138,240,0.18) 0%, rgba(180,138,240,0.06) 100%);
    border-color: rgba(180,138,240,0.36);
    box-shadow: 0 4px 14px rgba(124,79,191,0.28);
  }
  .chip-avatar{
    width: 30px; height: 30px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff;
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 13px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(180,138,240,0.14), 0 2px 8px rgba(124,79,191,0.35);
    overflow: hidden;
    flex-shrink: 0;
  }
  .chip-avatar-img{
    width: 30px; height: 30px;
    object-fit: cover;
    display: block;
    /* Uploaded avatars use the same purple ring + shadow as the initial
       placeholder, so both variants read as a single chip style. */
    background: transparent;
    padding: 0;
  }
  .chip-body{ display: inline-flex; flex-direction: column; line-height: 1.1; gap: 2px; }
  .chip-name{
    color: var(--text-bright);
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.2px;
  }
  .chip-role{
    color: var(--accent);
    font-family: var(--mono-font);
    font-size: 9.5px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    opacity: 0.85;
  }

  /* ---------- Navbar (sleek horizontal) ----------
   * Frosted-glass panel bar with a faint accent hairline at the bottom
   * (mirrors the pink/purple hairline the header carries at the top so the
   * two form a matched pair). Every link is a chip with a sliding accent
   * underline on hover; the notification bell + admin wrench + Premium CTA
   * each get a purposeful treatment so they read as distinct affordances
   * instead of just more link text.
   */
  .navbar{
    background:
      linear-gradient(180deg, rgba(31, 28, 42, 0.85) 0%, rgba(23, 20, 31, 0.92) 100%);
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
    border: 1px solid #1e1a2a;
    border-top: none;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 2px;
    font-family: var(--heading-font);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--text-dim);
    position: relative;
    z-index: 100;
  }
  /* Faint purple/pink hairline along the bottom edge — mirrors the one on
   * the header. Together they bracket the navbar with two matched accents. */
  .navbar::after{
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(180, 138, 240, 0.55) 25%,
      rgba(255, 111, 181, 0.75) 50%,
      rgba(180, 138, 240, 0.55) 75%,
      transparent 100%);
    pointer-events: none;
  }
  .navbar a{
    position: relative;
    color: var(--text);
    text-decoration: none;
    padding: 7px 12px;
    border-radius: 5px;
    transition: color .15s ease, background-color .15s ease;
    isolation: isolate;
  }
  /* Sliding purple underline — grows from center on hover, sits solid under
   * the active page's chip (JS-optional; static hover-only fallback is fine). */
  .navbar a::after{
    content: "";
    position: absolute;
    left: 12px; right: 12px; bottom: 3px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 20%, var(--accent-pink) 50%, var(--accent) 80%, transparent 100%);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .18s ease;
    border-radius: 1px;
    pointer-events: none;
  }
  .navbar a:hover{
    color: var(--text-bright);
    background: linear-gradient(180deg, rgba(180, 138, 240, 0.12) 0%, rgba(180, 138, 240, 0.05) 100%);
  }
  .navbar a:hover::after{ transform: scaleX(1); }
  .navbar a[aria-current="page"],
  .navbar a.is-active{
    color: var(--text-bright);
    background: linear-gradient(180deg, rgba(180, 138, 240, 0.10) 0%, rgba(180, 138, 240, 0.04) 100%);
  }
  .navbar a[aria-current="page"]::after,
  .navbar a.is-active::after{ transform: scaleX(1); }

  /* Premium is the primary CTA in the nav — chunkier chip, accent-glow border,
   * gradient text so it reads as "click me" among the muted secondary links.
   * The old rules set color via var(--premium-red) then were overridden below
   * to purple; unified here on --accent so it stops fighting itself. */
  .navbar .premium{
    color: var(--accent) !important;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 7px 14px;
    background: linear-gradient(180deg, rgba(180, 138, 240, 0.14) 0%, rgba(124, 79, 191, 0.10) 100%);
    border: 1px solid var(--accent-soft-border);
    border-radius: 5px;
    box-shadow: 0 0 0 1px rgba(180, 138, 240, 0.06) inset,
                0 0 12px rgba(180, 138, 240, 0.10);
    transition: color .15s ease, box-shadow .15s ease, transform .15s ease;
  }
  .navbar .premium::after{ display: none; }
  .navbar .premium:hover{
    color: var(--text-bright) !important;
    box-shadow: 0 0 0 1px rgba(180, 138, 240, 0.20) inset,
                0 0 18px rgba(180, 138, 240, 0.25);
    transform: translateY(-1px);
  }

  /* Icon buttons in the nav (fallback bell for guests, admin wrench, etc.).
   * The notif-btn keeps its own rules from the Notifications block. */
  .navbar .icon{
    opacity: 1;
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    border-radius: 5px;
    color: var(--text-dim);
    transition: background-color .15s ease, color .15s ease, transform .2s ease;
  }
  .navbar .icon svg{ width: 13px; height: 13px; fill: currentColor; transition: fill .15s ease; }
  .navbar .icon:hover{
    color: var(--accent);
    background: linear-gradient(180deg, rgba(180, 138, 240, 0.12) 0%, rgba(180, 138, 240, 0.05) 100%);
  }
  .navbar .icon::after{ display: none; }
  /* Admin wrench turns slightly on hover — a tiny gesture that signals "tool". */
  .navbar .nav-dropdown .nav-icon:hover{ transform: rotate(-14deg); }

  /* Push the admin wrench / notif bell tight to their own edges by softening
   * the gap between them and adjacent regular links, so the row reads as
   * three groups: [bell]  [nav links]  [premium]  [logout]  [wrench] */
  .navbar > .notif-wrap{ margin-right: 4px; }
  .navbar .nav-dropdown{ margin-left: 4px; }

  .subbar{
    background: linear-gradient(180deg, #17131f 0%, #12101a 100%);
    border: 1px solid #1e1a2a;
    border-top:none;
    border-radius: 0 0 12px 12px;
    padding: 10px 18px;
    display:flex;
    justify-content: space-between;
    align-items:center;
    font-size: 11px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .subbar .left, .subbar .right{ display: flex; align-items: center; gap: 10px; }
  .sub-pill{
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    background: rgba(180,138,240,0.10);
    border: 1px solid rgba(180,138,240,0.22);
    border-radius: 999px;
    color: var(--accent);
    font-family: var(--mono-font);
    font-size: 10px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
  }
  .sub-pill svg{ display:inline-block; }
  .sub-pill b{ color: var(--text-bright); font-family: var(--body-font); font-weight: 600; letter-spacing: 0.1px; text-transform: none; }
  .sub-pill--muted{
    background: rgba(180,138,240,0.05);
    border-color: rgba(180,138,240,0.12);
    color: #9d92b5;
  }
  .sub-pill--muted svg{ color: #7fdc9a; }
  .sub-link{
    color: var(--accent);
    font-family: var(--body-font);
    font-size: 11px;
    text-decoration: none;
    letter-spacing: 0.2px;
    transition: color .15s ease;
  }
  .sub-link:hover{ color: #d4b0ff; text-decoration: underline; text-underline-offset: 3px; }
  .subbar .right a{
    color: #9d92b5;
    text-decoration: none;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background-color .15s ease, color .15s ease;
  }
  .subbar .right a:hover{ background: rgba(180,138,240,0.12); color: var(--text-bright); }
  .subbar .left{ color: var(--text-dim); }
  .subbar .left .status-icons{ display:inline-flex; gap:5px; vertical-align:middle; margin-left:4px; }
  .subbar .left .status-icons svg{ width:12px; height:12px; vertical-align:middle; }
  .subbar .left b{ color: var(--text-bright); }
  .subbar .left a{ color: var(--link-bright); text-decoration:none; }
  .subbar .left a:hover{ text-decoration:underline; }
  .subbar .left .dotline{ color:#5a5a5a; margin: 0 5px; }
  .subbar .left .subbar-line{ margin-top:3px; }
  .subbar .left .subbar-links a{ font-weight:normal; }
  .subbar .right{ text-align:right; color:#8a8a8a; white-space:nowrap; }
  .subbar .right a{ color: var(--link-bright); text-decoration:none; }
  .subbar .right a:hover{ text-decoration:underline; }

  /* ---------- Chat box ---------- */
  .chatbox{
    margin-top: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
  }
  .chat-title{
    background: var(--panel-2);
    color: #e4e4e4;
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 12px;
    padding: 7px 10px;
    display:flex;
    justify-content: space-between;
    align-items:center;
  }
  .chat-title .icons{ display:flex; gap:6px; }
  .chat-icon{
    background:none; border:none; padding:2px 5px; margin:0; cursor:pointer;
    color:#8a8a8a; display:inline-flex; align-items:center; justify-content:center; line-height:1;
    font-family:inherit; font-size:14px;
  }
  .chat-icon svg{ width:12px; height:12px; fill:currentColor; }
  .chat-icon:hover{ color:#e4e4e4; }
  .chat-icon.on{ color:var(--link-bright); }
  .chat-settings-panel{
    position:absolute; right:8px; top:30px; z-index:20;
    background:#1b1b1b; border:1px solid #333; border-radius:3px; padding:6px 10px;
    display:flex; flex-direction:column; gap:4px; font-size:11px; color:#c8c8c8;
  }
  .chat-settings-panel label{ display:flex; align-items:center; gap:6px; cursor:pointer; }
  .chat-settings-panel input{ margin:0; accent-color:var(--link); }
  .chat-log{
    background: #000000;
    height: 150px;
    overflow-y: scroll;
    overflow-x: hidden;
    padding: 5px 10px 5px 8px;
    font-size: 11px;
    scrollbar-width: thin;
    scrollbar-color: #3a3548 #000000;
  }
  .chatbox.tall .chat-log{ height: 320px; }
  .chatbox.collapsed .chat-log, .chatbox.collapsed .chat-input-row{ display:none; }
  .chat-log::-webkit-scrollbar{ width:8px; }
  .chat-log::-webkit-scrollbar-track{ background:#000000; }
  .chat-log::-webkit-scrollbar-thumb{ background:#3a3548; border-radius:0; }
  .chat-log .line{ white-space:normal; word-break:break-word; padding: 2px 0; line-height:1.35; }
  .chat-log .ts{ color: #8a8a8a; margin-right:5px; font-size:10.5px; }
  .chatbox.no-ts .chat-log .ts{ display:none; }
  .chat-log .name{ color: var(--chat-name); font-weight:700; text-decoration:none; }
  .chat-log .name.bot{ color:#c8a4ff; }
  .chat-log .colon{ color:#e4e4e4; font-weight:700; margin-right:5px; }
  .chat-log .msg{ color: #e4e4e4; font-weight:normal; }
  .chat-input-row{
    background:#000000;
    border-top: 1px solid #1a1524;
    padding: 0 6px 0 0;
    margin: 0;
    display:flex;
    align-items:center;
    position:relative;
  }
  .chat-input{
    flex:1;
    min-width:0;
    height:30px;
    margin:0;
    background:#000000;
    border:none;
    outline:none;
    box-shadow:none;
    -webkit-appearance:none;
    appearance:none;
    border-radius:0;
    color: var(--text-bright);
    font-family: inherit;
    font-size:11px;
    padding:0 10px;
  }
  .chat-input:focus{ background:#000000; }
  .chat-input-icon{ height:30px; padding:0 6px; color:#8a8a8a; }
  .chat-input-icon svg{ width:13px; height:13px; }
  .chat-emoji-btn{ font-size:14px; filter:saturate(.9); }
  .chat-emoji-panel{
    position:absolute; right:6px; bottom:32px; z-index:20;
    background:#1b1b1b; border:1px solid #333; border-radius:3px; padding:6px;
    display:grid; grid-template-columns:repeat(8, 26px); gap:2px;
  }
  .chat-emoji-panel[hidden], .chat-settings-panel[hidden]{ display:none; }
  .chat-emoji-pick{ background:none; border:none; font-size:16px; cursor:pointer; padding:2px; border-radius:3px; }
  .chat-emoji-pick:hover{ background:#2a2a2a; }

  /* ---------- Forum sections (grid card layout, not a table) ---------- */
  .forum-section{
    margin-top: 20px;
    border: none;
    background: transparent;
    box-shadow: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    overflow: visible;
  }
  /* Section header spans the full grid row. */
  .section-title{
    grid-column: 1 / -1;
    background: transparent;
    border: none;
    padding: 4px 4px 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-bright);
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    cursor: pointer;
  }
  .section-title::before{ display: none; }
  .section-title{ padding-bottom: 12px; }
  .section-title::after{
    content: "";
    position: absolute;
    left: 4px; right: 4px;
    bottom: 4px;
    height: 1px;
    background: linear-gradient(90deg,
      rgba(180,138,240,0.55) 0%,
      rgba(180,138,240,0.10) 55%,
      rgba(180,138,240,0.02) 100%);
    pointer-events: none;
  }
  .section-title > .btn-tool { margin-left: auto; }
  .section-title > .btn-tool + .btn-tool { margin-left: 6px; }
  .section-title .caret{
    color: var(--accent);
    font-size: 10px;
    font-weight: 400;
    transition: transform .18s ease;
  }
  .forum-section.collapsed .section-title .caret{ transform: rotate(-90deg); }
  .forum-section.collapsed .col-headers,
  .forum-section.collapsed .forum-row{ display: none; }

  /* Old "Forum | Last post" table headers — hidden entirely in the grid layout. */
  .col-headers{ display: none; grid-column: 1 / -1; }

  /* Each subforum row is now a modern card in the grid. */
  .forum-row{
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-areas:
      "icon body"
      "meta meta";
    gap: 4px 12px;
    padding: 16px;
    background: linear-gradient(160deg, #1a1624 0%, #14111e 100%);
    border: 1px solid #221e2e;
    border-radius: 12px;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
    position: relative;
    overflow: hidden;
    min-height: 92px;
  }
  .forum-row .row-icon { grid-area: icon; }
  .forum-row .forum-col { grid-area: body; }
  .forum-row .last-col { grid-area: meta; }
  .forum-row::before{
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(180px 100px at 100% 0%, rgba(180,138,240,0.10), transparent 70%);
    opacity: 0;
    transition: opacity .18s ease;
    pointer-events: none;
  }
  .forum-row:hover{
    transform: translateY(-2px);
    border-color: var(--accent-soft-border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.45), 0 0 0 1px rgba(180,138,240,0.12) inset;
    background: linear-gradient(160deg, #201a2c 0%, #16131f 100%);
  }
  .forum-row:hover::before{ opacity: 1; }

  .row-icon{
    width: 40px; height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(180,138,240,0.12) 0%, rgba(180,138,240,0.04) 100%);
    border: 1px solid rgba(180,138,240,0.18);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
  }
  .forum-row:hover .row-icon{
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(180,138,240,0.28) 0%, rgba(180,138,240,0.10) 100%);
    transform: scale(1.05);
  }
  /* Reuse the legacy .sq dot as an activity indicator inside the icon tile. */
  .row-icon .sq{
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #3a2f4e;
    border: none;
    box-shadow: 0 0 0 3px rgba(180,138,240,0.08);
  }
  .row-icon .sq.new{
    background: var(--accent);
    box-shadow: 0 0 12px rgba(180,138,240,0.7);
    animation: forum-dot-pulse 2s ease-in-out infinite;
  }
  @keyframes forum-dot-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(180,138,240,0.4); }
    50%      { box-shadow: 0 0 16px rgba(212,176,255,0.85); }
  }
  .row-icon .sq.empty{ background: #2a2438; }

  .forum-col{
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .forum-col .fname{
    color: var(--text-bright);
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.1px;
    transition: color .15s ease;
  }
  .forum-row:hover .forum-col .fname{ color: var(--accent); }
  .forum-col .fname .newtag{
    color: var(--accent);
    font-family: var(--mono-font);
    font-weight: 500;
    font-size: 9.5px;
    margin-left: 6px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
  }
  .forum-col .fdesc{
    color: var(--text-dim);
    font-size: 11.5px;
    line-height: 1.45;
  }

  /* "Last post" now sits below the description as compact metadata. */
  .last-col{
    width: 100%;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(180,138,240,0.10);
    font-size: 10.5px;
    color: var(--text-dim);
    line-height: 1.5;
    font-family: var(--mono-font);
    letter-spacing: 0.2px;
  }
  .last-col a{ color: var(--link); text-decoration: none; }
  .last-col a:hover{ text-decoration: underline; color: var(--link-bright); }
  .last-col .lp-title{ display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .last-col .lp-time{ color: var(--text-dim); font-weight: normal; }
  .last-col .lp-by{ color: var(--text-dim); }
  .last-col .lp-by a{ color: var(--accent); font-weight: 600; }
  .last-col .none{
    color: var(--text-dim2);
    font-style: normal;
    font-size: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.7;
  }

  /* ---------- Footer ---------- */
  .online-box{
    margin-top:10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel-2);
    padding: 8px 12px;
    font-size:10.5px;
  }
  .online-box .count{ color:#c8c8c8; }
  .online-box .count b{ color:#fff; }
  .online-box .names a{ text-decoration:none; }
  .online-box .staff{ color:#8a2be2; }
  .online-box .staff:hover{ text-decoration:underline; }
  .online-box .member{ color: var(--link-bright); }
  .online-box .member:hover{ text-decoration:underline; }

  .site-footer{
    margin-top:10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    padding: 10px 12px;
    font-size:10.5px;
    color:#787878;
  }
  .site-footer a{ color: var(--link-bright); text-decoration:none; }
  .site-footer a:hover{ text-decoration:underline; }

  /* ---------- Navigation / interactive ---------- */
  .navbar a[data-nav]{ cursor:pointer; }
  .logo{ cursor:pointer; }
  .section-title{ cursor:pointer; user-select:none; }
  .section-title .caret{ display:inline-block; transition:transform .15s ease; }
  .forum-section.collapsed .section-title .caret{ transform:rotate(-90deg); }
  .forum-section.collapsed .col-headers,
  .forum-section.collapsed .forum-row{ display:none; }

  .forum-row{ cursor:pointer; }
  .forum-row:hover{ background: linear-gradient(90deg, rgba(180,138,240,0.06) 0%, rgba(180,138,240,0.02) 100%); }
  .forum-row:hover .fname{ color: var(--accent); }
  .forum-row .fname{ cursor:pointer; transition: color .15s ease; }
  .forum-row .fname:hover{ text-decoration:none; }
  .last-col a{ cursor:pointer; }

  /* ---------- Breadcrumb ---------- */
  .breadcrumb{
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 7px 14px;
    font-size:10.5px;
    color:#8a8a8a;
    margin-top:6px;
  }
  .breadcrumb a{ color: var(--link-bright); text-decoration:none; cursor:pointer; }
  .breadcrumb a:hover{ text-decoration:underline; }
  .breadcrumb .sep{ color:#555; margin:0 5px; }

  /* ---------- Thread list ---------- */
  .thread-row{
    display:flex;
    align-items:center;
    padding: 8px 10px;
    background: var(--row-bg);
    border-top: 1px solid var(--row-divider);
    cursor:pointer;
    transition:background-color .1s ease;
  }
  .thread-row:first-child{ border-top:none; }
  .thread-row:hover{ background:#262626; }
  .thread-col{ flex:1; min-width:0; }
  .thread-col .tname{ color:#e2e2e2; font-family:var(--heading-font); font-weight:normal; font-size:11.5px; }
  .thread-col .tname:hover{ text-decoration:underline; }
  .thread-col .tmeta{ color:#787878; font-size:10px; margin-top:2px; }
  .thread-stats{
    width: 90px;
    flex-shrink:0;
    text-align:center;
    font-size:10px;
    color:#9a9a9a;
  }
  .thread-stats b{ display:block; color:#d0d0d0; font-size:11px; }
  .empty-state{
    background: var(--row-bg);
    padding: 26px 14px;
    text-align:center;
    color:#787878;
    font-size:11px;
  }

  /* ---------- Thread / post view ---------- */
  .thread-title-bar{
    background: var(--panel-2);
    color: #e2e2e2;
    font-family:var(--heading-font);
    font-weight:normal;
    font-size:13px;
    padding: 9px 12px;
  }
  .post-card{
    display:flex;
    gap:12px;
    background: var(--row-bg);
    border-top: 1px solid var(--row-divider);
    padding: 12px;
  }
  .post-card:first-child{ border-top:none; }
  .post-avatar{
    width:44px; height:44px;
    flex-shrink:0;
    border-radius:4px;
    background: linear-gradient(135deg,#3a3a3a,#242424);
    display:flex; align-items:center; justify-content:center;
    font-family:system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight:700;
    font-size:15px;
    color:#7f96a3;
  }
  .post-body{ flex:1; min-width:0; }
  .post-meta{
    display:flex;
    justify-content:space-between;
    align-items:baseline;
    margin-bottom:5px;
  }
  .post-author{ color:#e2e2e2; font-weight:normal; font-family:var(--heading-font); font-size:11.5px; }
  .post-date{ color:#787878; font-size:10px; }
  .post-content{ color:#b4b4b4; font-size:11px; line-height:1.6; }
  .post-content p{ margin: 0 0 8px; }
  .post-content p:last-child{ margin-bottom:0; }
  .back-link{
    display:inline-block;
    margin-top:10px;
    color: var(--link-bright);
    text-decoration:none;
    font-size:10.5px;
    cursor:pointer;
  }
  .back-link:hover{ text-decoration:underline; }

  /* ---------- Buttons (modernized) ---------- */
  .btn-small{
    background: linear-gradient(180deg, #2b2438 0%, #221c2e 100%);
    border: 1px solid #382e4e;
    color: #dcd5eb;
    font-size: 10.5px;
    padding: 6px 12px;
    cursor: pointer;
    font-family: inherit;
    border-radius: 6px;
    transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  }
  .btn-small:hover{
    background: linear-gradient(180deg, #372c4d 0%, #2a2338 100%);
    border-color: var(--accent-soft-border);
    color: var(--text-bright);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(180,138,240,0.18);
  }
  .btn-small:active{ transform: translateY(0); box-shadow: none; }
  .btn-primary{
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
    border: 1px solid var(--accent-dark);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
    padding: 9px 16px;
    cursor: pointer;
    font-family: inherit;
    margin-top: 6px;
    border-radius: 6px;
    transition: transform .12s ease, box-shadow .15s ease, filter .15s ease;
    box-shadow: 0 2px 8px rgba(124,79,191,0.35);
  }
  .btn-primary:hover{
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(180,138,240,0.45);
  }
  .btn-primary:active{ transform: translateY(0); box-shadow: 0 2px 6px rgba(124,79,191,0.35); }

  /* ---------- Modal (modernized) ---------- */
  .modal-overlay{
    position: fixed;
    inset: 0;
    background: rgba(6, 4, 12, 0.68);
    backdrop-filter: blur(6px) saturate(120%);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index: 1000;
    animation: modal-fade-in .18s ease-out;
  }
  @keyframes modal-fade-in { from { opacity: 0; } to { opacity: 1; } }
  .modal-card{
    background: linear-gradient(180deg, #211c2e 0%, #17131f 100%);
    border: 1px solid #2c2540;
    border-radius: 12px;
    width: 320px;
    max-width: 90vw;
    padding: 18px 18px 16px;
    box-shadow:
      0 20px 60px rgba(0,0,0,0.55),
      0 0 0 1px rgba(180,138,240,0.06) inset,
      0 1px 0 rgba(180,138,240,0.12) inset;
    animation: modal-pop-in .18s cubic-bezier(.2,.9,.3,1.2);
  }
  @keyframes modal-pop-in {
    from { transform: translateY(6px) scale(.98); opacity: 0; }
    to   { transform: translateY(0)   scale(1);    opacity: 1; }
  }
  .modal-tabs{
    display:flex;
    align-items:center;
    gap: 4px;
    border-bottom: 1px solid rgba(180,138,240,0.18);
    padding-bottom: 8px;
    margin-bottom: 12px;
  }
  .modal-tab{
    background:none;
    border:none;
    color:#8a8a8a;
    font-size: 12px;
    padding: 4px 8px;
    cursor:pointer;
    font-family: inherit;
  }
  .modal-tab.active{ color:#e2e2e2; font-weight:bold; }
  .modal-close{
    margin-left:auto;
    color:#8a8a8a;
    cursor:pointer;
    font-size:16px;
    line-height:1;
    padding: 0 4px;
  }
  .modal-close:hover{ color:#e2e2e2; }
  .modal-error{
    background:#472525;
    border:1px solid #7a3535;
    color:#e2a3a3;
    font-size:10.5px;
    padding:7px 9px;
    margin-bottom:10px;
  }
  .modal-form{ display:flex; flex-direction:column; gap:3px; }
  .modal-form label{ font-size:10.5px; color:#a89fbe; margin-top:8px; letter-spacing:0.2px; }
  .modal-form input, .modal-form textarea{
    background:#0e0b16;
    border:1px solid #2a2340;
    color: var(--text-bright);
    font-size:11.5px;
    padding:9px 10px;
    font-family: inherit;
    resize: vertical;
    border-radius: 6px;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  }
  .modal-form input:focus, .modal-form textarea:focus{
    outline:none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(180,138,240,0.18);
    background:#100d1a;
  }
  .modal-note{ font-size:9.5px; color:#666; margin-top:12px; line-height:1.4; }

  /* ---------- Reply box ---------- */
  .reply-box{
    border-top: 1px solid var(--row-divider);
    padding: 12px;
    background: var(--row-bg);
  }
  .reply-box textarea{
    width:100%;
    background:#0e0b16;
    border:1px solid #2a2340;
    color: var(--text-bright);
    font-size:11.5px;
    padding:10px 12px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    border-radius: 6px;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  }
  .reply-box textarea:focus{
    outline:none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(180,138,240,0.18);
    background:#100d1a;
  }
  .reply-login-prompt{
    text-align:center;
    color:#8a8a8a;
    font-size:11px;
    padding: 6px 0;
  }
  .reply-login-prompt a{ color:var(--link-bright); cursor:pointer; text-decoration:none; }
  .reply-login-prompt a:hover{ text-decoration:underline; }

/* ---------- Authentication pages (modernized) ---------- */
.auth-panel{
  margin: 24px auto 0;
  max-width: 460px;
  border: 1px solid #1e1a2a;
  border-radius: 12px;
  background: linear-gradient(180deg, #1c1a26 0%, #17151f 100%);
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.45),
    0 0 0 1px rgba(180,138,240,0.05) inset,
    0 1px 0 rgba(180,138,240,0.1) inset;
  position: relative;
}
.auth-panel::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(180,138,240,0.9) 40%,
    rgba(212,176,255,1) 50%,
    rgba(180,138,240,0.9) 60%,
    transparent 100%);
  pointer-events:none;
}
.auth-panel .panel-title{
  background: linear-gradient(180deg, #2b2438 0%, #221c2e 100%);
  color: var(--text-bright);
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.4px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(180,138,240,0.14);
  position: relative;
}
.auth-panel .panel-title::before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
}
.auth-body{ padding: 20px 24px 22px; }
.auth-fieldset{
  border: 1px solid #2a2340;
  border-radius: 8px;
  margin: 12px 0 16px;
  padding: 14px 16px 12px;
  background: rgba(14,11,22,0.4);
}
.auth-fieldset legend{
  color: var(--accent);
  padding: 0 8px;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.auth-label{
  display: block;
  color: #a89fbe;
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.2px;
  margin: 8px 0 4px;
}
.auth-input{
  width:100%; max-width:360px; height:34px; padding:6px 10px;
  background:#0e0b16; color: var(--text-bright);
  border:1px solid #2a2340; border-radius:6px;
  font:inherit;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.auth-input:focus{
  outline:none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(180,138,240,0.18);
  background:#100d1a;
}
.auth-actions{ margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.auth-button{
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #ffffff;
  border: 1px solid var(--accent-dark);
  border-radius: 6px;
  padding: 9px 18px;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: transform .12s ease, filter .15s ease, box-shadow .15s ease;
  box-shadow: 0 2px 10px rgba(124,79,191,0.35);
}
.auth-button:hover{
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(180,138,240,0.5);
}
.auth-button:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(124,79,191,0.35); }
.auth-button.secondary{
  background: linear-gradient(180deg, #2b2438 0%, #221c2e 100%);
  color: var(--text-bright);
  border: 1px solid #382e4e;
  box-shadow: none;
}
.auth-button.secondary:hover{
  background: linear-gradient(180deg, #372c4d 0%, #2a2338 100%);
  border-color: var(--accent-soft-border);
  filter: none;
  box-shadow: 0 3px 12px rgba(180,138,240,0.22);
}
.auth-check{
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px;
  color: #b0a9c4;
  font-size: 11px;
  cursor: pointer;
  user-select: none;
}
.auth-check input{ accent-color: var(--accent); width: 14px; height: 14px; }
.auth-links{ margin-top: 10px; font-size: 11px; }
.auth-links a{
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color .15s ease;
}
.auth-links a:hover{
  color: #d4b0ff;
  text-decoration: underline;
  text-decoration-color: rgba(212,176,255,0.6);
  text-underline-offset: 3px;
}
.auth-error{
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #6a2a3a;
  background: linear-gradient(180deg, #2a1520 0%, #1e1018 100%);
  color: #ffb0b8;
  border-radius: 6px;
  font-size: 11.5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.auth-success{
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--accent-soft-border);
  background: linear-gradient(180deg, #241a3a 0%, #1b1428 100%);
  color: #d4b0ff;
  border-radius: 6px;
  font-size: 11.5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.auth-help{
  color: #8a839a;
  margin-top: 6px;
  font-size: 10.5px;
  font-style: italic;
}
@media (max-width:800px){
  .wrap{ padding-left:10px; padding-right:10px; }
  .auth-body{ padding-left:12px; padding-right:12px; }
  .subbar{ flex-direction:column; gap:7px; }
  .subbar .right{ text-align:left; white-space:normal; }
}
/* ---------- Role badges ----------
 * Multi-role users get several chips side-by-side. Base rule intentionally
 * has NO leading margin — spacing comes from the parent (a flex container's
 * `gap` in the profile hero, or the sibling-selector rule below for legacy
 * inline usage next to text). This prevents the "16px gap on 2nd chip / 6px
 * before 1st chip" overlap the old margin-left: 6px produced when badges
 * stacked inside a flexbox.
 */
.role-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
  vertical-align: middle;
  line-height: 1.3;
}
/* Adjacent role chips (rendered by render_role_badges) get a small gap
 * between them. Only applies when a chip actually follows another chip —
 * the first chip in a run stays flush so a wrapper's own padding/gap
 * controls the leading offset. */
.role-badge + .role-badge {
  margin-left: 4px;
}
.role-member  { background: #3a3a3a; color: #b0b0b0; }
.role-premium { background: #3d3510; color: #f1c40f; }
.role-ea      { background: #103d33; color: #1abc9c; }
.role-alpha   { background: #241a3d; color: #b48af0; border-color: #4b1a80; }
.role-mod     { background: #3d2a12; color: #e67e22; }
.role-support { background: #1a2a3a; color: #5dade2; }
.role-admin   { background: #3d0a20; color: #ff1493; border-color: #a01a5f; }

/* ---------- Profile page ---------- */
.profile-wrap {
  margin-top: 14px;
}
.profile-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #1c1c1c;
  border-bottom: 1px solid #111;
}
.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: #2a2a2a;
  color: #e4e4e4;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #333;
}
.profile-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-bright);
  display: flex;
  align-items: center;
  gap: 4px;
}
.profile-meta {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
}
.profile-section {
  padding: 14px 20px 16px;
  border-bottom: 1px solid #1a1a1a;
}
.profile-section:last-child {
  border-bottom: none;
}
.profile-section-title {
  font-size: 11px;
  font-weight: 600;
  color: #9a9a9a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.profile-stat {
  background: #1b1b1b;
  border: 1px solid #121212;
  border-radius: 4px;
  padding: 10px 12px;
}
.stat-label {
  font-size: 10px;
  color: #757575;
  margin-bottom: 4px;
}
.stat-value {
  font-size: 13px;
  color: var(--text-bright);
  font-weight: 500;
}
.profile-perms {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px 16px;
}
.profile-perms li {
  font-size: 12px;
  color: #8e8e8e;
  padding-left: 18px;
  position: relative;
}
.profile-perms li::before {
  content: "✗";
  position: absolute;
  left: 0;
  color: #555;
  font-weight: bold;
}
.profile-perms li.yes {
  color: #b4b4b4;
}
.profile-perms li.yes::before {
  content: "✓";
  color: #b48af0;
}
.profile-note {
  font-size: 11px;
  color: #8e8e8e;
  line-height: 1.5;
  background: #1b1b1b;
  border: 1px solid #222;
  border-radius: 4px;
  padding: 10px 12px;
}
.profile-note code {
  background: #2a2a2a;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 10px;
  color: #c8c8c8;
}

/* User profile links */
a.user-link {
  color: inherit;
  text-decoration: none;
}
a.user-link:hover {
  text-decoration: underline;
  color: var(--link-bright);
}
.chat-log a.name.user-link {
  color: var(--chat-name);
}
.chat-log a.name.user-link:hover {
  text-decoration: underline;
}

.role-banned {
  background: #3d1515;
  color: #ff6b6b;
  border: 1px solid #5a2020;
}

/* ---------- Animated admin username (site-wide) ----------
   Applied by forum.php's markAdminUsernames() sweep to any <a class="user-link">
   whose text matches an admin username in window.USER_ROLES. Hot-pink gradient
   text-fill with a fast shimmer sweep + double-layer glow pulse so admins are
   unmistakable in chat and thread lists.
*/
.admin-name,
a.user-link.admin-name,
.chat-log a.name.user-link.admin-name {
  background: linear-gradient(
    90deg,
    #ff1493 0%,
    #ff85c8 15%,
    #ffffff 25%,
    #ff85c8 35%,
    #ff1493 50%,
    #ff85c8 65%,
    #ffffff 75%,
    #ff85c8 85%,
    #ff1493 100%
  );
  background-size: 260% auto;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          text-fill-color: transparent;
  color: transparent !important;
  font-weight: 800 !important;
  letter-spacing: 0.2px;
  text-shadow: none;
  animation: admin-name-shimmer 2.2s linear infinite,
             admin-name-glow 1.6s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(255, 20, 147, 0.75));
  /* Keep hover underline usable without breaking the gradient fill */
  text-decoration-color: rgba(255, 105, 180, 0.95);
}
.admin-name:hover {
  text-decoration: underline;
  text-decoration-color: rgba(255, 105, 180, 0.95);
}
@keyframes admin-name-shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 260% center; }
}
@keyframes admin-name-glow {
  0%, 100% {
    filter: drop-shadow(0 0 5px rgba(255, 20, 147, 0.70))
            drop-shadow(0 0 10px rgba(255, 20, 147, 0.35));
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(255, 105, 180, 0.95))
            drop-shadow(0 0 22px rgba(255, 20, 147, 0.65));
  }
}
/* Users who prefer no motion get the color but not the animation. */
@media (prefers-reduced-motion: reduce) {
  .admin-name {
    animation: none;
    background-position: 30% center;
    filter: drop-shadow(0 0 6px rgba(255, 20, 147, 0.75));
  }
}




/* ---------- Thread badges & tools ---------- */
.thread-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 1px 5px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
}
.thread-badge.sticky {
  background: #2a3218;
  color: #b48af0;
  border: 1px solid #3d2d5c;
}
.thread-badge.locked {
  background: #2a2a2a;
  color: #a0a0a0;
  border: 1px solid #3a3a3a;
}

.thread-title-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}
.thread-tools {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.btn-tool {
  font-size: 10.5px;
  padding: 5px 11px;
  background: linear-gradient(180deg, #221c2e 0%, #1c1826 100%);
  color: #cfc7e0;
  border: 1px solid #2c2540;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn-tool:hover {
  background: linear-gradient(180deg, #2e2643 0%, #251e35 100%);
  color: var(--text-bright);
  border-color: var(--accent-soft-border);
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(180,138,240,0.22);
}
.btn-tool:active { transform: translateY(0); box-shadow: none; }
.btn-tool.danger {
  color: #e08484;
  border-color: #4a2530;
  background: linear-gradient(180deg, #2a1a20 0%, #22151b 100%);
}
.btn-tool.danger:hover {
  background: linear-gradient(180deg, #3a1e26 0%, #2d1820 100%);
  color: #ff9a9a;
  border-color: #6b3040;
  box-shadow: 0 3px 12px rgba(204,102,102,0.28);
}

.btn-post-del {
  margin-left: auto;
  background: transparent;
  border: none;
  color: var(--text-dim2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: inherit;
  transition: color .12s ease, background-color .12s ease;
}
.btn-post-del:hover {
  color: #ff6f6f;
  background: rgba(207, 92, 92, 0.10);
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reply-locked {
  font-size: 11px;
  color: #8e8e8e;
  padding: 10px 0;
  border-top: 1px solid #1a1a1a;
}

/* ---------- Admin panel (matches forum panels) ---------- */
.admin-panel {
  background: var(--panel);
  border-top: 1px solid var(--border);
}
.admin-panel .profile-section-title {
  color: #c07070;
}
.admin-row {
  margin-bottom: 12px;
}
.admin-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.admin-msg {
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 11px;
}
.admin-msg.ok {
  background: #1a2418;
  color: #b48af0;
  border: 1px solid #2a3a20;
}
.admin-msg.err {
  background: #241818;
  color: #cc6666;
  border: 1px solid #3a2020;
}
.post-meta-left {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

/* ---------- Ban page (GameSense style) ---------- */
.ban-panel {
  margin-top: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.ban-title {
  background: var(--panel-2);
  color: #e2e2e2;
  font-family: var(--heading-font);
  font-size: 13px;
  font-weight: normal;
  padding: 9px 14px;
  border-bottom: 1px solid #111;
}
.ban-body {
  padding: 16px 18px 20px;
  color: #c8c8c8;
  font-size: 12px;
  line-height: 1.65;
}
.ban-lead {
  margin: 0 0 14px;
  color: #c8c8c8;
}
.ban-reason {
  margin: 0 0 16px;
  color: #e4e4e4;
  font-weight: 700;
  font-size: 13px;
}
.ban-contact {
  margin: 0;
  color: #9a9a9a;
  font-size: 11.5px;
}
.ban-contact a {
  color: var(--link-bright);
  text-decoration: none;
}
.ban-contact a:hover {
  text-decoration: underline;
}

/* Ban reason input on admin profile */
.ban-reason-input {
  width: 100%;
  max-width: 360px;
  margin-top: 6px;
  margin-bottom: 8px;
}
.site-footer .footer-links {
  margin-top: 4px;
  font-size: 10px;
}
/* Old .navbar .premium override kept out — the new Navbar block above owns
 * the Premium CTA styling with a full accent-soft-bg chip, gradient border,
 * and glow. Leaving this block empty rather than deleting so a bisect-style
 * diff traces cleanly. */

/* ---------- Profile hero (sleek header for profile.php) ---------- */
.profile-hero{
  margin-top: 14px;
  border: 1px solid #1e1a2a;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(600px 220px at 5% 0%, rgba(180,138,240,0.16), transparent 60%),
    radial-gradient(500px 240px at 100% 100%, rgba(255,111,181,0.08), transparent 55%),
    linear-gradient(180deg, #1a1624 0%, #14111e 100%);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.45),
    0 0 0 1px rgba(180,138,240,0.06) inset,
    0 1px 0 rgba(180,138,240,0.12) inset;
}
.profile-hero::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height:1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(180,138,240,0.8) 30%,
    rgba(255,111,181,0.9) 50%,
    rgba(180,138,240,0.8) 70%,
    transparent 100%);
  pointer-events:none;
}
.profile-hero-inner{
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 28px;
  flex-wrap: wrap;
}
.profile-hero-avatar{
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 26px rgba(124,79,191,0.45),
    0 0 0 1px rgba(180,138,240,0.4) inset;
}
.profile-hero-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-hero-avatar .ph-initial{
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 44px;
  color: #ffffff;
  letter-spacing: 1px;
}
.profile-hero-avatar.is-online::after{
  content: "";
  position: absolute;
  bottom: 4px; right: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #6ce09c;
  border: 3px solid #14111e;
  box-shadow: 0 0 10px rgba(108,224,156,0.7);
}
.profile-hero-main{
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ph-name-row{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ph-name{
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.2px;
  color: var(--text-bright);
}
.ph-title{
  font-family: var(--mono-font);
  font-size: 10.5px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.85;
}
.ph-facts{
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.ph-fact{
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ph-fact-k{
  font-family: var(--mono-font);
  font-size: 9.5px;
  color: #8a839a;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.ph-fact-v{
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-bright);
  letter-spacing: 0.15px;
}
.ph-fact-v.is-online{ color: #6ce09c; }
.profile-hero-actions{ display: flex; gap: 8px; align-items: center; }

/* Below the hero we let the panels breathe less than before. */
.profile-hero + .gs-profile{
  margin-top: 14px;
  border-radius: 14px;
}

@media (max-width: 700px){
  .profile-hero-inner{ padding: 20px 18px; gap: 16px; }
  .profile-hero-avatar{ width: 76px; height: 76px; border-radius: 18px; }
  .profile-hero-avatar .ph-initial{ font-size: 34px; }
  .ph-name{ font-size: 20px; }
  .ph-facts{ gap: 14px; }
}

/* ---------- Card panels (modernized) ---------- */
.gs-profile {
  margin-top: 14px;
  background: linear-gradient(180deg, #1c1a26 0%, #17151f 100%);
  border: 1px solid #1e1a2a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,0.35), 0 0 0 1px rgba(180,138,240,0.05) inset;
}
.gs-profile-bar {
  background: linear-gradient(180deg, #2b2438 0%, #221c2e 100%);
  color: var(--text-bright);
  font-family: var(--heading-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(180,138,240,0.14);
  position: relative;
}
.gs-profile-bar::before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
}
.gs-profile-body {
  padding: 0;
}
.gs-block {
  border-bottom: 1px solid #201c2a;
  padding: 12px 0 8px;
}
.gs-block:last-child {
  border-bottom: none;
}
.gs-block-title {
  font-size: 10.5px;
  color: var(--accent);
  padding: 2px 16px 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.gs-admin-block .gs-block-title {
  color: #e08484;
}
.gs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.gs-table tr {
  border-top: 1px solid rgba(180,138,240,0.05);
}
.gs-table tr:first-child {
  border-top: none;
}
.gs-label {
  width: 150px;
  padding: 11px 16px;
  color: #8a839a;
  font-family: var(--mono-font);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  vertical-align: top;
  white-space: nowrap;
}
.gs-value {
  padding: 11px 16px 11px 0;
  color: var(--text-bright);
  vertical-align: top;
  line-height: 1.5;
}
.gs-value .role-badge {
  margin-left: 8px;
}
.gs-link {
  color: var(--link-bright);
  text-decoration: none;
}
.gs-link:hover {
  text-decoration: underline;
}
.gs-muted {
  color: #666;
}
.gs-mono {
  font-size: 10px;
  color: #8e8e8e;
  word-break: break-all;
}
.title-premium {
  color: #c9a227;
}
.title-admin {
  color: #8a2be2;
}
.title-mod {
  color: #e67e22;
}

/* ---------- Premium page (modernized purple, matches site brand) ---------- */
.prem-layout {
  display: flex;
  gap: 16px;
  margin: 14px 0;
  align-items: flex-start;
}
.prem-sidebar {
  width: 220px;
  flex: 0 0 220px;
  background: linear-gradient(180deg, #1c1a26 0%, #17151f 100%);
  border: 1px solid #1e1a2a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 2px 14px rgba(0,0,0,0.35),
    0 0 0 1px rgba(180,138,240,0.05) inset;
}
.prem-sidebar-title {
  background: linear-gradient(180deg, #2b2438 0%, #221c2e 100%);
  color: var(--text-bright);
  font-family: var(--heading-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(180,138,240,0.14);
  position: relative;
}
.prem-sidebar-title::before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
}
.prem-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.prem-sidebar li { padding: 0; }
.prem-sidebar a {
  display: block;
  padding: 8px 16px;
  color: #b0a9c4;
  text-decoration: none;
  font-size: 12.5px;
  font-family: var(--body-font);
  border-left: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.prem-sidebar a:hover {
  background: rgba(180,138,240,0.08);
  color: var(--text-bright);
  border-left-color: rgba(180,138,240,0.4);
}
.prem-sidebar a.active {
  color: var(--accent);
  background: rgba(180,138,240,0.12);
  border-left-color: var(--accent);
  font-weight: 600;
}
.prem-sidebar span.disabled {
  display: block;
  padding: 8px 16px;
  color: var(--text-dim2);
  font-size: 12.5px;
  cursor: not-allowed;
  opacity: 0.55;
}
.prem-sidebar .sep {
  margin: 6px 12px;
  border-top: 1px solid rgba(180,138,240,0.10);
}
.prem-main {
  flex: 1;
  min-width: 0;
}

/* Subscription status row: icon + text + CTA on one line */
.prem-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  flex-wrap: wrap;
}
.prem-status-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(180,138,240,0.14) 0%, rgba(180,138,240,0.04) 100%);
  border: 1px solid rgba(180,138,240,0.22);
  flex-shrink: 0;
}
.prem-status-text {
  flex: 1;
  min-width: 200px;
  color: var(--text-bright);
  font-size: 12.5px;
  line-height: 1.55;
}
.prem-status-text b { color: var(--text-bright); font-weight: 600; }
.prem-status-text b.prem-hl { color: var(--accent); }
.prem-extend-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 8px 14px;
  font-size: 11.5px;
  text-decoration: none;
}

/* Game client download buttons */
.prem-clients {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 16px;
}
.prem-client-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 12px;
  text-decoration: none;
}
.prem-client-btn .prem-client-ico { color: var(--accent); flex-shrink: 0; }
.prem-client-btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Discord ID reset row */
.prem-discord {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
}
.prem-discord .auth-input {
  flex: 1;
  max-width: none;
  margin: 0;
}

/* Non-premium landing */
.prem-buy {
  padding: 18px 20px 20px;
}
.prem-buy-lead {
  margin: 0 0 8px;
  font-size: 13.5px;
  color: var(--text-bright);
  line-height: 1.55;
}
.prem-buy-sub {
  margin: 0 0 16px;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
}
.prem-buy-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.prem-buy-actions .btn-primary { margin: 0; }

.prem-invites-empty {
  padding: 14px 16px;
  font-size: 12px;
  color: var(--text-dim);
  font-style: italic;
}
.prem-inv-valid   { color: var(--accent); font-weight: 600; }
.prem-inv-used    { color: var(--link-bright); font-weight: 600; }
.prem-inv-expired { color: #d97a7a; font-weight: 600; }

@media (max-width: 700px) {
  .prem-layout { flex-direction: column; }
  .prem-sidebar { flex-basis: auto; width: 100%; }
}

/* ---------- Premium page v2 (distinctive layout, no sidebar) ---------- */
.prem2-wrap{
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 14px;
}

/* Hero card at the top: big status + expiry + primary CTA. */
.prem2-hero{
  position: relative;
  border: 1px solid #1e1a2a;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(600px 260px at 8% 0%, rgba(180,138,240,0.20), transparent 65%),
    radial-gradient(700px 300px at 105% 120%, rgba(255,111,181,0.10), transparent 55%),
    linear-gradient(180deg, #1a1624 0%, #14111e 100%);
  box-shadow:
    0 22px 60px rgba(0,0,0,0.5),
    0 0 0 1px rgba(180,138,240,0.06) inset,
    0 1px 0 rgba(180,138,240,0.14) inset;
}
.prem2-hero::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height:1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(180,138,240,0.85) 35%,
    rgba(255,111,181,0.95) 50%,
    rgba(180,138,240,0.85) 65%,
    transparent 100%);
  pointer-events:none;
}
.prem2-hero-inner{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  padding: 28px 32px;
  align-items: center;
}
.prem2-hero-left{ display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.prem2-eyebrow{
  font-family: var(--mono-font);
  font-size: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  opacity: 0.9;
}
.prem2-status-line{
  font-family: var(--heading-font);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--text-bright);
  line-height: 1.15;
}
.prem2-status-line .hl{
  background: linear-gradient(90deg, #d4b0ff 0%, var(--accent) 50%, var(--accent-pink) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}
.prem2-status-sub{
  color: var(--text-dim);
  font-size: 12px;
  margin-top: 2px;
  letter-spacing: 0.2px;
}

/* Circular badge on the right of the hero. */
.prem2-badge{
  position: relative;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.prem2-badge::before,
.prem2-badge::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}
.prem2-badge::before{
  background: conic-gradient(from 90deg, var(--accent) 0deg, var(--accent-pink) 120deg, var(--accent) 240deg, var(--accent) 360deg);
  animation: prem2-badge-spin 14s linear infinite;
  filter: drop-shadow(0 0 18px rgba(180,138,240,0.55));
}
.prem2-badge::after{
  inset: 4px;
  background: radial-gradient(circle at 50% 40%, #221a35 0%, #100c1a 100%);
}
@keyframes prem2-badge-spin { to { transform: rotate(360deg); } }
.prem2-badge-inner{
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.prem2-badge-num{
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0.5px;
  color: var(--text-bright);
}
.prem2-badge-unit{
  font-family: var(--mono-font);
  font-size: 9.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
}
.prem2-badge--lifetime .prem2-badge-num{
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--accent);
}
.prem2-hero-cta{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  align-self: flex-start;
  text-decoration: none;
}

/* Card grid below the hero. */
.prem2-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.prem2-card{
  border: 1px solid #1e1a2a;
  border-radius: 14px;
  background: linear-gradient(160deg, #1a1624 0%, #14111e 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 140px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  position: relative;
}
.prem2-card:hover{
  border-color: rgba(180,138,240,0.28);
  box-shadow: 0 8px 26px rgba(0,0,0,0.45), 0 0 0 1px rgba(180,138,240,0.08) inset;
}
.prem2-card-head{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(180,138,240,0.08);
  background: linear-gradient(180deg, rgba(180,138,240,0.05) 0%, transparent 100%);
}
.prem2-card-head .head-ico{
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(180,138,240,0.20) 0%, rgba(180,138,240,0.06) 100%);
  border: 1px solid rgba(180,138,240,0.25);
  color: var(--accent);
  flex-shrink: 0;
}
.prem2-card-head .head-title{
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-bright);
  letter-spacing: 0.2px;
}
.prem2-card-head .head-count{
  margin-left: auto;
  font-family: var(--mono-font);
  font-size: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.prem2-card-body{ padding: 14px 18px 16px; }

/* Card body variants */
.prem2-clients{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prem2-client{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #211d2d;
  background: rgba(180,138,240,0.03);
  color: var(--text-bright);
  text-decoration: none;
  font-size: 12.5px;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.prem2-client:hover{
  border-color: var(--accent);
  background: rgba(180,138,240,0.10);
  transform: translateX(2px);
}
.prem2-client[disabled],
.prem2-client.is-disabled{
  color: var(--text-dim);
  cursor: not-allowed;
  opacity: 0.55;
  background: transparent;
}
.prem2-client-ico{
  width: 20px; height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.prem2-client-label{ flex: 1; font-family: var(--heading-font); font-weight: 500; }
.prem2-client-arrow{
  color: var(--accent);
  opacity: 0.6;
  transition: opacity .15s ease, transform .15s ease;
}
.prem2-client:hover .prem2-client-arrow{ opacity: 1; transform: translateX(2px); }

/* Invite chips */
.prem2-invites{
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
}
.prem2-invite{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #211d2d;
  background: rgba(180,138,240,0.03);
  font-size: 11.5px;
}
.prem2-invite code{
  grid-column: 1 / -1;
  font-family: var(--mono-font);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--accent);
  background: rgba(180,138,240,0.06);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(180,138,240,0.14);
  align-self: start;
  justify-self: start;
}
.prem2-invite-status{
  grid-column: 1 / -1;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
}
.prem2-invites-empty{
  padding: 12px 4px;
  text-align: center;
  font-size: 11.5px;
  font-style: italic;
  color: var(--text-dim);
}

.prem2-discord{
  display: flex;
  gap: 8px;
  align-items: center;
}
.prem2-discord .auth-input{ flex: 1; max-width: none; margin: 0; }

.prem2-password{ display: flex; flex-direction: column; gap: 8px; }
.prem2-password .auth-input{ max-width: none; margin: 0; }
.prem2-password-row{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.prem2-password-hint{
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1.5;
}
.prem2-password-hint a{ color: var(--accent); }
.prem2-password-msg{
  margin-top: 4px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  line-height: 1.5;
  border: 1px solid transparent;
}
.prem2-password-msg.is-ok{
  color: #c8a4ff;
  background: rgba(180,138,240,0.10);
  border-color: rgba(180,138,240,0.28);
}
.prem2-password-msg.is-err{
  color: #ffb0b8;
  background: rgba(230,120,140,0.08);
  border-color: rgba(230,120,140,0.28);
}

/* Essentials + 2FA cards on premium page */
.prem2-field-label{
  display: block;
  font-family: var(--mono-font);
  font-size: 10px;
  color: #a89fbe;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin: 4px 0 6px;
}
.prem2-essentials{ display: flex; flex-direction: column; gap: 4px; }
.prem2-essentials .auth-input,
.prem2-essentials select{ max-width: none; margin: 0 0 6px; }
.prem2-check{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 6px;
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}
.prem2-check input{ accent-color: var(--accent); width: 14px; height: 14px; }

.prem2-totp{ display: flex; flex-direction: column; gap: 10px; }
.prem2-totp-lead{
  margin: 0;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.55;
}
.prem2-totp-actions{ display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.prem2-totp-setup{
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(180,138,240,0.20);
  background: rgba(180,138,240,0.04);
  border-radius: 10px;
  margin-top: 8px;
}
.prem2-totp-qr{
  align-self: center;
  padding: 6px;
  background: #ffffff;
  border-radius: 8px;
  line-height: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.prem2-totp-qr img{ display: block; width: 180px; height: 180px; }
.prem2-totp-secret{
  display: block;
  font-family: var(--mono-font);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--accent);
  background: rgba(180,138,240,0.08);
  border: 1px solid rgba(180,138,240,0.20);
  padding: 8px 10px;
  border-radius: 8px;
  word-break: break-all;
  text-align: center;
}
.prem2-totp-disable{
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  flex-wrap: wrap;
}
.prem2-totp-disable .auth-input{ flex: 1; min-width: 180px; max-width: none; margin: 0; }
.prem2-totp-backup{
  padding: 10px 12px;
  border: 1px dashed rgba(180,138,240,0.28);
  border-radius: 10px;
  background: rgba(180,138,240,0.04);
}
.prem2-backup-row{ display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.prem2-backup-code{
  font-family: var(--mono-font);
  font-size: 12.5px;
  letter-spacing: 1.5px;
  color: var(--accent);
  background: rgba(180,138,240,0.08);
  border: 1px solid rgba(180,138,240,0.20);
  padding: 6px 10px;
  border-radius: 8px;
  flex: 1;
  min-width: 200px;
  text-align: center;
}

.prem2-buy{ padding: 8px 4px 0; }
.prem2-buy-lead{
  margin: 0 0 10px;
  color: var(--text-bright);
  font-size: 13px;
  line-height: 1.6;
}
.prem2-buy-sub{
  margin: 0 0 16px;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.55;
}
.prem2-buy-actions{ display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.prem2-buy-actions .btn-primary{ margin: 0; }

@media (max-width: 700px){
  .prem2-hero-inner{ grid-template-columns: 1fr; padding: 22px; gap: 18px; text-align: left; }
  .prem2-badge{ align-self: flex-start; width: 112px; height: 112px; }
  .prem2-badge-num{ font-size: 30px; }
  .prem2-status-line{ font-size: 22px; }
}

/* ---------- FAQ page ---------- */
.faq-intro{
  padding: 14px 18px 4px;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.6;
}
.faq-intro a{ color: var(--accent); }
.faq-section{ padding: 8px 0 0; }
.faq-list{ padding: 0 12px 12px; }
.faq-item{
  border: 1px solid #201c2a;
  border-radius: 10px;
  background: linear-gradient(180deg, #16131f 0%, #121019 100%);
  margin: 8px 0;
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.faq-item[open]{
  border-color: rgba(180,138,240,0.28);
  box-shadow: 0 4px 18px rgba(0,0,0,0.35), 0 0 0 1px rgba(180,138,240,0.06) inset;
}
.faq-q{
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 12px 16px;
  list-style: none;
  user-select: none;
  transition: background .15s ease;
}
.faq-q::-webkit-details-marker{ display: none; }
.faq-q:hover{ background: rgba(180,138,240,0.05); }
.faq-q-text{
  flex: 1;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-bright);
  letter-spacing: 0.1px;
}
.faq-q-chev{
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease;
  flex-shrink: 0;
}
.faq-item[open] .faq-q-chev{ transform: rotate(180deg); }
.faq-a{
  padding: 4px 18px 16px 18px;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.65;
  border-top: 1px dashed rgba(180,138,240,0.10);
}
.faq-a a{ color: var(--accent); text-decoration: none; }
.faq-a a:hover{ text-decoration: underline; text-underline-offset: 3px; }
.faq-a b{ color: var(--text-bright); font-weight: 600; }
.faq-a code{
  font-family: var(--mono-font);
  font-size: 11px;
  background: rgba(180,138,240,0.10);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--accent);
}
.invite-code {
  background: #1b1b1b;
  border: 1px solid #2a2a2a;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  color: #b48af0;
  letter-spacing: 0.5px;
}
.buy-body {
  padding: 4px 14px 16px;
  font-size: 12px;
  color: #c8c8c8;
  line-height: 1.6;
}
.sub-until {
  margin-left: 6px;
  color: #8e8e8e;
  font-size: 10.5px;
}
.sub-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

/* ---------- Members list (admin) ---------- */
.members-table {
  width: 100%;
  border-collapse: collapse;
}
.members-table thead th {
  text-align: left;
  font-weight: normal;
  color: #8e8e8e;
  font-size: 11px;
  padding: 8px 10px;
  border-bottom: 1px solid #2a2a2a;
  background: #1f1f1d;
}
.members-table tbody td {
  padding: 8px 10px;
  border-bottom: 1px solid #222;
  vertical-align: middle;
  font-size: 12px;
}
.members-table tbody tr:hover {
  background: #242422;
}
.members-table .role-badge {
  font-size: 10px;
  padding: 2px 7px;
}

/* ---------- Notifications (matches the forum's purple design system) ---------- */
.notif-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0 2px;
  z-index: 110;
}
.notif-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim) !important;
  text-decoration: none !important;
  padding: 2px 6px;
  line-height: 1;
  transition: color .12s ease;
}
.notif-btn:hover {
  color: var(--accent) !important;
}
/* Unread-count pill on the bell. Kept red (needs to POP against the purple
 * navbar) but wrapped in a subtle pink halo + a ring that matches the page bg. */
.notif-badge {
  position: absolute;
  top: -4px;
  left: -2px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 8px;
  background: linear-gradient(180deg, #ff4d7a 0%, #d61e4c 100%);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
  box-shadow: 0 0 0 1.5px var(--page-bg),
              0 0 6px rgba(255, 20, 147, 0.5);
  pointer-events: none;
}
.notif-panel {
  position: fixed;
  top: 0;
  left: 0;
  margin-top: 0;
  width: 340px;
  max-width: 92vw;
  background: var(--panel);
  border: 1px solid var(--accent-soft-border);
  border-radius: var(--radius);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(180, 138, 240, 0.06);
  z-index: 99999;
  overflow: hidden;
  pointer-events: auto;
}
/* Same one-pixel accent gradient the forum header carries so the two panels
 * feel like siblings, not different components. */
.notif-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(180, 138, 240, 0.75) 25%,
    rgba(255, 111, 181, 0.9) 50%,
    rgba(180, 138, 240, 0.75) 75%,
    transparent 100%);
  pointer-events: none;
}
/* Bell in the navbar picks up the same chip treatment as the other icons —
 * padding + radius + hover background all live on `.navbar .icon` above.
 * These rules just make sure the anchor doesn't inherit link-color styling. */
.navbar .notif-btn.icon {
  color: var(--text-dim) !important;
}
.navbar .notif-btn.icon:hover {
  color: var(--accent) !important;
}
.navbar .notif-btn.icon svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}
.navbar .notif-btn.icon::after { display: none; }
.notif-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background:
    radial-gradient(260px 90px at 15% 0%, rgba(180, 138, 240, 0.12), transparent 70%),
    linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 100%);
  border-bottom: 1px solid var(--accent-soft-border);
  font-family: var(--heading-font);
  font-size: 11px;
  color: var(--text-bright);
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.notif-mark-all {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 10.5px;
  font-family: var(--body-font);
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: none;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
  transition: color .1s ease, background .1s ease;
}
.notif-mark-all:hover {
  color: var(--link-bright);
  background: rgba(180, 138, 240, 0.10);
}
.notif-panel-body {
  max-height: 380px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-soft-border) transparent;
}
.notif-panel-body::-webkit-scrollbar { width: 8px; }
.notif-panel-body::-webkit-scrollbar-thumb {
  background: var(--accent-soft-border);
  border-radius: 4px;
  border: 2px solid var(--panel);
}
.notif-panel-body::-webkit-scrollbar-track { background: transparent; }
.notif-empty {
  padding: 26px 14px;
  text-align: center;
  color: var(--text-dim2);
  font-size: 11px;
  font-style: italic;
}
/* Row shell (contains the click-target + the delete X side-by-side). */
.notif-item {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-bottom: 1px solid var(--row-divider);
  background: var(--row-bg);
  position: relative;
  transition: background .12s ease;
}
.notif-item:last-child { border-bottom: none; }
.notif-item-main {
  display: flex;
  gap: 10px;
  padding: 11px 14px;
  flex: 1;
  min-width: 0;
  text-decoration: none !important;
  color: inherit;
}
.notif-item-main:hover { background: var(--panel-2); }
/* Unread: left-edge accent stripe + soft purple wash + brightened title. */
.notif-item.notif-unread {
  background: var(--accent-soft-bg);
  box-shadow: inset 3px 0 0 0 var(--accent);
}
.notif-item.notif-unread .notif-item-main:hover {
  background: rgba(180, 138, 240, 0.14);
}
.notif-item.notif-unread .notif-title {
  color: var(--accent);
}
.notif-type {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft-bg) 0%, rgba(124, 79, 191, 0.35) 100%);
  border: 1px solid var(--accent-soft-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--accent);
  margin-top: 1px;
}
.notif-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.notif-title {
  font-size: 11.5px;
  color: var(--text-bright);
  font-weight: 600;
  letter-spacing: 0.1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notif-body {
  font-size: 11px;
  color: var(--text-dim);
  /* Wrap up to 3 lines then clamp — full readability without letting a
   * chatty alert take over the whole panel. */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  line-height: 1.4;
}
.notif-time {
  font-size: 10px;
  color: var(--text-dim2);
  margin-top: 2px;
  letter-spacing: 0.2px;
}

.post-hidden { opacity: 0.7; border-left: 2px solid #665522; }
.post-actions { display: inline-flex; align-items: center; gap: 2px; }


/* Avatar */
.avatar-row { display:flex; align-items:flex-start; gap:12px; }
.profile-avatar {
  width: 64px; height: 64px; border-radius: 6px; object-fit: cover;
  border: 1px solid #333; background: #1a1a18; flex-shrink: 0;
}
.profile-avatar-placeholder {
  display:flex; align-items:center; justify-content:center;
  font-size: 22px; font-weight: bold; color: #9a9a9a;
}
.avatar-controls { flex:1; }

/* Chat delete */
.btn-chat-del {
  background: none;
  border: none;
  color: var(--text-dim2);
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
  vertical-align: middle;
  font-family: inherit;
  transition: color .12s ease, background-color .12s ease;
}
.btn-chat-del:hover {
  color: #ff6f6f;
  background: rgba(207, 92, 92, 0.12);
}

/* Notification head actions row + per-row delete button. Layout for .notif-item
 * and .notif-item-main lives in the main Notifications block above; only the
 * delete affordance is scoped here. */
.notif-head-actions { display: inline-flex; gap: 10px; align-items: center; }
.notif-clear-all { color: var(--accent-pink); }
.notif-clear-all:hover { color: #ff85c8; background: rgba(255, 111, 181, 0.12); }
.notif-del {
  background: none;
  border: none;
  border-left: 1px solid var(--row-divider);
  color: var(--text-dim2);
  cursor: pointer;
  padding: 0 12px;
  font-size: 15px;
  line-height: 1;
  transition: color .1s ease, background .1s ease;
}
.notif-del:hover {
  color: var(--accent-pink);
  background: rgba(255, 111, 181, 0.10);
}
.notif-item.notif-unread .notif-del {
  border-left-color: rgba(180, 138, 240, 0.22);
}

/* ---------- Nav icons + admin dropdown (matches the sleek navbar above) ---------- */
.navbar .nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  border-radius: 5px;
  color: var(--text-dim);
  transition: color .15s ease, background-color .15s ease, transform .2s ease;
}
.navbar .nav-icon svg { width: 13px; height: 13px; fill: currentColor; }
.navbar .nav-icon:hover {
  color: var(--accent);
  background: linear-gradient(180deg, rgba(180, 138, 240, 0.12) 0%, rgba(180, 138, 240, 0.05) 100%);
}
.nav-dropdown { position: relative; display: inline-flex; align-items: center; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  z-index: 200;
  min-width: 160px;
  background: var(--panel);
  border: 1px solid var(--accent-soft-border);
  border-radius: var(--radius);
  padding: 5px 0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55),
              0 0 0 1px rgba(180, 138, 240, 0.06);
  overflow: hidden;
}
/* Same accent hairline the navbar and notif-panel carry — visual cousins. */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(180, 138, 240, 0.7) 30%,
    rgba(255, 111, 181, 0.85) 50%,
    rgba(180, 138, 240, 0.7) 70%,
    transparent 100%);
  pointer-events: none;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown.open .nav-icon,
.nav-dropdown.is-active .nav-icon {
  color: var(--accent);
  background: linear-gradient(180deg, rgba(180, 138, 240, 0.14) 0%, rgba(180, 138, 240, 0.06) 100%);
}
.nav-dropdown-menu a {
  display: block;
  padding: 8px 14px;
  font-family: var(--heading-font);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: color .12s ease, background-color .12s ease;
}
.nav-dropdown-menu a:hover {
  background: linear-gradient(90deg, rgba(180, 138, 240, 0.14) 0%, rgba(180, 138, 240, 0.04) 100%);
  color: var(--text-bright);
}

/* ---------- Settings (profile menu tabs) ---------- */
.set-msg { margin:0 0 10px; padding:8px 10px; font-size:12px; border-radius:3px; }
.set-msg.ok  { background:#1b3d1b; border:1px solid #3a6; color:#c8e6c8; }
.set-msg.err { background:#3d1b1b; border:1px solid #a33; color:#f0c0c0; }
.set-row { margin:0 0 8px; }
.set-label { display:block; color:#ddd; font-weight:700; margin:6px 0 2px; font-size:12px; }
.set-label i { font-weight:normal; color:#b4b4b4; }
.set-text { font-size:12px; color:#c8c8c8; line-height:1.5; margin:0 0 8px; }
.set-input, .set-select {
  height:24px; padding:2px 6px; background:#171717; color:#ddd; border:1px solid #444;
  border-radius:2px; font:inherit; font-size:12px;
}
.set-input:focus, .set-select:focus { outline:1px solid var(--link); border-color:var(--link); }
.set-input.w-sm { width:110px; } .set-input.w-md { width:200px; } .set-input.w-lg { width:260px; } .set-input.w-xl { width:320px; }
.set-select { width:334px; max-width:100%; }
.set-check, .set-radio { display:flex; align-items:center; gap:8px; font-size:12px; color:#c8c8c8; margin:4px 0; cursor:pointer; }
.set-check input, .set-radio input { width:14px; height:14px; margin:0; accent-color:var(--link); }
.set-submit-row { display:flex; align-items:center; gap:12px; margin-top:4px; font-size:12px; color:#c8c8c8; }
.set-submit {
  background:#2a2a2a; border:1px solid #3a3a3a; color:#ddd; padding:4px 10px; border-radius:3px;
  font:inherit; font-size:11px; cursor:pointer;
}
.set-submit:hover { background:#353535; color:#fff; }
.set-inline { display:flex; gap:16px; flex-wrap:wrap; }

/* ==================================================================
   Modern refresh — appended so nothing above overrides it.
   Global scrollbar, focus rings, subtle body vignette, link polish,
   selection color, minor table cleanup.
   ================================================================== */

/* Subtle vignette: a soft purple glow in the top-left, brown-black
   bottom-right — reads as texture, not decoration. */
body {
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(180,138,240,0.06), transparent 60%),
    radial-gradient(1000px 600px at 100% 110%, rgba(124,79,191,0.05), transparent 55%),
    var(--page-bg);
  background-attachment: fixed;
}

/* Text selection color. */
::selection {
  background: rgba(180,138,240,0.35);
  color: var(--text-bright);
}

/* Global scrollbar — Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #3a2f4e transparent;
}
/* Global scrollbar — WebKit / Chromium */
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3a2f4e 0%, #2a2338 100%);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-soft-border) 0%, #3a2f4e 100%);
  background-clip: padding-box;
}
*::-webkit-scrollbar-corner { background: transparent; }

/* Modern focus ring — keyboard users get a soft purple halo. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
/* But form controls we've explicitly styled already handle their own focus. */
.auth-input:focus-visible,
.modal-form input:focus-visible,
.modal-form textarea:focus-visible,
.reply-box textarea:focus-visible,
.chat-input:focus-visible {
  outline: none;
}

/* Animated link underline — thin purple growing from center on hover.
   Scoped to plain content links so it doesn't fight nav pills or buttons. */
.subbar a:not(.btn-tool),
.reply-login-prompt a,
.site-footer a,
.gs-link,
.online-box .names a {
  position: relative;
  transition: color .15s ease;
}
.subbar a:not(.btn-tool)::after,
.reply-login-prompt a::after,
.site-footer a::after,
.gs-link::after,
.online-box .names a::after {
  content: "";
  position: absolute;
  left: 50%; right: 50%;
  bottom: -1px;
  height: 1px;
  background: var(--accent);
  transition: left .18s ease, right .18s ease;
}
.subbar a:not(.btn-tool):hover::after,
.reply-login-prompt a:hover::after,
.site-footer a:hover::after,
.gs-link:hover::after,
.online-box .names a:hover::after {
  left: 0; right: 0;
}
.subbar a:not(.btn-tool):hover,
.reply-login-prompt a:hover,
.site-footer a:hover,
.gs-link:hover,
.online-box .names a:hover {
  text-decoration: none;
  color: var(--accent);
}

/* Section-title caret rotates for open/close and picks up the accent. */
.section-title .caret {
  transition: transform .18s ease;
}

/* Micro-polish: gs-table row hover so long lists feel alive. */
.gs-table tr:hover .gs-value,
.gs-table tr:hover .gs-label {
  background: rgba(180,138,240,0.03);
}

/* .set-submit — pick up the button treatment consistently. */
.set-submit {
  background: linear-gradient(180deg, #2b2438 0%, #221c2e 100%) !important;
  border: 1px solid #382e4e !important;
  color: var(--text-bright) !important;
  border-radius: 6px !important;
  padding: 6px 12px !important;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease !important;
}
.set-submit:hover {
  background: linear-gradient(180deg, #372c4d 0%, #2a2338 100%) !important;
  border-color: var(--accent-soft-border) !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(180,138,240,0.22);
}
.set-submit:active { transform: translateY(0); box-shadow: none; }

/* Give the "wrap" a hair more breathing room on wide screens. */
@media (min-width: 900px) {
  .wrap { padding: 24px 8px 48px; }
}
.set-kv { font-size:12px; color:#c8c8c8; margin:3px 0; }
.set-kv a { color:var(--link-bright); text-decoration:none; }
.set-kv a:hover { text-decoration:underline; }
.set-blur { filter:blur(5px); background:#2a2a2a; padding:0 12px; border-radius:2px; user-select:none; cursor:pointer; }
.set-blur.revealed { filter:none; background:#1b1b1b; user-select:text; font-family:monospace; color:#b48af0; }
.set-reveal { color:#c8c8c8; margin-left:8px; cursor:pointer; }
.set-avatar-box { display:flex; gap:20px; align-items:flex-start; }
.set-avatar-box .set-text { flex:1; }
.set-avatar-img { width:150px; height:150px; object-fit:cover; background:#1b1b1b; border:1px solid #333; flex-shrink:0; }
.set-avatar-placeholder { width:150px; height:150px; display:flex; align-items:center; justify-content:center; background:#1b1b1b; border:1px solid #333; color:#555; font-size:48px; flex-shrink:0; }
.set-links a { color:var(--link-bright); text-decoration:none; margin-right:14px; font-size:12px; }
.set-links a:hover { text-decoration:underline; }
.set-2fa-secret { font-family:monospace; color:#b48af0; letter-spacing:1px; word-break:break-all; }
.set-qr { display:inline-block; background:#fff; padding:8px; margin:8px 0; }
.bb-toolbar { display:flex; flex-wrap:wrap; gap:4px 3px; align-items:center; }
.bb-toolbar .sep { width:8px; }
.bb-toolbar .brk { flex-basis:100%; height:0; }
.bb-btn {
  min-width:26px; height:22px; padding:0 6px; background:#2a2a2a; border:1px solid #3a3a3a; color:#ddd;
  border-radius:3px; font:inherit; font-size:11px; cursor:pointer; display:inline-flex; align-items:center; justify-content:center;
}
.bb-btn:hover:not([disabled]) { background:#353535; }
.bb-btn[disabled] { opacity:.45; cursor:default; }
.bb-btn.b { font-weight:700; } .bb-btn.i { font-style:italic; } .bb-btn.u { text-decoration:underline; } .bb-btn.s { text-decoration:line-through; }
.bb-btn.color { color:#e74c3c; text-decoration:underline; }
.bb-btn svg { width:12px; height:12px; fill:currentColor; }
.set-sig-textarea {
  width:640px; max-width:100%; height:56px; padding:4px 6px; background:#171717; color:#ddd;
  border:1px solid #444; border-radius:2px; font:inherit; font-size:12px; resize:vertical;
}
.set-sig-meta { font-size:12px; color:#c8c8c8; margin:6px 0; }
.set-sig-meta b { color:var(--link-bright); font-weight:normal; }
.set-preview-hd { font-size:12px; color:#c8c8c8; margin:10px 0 4px; }
.set-preview { border-top:1px solid #444; padding-top:8px; font-size:12px; color:#c8c8c8; line-height:1.6; min-height:20px; max-width:640px; }
.bb-quote { border-left:3px solid #444; margin:4px 0; padding:2px 8px; color:#aaa; }
.bb-code { background:#111; border:1px solid #2a2a2a; padding:1px 5px; font-family:monospace; }
.bb-spoiler { background:#333; color:#333; } .bb-spoiler:hover { color:#ddd; }
.bb-list { margin:4px 0 4px 18px; }
.bb-h { font-size:14px; }
.post-avatar.has-img { padding:0; overflow:hidden; }
.post-avatar.has-img img { width:100%; height:100%; object-fit:cover; display:block; }
.post-signature { margin-top:8px; padding-top:6px; border-top:1px dashed #333; font-size:11px; color:#9a9a9a; line-height:1.5; }
.post-signature a { color:var(--link-bright); }
