/* =========================================================
  GLOBAL
  ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-dark: #050910;
  --bg-card: rgba(8, 16, 29, 0.88);
  --bg-card-soft: rgba(10, 18, 32, 0.94);
  --accent: #f5b63a;
  --accent-soft: rgba(245, 182, 58, 0.22);
  --accent-strong: #ffcf48;
  --danger: #e84b4b;
  --text-main: #f4f5ff;
  --text-muted: #9aa0b4;
  --border-soft: rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.75);
  --radius-lg: 18px;
  --radius-md: 10px;
  --radius-pill: 999px;
  --transition-fast: 0.15s ease-out;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text-main);
  background: #050910;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* =========================================================
  BACKGROUND (scrolling / fixed feel)
  ========================================================= */

/* Blurred game art background */
.bg-image {
  position: fixed;
  inset: 0;
  background: url("img/main-bg.jpg") center 20% / cover no-repeat;
  filter: blur(0px) brightness(0.55);
  z-index: -2;
}

/* =========================================================
  LAYOUT
  ========================================================= */

.page-main-simple {
  flex: 1;
  padding: 96px 16px 40px;
  max-width: 3000px;
  margin: 0 auto;
}

.main-card {
  width: 100%;
  max-width: 2000px;
}

/* =========================================================
  TOP BAR / NAV
  ========================================================= */

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(3, 6, 14, 0.94),
    rgba(3, 6, 14, 0.78)
  );
  border-bottom: 1px solid var(--border-soft);
}

/* Brand */

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 800;
  letter-spacing: 0.2em;
  font-size: 14px;
}

