/* Rusty Kings shared section redesign V12
   Applies to section pages: kits, plugins, events, giveaways, discord, loot table.
   Uses the same visual language as the current homepage/rank-store: black, red, white, grey. */
:root {
  --rk-black: #030405;
  --rk-black-2: #07080b;
  --rk-panel: rgba(13, 14, 18, .90);
  --rk-panel-2: rgba(20, 21, 26, .92);
  --rk-panel-3: rgba(28, 29, 35, .92);
  --rk-line: rgba(255,255,255,.105);
  --rk-line-strong: rgba(255,255,255,.18);
  --rk-white: #f6f6f8;
  --rk-soft: #c8cad1;
  --rk-muted: #858b99;
  --rk-red: #ef1b22;
  --rk-red-dark: #9e0e13;
  --rk-red-soft: rgba(239, 27, 34, .14);
  --rk-rust: #d86b2d;
  --rk-green: #35d07f;
  --rk-gold: #f0b84c;
  --rk-container: 1180px;
  --rk-wide: 1280px;
  --rk-radius-xl: 34px;
  --rk-radius: 24px;
  --rk-radius-sm: 16px;
  --rk-shadow: 0 30px 90px rgba(0,0,0,.55);
  --rk-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; }
body.rk-section-redesign {
  min-height: 100vh;
  margin: 0;
  color: var(--rk-white);
  font-family: var(--rk-font);
  background:
    radial-gradient(900px 560px at 12% 0%, rgba(239,27,34,.18), transparent 62%),
    radial-gradient(860px 520px at 88% 8%, rgba(216,107,45,.13), transparent 58%),
    linear-gradient(180deg, #050608 0%, #030405 48%, #06070a 100%) !important;
  overflow-x: hidden;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.rk-section-redesign::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 75%);
}
body.rk-section-redesign::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 0, transparent 0 22%, rgba(0,0,0,.48) 76%),
    linear-gradient(90deg, rgba(0,0,0,.5), transparent 28%, transparent 72%, rgba(0,0,0,.5));
}
body.rk-section-redesign *,
body.rk-section-redesign *::before,
body.rk-section-redesign *::after { box-sizing: border-box; }
body.rk-section-redesign img,
body.rk-section-redesign svg { max-width: 100%; }
body.rk-section-redesign a { color: inherit; text-decoration: none; }
body.rk-section-redesign button,
body.rk-section-redesign input,
body.rk-section-redesign select,
body.rk-section-redesign textarea { font: inherit; }
body.rk-section-redesign :focus-visible { outline: 2px solid var(--rk-red); outline-offset: 4px; }
.hidden { display: none !important; }

.rk-container,
.rk-page-main,
body.rk-section-redesign .container,
body.rk-section-redesign .rk-wrap,
body.rk-section-redesign .page-root {
  width: min(var(--rk-container), calc(100% - 32px));
  margin-inline: auto;
}

.rk-skip, body.rk-section-redesign .skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 1000;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--rk-red);
  color: #fff;
  font-weight: 900;
}
.rk-skip:focus, body.rk-section-redesign .skip-link:focus { transform: none; }

