/* Lorencia Party template, layered on top of Bootstrap 3. Same layout and components as the Lich Party theme, in gold. */

/* Cinzel and Inter (SIL Open Font License), variable fonts served from this site, latin and latin-ext subsets as Google Fonts splits them */
@font-face { font-family: 'Cinzel'; font-weight: 600 700; font-display: swap; src: url('../fonts/cinzel-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cinzel'; font-weight: 600 700; font-display: swap; src: url('../fonts/cinzel-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-weight: 400 800; font-display: swap; src: url('../fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-weight: 400 800; font-display: swap; src: url('../fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --lp-bg: #07060a;
  --lp-bg-2: #0f0b09;
  --lp-surface: #15100c;
  --lp-surface-2: #1d1610;
  --lp-border: rgba(243, 198, 107, .12);
  --lp-border-strong: rgba(243, 198, 107, .28);
  --lp-text: #d6cfc4;
  --lp-muted: #9a8f80;
  --lp-heading: #fff6e6;
  --lp-gold: #f3c66b;
  --lp-gold-2: #ffe6a8;
  --lp-gold-glow: rgba(243, 198, 107, .35);
  --lp-ember: #ff7a3d;
  --lp-ok: #9dff8a;
  --lp-danger: #ff6b7d;
  --lp-radius: 14px;
  --lp-font-display: 'Cinzel', Georgia, serif;
  --lp-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

::selection {
  background: var(--lp-gold);
  color: var(--lp-bg);
}

html {
  background: var(--lp-bg);
  font-size: 15px;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(200, 120, 40, .18), transparent 70%),
    radial-gradient(800px 500px at 100% 30%, rgba(255, 90, 44, .05), transparent 70%),
    var(--lp-bg);
  color: var(--lp-text);
  font-family: var(--lp-font-body);
  font-size: 15px;
  line-height: 1.55;
}

body > main {
  flex: 1;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--lp-heading);
  font-family: var(--lp-font-body);
}

a {
  color: var(--lp-gold);
}

a:hover,
a:focus {
  color: var(--lp-gold-2);
  text-decoration: none;
}

hr {
  border-top-color: var(--lp-border);
}

code {
  background: rgba(243, 198, 107, .08);
  color: var(--lp-gold-2);
}

.lp-icon {
  width: 1.1em;
  height: 1.1em;
  vertical-align: -.18em;
  flex: none;
}

.lp-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.lp-container-small {
  max-width: 900px;
}

@media (max-width: 639px) {
  .lp-container {
    padding: 0 16px;
  }
}

/* ---------- Navbar ---------- */

.lp-nav {
  position: sticky;
  top: 0;
  z-index: 980;
  background: rgba(7, 6, 10, .72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--lp-border);
}

.lp-nav-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}

.lp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--lp-gold-2);
  font-family: var(--lp-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.lp-brand:hover,
.lp-brand:focus {
  color: #fff;
}

.lp-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 0 12px var(--lp-gold-glow);
}

.lp-nav-menu {
  flex: 1;
}

.lp-nav-links {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-nav-links a,
.lp-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--lp-text);
  font-size: .95rem;
  font-weight: 500;
}

.lp-nav-links a:hover,
.lp-nav-links li.active a,
.lp-nav-link:hover,
.lp-nav-link.active {
  color: var(--lp-gold-2);
}

.lp-nav-mobile {
  display: none;
}

.lp-nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lp-nav-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--lp-text);
  font: 600 .8rem var(--lp-font-body);
  cursor: pointer;
}

.lp-nav-icon:hover,
.lp-nav-icon:focus {
  color: var(--lp-gold-2);
  background: rgba(243, 198, 107, .06);
}

.lp-nav-icon .lp-icon {
  width: 20px;
  height: 20px;
}

.lp-nav-toggle {
  display: none;
}

.lp-lang {
  position: relative;
}

.lp-lang ul {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 160px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
}

.lp-lang.is-open ul {
  display: block;
}

.lp-lang ul a {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--lp-text);
}

.lp-lang ul a:hover,
.lp-lang ul li.active a {
  color: var(--lp-gold-2);
  background: rgba(243, 198, 107, .06);
}

