/* Account pages: support.html (Contact support + chat) and subscription.html (Manage subscription).
   Same colors as the dashboard. */
:root {
  --bg: #cdd5df;
  --panel: rgba(255, 255, 255, 0.8);
  --ink: #1f2d3d;
  --ink-soft: #5a6878;
  --accent: #b9d6f2;
  --accent-ink: #2f5d8a;
  --bar-height: 64px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--ink); min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Top bar ---------- */
.topbar { height: var(--bar-height); }
.topbar-inner { height: 100%; max-width: 1100px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.15); background: #fff; }
.top-links { display: flex; align-items: center; gap: 10px; }
.top-link { height: 36px; padding: 0 16px; border-radius: 8px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; border: 1px solid rgba(0,0,0,.18); transition: background .2s; }
.top-link:hover { background: rgba(0,0,0,.06); }

/* ---------- Page ---------- */
.wrap { max-width: 760px; margin: 0 auto; padding: 28px 24px 80px; display: flex; flex-direction: column; gap: 16px; }
.page-title { font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 34px; }
.page-sub { color: var(--ink-soft); font-size: 15px; line-height: 1.5; margin-top: -8px; }
.card { background: var(--panel); border: 1px solid rgba(255,255,255,.8); border-radius: 14px; padding: 20px 22px; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.card h2 { font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 19px; margin-bottom: 4px; }
.card-desc { color: var(--ink-soft); font-size: 14px; line-height: 1.5; margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > label { font-size: 13px; font-weight: 600; }
.help { font-size: 12.5px; color: var(--ink-soft); }
.counter { font-size: 12px; color: var(--ink-soft); align-self: flex-end; }
.counter.bad { color: #b03a3a; }
input[type=text], textarea, select {
  width: 100%; font: inherit; font-size: 14px; color: var(--ink);
  background: #fff; border: 1px solid rgba(31,45,61,.15); border-radius: 10px; padding: 9px 12px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; line-height: 1.45; }
input:focus, textarea:focus, select:focus { border-color: var(--accent-ink); box-shadow: 0 0 0 3px rgba(47,93,138,.15); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 16px; border-radius: 10px;
  background: #fff; border: 1px solid rgba(31,45,61,.15);
  font-size: 14px; font-weight: 600; transition: background .15s, opacity .15s;
}
.btn:hover { background: #eef3f9; }
.btn:disabled { opacity: .55; cursor: wait; }
.btn-primary { background: var(--accent-ink); color: #fff; border-color: transparent; }
.btn-primary:hover { background: #244a70; }
.btn-danger { background: #fdecec; color: #b03a3a; border-color: #f3c5c5; }
.btn-danger:hover { background: #f9d9d9; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.note { padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.5; background: #eaf2fb; color: #24486b; }
.note-warn { background: #fff6e0; color: #7a5a12; }
.note-error { background: #fdecec; color: #8f2d2d; }
.loading { color: var(--ink-soft); font-size: 14px; }
[hidden] { display: none !important; }

/* pop-up messages */
#toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { max-width: 420px; padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 500; color: #fff; background: #2f8a55; box-shadow: 0 8px 24px rgba(0,0,0,.18); transition: opacity .4s; }
.toast-error { background: #b03a3a; }
.toast.out { opacity: 0; }

/* ---------- Manage subscription ---------- */
.sub-card { display: flex; flex-direction: column; gap: 12px; }
.sub-top { display: flex; align-items: center; gap: 12px; }
.sub-icon { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 15px; }
.sub-name { font-weight: 600; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-plan { display: inline-block; margin-top: 2px; font-family: "Fredoka", system-ui, sans-serif; font-size: 12.5px; font-weight: 500; padding: 2px 10px; border-radius: 999px; background: var(--accent); }
.sub-plan.free { background: #e3e8ee; color: var(--ink-soft); }
.sub-status { margin-left: auto; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; flex: none; }
.sub-status.active { background: #e2f3e8; color: #2e7d4f; }
.sub-status.cancelled { background: #fff1d6; color: #8a6312; }
.sub-status.expired { background: #fdecec; color: #8f2d2d; }
.sub-status.free { background: #e3e8ee; color: var(--ink-soft); }
.sub-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.sub-facts > div { background: rgba(255,255,255,.75); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.sub-facts span { font-size: 12px; color: var(--ink-soft); }
.sub-facts b { font-size: 15px; }
.sub-confirm { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 10px; background: #fff6e0; color: #6b4f10; font-size: 14px; line-height: 1.5; }

/* ---------- Contact support ---------- */
.open-chat-card { display: flex; align-items: center; gap: 14px; justify-content: space-between; flex-wrap: wrap; }

/* ---------- The support chat screen (js/chat-view.js), from the design in screenshot/ ---------- */
.cv {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column;
  background: #c9d1db; color: #1f2d3d;
  animation: cvIn .3s ease-out;
}
@keyframes cvIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cv-head { display: flex; align-items: center; gap: 14px; padding: 14px 52px 12px; min-height: 76px; }
.cv-head-pic { width: 48px; height: 48px; border-radius: 50%; background: #fff; object-fit: cover; flex: none; }
.cv-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; margin-right: auto; font-size: 22px; }
.cv-bar { font-weight: 300; color: #1f2d3d; }
.cv-title b { font-weight: 500; white-space: nowrap; }
.cv-sub { font-size: 14px; color: #5a6878; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-buttons { display: flex; gap: 8px; flex: none; }
.cv-buttons button, .cv-buttons a {
  height: 38px; padding: 0 16px; border-radius: 999px; background: rgba(255,255,255,.65);
  font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; transition: background .15s;
}
.cv-buttons button:hover, .cv-buttons a:hover { background: #fff; }
.cv-buttons .danger { color: #b03a3a; }
.cv-account {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  height: 48px; padding: 0 20px 0 6px; border-radius: 999px; background: #fff;
  font-size: 15px; box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.cv-account:empty { display: none; }
.cv-account img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.cv-plan { font-size: 13px; color: #5a6878; }
.cv-plan::before { content: "("; } .cv-plan::after { content: ")"; }

.cv-panel { flex: 1; min-height: 0; margin: 0 64px; background: #67869a; border-radius: 30px; overflow: hidden; display: flex; }
.cv-body { flex: 1; overflow-y: auto; padding: 26px 22px 40px; display: flex; flex-direction: column; gap: 18px; }
.cv-msg { display: flex; align-items: center; gap: 14px; max-width: 72%; }
.cv-msg.me { align-self: flex-end; flex-direction: row-reverse; }
.cv-msg.them { align-self: flex-start; }
.cv-pic { width: 52px; height: 52px; border-radius: 50%; background: #fff; object-fit: cover; flex: none; margin-top: 10px; }
.cv-stack { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.cv-handle { font-size: 13px; color: rgba(255,255,255,.72); }
.cv-bubble {
  position: relative;
  background: #d8dfea; color: #111; border-radius: 20px;
  padding: 8px 18px; font-size: 16px; line-height: 1.45; text-align: center;
  white-space: pre-wrap; overflow-wrap: anywhere; min-width: 120px; max-width: 100%;
}
.cv-bubble::after {                    /* the underline under each message */
  content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 3px; border-radius: 2px;
  background: rgba(216,223,234,.75);
}
.cv-bubble a { color: #2f5d8a; text-decoration: underline; }
.cv-time { font-size: 11px; color: rgba(255,255,255,.6); margin-top: 6px; opacity: 0; transition: opacity .15s; }
.cv-msg:hover .cv-time { opacity: 1; }
.cv-system { align-self: center; max-width: 70%; text-align: center; font-size: 13px; color: rgba(255,255,255,.8); padding: 4px 10px; }

.cv-foot { display: flex; align-items: center; gap: 18px; padding: 0 64px 22px 84px; margin-top: -26px; position: relative; z-index: 1; }
.cv-input { flex: 1; background: #fff; border-radius: 999px; padding: 4px 22px; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.cv-input textarea {
  width: 100%; border: none; outline: none; resize: none; background: transparent; box-shadow: none;
  font: inherit; font-size: 16px; line-height: 1.5; padding: 8px 0; max-height: 140px; text-align: center;
}
.cv-input textarea:focus { box-shadow: none; }
.cv-input:focus-within { box-shadow: 0 0 0 3px rgba(47,93,138,.35), 0 4px 14px rgba(0,0,0,.12); }
.cv-send { width: 50px; height: 50px; flex: none; color: #fff; display: grid; place-items: center; border-radius: 50%; transition: transform .15s, background .15s; }
.cv-send svg { width: 44px; height: 44px; }
.cv-send:hover { transform: translateX(3px); background: rgba(255,255,255,.12); }
.cv-send:disabled { opacity: .5; cursor: wait; }
.cv-closed { flex: 1; display: flex; gap: 12px; align-items: center; justify-content: center; background: #fff; border-radius: 999px; padding: 8px 18px; font-size: 14px; color: #5a6878; box-shadow: 0 4px 14px rgba(0,0,0,.12); }

@media (max-width: 760px) {
  .cv-head { padding: 10px 14px; gap: 10px; flex-wrap: wrap; }
  .cv-title { font-size: 17px; }
  .cv-account { display: none; }
  .cv-panel { margin: 0 10px; border-radius: 20px; }
  .cv-foot { padding: 0 10px 14px 18px; }
  .cv-msg { max-width: 92%; }
  .cv-pic { width: 38px; height: 38px; }
}

/* ---------- Support connection (the team's inbox) ---------- */
.wrap.wide { max-width: 980px; }
.inbox-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inbox-tools button { height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; background: rgba(255,255,255,.6); }
.inbox-tools button.on { background: #2f5d8a; color: #fff; }
.inbox-count { margin-left: auto; font-size: 13.5px; color: var(--ink-soft); }
.inbox { background: var(--panel); border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.8); }
.mail {
  display: grid; grid-template-columns: 44px 190px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  width: 100%; text-align: left; padding: 12px 18px; border-bottom: 1px solid rgba(31,45,61,.07);
  transition: background .15s;
}
.mail:last-child { border-bottom: none; }
.mail:hover { background: #fff; }
.mail img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #fff; }
.mail-who { display: flex; flex-direction: column; min-width: 0; }
.mail-who b, .mail-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-who span { font-size: 12.5px; color: var(--ink-soft); }
.mail-text { min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-soft); }
.mail-text b { color: var(--ink); font-weight: 600; margin-right: 6px; }
.mail-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12px; color: var(--ink-soft); }
.mail.unread { background: rgba(255,255,255,.95); }
.mail.unread .mail-who b, .mail.unread .mail-text { font-weight: 700; color: var(--ink); }
.mail.closed { opacity: .62; }
.pill-badge { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #2f5d8a; color: #fff; font-size: 12px; font-weight: 700; text-align: center; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: #e3e8ee; color: var(--ink-soft); }
.tag.prio { background: #fff1d6; color: #8a6312; }
.tag.closed { background: #e3e8ee; }
@media (max-width: 760px) { .mail { grid-template-columns: 40px minmax(0, 1fr) auto; } .mail-text { display: none; } }

/* ---------- Server overview ---------- */
.ov-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ov-stat { background: var(--panel); border: 1px solid rgba(255,255,255,.8); border-radius: 14px; padding: 16px 22px; display: flex; flex-direction: column; gap: 2px; }
.ov-stat b { font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 34px; line-height: 1.15; }
.ov-stat span { font-size: 14px; color: var(--ink-soft); }
.ov-list { display: flex; flex-direction: column; margin-top: 6px; }
.ov-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(31,45,61,.07); }
.ov-row:last-child { border-bottom: none; padding-bottom: 0; }
.ov-row-plain { grid-template-columns: minmax(0, 1fr) auto; }
.ov-row img.sub-icon { background: #fff; }
.ov-who { display: flex; flex-direction: column; min-width: 0; }
.ov-who b, .ov-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-who span { font-size: 12.5px; color: var(--ink-soft); }
.ov-side { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.ov-side .sub-plan { margin-top: 0; }
.ov-time { font-size: 12.5px; color: var(--ink-soft); }
.ov-form { display: flex; gap: 10px; }
.ov-form input { flex: 1; min-width: 0; }
.ov-give { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) 130px auto; gap: 12px; align-items: end; }
.ov-give .field { margin-bottom: 0; min-width: 0; }
.ov-give .btn { height: 40px; }
@media (max-width: 760px) {
  .ov-row, .ov-row-plain { grid-template-columns: 44px minmax(0, 1fr); }
  .ov-row-plain .ov-who { grid-column: 1 / -1; }
  .ov-side { grid-column: 1 / -1; justify-content: flex-start; }
  .ov-give { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Same look as the lower part of the home page (checkout.html) ---------- */
body.theme-plans { --bg: #7a6438; --panel: rgba(255, 253, 248, .62); --ink-soft: #4f4a3e; --accent: #b9d6f2; }
.theme-plans .page-title, .theme-plans .loading { color: #fff; }
.theme-plans .page-sub { color: rgba(255, 255, 255, .85); }

.theme-plans .topbar { position: relative; z-index: 50; color: #fff; background: rgba(12, 12, 14, .62); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); }
.theme-plans .top-link { border-color: rgba(255, 255, 255, .25); }
.theme-plans .top-link:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .45); }
.theme-plans .brand:hover .brand-home, .theme-plans .brand:focus-visible .brand-home { background: rgba(255, 255, 255, .14); }
.theme-plans .acct-btn:hover, .theme-plans .acct.open .acct-btn { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); }
.theme-plans .acct-btn:focus-visible { outline-color: #fff; }

.theme-plans .card {
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 20px; box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .35s, border-color .35s, box-shadow .35s;
}
.theme-plans .card:hover { background: rgba(255, 253, 248, .97); border-color: rgba(255, 255, 255, .9); box-shadow: 0 14px 32px rgba(0, 0, 0, .2); }
.theme-plans .note:not(.note-warn):not(.note-error) { background: rgba(255, 253, 248, .9); color: #1f2d3d; }
.theme-plans .seg { background: rgba(122, 100, 56, .18); }
.theme-plans .seg button[aria-pressed="true"] { background: #b9d6f2; color: #1f2d3d; }
.theme-plans .seg-save { background: #fffdf8; }
.theme-plans .plan-tile { background: rgba(255, 253, 248, .75); }
.theme-plans .plan-tile:hover, .theme-plans .plan-tile.on { background: #fffdf8; }

.theme-plans .btn { border-radius: 999px; padding: 0 20px; font-family: "Fredoka", system-ui, sans-serif; font-weight: 500; font-size: 15px; background: rgba(255, 253, 248, .85); border-color: rgba(31, 45, 61, .15); transition: filter .2s, transform .2s, background .2s; }
.theme-plans .btn:hover { background: #fffdf8; transform: scale(1.04); }
.theme-plans .btn:disabled { transform: none; }
.theme-plans .btn-primary, .theme-plans .btn-primary:hover { background: #b9d6f2; color: #1f2d3d; border-color: transparent; }
.theme-plans .btn-primary:hover { filter: brightness(1.08); }
.theme-plans .btn-pay { height: 44px; padding: 0 26px; font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .theme-plans .btn, .theme-plans .card { transition: none; } .theme-plans .btn:hover { transform: none; } }

/* ---------- Privacy Policy + Terms of Service ---------- */
.legal { gap: 14px; }
.legal-meta { color: var(--ink-soft); font-size: 14px; margin-top: -8px; }
.legal .card { font-size: 15px; line-height: 1.65; scroll-margin-top: 16px; }
.legal .card h2 { margin-bottom: 10px; }
.legal h3 { font-size: 15.5px; font-weight: 700; margin: 16px 0 6px; }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.legal a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.legal code { font-family: ui-monospace, Consolas, monospace; font-size: 13.5px; background: rgba(31,45,61,.07); padding: 1px 5px; border-radius: 5px; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 14px; }
.legal-toc a { text-decoration: none; font-size: 13.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: #fff; }
.legal-toc a:hover { background: #eef3f9; }
.table-wrap { overflow-x: auto; margin: 8px 0 12px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border-radius: 10px; overflow: hidden; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid #eef1f4; }
.legal th { background: #eef3f9; font-size: 13px; }
.legal tr:last-child td { border-bottom: none; }

/* "Yuuri | Home" at the top left on every page: the whole thing goes to the home page; "Home" looks like a button */
.brand-sep { opacity: .35; font-weight: 400; margin: 0 -2px; }
.brand-home { padding: 4px 10px; margin-left: -6px; border-radius: 999px; font-weight: 600; transition: background .2s, color .2s; }
.brand:hover .brand-home, .brand:focus-visible .brand-home { background: rgba(255, 255, 255, .55); }

/* ---------- Get a plan (checkout.html) ---------- */
.card > h2 + .seg, .card > h2 + .field, .card > h2 + .pay-summary { margin-top: 12px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: #e7ecf2; margin-bottom: 14px; }
.seg button { padding: 7px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-soft); transition: background .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.seg-save { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: 11px; }
.plan-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.plan-tile { position: relative; display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 14px 14px 12px;
  border-radius: 12px; background: rgba(255,255,255,.75); border: 2px solid transparent; transition: border-color .2s, background .2s; }
.plan-tile:hover { background: #fff; }
.plan-tile.on { border-color: var(--accent-ink); background: #fff; }
.plan-tile b { font-family: "Fredoka", system-ui, sans-serif; font-size: 18px; font-weight: 600; }
.plan-tile-price { margin-top: 6px; font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 20px; }
.plan-tile-price small { font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.plan-tile-tag { position: absolute; top: -9px; right: 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  background: var(--ink); color: #fff; padding: 2px 8px; border-radius: 999px; }
.pay-summary { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.pay-summary > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.pay-summary > div span { color: var(--ink-soft); }
.pay-summary .pay-total { border-top: 1px solid rgba(0,0,0,.08); padding-top: 10px; font-size: 17px; }
.btn-pay { padding: 12px 22px; font-size: 15px; }
.pay-safe { margin-top: 12px; line-height: 1.5; }
.pay-safe a { color: var(--accent-ink); font-weight: 600; }
.pay-result { display: flex; flex-direction: column; gap: 12px; }
.pay-ok { display: flex; align-items: center; gap: 12px; }
.pay-ok h2 { margin: 0; }
.pay-check { width: 34px; height: 34px; border-radius: 50%; background: #2e7d4f; position: relative; flex: none; }
.pay-check::after { content: ""; position: absolute; left: 12px; top: 7px; width: 8px; height: 15px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
@media (max-width: 620px) { .plan-pick { grid-template-columns: 1fr; } }

/* ---------- Server list (servers.html) ---------- */
.top-link-solid { background: var(--ink); border-color: var(--ink); color: #fff; }
.top-link-solid:hover { background: #33465c; }
.dir-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.dir-sub { margin-top: 2px; }
.dir-tools { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 170px); gap: 10px; }
.dir-results, .dir-manage { display: flex; flex-direction: column; gap: 16px; }
.dir-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dir-card { display: flex; flex-direction: column; gap: 12px; }
.dir-cat { margin: 0 0 0 auto; flex: none; }
.dir-desc { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-line;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.dir-desc.open { display: block; }
.dir-more { font-size: 13px; font-weight: 600; color: var(--accent-ink); margin-top: 2px; }
.dir-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dir-tag { font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(47,93,138,.1); color: var(--accent-ink); transition: background .15s; }
.dir-tag:hover { background: rgba(47,93,138,.2); }
.dir-tag.on { background: var(--accent-ink); color: #fff; }
.dir-foot { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.dir-foot-end { margin-left: auto; display: flex; gap: 12px; }
.dir-link { font-size: 12.5px; color: var(--ink-soft); }
.dir-link:hover { text-decoration: underline; }
.dir-link.danger { color: #b03a3a; }
.dir-pager { display: flex; align-items: center; justify-content: center; gap: 14px; }
.dir-form { display: flex; flex-direction: column; }
.dir-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 760px) {
  .dir-tools { grid-template-columns: 1fr 1fr; }
  .dir-tools input, .dir-tools select:last-child { grid-column: 1 / -1; }
  .dir-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .topbar-inner { padding: 0 12px; }
  .top-links { gap: 6px; }
  .top-link { padding: 0 10px; font-size: 13px; }
  .topbar .brand-name, .topbar .brand-sep { display: none; }
}