/* Shared navbar */
.rk-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  backdrop-filter: blur(16px) saturate(1.15);
  background: linear-gradient(180deg, rgba(3,4,5,.93), rgba(3,4,5,.62));
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.rk-nav-inner {
  width: min(var(--rk-wide), calc(100% - 28px));
  margin-inline: auto;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 999px;
  background: rgba(8, 9, 12, .78);
  box-shadow: 0 18px 70px rgba(0,0,0,.34);
}
.rk-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: min(380px, calc(100% - 56px));
}
.rk-nav-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 1px rgba(239,27,34,.08), 0 10px 24px rgba(0,0,0,.28);
  overflow: hidden;
}
.rk-brand-logo-img { display: block; width: 84%; height: 84%; object-fit: contain; }
.rk-nav-text { display: grid; line-height: 1.1; min-width: 0; }
.rk-nav-text strong {
  font-size: 14px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--rk-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rk-nav-text small {
  color: var(--rk-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.rk-nav-links { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.rk-nav-links a {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border-radius: 999px;
  color: #e9eaee;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .03em;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.rk-nav-links a:hover { transform: translateY(-1px); background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.rk-nav-links a.is-active { background: linear-gradient(135deg, rgba(239,27,34,.24), rgba(167,15,20,.18)); border-color: rgba(239,27,34,.48); color: #fff; }
.rk-menu-btn { display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.05); cursor: pointer; }
.rk-menu-btn span { display: block; width: 18px; height: 2px; margin: 4px auto; border-radius: 999px; background: var(--rk-white); }

/* Shared cinematic hero */
.rk-section-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 350px);
  align-items: center;
  gap: clamp(24px, 4vw, 52px);
  margin-top: clamp(32px, 5vw, 70px);
  margin-bottom: clamp(34px, 5vw, 64px);
  padding: clamp(26px, 4vw, 48px);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255,255,255,.105);
  border-radius: var(--rk-radius-xl);
  background: linear-gradient(135deg, rgba(18,19,24,.92), rgba(6,7,10,.92));
  box-shadow: var(--rk-shadow);
}
.rk-section-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3,4,5,.97), rgba(3,4,5,.73), rgba(3,4,5,.94)),
    url('/events/websitebackgrounde.webp') center / cover no-repeat;
  filter: saturate(.94) contrast(1.08) brightness(.65);
}
.rk-section-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(640px 360px at 15% 45%, rgba(239,27,34,.23), transparent 65%),
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 42%);
}
.rk-section-hero-content { min-width: 0; }
.rk-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.rk-section-kicker i { width: 10px; height: 10px; border-radius: 50%; background: var(--rk-red); box-shadow: 0 0 22px rgba(239,27,34,.9); }
.rk-section-hero h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(42px, 8vw, 92px);
  line-height: .88;
  letter-spacing: -.07em;
  font-weight: 950;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 24px 70px rgba(0,0,0,.48);
}
.rk-section-hero p { max-width: 680px; margin: 20px 0 0; color: var(--rk-soft); font-size: clamp(16px, 1.55vw, 20px); line-height: 1.72; }
.rk-section-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.rk-btn,
body.rk-section-redesign .btn,
body.rk-section-redesign .rk-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  cursor: pointer;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .035em;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.rk-btn:hover,
body.rk-section-redesign .btn:hover,
body.rk-section-redesign .rk-ghost:hover { transform: translateY(-2px); }
.rk-btn-primary,
body.rk-section-redesign .btn-primary,
body.rk-section-redesign .btn-success { background: linear-gradient(135deg, var(--rk-red), var(--rk-red-dark)); box-shadow: 0 16px 42px rgba(239,27,34,.22); }
.rk-btn-secondary,
body.rk-section-redesign .btn-secondary,
body.rk-section-redesign .btn-ghost,
body.rk-section-redesign .rk-ghost { background: rgba(255,255,255,.06); }
.rk-section-hero-card {
  justify-self: end;
  width: min(100%, 340px);
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 28px;
  background: rgba(6,7,10,.74);
  box-shadow: inset 0 0 0 1px rgba(239,27,34,.08), 0 26px 90px rgba(0,0,0,.45);
}
.rk-section-icon { width: 92px; height: 92px; display: grid; place-items: center; border-radius: 26px; color: var(--rk-red); background: rgba(239,27,34,.12); border: 1px solid rgba(239,27,34,.28); box-shadow: 0 0 54px rgba(239,27,34,.12); }
.rk-section-icon svg { width: 52px; height: 52px; fill: currentColor; }
.rk-section-hero-card img { width: 118px; height: 118px; object-fit: contain; }
.rk-section-hero-card span { color: var(--rk-muted); font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.rk-section-hero-card strong { color: #fff; font-size: 24px; font-weight: 950; text-transform: uppercase; text-align: center; }

/* Shared content */
.rk-page-main { padding-bottom: 76px; }
.rk-panel,
body.rk-section-redesign .section,
body.rk-section-redesign .rk-filters,
body.rk-section-redesign .controls,
body.rk-section-redesign .features,
body.rk-section-redesign .faq,
body.rk-section-redesign .rk-empty,
body.rk-section-redesign .rk-alert {
  border: 1px solid rgba(255,255,255,.095) !important;
  border-radius: var(--rk-radius) !important;
  background: linear-gradient(180deg, rgba(17,18,23,.90), rgba(9,10,13,.88)) !important;
  box-shadow: 0 22px 80px rgba(0,0,0,.35) !important;
}
body.rk-section-redesign .section,
body.rk-section-redesign .features,
body.rk-section-redesign .faq { padding: clamp(18px, 3vw, 28px) !important; margin-bottom: 28px !important; }
.section-head,
.rk-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2,
.section-head h3,
.rk-section-head h2 { margin: 0; color: #fff; font-size: clamp(28px, 4vw, 48px); line-height: .96; letter-spacing: -.04em; font-weight: 950; text-transform: uppercase; }
.section-head p,
.rk-section-head p { margin: 8px 0 0; color: var(--rk-muted); max-width: 680px; }
.toolbar,
.rk-tools,
.rs-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.input,
.select,
body.rk-section-redesign input[type="text"],
body.rk-section-redesign input[type="search"],
body.rk-section-redesign select,
body.rk-section-redesign textarea {
  min-height: 48px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.055);
  color: #fff;
  padding: 12px 14px;
  outline: none;
  box-shadow: none;
}
body.rk-section-redesign input::placeholder,
body.rk-section-redesign textarea::placeholder { color: rgba(255,255,255,.45); }
body.rk-section-redesign select option { background: #111217; color: #fff; }
body.rk-section-redesign input:focus,
body.rk-section-redesign select:focus,
body.rk-section-redesign textarea:focus { border-color: rgba(239,27,34,.65); box-shadow: 0 0 0 4px rgba(239,27,34,.12); }

/* Generic cards used by Plugins and Loot Table */
body.rk-section-redesign .grid,
body.rk-section-redesign .cards,
body.rk-section-redesign .rk-grid,
body.rk-section-redesign .faq-grid,
body.rk-section-redesign .faq__grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
body.rk-section-redesign .card,
body.rk-section-redesign .faq-item,
body.rk-section-redesign .faq__item,
body.rk-section-redesign .rk-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.105);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(24,25,31,.93), rgba(13,14,18,.95));
  box-shadow: 0 22px 60px rgba(0,0,0,.34);
}
body.rk-section-redesign .card:hover,
body.rk-section-redesign .rk-card:hover { transform: translateY(-3px); border-color: rgba(239,27,34,.35); }
body.rk-section-redesign .card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #090a0e; }
body.rk-section-redesign .card-media img { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.95) contrast(1.05); }
body.rk-section-redesign .badge { position: absolute; left: 12px; top: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(239,27,34,.9); color: #fff; font-size: 11px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
body.rk-section-redesign .card-body { padding: 18px; }
body.rk-section-redesign .card-title,
body.rk-section-redesign .card h4,
body.rk-section-redesign .card h3 { margin: 0 0 8px; color: #fff; font-size: 20px; font-weight: 950; }
body.rk-section-redesign .card-desc,
body.rk-section-redesign .card p,
body.rk-section-redesign .faq-item p,
body.rk-section-redesign .faq__item p { color: var(--rk-soft); }
body.rk-section-redesign .card-actions { display: flex; justify-content: space-between; gap: 12px; padding: 0 18px 18px; margin-top: auto; }
.tag-btn,
.chip,
body.rk-section-redesign .badge-row .badge,
body.rk-section-redesign .meta-chip,
body.rk-section-redesign .scrap-chip,
body.rk-section-redesign .rarity-chip,
body.rk-section-redesign header .badges span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--rk-soft);
  font-size: 12px;
  font-weight: 850;
}
.tag-btn { cursor: pointer; }
.tag-btn[aria-pressed="true"], .tag-btn:hover { background: rgba(239,27,34,.16); border-color: rgba(239,27,34,.38); color: #fff; }
.tags-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }

/* Modal shared */
.modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; }
.modal[aria-hidden="true"], .modal.hidden { display: none !important; }
.modal__overlay, .modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.78); backdrop-filter: blur(8px); }
.modal__dialog, .modal-content { position: relative; z-index: 1; width: min(980px, 100%); max-height: 86vh; overflow: auto; border: 1px solid rgba(255,255,255,.12); border-radius: 28px; background: linear-gradient(180deg, #15161b, #08090c); box-shadow: var(--rk-shadow); }
.modal__close, .modal-close { position: absolute; right: 18px; top: 18px; z-index: 2; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; background: rgba(255,255,255,.06); color: #fff; cursor: pointer; }
.modal__header, .modal-header { display: flex; gap: 16px; align-items: center; padding: 24px; border-bottom: 1px solid rgba(255,255,255,.08); }
.modal__thumb { width: 92px; height: 92px; flex: 0 0 auto; overflow: hidden; border-radius: 22px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.modal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.modal__headings h3, .modal-title { margin: 0; color: #fff; font-size: 28px; font-weight: 950; }
.modal__tagline { margin: 0; padding: 18px 24px 0; color: var(--rk-muted); }
.modal__body, .modal-body { padding: 24px; }
.modal__body { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.box { padding: 16px; border: 1px solid rgba(255,255,255,.09); border-radius: 18px; background: rgba(255,255,255,.04); }
.box h4 { margin: 0 0 8px; color: #fff; }
.box p, .box li { color: var(--rk-soft); }
.modal__gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); padding: 16px 24px 0; }
.modal__gallery img { width: 100%; height: 160px; object-fit: cover; border-radius: 14px; }
.modal__footer { display: flex; justify-content: flex-end; gap: 10px; padding: 0 24px 24px; }

/* Kits */
body.rk-page-kits .page-root { display: block; padding: 0 0 70px; }
body.rk-page-kits .rk-main { width: 100%; }
body.rk-page-kits .rk-filters { display: grid; grid-template-columns: minmax(170px, .8fr) minmax(260px, 1.4fr) minmax(260px, 1fr); gap: 14px; padding: 18px !important; margin-bottom: 24px; }
.rk-filter-group { display: grid; gap: 8px; align-content: end; }
.rk-filter-group > label, .rk-filter-toggle .rk-toggle-text { color: var(--rk-muted); font-size: 12px; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.rk-toggle-label { min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(255,255,255,.05); cursor: pointer; }
.rk-toggle-label input { position: absolute; opacity: 0; }
.rk-toggle-custom { width: 38px; height: 22px; border-radius: 999px; background: rgba(255,255,255,.16); position: relative; flex: 0 0 auto; }
.rk-toggle-custom::after { content: ""; position: absolute; width: 16px; height: 16px; top: 3px; left: 3px; border-radius: 50%; background: #fff; transition: transform .18s ease, background .18s ease; }
.rk-toggle-label input:checked + .rk-toggle-custom { background: rgba(239,27,34,.7); }
.rk-toggle-label input:checked + .rk-toggle-custom::after { transform: translateX(16px); }
.rk-kits-list { display: grid; gap: 16px; }
.kit-card { overflow: hidden; border: 1px solid rgba(255,255,255,.105); border-radius: 26px; background: linear-gradient(180deg, rgba(23,24,29,.93), rgba(11,12,16,.95)); box-shadow: 0 24px 70px rgba(0,0,0,.38); }
.kit-header { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px; border: 0; background: transparent; color: inherit; cursor: pointer; text-align: left; }
.kit-header-left { display: flex; gap: 18px; align-items: center; min-width: 0; }
.kit-image-wrapper { width: 78px; height: 78px; flex: 0 0 auto; overflow: hidden; border-radius: 18px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.055); display: grid; place-items: center; }
.kit-image { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.kit-name-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.kit-name { color: #fff; font-size: 21px; font-weight: 950; }
.kit-category-chip { padding: 5px 10px; border-radius: 999px; background: rgba(239,27,34,.15); color: #fff; border: 1px solid rgba(239,27,34,.3); font-size: 11px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.kit-description { margin: 6px 0 0; color: var(--rk-soft); }
.kit-header-meta { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.kit-meta-chip { white-space: nowrap; }
.kit-meta-chip span { color: var(--rk-muted); }
.kit-meta-chip strong { color: #fff; }
.kit-toggle-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.06); }
.kit-toggle-icon::before { content: "+"; color: #fff; font-weight: 950; }
.kit-card.open .kit-toggle-icon::before { content: "–"; }
.kit-body { display: none; border-top: 1px solid rgba(255,255,255,.08); }
.kit-card.open .kit-body { display: block; }
.kit-body-inner { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.6fr); gap: 18px; padding: 18px; }
.kit-body-meta, .kit-items-column { border: 1px solid rgba(255,255,255,.08); border-radius: 18px; background: rgba(255,255,255,.035); padding: 16px; }
.kit-body-meta h3, .kit-items-title { margin: 0 0 8px; color: #fff; font-size: 16px; font-weight: 950; text-transform: uppercase; letter-spacing: .08em; }
.kit-body-meta p, .kit-body-meta dd, .kit-body-meta dt { color: var(--rk-soft); }
.kit-body-meta dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; }
.kit-items-layout { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.item-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.item-row { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 8px; border-radius: 14px; background: rgba(255,255,255,.04); }
.item-icon-wrap { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.055); display: grid; place-items: center; overflow: hidden; }
.item-icon { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.item-name { color: #fff; font-weight: 850; }
.item-meta { display: block; color: var(--rk-muted); font-size: 12px; }
.item-amount { color: #fff; font-weight: 950; }
.rk-status { padding: 16px; border-radius: 18px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); color: var(--rk-soft); }
.rk-status-hidden { display: none; }
.rk-status-error { color: #ffd1d1; border-color: rgba(239,27,34,.34); }

/* Events */
body.rk-page-events #plugin-container { width: min(var(--rk-container), calc(100% - 32px)); margin: 0 auto 76px; display: grid; gap: 18px; }
.event-panel { overflow: hidden; border: 1px solid rgba(255,255,255,.105); border-radius: 26px; background: linear-gradient(180deg, rgba(23,24,29,.93), rgba(11,12,16,.95)); box-shadow: 0 24px 70px rgba(0,0,0,.38); padding: 20px; }
.event-panel .stats-heading { margin: 0 0 12px; color: #fff; font-size: clamp(24px, 3vw, 36px); font-weight: 950; letter-spacing: -.03em; text-transform: uppercase; }
.event-panel .buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.event-panel .server-tag { pointer-events: none; background: rgba(255,255,255,.055); }
.content { border-top: 1px solid rgba(255,255,255,.08); padding-top: 16px; }
.content-section { display: none; color: var(--rk-soft); line-height: 1.7; }
.content-section.description { display: block; }
.content-section.commands p { display: inline-flex; margin: 0 8px 8px 0; padding: 8px 11px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #fff; font-weight: 850; }
.image-panel { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.image-panel[style*="block"] { display: grid !important; }
.image-panel img { width: 100%; height: 190px; object-fit: cover; border-radius: 16px; border: 1px solid rgba(255,255,255,.1); }

/* Giveaways */
body.rk-page-giveaways .rk-main { padding-bottom: 76px; }
body.rk-page-giveaways .rk-alert, body.rk-page-giveaways .rk-empty { padding: 18px !important; margin-bottom: 18px; }
body.rk-page-giveaways .rk-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
body.rk-page-giveaways .rk-card { transition: transform .18s ease, border-color .18s ease; }
body.rk-page-giveaways .rk-img, body.rk-page-giveaways .rk-skel-banner { width: 100%; height: 180px; object-fit: cover; display: block; background: linear-gradient(135deg, rgba(239,27,34,.25), rgba(255,255,255,.04)); }
body.rk-page-giveaways .rk-body { padding: 18px; }
body.rk-page-giveaways .rk-body h3 { margin: 0 0 8px; color: #fff; font-size: 21px; font-weight: 950; }
body.rk-page-giveaways .rk-desc { color: var(--rk-soft); }
body.rk-page-giveaways .rk-meta { display: grid; gap: 9px; color: var(--rk-muted); }
body.rk-page-giveaways .rk-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
body.rk-page-giveaways .rk-badge { color: #fff; border-color: rgba(53,208,127,.4); background: rgba(53,208,127,.14); }
body.rk-page-giveaways .rk-actions-row { margin-top: 14px; }
body.rk-page-giveaways .rk-footer-note { display: flex; justify-content: space-between; gap: 14px; margin-top: 20px; padding-top: 18px; color: var(--rk-muted); border-top: 1px dashed rgba(255,255,255,.11); }

/* Discord */
.discord-main { width: min(var(--rk-container), calc(100% - 32px)); margin: 0 auto 76px; }
.discord-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, 420px); gap: 18px; align-items: stretch; }
.discord-copy, .discord-widget, .discord-feature, .discord-faq-item { border: 1px solid rgba(255,255,255,.105); border-radius: 26px; background: linear-gradient(180deg, rgba(23,24,29,.93), rgba(11,12,16,.95)); box-shadow: 0 22px 60px rgba(0,0,0,.34); }
.discord-copy { padding: clamp(22px, 4vw, 36px); }
.discord-copy h2 { margin: 0 0 10px; font-size: clamp(34px, 5vw, 62px); line-height: .95; letter-spacing: -.055em; text-transform: uppercase; }
.discord-copy p { color: var(--rk-soft); }
.discord-widget { overflow: hidden; min-height: 420px; }
.discord-widget iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(.15) contrast(1.02); }
.discord-features, .discord-faq-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 18px; }
.discord-feature, .discord-faq-item { padding: 18px; }
.discord-feature h3, .discord-faq-item h4 { margin: 0 0 8px; color: #fff; }
.discord-feature p, .discord-faq-item p { color: var(--rk-soft); margin: 0; }
.lang-switch { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.lang-btn { min-height: 36px; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: #fff; font-weight: 900; cursor: pointer; }
.lang-btn[aria-pressed="true"] { background: rgba(239,27,34,.2); border-color: rgba(239,27,34,.42); }
#particles-js { opacity: .12; }

/* Loot table */
body.rk-page-loot .loot-meta-bar { width: min(var(--rk-container), calc(100% - 32px)); margin: 0 auto 16px; display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
body.rk-page-loot .controls { width: min(var(--rk-container), calc(100% - 32px)); margin: 0 auto 22px; padding: 16px !important; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; position: sticky; top: 92px; z-index: 50; backdrop-filter: blur(14px); }
body.rk-page-loot .controls input { flex: 1 1 260px; }
body.rk-page-loot .tabs { display: flex; gap: 8px; flex-wrap: wrap; }
body.rk-page-loot .tab, body.rk-page-loot #clearSearch { min-height: 44px; padding: 10px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.055); color: #fff; cursor: pointer; font-weight: 900; }
body.rk-page-loot .tab.active, body.rk-page-loot .tab:hover, body.rk-page-loot #clearSearch:hover { background: rgba(239,27,34,.18); border-color: rgba(239,27,34,.42); }
body.rk-page-loot main { width: min(var(--rk-container), calc(100% - 32px)); margin: 0 auto 76px; padding: 0; }
body.rk-page-loot .section { display: none; }
body.rk-page-loot .section.active { display: block; background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
body.rk-page-loot .grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
body.rk-page-loot .card { cursor: pointer; }
body.rk-page-loot .card-header { display: flex; gap: 14px; align-items: center; padding: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
body.rk-page-loot .card-header img { width: 58px; height: 58px; flex: 0 0 auto; object-fit: contain; border-radius: 14px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.12); }
body.rk-page-loot .title { color: #fff; font-size: 18px; font-weight: 950; }
body.rk-page-loot .badge-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
body.rk-page-loot .card-body { display: grid; gap: 12px; }
body.rk-page-loot .scrap-row, body.rk-page-loot .rarity-row, body.rk-page-loot .meta-row { display: flex; gap: 7px; flex-wrap: wrap; }
body.rk-page-loot .modal-items-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
body.rk-page-loot .item { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid rgba(255,255,255,.09); border-radius: 16px; background: rgba(255,255,255,.045); }
body.rk-page-loot .item img { width: 54px; height: 54px; object-fit: contain; }
body.rk-page-loot .item .name { color: #fff; font-weight: 850; }
body.rk-page-loot .item .amount { color: var(--rk-red); font-weight: 950; }
.modal-meta { display: grid; gap: 8px; margin-bottom: 14px; }
.meta-item { display: flex; justify-content: space-between; gap: 14px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.045); }
.meta-label { color: var(--rk-muted); }
.meta-value { color: #fff; font-weight: 850; }

.rk-section-footer { width: min(var(--rk-container), calc(100% - 32px)); margin: 0 auto; padding: 28px 0 46px; color: var(--rk-muted); }
.rk-section-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px dashed rgba(255,255,255,.12); }
.rk-section-footer img { width: 36px; height: 36px; object-fit: contain; opacity: .88; }
.rk-section-footer-brand { display: flex; align-items: center; gap: 10px; }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .rk-menu-btn { display: inline-block; }
  .rk-nav-links {
    position: absolute;
    left: 14px;
    right: 14px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 24px;
    background: rgba(8,9,12,.96);
    box-shadow: var(--rk-shadow);
  }
  .rk-nav-links.is-open { display: flex; }
  .rk-nav-links a { justify-content: flex-start; }
  .rk-section-hero { grid-template-columns: 1fr; }
  .rk-section-hero-card { justify-self: stretch; min-height: 190px; }
  body.rk-page-kits .rk-filters { grid-template-columns: 1fr; }
  .kit-header { grid-template-columns: 1fr; }
  .kit-header-meta { justify-content: flex-start; }
  .kit-body-inner { grid-template-columns: 1fr; }
  .discord-panel { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .rk-nav-inner { border-radius: 22px; }
  .rk-nav-text strong { font-size: 12px; }
  .rk-section-hero { margin-top: 20px; border-radius: 26px; }
  .rk-section-hero h1 { font-size: clamp(40px, 14vw, 64px); }
  .section-head, .rk-section-head { display: grid; align-items: start; }
  .toolbar, .rk-tools { width: 100%; }
  .toolbar > *, .rk-tools > * { flex: 1 1 100%; }
  .kit-header-left { align-items: flex-start; }
  .kit-image-wrapper { width: 64px; height: 64px; }
  body.rk-page-loot .controls { position: static; }
  .rk-section-footer-inner { flex-direction: column; align-items: flex-start; }
}


/* Rusty Kings V15 application footer links */
.rk-section-footer-links{display:flex;flex-wrap:wrap;gap:8px}.rk-section-footer-links a{padding:8px 11px;border-radius:999px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.095);color:#fff;font-size:12px;font-weight:900;text-decoration:none}.rk-section-footer-links a:hover{border-color:rgba(239,27,34,.32);background:rgba(239,27,34,.1)}