@media (max-width: 959px) {
  .lp-nav-bar {
    position: relative;
    gap: 8px;
  }

  .lp-brand {
    min-width: 0;
  }

  .lp-nav-right {
    margin-left: auto;
  }

  .lp-nav-toggle {
    display: inline-flex;
  }

  .lp-nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 8px 16px 14px;
    background: var(--lp-bg);
    border-bottom: 1px solid var(--lp-border);
  }

  .lp-nav-menu.is-open {
    display: block;
  }

  .lp-nav-links {
    flex-direction: column;
  }

  .lp-nav-mobile {
    display: flex;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid var(--lp-border);
  }

  .lp-hide-sm {
    display: none !important;
  }
}

@media (max-width: 639px) {
  .lp-brand {
    gap: 8px;
    font-size: 1rem;
    letter-spacing: .08em;
  }

  .lp-brand img {
    width: 34px;
    height: 34px;
  }
}

/* ---------- Buttons ---------- */

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font: 600 .95rem var(--lp-font-body);
  letter-spacing: .02em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}

.lp-btn-small {
  height: 34px;
  padding: 0 16px;
  font-size: .85rem;
}

.lp-btn-large {
  height: 52px;
  padding: 0 30px;
  font-size: 1.05rem;
}

.lp-btn-block {
  width: 100%;
}

.lp-btn-primary {
  background: linear-gradient(180deg, var(--lp-gold-2), var(--lp-gold));
  color: #1c1004;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 8px 24px -8px var(--lp-gold-glow);
}

.lp-btn-primary:hover,
.lp-btn-primary:focus {
  background: linear-gradient(180deg, #ffffff, var(--lp-gold-2));
  color: #1c1004;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .4) inset, 0 12px 32px -8px var(--lp-gold-glow);
}

.lp-btn-ghost {
  background: rgba(243, 198, 107, .04);
  color: var(--lp-gold-2);
  box-shadow: 0 0 0 1px var(--lp-border-strong) inset;
}

.lp-btn-ghost:hover,
.lp-btn-ghost:focus {
  background: rgba(243, 198, 107, .12);
  color: #fff;
  transform: translateY(-1px);
}

.lp-btn-discord {
  background: #5865f2;
  color: #fff;
}

.lp-btn-discord:hover,
.lp-btn-discord:focus {
  background: #6d78f5;
  color: #fff;
  transform: translateY(-1px);
}

.lp-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

/* ---------- Hero ---------- */

.lp-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 88px;
  text-align: center;
  isolation: isolate;
}

.lp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(243, 198, 107, .2), transparent 70%),
    linear-gradient(180deg, transparent 60%, var(--lp-bg));
}

.lp-hero::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -340px;
  z-index: -1;
  width: 900px;
  height: 500px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 90, 44, .12), transparent);
}

.lp-embers {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 20px 230px, rgba(255, 196, 120, .8), transparent),
    radial-gradient(1px 1px at 120px 180px, rgba(255, 150, 80, .6), transparent),
    radial-gradient(2px 2px at 220px 110px, rgba(255, 220, 160, .6), transparent),
    radial-gradient(1px 1px at 300px 220px, rgba(255, 150, 80, .6), transparent),
    radial-gradient(1.5px 1.5px at 380px 60px, rgba(255, 196, 120, .7), transparent);
  background-size: 400px 260px;
  animation: lp-embers 18s linear infinite;
  opacity: .55;
}

@keyframes lp-embers {
  from { background-position: 0 0; }
  to { background-position: 120px -260px; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-embers { animation: none; }
}

.lp-hero-logo {
  display: block;
  width: 180px;
  height: 180px;
  margin: 0 auto 24px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--lp-border-strong), 0 0 60px rgba(243, 198, 107, .3);
}

.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--lp-border-strong);
  border-radius: 999px;
  background: rgba(243, 198, 107, .06);
  color: var(--lp-gold-2);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lp-ok);
  box-shadow: 0 0 10px var(--lp-ok);
}