.brand-subtitle {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Main nav links */

.main-nav {
  display: flex;
  gap: 18px;
  font-size: 13px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link-active {
  color: #ffffff;
  border-bottom-color: var(--accent-strong);
}

/* Auth controls */

.auth {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.login-status {
  font-size: 12px;
  color: var(--text-muted);
}

/* =========================================================
  BUTTONS
  ========================================================= */

.btn {
  border: none;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast);
}

.btn-primary {
  background: radial-gradient(circle at top left, #ffd978, var(--accent));
  color: #1c1203;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 10px 25px rgba(0, 0, 0, 0.6);
}

.btn-primary:hover {
  background: radial-gradient(circle at top left, var(--accent-strong), #f5b63a);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}

.btn-secondary {
  background: rgba(21, 32, 54, 0.9);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-secondary:hover {
  background: rgba(32, 45, 75, 0.98);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-ghost:hover {
  color: var(--accent-strong);
  border-color: var(--accent-soft);
  background: rgba(10, 18, 32, 0.92);
  transform: translateY(-1px);
}

.btn-icon {
  width: 16px;
  height: 16px;
}

/* Small ghost button (chat close/minimize) */
.btn-ghost-small {
  padding: 4px 10px;
  font-size: 14px;
}

/* Small size utility for "Add character" etc. */
.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
}

/* Danger button (header Close) */
.btn-danger {
  background: #b22626;
  color: white;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  border: none;
}

.btn-danger:hover {
  background: #d23232;
}

/* =========================================================
  CARD
  ========================================================= */

.card {
  background: var(--bg-card-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  padding: 18px 20px 18px;
  backdrop-filter: blur(18px);
}

.card-header {
  margin-bottom: 14px;
}

.card-title {
  margin: 0 0 4px 0;
  font-size: 24px;
}

.card-subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* =========================================================
  HOMEPAGE WELCOME LAYOUT
  ========================================================= */

.account-area {
  margin-top: 18px;
}

.welcome-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 18px;
  margin-bottom: 18px;
}

@media (max-width: 800px) {
  .welcome-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.stat-box {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(6, 10, 20, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  margin-top: 4px;
}

.stat-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.welcome-text {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.welcome-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* =========================================================
  TABS (Account page: Profile / Characters / Coupons / Coins)
  ========================================================= */

.profile-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.addchar-box {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(8, 14, 26, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.form-row-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.addchar-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}

.tab-panel {
  margin-top: 8px;
}

/* Legacy char grid (if used somewhere else) */
.char-portrait-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.char-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(6, 12, 23, 0.96);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  color: var(--text-main);
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

.char-card:hover {
  background: rgba(10, 20, 35, 0.98);
  border-color: var(--accent-soft);
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.char-card-portrait {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at top, #ffd978, var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #1c1203;
  flex-shrink: 0;
}

.char-card-portrait::after {
  content: attr(data-initials);
}

.char-card-info {
  min-width: 0;
}

.char-card-name {
  font-size: 13px;
  font-weight: 600;
}

.char-card-meta {
  font-size: 11px;
  color: var(--text-muted);
}

/* ===== Character details (Raider.IO) ===== */

.char-details-panel {
  flex: 1;
}

.char-details-card {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(
      circle at top left,
      rgba(245, 182, 58, 0.06),
      transparent 55%
    ),
    rgba(5, 9, 18, 0.98);
  padding: 10px 12px;
  font-size: 13px;

  max-height: 340px;  /* ízlés szerint: 320–380 px között próbálgasd */
  overflow-y: auto;   /* ha hosszabb a content, bent scrollozik */
}

.char-details-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.char-details-portrait {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: rgba(12, 20, 36, 0.9);
  flex-shrink: 0;
}

.char-details-headinfo {
  min-width: 0;
}

.char-details-name {
  font-size: 15px;
  font-weight: 700;
}

.char-details-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.char-details-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.char-detail-pill {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(12, 20, 34, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
}

.char-detail-pill .label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-right: 4px;
}

.char-detail-pill .value {
  font-weight: 600;
}

.char-details-section {
  margin-bottom: 6px;
}

.char-details-section .section-title,
.char-detail-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.talent-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.talent-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(245, 182, 58, 0.1);
  border: 1px solid rgba(245, 182, 58, 0.35);
  font-size: 11px;
}

.char-details-footer {
  margin-top: 4px;
  font-size: 11px;
}

.char-details-footer a {
  color: var(--accent-strong);
  text-decoration: none;
}

.char-details-footer a:hover {
  text-decoration: underline;
}

.char-details-loading,
.char-details-error {
  font-size: 12px;
  color: var(--text-muted);
}

/* =========================================================
  FORMS / INPUTS
  ========================================================= */

.form {
  margin-top: 8px;
  margin-bottom: 10px;
}

.form-field {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.form-field span {
  display: block;
  margin-bottom: 3px;
}

.form input[type="text"] {
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(4, 8, 18, 0.94);
  color: var(--text-main);
  font-size: 13px;
  outline: none;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.form input[type="text"]::placeholder {
  color: rgba(151, 156, 178, 0.8);
}

.form input[type="text"]:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 1px rgba(245, 182, 58, 0.3);
  background: rgba(6, 12, 24, 0.98);
}

.muted {
  color: var(--text-muted);
  font-size: 11px;
}

.ticket-info {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: rgba(14, 24, 42, 0.96);
  border: 1px solid rgba(121, 188, 255, 0.25);
  font-size: 12px;
}

/* =========================================================
  CHAT BOX
  ========================================================= */

.chat-box {
  margin-top: 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(
      circle at top left,
      rgba(245, 182, 58, 0.04),
      transparent 55%
    ),
    rgba(3, 9, 20, 0.96);
  height: 260px;
  overflow-y: auto;
  padding: 10px 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(192, 164, 88, 0.8) rgba(10, 14, 25, 0.8);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chat-char-picker {
  margin-top: 4px;
}

.chat-char-picker select {
  width: 100%;
  padding: 6px 8px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(6, 12, 24, 0.96);
  color: var(--text-main);
  font-size: 13px;
}

/* Message form below chat */

.message-form {
  margin-top: 8px;
}

.message-row {
  display: flex;
  gap: 6px;
}

.message-row input[type="text"] {
  flex: 1;
}

.btn-send {
  padding-inline: 16px;
}

/* =========================================================
  ACCOUNT SECTION (profile / chars / coupons / coins)
  ========================================================= */

.profile-box {
  border-radius: var(--radius-md);
  padding: 10px 12px 12px;
  background: rgba(6, 12, 23, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-box h2 {
  margin: 0 0 8px 0;
  font-size: 18px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.profile-field {
  padding: 6px 8px;
  border-radius: var(--radius-md);
  background: rgba(10, 18, 32, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-field .label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.profile-field .value {
  font-size: 13px;
  font-weight: 600;
}

.profile-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.profile-column h3 {
  margin: 0 0 6px 0;
  font-size: 14px;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}

.list li {
  padding: 5px 7px;
  border-radius: 7px;
  background: rgba(10, 18, 32, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 4px;
}

.hint {
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: rgba(6, 10, 20, 0.95);
  border: 1px dashed rgba(255, 255, 255, 0.16);
}

/* ===== CHAT MODAL (Messenger-style widget) ===== */

.chat-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
}

/* full-screen container, but we dock the window to bottom-right */
.chat-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 16px 80px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease-out;
  z-index: 15;
}

.chat-modal-open {
  opacity: 1;
  pointer-events: auto;
}

/* transparent backdrop – only used for click-to-close, no dark overlay */
.chat-modal-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
}

/* actual chat card */
.chat-window {
  position: relative;
  width: min(380px, 100%);
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85);
  background: var(--bg-card-soft);
  z-index: 1;
}

.chat-window-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 16px 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-window-header .card-title {
  font-size: 18px;
  margin-bottom: 2px;
}

.chat-window-header .card-subtitle {
  font-size: 11px;
}

.chat-header-actions {
  display: flex;
  gap: 8px;
}

/* Make inner layout tight like a messenger popup */
.chat-window .form {
  margin-top: 6px;
  margin-bottom: 6px;
}

.chat-window .form-field {
  margin-bottom: 6px;
}

/* Ensure chat box scrolls nicely inside card */
.chat-window .chat-box {
  height: 230px;
  margin-top: 6px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: radial-gradient(
      circle at top left,
      rgba(245, 182, 58, 0.04),
      transparent 55%
    ),
    rgba(3, 9, 20, 0.96);
}

/* message input row at bottom */
.chat-window .message-form {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-window .message-row {
  gap: 6px;
}

/* ===== Chat quick-insert select ===== */

.quick-insert {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  font-size: 12px;
}

/* Label text */
.quick-insert .muted {
  display: block;
  margin-bottom: 4px;
}

/* Styled select */
.quick-select {
  width: 100%;
  padding: 8px 32px 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(4, 8, 18, 0.96);
  color: var(--text-main);
  font-size: 13px;
  outline: none;

  /* Remove native look */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* Smooth hover / focus */
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast),
    color var(--transition-fast);
}

.quick-select:hover {
  border-color: var(--accent-soft);
  background: rgba(6, 12, 24, 0.98);
}

.quick-select:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 1px rgba(245, 182, 58, 0.35);
}

/* Custom arrow */
.quick-insert::after {
  content: "▾";
  position: absolute;
  right: 12px;
  bottom: 12px;
  font-size: 10px;
  color: var(--text-muted);
  pointer-events: none;
}

/* =========================================================
  CHAT BUBBLES
  ========================================================= */

.msg {
  width: 100%;
  display: flex;
  flex-direction: column;
  font-size: 13px;
}

/* meta row above bubble */
.msg-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
  font-size: 11px;
}

.msg-meta .author {
  font-weight: 600;
}

.msg-meta .time {
  font-size: 10px;
  color: var(--text-muted);
}

/* actual bubble */
.msg-bubble {
  display: inline-block;
  padding: 7px 10px;
  border-radius: 16px;
  line-height: 1.35;
  word-wrap: break-word;
  max-width: 75%;
}

/* staff bubble – left side, dark/navy */
.msg-staff .msg-meta {
  justify-content: flex-start;
}

.msg-staff .msg-bubble {
  margin-right: auto;
  background: rgba(10, 18, 32, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-left-radius: 4px;
}

/* user bubble – right side, gold */
.msg-user .msg-meta {
  justify-content: flex-end;
}

.msg-user .msg-bubble {
  margin-left: auto;
  background: radial-gradient(circle at top left, #ffd978, var(--accent));
  color: #1c1203;
  border-bottom-right-radius: 4px;
}

/* system messages – centered thin line */
.msg-system {
  align-self: center;
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 6px 0;
}

.msg-system .msg-bubble {
  max-width: none;
  text-align: center;
}

/* ===== My Characters – RaiderIO / Portraid layout ===== */

.rio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 10px;
  margin-top: 8px;
  align-items: stretch;        /* két oszlop azonos magasságra húzva */
}

.rio-list-column,
.rio-detail-column {
  min-width: 0;
  display: flex;               /* hogy a panel ki tudja tölteni a magasságot */
}

/* left char list */

.rio-char-list .char-list-item,
.rio-char-list li {
  cursor: pointer;
  border-radius: 999px;
  padding: 6px 10px;
  margin-bottom: 6px;
  background: rgba(10, 18, 32, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition:
    background 0.15s ease-out,
    border-color 0.15s ease-out,
    transform 0.12s ease-out;
}

.rio-char-list .char-list-item:hover,
.rio-char-list li:hover {
  background: rgba(16, 26, 46, 0.98);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.rio-char-list .char-list-item-active {
  background: rgba(245, 182, 58, 0.16);
  border-color: rgba(245, 182, 58, 0.55);
}

.char-list-item {
  cursor: pointer;
}

.char-list-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.char-list-item.char-active {
  border-color: var(--accent-soft);
  background: rgba(245, 182, 58, 0.06);
}

/* right side basic */

.char-detail-placeholder {
  font-size: 13px;
  color: var(--text-muted);
}

.char-detail-layout h4 {
  margin: 0 0 2px;
}

.char-detail-stats {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  font-size: 12px;
}

.char-detail-stats .label {
  display: block;
  color: var(--text-muted);
}

.char-detail-stats .value {
  font-weight: 600;
}

.char-portrait {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  margin-right: 10px;
  object-fit: cover;
}

.char-detail-header {
  display: flex;
  align-items: center;
}

.char-detail-error {
  font-size: 13px;
}

.char-detail-section {
  margin-top: 10px;
}

/* ===== Best keys – DUNGEON / TIME / SCORE grid + pill UI ===== */

.char-detail-dungeon-header {
  display: grid;
  grid-template-columns: minmax(0, 2.6fr) minmax(0, 1.2fr) minmax(80px, 0.9fr);
  column-gap: 8px;
  margin-top: 6px;
  margin-bottom: 2px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.char-detail-dungeon-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
}

.char-detail-dungeon-row {
  display: grid;
  grid-template-columns: minmax(0, 2.6fr) minmax(0, 1.2fr) minmax(80px, 0.9fr);
  column-gap: 8px;
  align-items: center;
  padding: 3px 0;
}

/* left cell: +19 + dungeon name */

.char-detail-dungeon-main {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.dungeon-level-pill {
  padding: 2px 7px;
  border-radius: 999px;
  background: radial-gradient(circle at top left, #ffd978, var(--accent));
  color: #1c1203;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.dungeon-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* middle pill: time + timing text */

.dungeon-time-pill {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between; /* left: time, right: 'timed' */
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(10, 18, 32, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
}

.dungeon-time-pill .timing-text {
  color: var(--text-muted);
}

/* right pill: score – fully stretched cell, right-aligned numbers */

.dungeon-score-pill {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center; /* <-- EZT írd át flex-end-ről center-re */
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(245, 182, 58, 0.16);
  border: 1px solid rgba(245, 182, 58, 0.7);
}

.dungeon-score-pill-empty {
  opacity: 0.5;
}

/* Mobile: stack two lines */

@media (max-width: 640px) {
  .char-detail-dungeon-header {
    display: none;
  }

  .char-detail-dungeon-row {
    grid-template-columns: 1fr;
    row-gap: 4px;
    padding: 4px 0;
  }

  .char-detail-dungeon-main {
    margin-bottom: 2px;
  }

  .dungeon-time-pill,
  .dungeon-score-pill {
    width: auto;
  }

  .dungeon-score-pill {
    justify-content: flex-start;
  }
}

/* ===== Raid progression – pill layout ===== */

.char-detail-raid-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.char-detail-raid-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.raid-name-pill {
  flex: 1;
  min-width: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(10, 18, 32, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.raid-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 14, 26, 0.96);
  font-size: 11px;
  cursor: default;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.raid-pill-count {
  font-weight: 600;
}

/* subtle variants – Mythic a bit stronger */
.raid-pill-normal {
  border-color: var(--accent-soft);
  background: rgba(58, 201, 245, 0.12);
  color: var(--accent-strong);
}

.raid-pill-heroic {
  border-color: var(--accent-soft);
  background: rgba(245, 58, 220, 0.12);
  color: var(--accent-strong);
}

.raid-pill-mythic {
  border-color: var(--accent-soft);
  background: rgba(245, 182, 58, 0.12);
  color: var(--accent-strong);
}

/* optional hover lift */
.raid-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6);
}

/* Previous seasons */

.char-detail-season-list {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
}

/* right-side rio card */

.rio-details {
  height: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(6, 12, 23, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.rio-placeholder {
  font-size: 12px;
  color: var(--text-muted);
}

.rio-portrait-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: radial-gradient(
      circle at top,
      rgba(245, 182, 58, 0.2),
      transparent 60%
    ),
    rgba(4, 8, 18, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.rio-portrait-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.rio-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* stack columns on small screens */
@media (max-width: 768px) {
  .rio-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =========================================================
  FOOTER
  ========================================================= */

.footer {
  text-align: center;
  padding: 10px 0 18px;
  font-size: 11px;
  color: var(--text-muted);
  z-index: 1;
}

/* =========================================================
  MOBILE TWEAKS
  ========================================================= */

@media (max-width: 768px) {
  .chat-modal {
    padding: 0 8px 70px;
  }

  .chat-window {
    width: 85%;
    max-height: 75vh;
    border-radius: 18px;
  }

  .chat-fab {
    right: 12px;
    bottom: 12px;
  }

  .main-nav {
    display: none;
  }
}

/* ============================================
  Past Bookings – Clean equal-column layout
  ============================================ */

.bookings-list {
  margin-top: 10px;
}

.bookings-list li {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  padding: 10px 14px;
  background: var(--card-bg-dark);
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 14px;
}

.booking-event {
  font-weight: 600;
  color: #fff;
}

.booking-expansion {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

.booking-date {
  text-align: right;
  font-size: 13px;
  color: var(--text-muted);
}

#bookingsPagination {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

#bookingsPagination button {
  padding: 4px 10px;
}

.bookings-pagination {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 12px;
}

.bookings-page-info {
  color: var(--text-muted);
}

/* small general helper */
.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
}

/* nicer disabled buttons */
.btn[disabled] {
  opacity: 0.5;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.gear-list,
.keys-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
}

.gear-list li {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 8px;
  background: rgba(10, 18, 32, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 4px;
}

.gear-slot {
  text-transform: capitalize;
  color: var(--text-muted);
}

.gear-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gear-ilvl {
  font-weight: 600;
}

.keys-list li {
  padding: 3px 0;
}

/* ===== News etc. (rest unchanged) ===== */

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 16px;
  align-items: flex-start;
}

.news-list-box,
.news-detail-box {
  background: rgba(0, 0, 0, 0.5);
  padding: 12px;
  border-radius: 8px;
}

.news-list-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

.news-title-btn {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
}

.news-title-btn:hover {
  text-decoration: underline;
}

.news-date {
  font-size: 11px;
  color: var(--text-muted);
}

.news-detail-title {
  font-size: 18px;
  margin-bottom: 4px;
}

.news-detail-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.news-detail-body {
  font-size: 14px;
  line-height: 1.5;
  white-space: normal;
}

.news-admin {
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 16px;
}

/* News list */

.news-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-list-box {
  background: rgba(10, 10, 20, 0.8);
  border-radius: 12px;
  padding: 16px;
}

.news-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.news-list li {
  list-style: none;
}

.news-title-btn {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 14px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}

.news-title-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.news-title-btn:focus-visible {
  outline: 2px solid var(--accent, #ffb347);
  outline-offset: 2px;
}

/* News modal */

.news-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
}

.news-modal.open {
  display: block;
}

.news-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.news-modal-dialog {
  position: absolute;
  inset: 0;
  max-width: 640px;
  max-height: 80vh;
  margin: auto;
  background: rgba(15, 18, 30, 0.98);
  border-radius: 16px;
  padding: 20px 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
}

.news-modal-title {
  font-size: 18px;
  margin: 0 0 8px;
}

.news-modal-body {
  font-size: 14px;
  line-height: 1.6;
  overflow-y: auto;
  padding-right: 4px;
}

.news-modal-body p {
  margin: 0 0 8px;
}

.news-modal-body ul,
.news-modal-body ol {
  margin: 0 0 8px 20px;
}

.news-modal-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 8px 0;
}

.news-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  color: #888;
  font-size: 18px;
  cursor: pointer;
}

.news-modal-close:hover {
  color: #fff;
}

/* News admin / editor */

.news-editor-wrapper {
  margin-top: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 10, 24, 0.9);
  overflow: hidden;
}

.news-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.news-editor-toolbar button {
  border: none;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}

.news-editor-toolbar button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.toolbar-separator {
  width: 1px;
  align-self: stretch;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 4px;
}

.news-editor {
  min-height: 200px;
  max-height: 400px;
  padding: 10px 12px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.6;
}

.news-editor:empty::before {
  content: "Write your announcement here…";
  color: var(--text-muted, #888);
}

/* News cards */

.news-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-card {
  border-radius: 8px;
  background: rgba(15, 19, 30, 0.95);
  overflow: hidden;
  position: relative;
}

.news-card-link {
  display: flex;
  gap: 16px;
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
  align-items: center;
}

.news-card-link:hover {
  background: rgba(32, 40, 60, 0.95);
}

.news-card-image-wrapper {
  flex: 0 0 96px;
  height: 96px;
  border-radius: 6px;
  overflow: hidden;
  background: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-image-placeholder {
  font-size: 12px;
  text-transform: uppercase;
  opacity: 0.7;
}

.news-card-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.news-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.news-card-summary {
  font-size: 0.9rem;
  color: #d1d5db;
  margin: 0;
}

.news-card-meta {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 4px;
}

/* Article page */

.article-page {
  max-width: 900px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 20px;
}

.article-cover-wrapper {
  margin-bottom: 16px;
  border-radius: 10px;
  overflow: hidden;
}

.article-cover {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.article-title {
  font-size: 1.6rem;
  margin: 0 0 4px;
}

.article-meta {
  font-size: 0.8rem;
  color: #9ca3af;
}

.article-body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e5e7eb;
}

.article-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 12px auto;
}

/* News admin layout */

.news-admin-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-admin-top {
  display: flex;
  gap: 20px;
  align-items: stretch;
  flex-wrap: wrap;
}

.news-admin-cover {
  flex: 0 0 180px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-admin-cover-preview {
  width: 180px;
  height: 180px;
  border-radius: 8px;
  background: #0b1120;
  border: 1px solid #1f2937;
  display: none;
  object-fit: cover;
}

.news-admin-top-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-admin-editor {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #1f2937;
  background: #020617;
}

.editor-toolbar {
  display: flex;
  gap: 4px;
  padding: 6px 8px;
  border-bottom: 1px solid #1f2937;
  background: #020617;
}

.editor-toolbar button {
  font-size: 0.8rem;
  padding: 4px 6px;
  border-radius: 4px;
  border: none;
  background: #111827;
  color: #e5e7eb;
  cursor: pointer;
}

.editor-toolbar button:hover {
  background: #1f2937;
}

.editor-body {
  min-height: 260px;
  padding: 10px 12px;
  outline: none;
  overflow-y: auto;
}

.editor-body:empty:before {
  content: attr(placeholder);
  color: #6b7280;
}

.news-admin-actions {
  display: flex;
  justify-content: flex-end;
}

.news-card-error {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(60, 10, 10, 0.9);
  border: 1px solid rgba(255, 120, 120, 0.6);
  font-size: 0.9rem;
}

.article-container {
  max-width: 900px;
  margin: 0 auto;
}

.news-column-card {
  min-width: 0;
}

.news-column-title {
  font-size: 1.05rem;
  font-weight: 600;
}

.news-column-subtitle {
  font-size: 0.8rem;
  opacity: 0.8;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.news-source-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-source-logo {
  height: 26px;
  width: auto;
  object-fit: contain;
}

.news-column-card {
  padding-top: 14px;
}

.news-column-header {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 8px;
}

.news-source-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-column-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
}

.news-column-logo img {
  max-height: 40px;
  width: auto;
  opacity: 0.9;
}

/* NEWS LAYOUT – FINAL OVERRIDES */

.news-columns-wrap {
  max-width: 2000px;
  margin: 16px auto 0;
}

.news-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* Admin buttons on news cards */

.news-admin-controls {
  position: absolute;
  top: 8px;
  right: 8px;
  display: none;
  gap: 6px;
  z-index: 5;
}

html[data-is-admin="1"] .news-admin-controls {
  display: flex;
}

.news-admin-btn {
  border: none;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  transition: background 0.15s ease, transform 0.1s ease;
}

.news-edit-btn {
  background: rgba(52, 152, 219, 0.85);
}

.news-delete-btn {
  background: rgba(231, 76, 60, 0.85);
}

.news-admin-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  transform: translateY(-1px);
}

/* Mobil menü */

.mobile-menu-toggle {
  display: none;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 22px;
  padding: 4px 8px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
}

.mobile-menu-link,
.mobile-menu-button {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--text-main);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
}

.mobile-menu-link:hover,
.mobile-menu-button:hover {
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-menu {
    position: fixed;
    top: 60px;
    right: 12px;
    left: 12px;
    background: rgba(5, 9, 18, 0.98);
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    padding: 10px 12px;
    display: none;
    flex-direction: column;
    gap: 6px;
    z-index: 20;
  }

  .mobile-menu.mobile-menu-open {
    display: flex;
  }
}

@media (max-width: 768px) {
  #navAccountLink,
  #accountButton,
  #logoutButton,
  #loginButton {
    display: none !important;
  }
}

/* Account tabs */

.tab-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Coins tab kikerült */
  width: 100%;
  padding: 8px;
  border-radius: var(--radius-pill);
  background: rgba(7, 12, 22, 0.96);
  border: 1px solid var(--border-soft);
  margin: 18px 0 16px;
}

.tab-button {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: center;
  white-space: nowrap;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.tab-button:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.tab-button.tab-active {
  background: radial-gradient(circle at top left, #ffd978, var(--accent));
  color: #1c1203;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.8);
  transform: none;
}

.about-link {
  color: var(--accent-strong);
  font-weight: 600;
  text-decoration: none;
}

.about-link:hover {
  text-decoration: underline;
}

/* ===== SHOP – category grid (Dungeons / Raids / PvP / Special) ===== */





/* ===== M+ product form – modern look ===== */

.mplus-form {
  margin-top: 8px;
  padding: 12px 12px 4px;
  border-radius: var(--radius-md);
  background: rgba(6, 12, 23, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Select kinézet: ugyanaz a vibe, mint a chat / input mezők */

.form select {
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(4, 8, 18, 0.94);
  color: var(--text-main);
  font-size: 13px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast),
    color var(--transition-fast);
}

.form select:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 1px rgba(245, 182, 58, 0.3);
  background: rgba(6, 12, 24, 0.98);
}

.form select:hover {
  border-color: var(--accent-soft);
}

/* Textarea – ugyanaz a stílus, ne inline legyen */

.textarea-modern {
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(4, 8, 18, 0.94);
  color: var(--text-main);
  font-size: 13px;
  resize: vertical;
  outline: none;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.textarea-modern:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 1px rgba(245, 182, 58, 0.3);
  background: rgba(6, 12, 24, 0.98);
}

/* Dungeon rows – Run 1/Run 2 label + select */

#dungeonContainer {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dungeon-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}

.dungeon-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
}

/* Mobile: dungeon label fölé menjen a select */

@media (max-width: 600px) {
  .dungeon-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .dungeon-label {
    margin-bottom: 2px;
  }
}

/* Mythic+ multi-run layout */

.mplus-form .form-row-2col.mplus-run-grid {
  align-items: flex-start;
}

/* a Key/Dungeon oszlopokban a sorok egymás alatt */
.mplus-run-col-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* egy sor: RUN label + select – mindkét oldalon ugyanilyen */
.mplus-run-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

/* RUN 1 / RUN 2 label */
.mplus-run-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* a selectek szélessége/magassága egyezzen */
.mplus-run-select {
  width: 100%;
  height: 36px;
  border-radius: var(--radius-pill);
}

.textarea-modern {
  width: 100%;
  min-height: 80px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(4, 8, 18, 0.94);
  color: var(--text-main);
  font-size: 13px;
  resize: vertical;
}


/* ===== SHOP – category grid (restored size) ===== */

.shop-category-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* original size */
  gap: 16px;
}

.shop-category-card {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  background: rgba(6, 12, 23, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
  transition:
    transform 0.16s ease-out,
    box-shadow 0.16s ease-out,
    border-color 0.16s ease-out,
    background 0.16s ease-out;
}

.shop-category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.9);
  border-color: rgba(245, 182, 58, 0.6);
}

/* === original square size === */
.shop-category-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
}

/* ===== TEXT ON IMAGE ===== */
.shop-category-label {
  position: absolute;
  left: 50%;
  bottom: 14px; /* distance from bottom */
  transform: translateX(-50%);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 14px rgba(0,0,0,0.9), 0 0 4px rgba(0,0,0,0.7);
  pointer-events: none;
  z-index: 5;
  text-align: center;
  white-space: nowrap;
}

/* ----------------------------
   DUNGEONS — inactive → active
   ---------------------------- */
.dungeons-card .shop-category-image {
  background-image: url("img/shop-dungeons-inactive.png");
}

.dungeons-card .shop-category-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("img/shop-dungeons.png");
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.35s ease-out;
}

.dungeons-card:hover .shop-category-image::after {
  opacity: 1;
}

.raids-card .shop-category-image {
  background-image: url("img/shop-raids-inactive.png");
}

.raids-card .shop-category-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("img/shop-raids.png");
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.35s ease-out;
}

.raids-card:hover .shop-category-image::after {
  opacity: 1;
}

.special-card .shop-category-image {
  background-image: url("img/shop-special-inactive.png");
}

.special-card .shop-category-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("img/shop-special.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.35s ease-out;
}

.special-card:hover .shop-category-image::after {
  opacity: 1;
}