.lp-title {
  margin: 22px 0 12px;
  font-family: var(--lp-font-display);
  font-size: clamp(2.4rem, 8vw, 5.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .08em;
  background: linear-gradient(180deg, #ffffff 10%, var(--lp-gold) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 30px rgba(243, 198, 107, .25));
}

.lp-subtitle {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.6;
}

.lp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.lp-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-top: 28px;
  color: var(--lp-muted);
  font-size: .9rem;
}

.lp-badges .lp-icon {
  margin-right: 6px;
  color: var(--lp-gold);
}

@media (max-width: 639px) {
  .lp-hero {
    padding: 56px 0 48px;
  }

  .lp-hero-logo {
    width: 128px;
    height: 128px;
  }
}

/* ---------- Sections and cards ---------- */

.lp-section {
  padding: 56px 0;
}

.lp-section-tight {
  padding-top: 0;
}

.lp-section-title {
  margin: 0 0 6px;
  font-family: var(--lp-font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.lp-section-lead {
  margin: 0 0 28px;
  color: var(--lp-muted);
}

.lp-card {
  background: linear-gradient(180deg, var(--lp-surface-2), var(--lp-surface));
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .8);
}

.lp-meta {
  margin: 0;
  color: var(--lp-muted);
  font-size: .82rem;
}

.lp-empty {
  padding: 28px;
  text-align: center;
  color: var(--lp-muted);
}

.lp-ok {
  color: var(--lp-ok) !important;
  font-weight: 700;
}

/* ---------- Steps ---------- */

.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.lp-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  background: linear-gradient(180deg, var(--lp-surface-2), var(--lp-surface));
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
}

.lp-step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: rgba(243, 198, 107, .1);
  border: 1px solid var(--lp-border-strong);
  color: var(--lp-gold-2);
  font-family: var(--lp-font-display);
  font-weight: 700;
}

.lp-step h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

.lp-step p {
  flex: 1;
  margin: 0 0 14px;
  color: var(--lp-muted);
  font-size: .92rem;
}

@media (max-width: 959px) {
  .lp-steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- News, server status, Discord, events ---------- */

.lp-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 40px;
}

@media (max-width: 959px) {
  .lp-home-grid {
    grid-template-columns: 1fr;
  }
}

.lp-news {
  display: grid;
  gap: 20px;
}

.lp-news-card {
  padding: 20px 22px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.lp-news-card:hover {
  border-color: var(--lp-border-strong);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .9), 0 0 0 1px var(--lp-border-strong);
}

.lp-news-card h3 {
  margin: 6px 0 8px;
  font-size: 1.2rem;
  font-weight: 700;
}

.lp-news-card h3 a {
  color: var(--lp-heading);
}

.lp-news-card h3 a:hover {
  color: var(--lp-gold-2);
}

.lp-news-card p:not(.lp-meta) {
  margin: 0 0 12px;
}

.lp-status {
  padding: 20px;
}

.lp-status-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.lp-status-players {
  margin: 12px 0 8px;
}

.lp-status-players strong {
  color: var(--lp-heading);
  font-size: 1.6rem;
}

.lp-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(243, 198, 107, .08);
  overflow: hidden;
}

.lp-bar div {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lp-ember), var(--lp-gold));
}

.lp-status-info {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  margin: 16px 0 0;
  font-size: .9rem;
}

.lp-status-info dt {
  color: var(--lp-muted);
  font-weight: 500;
}

.lp-status-info dd {
  margin: 0;
  color: var(--lp-heading);
  font-weight: 600;
  text-align: right;
}

.lp-discord {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid rgba(88, 101, 242, .35);
  border-radius: var(--lp-radius);
  background:
    radial-gradient(300px 160px at 100% 0%, rgba(88, 101, 242, .25), transparent 70%),
    linear-gradient(180deg, var(--lp-surface-2), var(--lp-surface));
}

.lp-discord-icon .lp-icon {
  width: 32px;
  height: 32px;
  color: #8b95ff;
}

.lp-discord h3,
.lp-events h3 {
  margin: 10px 0 6px;
  font-size: 1.1rem;
  font-weight: 700;
}

.lp-discord p {
  margin: 0 0 16px;
  color: var(--lp-muted);
  font-size: .92rem;
}

.lp-events {
  margin-top: 20px;
  padding: 20px;
}

.lp-events-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin-bottom: 8px;
}

.lp-events-head h3 {
  margin: 0;
}

.lp-events-head .lp-icon {
  color: var(--lp-gold);
}

.lp-events-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-events-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--lp-border);
}

.lp-event-name {
  color: var(--lp-heading);
  font-weight: 600;
  font-size: .92rem;
}

.lp-event-time {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.25;
}

.lp-event-time strong {
  color: var(--lp-gold-2);
  font-variant-numeric: tabular-nums;
}

.lp-event-time small {
  color: var(--lp-muted);
  font-size: .76rem;
  font-variant-numeric: tabular-nums;
}

.lp-events-list li.is-open small {
  color: var(--lp-ok);
  font-weight: 700;
}

.lp-events-list li.is-live small {
  color: var(--lp-ember);
  font-weight: 700;
}

/* ---------- Module pages ---------- */

.lp-page {
  padding-top: 48px;
  padding-bottom: 64px;
}

.lp-module {
  min-width: 0;
}

.lp-module::after {
  content: '';
  display: table;
  clear: both;
}

.lp-module > p,
.lp-module > ol,
.lp-module > ul,
.lp-module > h2,
.lp-module > h3 {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.lp-module > ol li,
.lp-module > ul li {
  margin-bottom: 8px;
}

.lp-page-lead {
  margin-top: -16px !important;
  margin-bottom: 36px !important;
  color: var(--lp-muted);
  font-size: 1.05rem;
  text-align: center;
}

.lp-prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
}

.lp-prose h2 {
  margin: 48px 0 12px;
  font-family: var(--lp-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.lp-prose h3 {
  margin: 28px 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
}

.lp-prose ol,
.lp-prose ul {
  padding-left: 22px;
}

.lp-prose li + li {
  margin-top: 6px;
}

.lp-prose strong {
  color: var(--lp-heading);
}

.lp-copybox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 16px;
  background: rgba(7, 6, 10, .7);
  border: 1px dashed var(--lp-border-strong);
  border-radius: 12px;
}

.lp-copybox code {
  flex: 1;
  min-width: 0;
  padding: 0;
  background: none;
  color: var(--lp-gold-2);
  font-size: .85rem;
  white-space: normal;
  overflow-wrap: anywhere;
}

.lp-copy {
  flex: none;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--lp-border-strong);
  border-radius: 9px;
  background: rgba(243, 198, 107, .08);
  color: var(--lp-gold-2);
  font: 600 .8rem var(--lp-font-body);
  cursor: pointer;
  transition: background-color .15s ease;
}

.lp-copy:hover {
  background: rgba(243, 198, 107, .18);
}

.lp-copy.is-copied {
  border-color: var(--lp-ok);
  color: var(--lp-ok);
}

.lp-callout {
  margin: 18px 0;
  padding: 14px 18px;
  border: 1px solid var(--lp-border-strong);
  border-left: 3px solid var(--lp-gold);
  border-radius: 10px;
  background: rgba(243, 198, 107, .05);
}

.lp-callout.is-warning {
  border-left-color: var(--lp-ember);
  background: rgba(255, 122, 61, .05);
}

.lp-callout > :first-child {
  margin-top: 0;
}

.lp-callout > :last-child {
  margin-bottom: 0;
}

.btn-magnet {
  background: #b81d24;
  color: #fff !important;
  border: 0;
  vertical-align: middle;
}

.btn-magnet:hover,
.btn-magnet:focus {
  background: #d8262e;
  color: #fff !important;
  transform: translateY(-1px);
}

.btn-magnet svg {
  display: block;
}

/* ---------- VIP (modules/usercp/vip.php) ---------- */

.lp-vip-status,
.lp-vip-order {
  max-width: 760px;
  margin: 0 auto 24px;
  padding: 16px 20px;
  background: linear-gradient(180deg, var(--lp-surface-2), var(--lp-surface));
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
}

.lp-vip-status strong {
  color: var(--lp-gold-2);
}

.lp-vip-order {
  border-color: var(--lp-border-strong);
}

.lp-vip-order h2 {
  margin: 0 0 12px;
  font-family: var(--lp-font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.lp-vip-order .lp-copybox {
  margin-bottom: 14px;
}

.lp-vip-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.lp-vip-tier {
  padding: 24px;
  text-align: center;
  background: linear-gradient(180deg, var(--lp-surface-2), var(--lp-surface));
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
}

.lp-vip-tier:last-child {
  border-color: var(--lp-border-strong);
  box-shadow: 0 0 40px -12px var(--lp-gold-glow);
}

.lp-vip-tier h3 {
  margin: 0;
  font-family: var(--lp-font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.lp-vip-price {
  margin: 8px 0 16px;
  color: var(--lp-gold-2);
  font-size: 2rem;
  font-weight: 800;
}

.lp-vip-local {
  margin: -12px 0 16px;
  color: var(--lp-muted);
  font-size: .95rem;
}

.lp-vip-tier ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-vip-tier li {
  padding: 6px 0;
  border-top: 1px solid var(--lp-border);
  font-size: .92rem;
}

.lp-vip-note {
  max-width: 760px;
  margin: 16px auto 24px !important;
  text-align: center;
}

.lp-vip-buy {
  max-width: 760px;
  margin: 0 auto;
}

.lp-vip-terms {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
}

.lp-vip-terms input {
  margin-top: 4px;
  flex: none;
}

.lp-vip-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.lp-vip-history-title {
  max-width: 760px;
  margin: 48px auto 12px;
  font-family: var(--lp-font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.lp-module .lp-vip-history-title + .table {
  max-width: 760px;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .lp-vip-tiers {
    grid-template-columns: 1fr;
  }
}

.lp-module form.form-horizontal {
  padding: 28px 28px 12px;
  background: linear-gradient(180deg, var(--lp-surface-2), var(--lp-surface));
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .8);
}

.lp-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 959px) {
  .lp-page-grid {
    grid-template-columns: 1fr;
  }
}

/* The module markup uses fixed Bootstrap columns (col-xs-*), which do not fit a phone */
@media (max-width: 639px) {
  .lp-module .form-horizontal [class*='col-xs-'],
  .lp-module .panel-body > .row > [class*='col-xs-'] {
    float: none;
    width: 100%;
    margin-left: 0;
  }

  .lp-module .table-responsive-lp,
  .lp-module .rankings-table {
    display: block;
    overflow-x: auto;
  }
}

/* ---------- Footer ---------- */

.lp-footer {
  margin-top: auto;
  padding: 32px 0;
  border-top: 1px solid var(--lp-border);
  background: rgba(0, 0, 0, .25);
  color: var(--lp-muted);
  font-size: .9rem;
}

.lp-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lp-footer strong {
  color: var(--lp-heading);
}

.lp-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 8px;
}

.lp-footer-links a {
  color: var(--lp-text);
}

.lp-footer-links a:hover {
  color: var(--lp-gold-2);
}

.lp-disclaimer {
  margin-top: 10px;
  font-size: .8rem;
  opacity: .8;
}

@media (max-width: 639px) {
  .lp-footer-bar {
    flex-direction: column;
    text-align: center;
  }

  .lp-footer-links {
    justify-content: center;
  }
}

/* ========== WebEngine module markup (Bootstrap 3) ========== */

/* ---------- Page title ---------- */
.page-title {
  margin: 0 0 28px;
  font-family: var(--lp-font-display);
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: .06em;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 10%, var(--lp-gold) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 24px var(--lp-gold-glow));
}

/* ---------- Panels ---------- */
.panel, .panel-general, .panel-news, .panel-sidebar, .panel-addstats, .panel-downloads {
  margin-bottom: 24px;
  background: linear-gradient(180deg, var(--lp-surface-2), var(--lp-surface));
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .8);
  color: var(--lp-text);
  overflow: hidden;
}
.panel-heading, .panel-sidebar > .panel-heading, .panel-news .panel-heading {
  padding: 14px 18px;
  background: rgba(7, 6, 10, .35) !important;
  border: 0;
  border-bottom: 1px solid var(--lp-border) !important;
  border-radius: 0;
  color: var(--lp-heading) !important;
  font-family: var(--lp-font-display);
}
.panel-title, .panel-news .panel-title {
  margin: 0;
  color: var(--lp-heading);
  font-family: var(--lp-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.panel-news .panel-title a { color: var(--lp-heading); }
.panel-news .panel-title a:hover { color: var(--lp-gold-2); }
.panel-body, .panel-news .panel-body {
  padding: 18px;
  color: var(--lp-text);
}
.panel-body .panel-title {
  padding-bottom: 10px;
  margin-bottom: 18px !important;
  border-bottom: 1px solid var(--lp-border);
  color: var(--lp-gold-2);
  font-family: var(--lp-font-display);
  font-size: 1rem;
  font-weight: 700;
}
.panel-footer, .panel-news .panel-footer {
  height: auto;
  min-height: 40px;
  padding: 12px 18px;
  background: rgba(7, 6, 10, .4);
  border-top: 1px solid var(--lp-border);
  color: var(--lp-muted);
  font-size: 12px;
  font-style: normal;
}
.news-readmore {
  color: var(--lp-gold);
  font-weight: 600;
}
.news-readmore:hover { color: var(--lp-gold-2); }

/* ---------- Sidebar & UserCP ---------- */
.panel-usercp { background: none; }
.panel-usercp ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}
.panel-usercp ul li {
  display: table;
  width: 100%;
  vertical-align: middle;
  line-height: 34px;
  border-bottom: 1px solid var(--lp-border);
}
.panel-usercp ul li:last-child { border-bottom: 0; }
.panel-usercp ul li a {
  display: block;
  padding: 4px 6px;
  border-radius: 8px;
  color: var(--lp-text) !important;
  font-weight: 600;
  transition: background-color .15s ease, color .15s ease;
}
.panel-usercp ul li a:hover, .panel-usercp ul li a:active {
  background: rgba(243, 198, 107, .08);
  color: var(--lp-gold-2) !important;
}
.panel-usercp ul li img {
  position: relative;
  top: -2px;
  width: 25px;
  height: 25px;
  margin-right: 8px;
}

/* ---------- Add stats & Downloads ---------- */
.panel-addstats .character-avatar img {
  width: 100px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--lp-border-strong);
}
.panel-addstats .character-name {
  padding: 16px 0;
  margin-bottom: 20px !important;
  border-bottom: 1px solid var(--lp-border);
  color: var(--lp-heading);
  font-family: var(--lp-font-display);
  font-size: 18px;
  font-weight: 700;
}
.download-description {
  position: relative;
  top: -4px;
  color: var(--lp-muted);
  font-size: 12px;
}

/* ---------- Tables ---------- */
.table {
  width: 100%;
  margin-bottom: 18px;
  background: transparent;
  color: var(--lp-text);
  border-collapse: collapse;
}
.table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th,
.table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td {
  padding: 10px 14px;
  border-top: none !important;
  border-bottom: 1px solid var(--lp-border);
  vertical-align: middle;
}
.table > thead > tr > th {
  border-bottom: 1px solid var(--lp-border-strong);
  color: var(--lp-muted);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.table-condensed > thead > tr > th, .table-condensed > tbody > tr > th, .table-condensed > tfoot > tr > th,
.table-condensed > thead > tr > td, .table-condensed > tbody > tr > td, .table-condensed > tfoot > tr > td {
  padding: 6px 10px;
}
.table-bordered,
.table-bordered > thead > tr > th, .table-bordered > tbody > tr > th, .table-bordered > tfoot > tr > th,
.table-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td {
  border: 1px solid var(--lp-border);
}
.table-striped > tbody > tr:nth-of-type(odd) { background-color: rgba(255, 255, 255, .02); }
.table-hover > tbody > tr:hover { background-color: rgba(243, 198, 107, .06); }
.myaccount-table {
  width: 100%;
  background: linear-gradient(180deg, var(--lp-surface-2), var(--lp-surface));
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
.myaccount-table tr td {
  padding: 14px 16px !important;
  border-bottom: 1px solid var(--lp-border);
  color: var(--lp-text);
}
.myaccount-table tr td:first-child {
  color: var(--lp-muted);
  font-weight: 600;
}
.myaccount-table tr:last-child td, .general-table-ui tr:last-child td { border-bottom: 0; }
.general-table-ui {
  width: 100%;
  table-layout: fixed;
  margin: 12px 0;
  padding: 10px;
  background: linear-gradient(180deg, var(--lp-surface-2), var(--lp-surface));
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
.general-table-ui tr td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--lp-border);
  text-align: center;
  vertical-align: middle !important;
  color: var(--lp-text);
}
.general-table-ui tr:first-child td {
  background: rgba(7, 6, 10, .35);
  border-bottom: 1px solid var(--lp-border-strong);
  color: var(--lp-gold-2);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.general-table-ui tr:nth-child(2n+2) td { background: rgba(255, 255, 255, .02); }
.general-table-ui img {
  width: 50px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--lp-border);
}

/* ---------- Rankings ---------- */
.rankings-table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
  background: linear-gradient(180deg, var(--lp-surface-2), var(--lp-surface));
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  overflow: hidden;
}
.rankings-table tr td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--lp-border);
  color: var(--lp-text);
  font-size: 15px;
  text-align: center;
  vertical-align: middle !important;
}
.rankings-table tr:first-child td {
  background: rgba(7, 6, 10, .4);
  border-bottom: 2px solid var(--lp-gold);
  color: var(--lp-gold-2);
  font-family: var(--lp-font-display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.rankings-table tr:hover:not(:first-child) td { background: rgba(243, 198, 107, .05); }
.rankings-table-place {
  color: var(--lp-gold);
  font-family: var(--lp-font-display);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}
.rankings-class-image {
  width: 32px;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--lp-border-strong);
}
.rankings-gens-img {
  width: auto !important;
  height: 30px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.rankings-update-time {
  padding: 10px 0;
  color: var(--lp-muted);
  font-size: 11px;
  text-align: right;
}
.rankings_menu {
  width: 100%;
  margin-bottom: 18px;
  overflow: auto;
  text-align: center;
}
.rankings_menu span {
  display: inline-block;
  width: 100%;
  padding: 10px 0;
  color: var(--lp-heading);
  font-family: var(--lp-font-display);
  font-size: 20px;
}
.rankings_menu a {
  display: inline-block;
  min-width: 130px;
  padding: 7px 16px;
  margin: 4px;
  background: rgba(7, 6, 10, .55);
  border: 1px solid var(--lp-border);
  border-radius: 999px;
  color: var(--lp-muted);
  font-size: .88rem;
  font-weight: 600;
  text-align: center;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.rankings_menu a:hover {
  border-color: var(--lp-border-strong);
  color: var(--lp-gold-2);
}
.rankings_menu a.active {
  background: linear-gradient(180deg, var(--lp-gold-2), var(--lp-gold));
  border-color: transparent;
  color: var(--lp-bg);
  box-shadow: 0 6px 20px -6px var(--lp-gold-glow);
}
.rankings-class-filter {
  display: inline-block;
  margin: 16px auto;
  padding: 10px 18px;
  list-style-type: none;
  background: rgba(7, 6, 10, .35);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
}
.rankings-class-filter li {
  display: inline-block;
  margin-bottom: 8px;
  transition: filter .2s ease, transform .2s ease;
}
.rankings-class-filter li:hover {
  filter: grayscale(0%);
  transform: translateY(-2px);
}
.rankings-class-filter-selection {
  display: inline-block;
  width: 75px;
  color: var(--lp-muted);
  font-size: 11px;
  text-align: center;
  cursor: pointer;
}
.rankings-class-filter-selection:hover { color: var(--lp-gold-2) !important; }
.rankings-class-filter-selection img {
  width: 40px;
  height: auto;
  margin-bottom: 5px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--lp-border-strong);
  transition: filter .2s ease, box-shadow .2s ease;
}
.rankings-class-filter-selection:hover img {
  filter: brightness(120%);
  box-shadow: 0 0 12px var(--lp-gold-glow);
}
.rankings-class-filter-grayscale {
  filter: grayscale(100%);
  opacity: .6;
}

/* ---------- My account character blocks ---------- */
.myaccount-character-block {
  display: inline-block;
  margin: 0 auto 8px;
  padding: 8px;
  background: linear-gradient(180deg, var(--lp-surface-2), var(--lp-surface));
  border: 1px solid var(--lp-border);
  border-radius: 10px;
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .8);
}
.myaccount-character-block img {
  width: 100px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 0 0 1px var(--lp-border);
  transition: filter .2s ease;
}
.myaccount-character-block img:hover { filter: brightness(118%); }
.myaccount-character-block-location {
  margin-top: 4px;
  margin-bottom: 18px;
  color: var(--lp-muted);
  font-size: 12px;
  line-height: 1.2;
}
.myaccount-character-block-level {
  position: relative;
  top: -77px;
  display: inline-block;
  padding: 2px 7px;
  background: rgba(7, 6, 10, .82);
  border: 1px solid var(--lp-border-strong);
  border-radius: 999px;
  color: var(--lp-gold-2);
  font-size: 10px;
  font-weight: 700;
}
.myaccount-character-name a {
  color: var(--lp-heading);
  font-family: var(--lp-font-display);
  font-size: 15px;
  font-weight: 700;
}
.myaccount-character-name a:hover { color: var(--lp-gold-2); }

/* ---------- Forms & Buttons ---------- */
.form-control {
  height: 44px;
  padding: 8px 14px;
  background: rgba(7, 6, 10, .65);
  border: 1px solid var(--lp-border);
  border-radius: 10px;
  color: var(--lp-heading);
  font-family: var(--lp-font-body);
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea.form-control { height: auto; }
.form-control:focus {
  background: rgba(7, 6, 10, .85);
  border-color: var(--lp-gold);
  box-shadow: 0 0 0 3px rgba(243, 198, 107, .15);
  color: var(--lp-heading);
  outline: 0;
}
.form-control::placeholder { color: var(--lp-muted); }
.form-horizontal .control-label {
  color: var(--lp-muted);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-align: left !important;
}
.help-block {
  color: var(--lp-muted);
  font-size: .82rem;
}
.btn {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 999px;
  font-family: var(--lp-font-body);
  font-weight: 600;
  letter-spacing: .02em;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn-primary {
  background: linear-gradient(180deg, var(--lp-gold-2), var(--lp-gold));
  border: 0;
  color: var(--lp-bg) !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 8px 24px -8px var(--lp-gold-glow);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background: linear-gradient(180deg, #ffffff, var(--lp-gold-2)) !important;
  border: 0 !important;
  color: var(--lp-bg) !important;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .4) inset, 0 12px 32px -8px var(--lp-gold-glow);
}
.btn-default {
  background: transparent;
  border: 1px solid var(--lp-border-strong);
  color: var(--lp-heading) !important;
}
.btn-default:hover, .btn-default:focus, .btn-default:active {
  background: rgba(243, 198, 107, .08);
  border-color: var(--lp-gold);
  color: var(--lp-gold-2) !important;
}
.btn-xs {
  padding: 3px 10px;
  font-size: 11px;
  line-height: 1.4;
}

/* ---------- Alerts, Labels, Pagination & Misc ---------- */
.alert {
  padding: 14px 18px;
  border: 1px solid var(--lp-border-strong);
  border-left-width: 3px;
  border-radius: 10px;
  color: var(--lp-text);
}
.alert-success {
  background: rgba(157, 255, 138, .08);
  border-color: rgba(157, 255, 138, .3);
  border-left-color: var(--lp-ok);
  color: var(--lp-ok);
}
.alert-danger {
  background: rgba(255, 107, 125, .08);
  border-color: rgba(255, 107, 125, .3);
  border-left-color: var(--lp-danger);
  color: var(--lp-danger);
}
.alert-warning {
  background: rgba(243, 198, 107, .08);
  border-color: var(--lp-border-strong);
  border-left-color: var(--lp-gold);
  color: var(--lp-gold-2);
}
.alert-info {
  background: rgba(255, 246, 230, .05);
  border-color: var(--lp-border-strong);
  border-left-color: var(--lp-heading);
  color: var(--lp-heading);
}
.label-success, .label-danger, .label-default {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.label-success { background: rgba(157, 255, 138, .15); color: var(--lp-ok); }
.label-danger { background: rgba(255, 107, 125, .15); color: var(--lp-danger); }
.label-default {
  background: var(--lp-surface-2);
  border: 1px solid var(--lp-border);
  color: var(--lp-muted);
}
.thumbnail {
  padding: 6px;
  background-color: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 10px;
}
a.thumbnail:hover, a.thumbnail:focus, a.thumbnail.active { border-color: var(--lp-gold); }
.pagination > li > a, .pagination > li > span {
  background-color: var(--lp-surface);
  border: 1px solid var(--lp-border);
  color: var(--lp-text);
}
.pagination > li > a:hover, .pagination > li > span:hover {
  background-color: var(--lp-surface-2);
  border-color: var(--lp-border-strong);
  color: var(--lp-gold-2);
}
.pagination > .active > a, .pagination > .active > span,
.pagination > .active > a:hover, .pagination > .active > span:hover {
  background: linear-gradient(180deg, var(--lp-gold-2), var(--lp-gold));
  border-color: transparent;
  color: var(--lp-bg);
}
.module-requirements { margin-top: 20px; color: var(--lp-muted); font-size: 12px; }
.online-status-indicator { margin-left: 5px; }
.smalltext, .panel-sidebar-events .smalltext { position: relative; top: -5px; color: var(--lp-muted); font-size: 11px; }
.nopadding { padding: 0 !important; margin: 0 !important; }
.vcenter { display: inline-block; vertical-align: middle; float: none; }
.event-schedule-open { color: var(--lp-ok); }
.event-schedule-inprogress { color: var(--lp-gold); }
