/* ============================================================
 * 3Server Manager — modern MMORPG theme overlay
 * Layered on top of manager.css to refresh the look & feel
 * ============================================================ */

:root {
  --mmo-bg-1: #050a14;
  --mmo-bg-2: #0a1628;
  --mmo-bg-3: #0e2138;
  --mmo-gold: #d9a441;
  --mmo-gold-soft: #f0c36b;
  --mmo-cyan: #5fb6ff;
  --mmo-accent: #135997;
  --mmo-panel: rgba(14, 24, 42, 0.72);
  --mmo-panel-hover: rgba(19, 89, 151, 0.55);
  --mmo-border: rgba(217, 164, 65, 0.35);
  --mmo-border-strong: rgba(217, 164, 65, 0.7);
  --mmo-text-soft: #c8d3e2;
}

/* Background: dark fantasy gradient + subtle vignette over the existing image */
body.landing-page {
  background-color: var(--mmo-bg-1);
  background-image:
    radial-gradient(ellipse at top, rgba(19, 89, 151, 0.35), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(217, 164, 65, 0.12), transparent 65%),
    linear-gradient(180deg, rgba(5, 10, 20, 0.85) 0%, rgba(5, 10, 20, 0.92) 100%),
    url(../img/login.jpg);
  background-size: cover, cover, cover, cover;
  background-position: center;
  background-attachment: fixed;
}

body.landing-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 10%, rgba(95, 182, 255, 0.08), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(217, 164, 65, 0.08), transparent 45%);
  z-index: 0;
}

.wrapper, .page-header, footer.footer { position: relative; z-index: 1; }

/* Sticky footer — keep the footer at the viewport bottom on short pages.
   The navbar is `position: fixed` (Bootstrap .fixed-top) and stays out of flow. */
body.landing-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.landing-page > .wrapper,
body.landing-page > .page-header,
body.landing-page > .auth-shell {
  flex: 1 0 auto;
}
body.landing-page > footer.footer {
  flex-shrink: 0;
  margin-top: auto;
}

/* Headings — ornate fantasy face */
h1, h2, h3, h4, .navbar-brand, .card-menu p {
  font-family: "Cinzel", "Montserrat", serif;
  letter-spacing: 0.02em;
}

/* Navbar — translucent blurred panel (top of page / .navbar-transparent state) */
.navbar.bg-primary.navbar-transparent,
.navbar.navbar-transparent {
  background-color: rgba(8, 16, 30, 0.55) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mmo-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

/* Scrolled state — Now UI Kit removes .navbar-transparent after scrolling past
   `color-on-scroll`, leaving the raw .bg-primary blue. Re-theme it to match. */
.navbar.bg-primary {
  background-color: rgba(8, 16, 30, 0.92) !important;
  background-image: linear-gradient(180deg, rgba(14, 33, 56, 0.95), rgba(5, 10, 20, 0.95)) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mmo-border);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
}

.navbar .navbar-brand { color: var(--mmo-gold-soft) !important; font-weight: 600; }
.navbar .navbar-brand .badge-pill.badge-danger {
  background: linear-gradient(135deg, #c0392b, #7a1a12);
  box-shadow: 0 0 12px rgba(192, 57, 43, 0.55);
  padding: 0.4em 0.7em;
  letter-spacing: 0.04em;
}

.navbar .nav-link { color: var(--mmo-text-soft) !important; transition: color 0.25s, text-shadow 0.25s; }
.navbar .nav-link:hover, .navbar .nav-link:focus {
  color: var(--mmo-gold-soft) !important;
  text-shadow: 0 0 8px rgba(217, 164, 65, 0.7);
}
.navbar .nav-link .fa-star { filter: drop-shadow(0 0 6px rgba(217, 164, 65, 0.9)); }

/* Menu cards — glassmorphism with golden trim */
.card-menu {
  background: linear-gradient(160deg, rgba(19, 35, 60, 0.72), rgba(8, 16, 30, 0.78));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--mmo-border);
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.card-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(217, 164, 65, 0.12) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.card-menu:hover {
  background: linear-gradient(160deg, rgba(19, 89, 151, 0.55), rgba(8, 16, 30, 0.85));
  border-color: var(--mmo-border-strong);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.6), 0 0 24px rgba(217, 164, 65, 0.25);
  transform: translateY(-4px);
}
.card-menu:hover::before { transform: translateX(100%); }

.card-menu .card-body i {
  color: var(--mmo-gold-soft);
  filter: drop-shadow(0 0 10px rgba(217, 164, 65, 0.35));
  transition: color 0.3s, filter 0.3s, transform 0.3s;
}
.card-menu:hover .card-body i {
  color: #ffe2a3;
  filter: drop-shadow(0 0 14px rgba(255, 226, 163, 0.85));
  transform: scale(1.05);
}
.card-menu p { color: #eef2f9; text-transform: uppercase; font-size: 14px; }

/* Buttons — slightly bolder, with subtle glow on primary */
.btn { border-radius: 8px; letter-spacing: 0.03em; }
.btn-primary { box-shadow: 0 4px 14px rgba(19, 89, 151, 0.45); }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(95, 182, 255, 0.55); }
.btn-neutral { background: var(--mmo-gold); color: #1a1208; }
.btn-neutral:hover { background: var(--mmo-gold-soft); color: #1a1208; box-shadow: 0 6px 20px rgba(217, 164, 65, 0.55); }

/* Alerts — dark glass panels with colored rune-edge + soft glow.
   Two-class selectors override manager.css's tinted variants. */
.alert {
  background-color: transparent;
  background-image: linear-gradient(135deg, rgba(14, 24, 42, 0.88), rgba(8, 16, 30, 0.92));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--mmo-border);
  border-left: 4px solid var(--mmo-gold);
  color: #eef2f9;
  border-radius: 10px;
  padding: 1rem 1.1rem;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}
.alert::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 0% 50%, rgba(217, 164, 65, 0.10), transparent 55%);
}
.alert p.font-weight-bold,
.alert strong { color: var(--mmo-gold-soft); text-shadow: 0 0 10px rgba(217, 164, 65, 0.35); }
.alert .alert-link, .alert a { color: var(--mmo-gold-soft); }

.alert.alert-info,
.alert.alert-primary {
  background-image: linear-gradient(135deg, rgba(11, 37, 66, 0.92), rgba(8, 16, 30, 0.92));
  border-left-color: var(--mmo-cyan);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(95, 182, 255, 0.08), 0 0 24px rgba(95, 182, 255, 0.10);
}
.alert.alert-info p.font-weight-bold,
.alert.alert-primary p.font-weight-bold,
.alert.alert-info strong,
.alert.alert-primary strong { color: #b8dbff; text-shadow: 0 0 10px rgba(95, 182, 255, 0.45); }

.alert.alert-success {
  background-image: linear-gradient(135deg, rgba(12, 46, 24, 0.92), rgba(8, 22, 14, 0.92));
  border-left-color: #4caf50;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(76, 175, 80, 0.10), 0 0 24px rgba(76, 175, 80, 0.10);
}
.alert.alert-success p.font-weight-bold,
.alert.alert-success strong { color: #b5e8b8; text-shadow: 0 0 10px rgba(76, 175, 80, 0.45); }

.alert.alert-warning {
  background-image: linear-gradient(135deg, rgba(64, 36, 8, 0.92), rgba(26, 14, 4, 0.92));
  border-left-color: var(--mmo-gold);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(217, 164, 65, 0.15), 0 0 24px rgba(217, 164, 65, 0.12);
}
.alert.alert-warning p.font-weight-bold,
.alert.alert-warning strong { color: var(--mmo-gold-soft); }

.alert.alert-danger {
  background-image: linear-gradient(135deg, rgba(66, 14, 14, 0.92), rgba(26, 6, 6, 0.92));
  border-left-color: #e15a5a;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(225, 90, 90, 0.10), 0 0 24px rgba(225, 90, 90, 0.12);
}
.alert.alert-danger p.font-weight-bold,
.alert.alert-danger strong { color: #ffb3b3; text-shadow: 0 0 10px rgba(225, 90, 90, 0.45); }

.alert i.fa, .alert i.now-ui-icons { filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.25)); }

/* ============================================================
 * Content cards (Account info, forms, panels…)
 * ============================================================ */
.card {
  background-color: transparent;
  background-image: linear-gradient(160deg, rgba(19, 35, 60, 0.78), rgba(8, 16, 30, 0.85));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--mmo-border);
  border-radius: 12px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: #eef2f9;
  overflow: hidden;
}

/* Don't double-frame menu tiles */
.card.card-menu { background-image: linear-gradient(160deg, rgba(19, 35, 60, 0.72), rgba(8, 16, 30, 0.78)); }

/* `.bg-white` cards become themed dark glass with brighter trim */
.card.bg-white {
  background-image: linear-gradient(160deg, rgba(22, 42, 70, 0.82), rgba(10, 20, 38, 0.9));
  border-color: var(--mmo-border-strong);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(217, 164, 65, 0.10);
}

.card .card-header {
  background-color: transparent;
  padding: 18px 22px 14px 22px;
  border-bottom: 1px solid var(--mmo-border);
  position: relative;
}
.card .card-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mmo-gold), transparent);
  opacity: 0.6;
}

.card .card-header.bg-primary {
  background-image: linear-gradient(90deg, rgba(8, 16, 30, 0.4) 0%, rgba(19, 89, 151, 0.85) 50%, rgba(8, 16, 30, 0.4) 100%);
  border-bottom: 1px solid var(--mmo-border-strong);
}

.card .card-title,
.card-header .card-title {
  font-family: "Cinzel", "Montserrat", serif;
  letter-spacing: 0.06em;
  color: var(--mmo-gold-soft);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6), 0 0 14px rgba(217, 164, 65, 0.35);
  text-transform: uppercase;
  margin: 0;
}
.card .card-header.bg-primary .card-title { color: #ffffff; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6), 0 0 14px rgba(95, 182, 255, 0.45); }

.card .card-body { padding: 1.25rem 1.5rem; color: #e6ecf5; }
.card .card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--mmo-border); margin-top: 0; }

/* ============================================================
 * Badges — labels (primary) vs values (secondary) for info rows
 * ============================================================ */
.badge {
  border-radius: 6px;
  padding: 6px 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}

.badge-primary, .badge-primary[href]:focus, .badge-primary[href]:hover {
  background-color: transparent;
  background-image: linear-gradient(135deg, rgba(19, 89, 151, 0.95), rgba(11, 54, 92, 0.95));
  border-color: rgba(95, 182, 255, 0.45);
  color: #e8f2ff;
  box-shadow: 0 2px 8px rgba(19, 89, 151, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.badge-secondary, .badge-secondary[href]:focus, .badge-secondary[href]:hover {
  background-color: transparent;
  background-image: linear-gradient(135deg, rgba(30, 44, 66, 0.9), rgba(14, 24, 42, 0.9));
  border-color: var(--mmo-border);
  color: var(--mmo-gold-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.badge-default, .badge-default[href]:focus, .badge-default[href]:hover {
  background-color: transparent;
  background-image: linear-gradient(135deg, rgba(80, 92, 110, 0.85), rgba(48, 56, 70, 0.9));
  border-color: rgba(180, 190, 205, 0.25);
  color: #d6dde8;
}

.badge-success, .badge-success[href]:focus, .badge-success[href]:hover {
  background-image: linear-gradient(135deg, #2e8b35, #1a5a20);
  border-color: rgba(76, 175, 80, 0.55);
  box-shadow: 0 0 12px rgba(76, 175, 80, 0.35);
}

.badge-danger, .badge-danger[href]:focus, .badge-danger[href]:hover {
  background-image: linear-gradient(135deg, #c0392b, #7a1a12);
  border-color: rgba(225, 90, 90, 0.5);
  box-shadow: 0 0 12px rgba(192, 57, 43, 0.35);
}

.badge-warning, .badge-warning[href]:focus, .badge-warning[href]:hover {
  background-image: linear-gradient(135deg, #d9a441, #8a5a14);
  border-color: rgba(217, 164, 65, 0.55);
  color: #1a1208;
  box-shadow: 0 0 12px rgba(217, 164, 65, 0.35);
}

.badge-info, .badge-info[href]:focus, .badge-info[href]:hover {
  background-image: linear-gradient(135deg, #2CA8FF, #135997);
  border-color: rgba(95, 182, 255, 0.55);
  box-shadow: 0 0 12px rgba(95, 182, 255, 0.30);
}

/* ============================================================
 * Info sheet — shared fantasy info panel (character + account)
 * ============================================================ */
.info-sheet .info-header {
  padding: 22px 26px;
  background-image: linear-gradient(90deg, rgba(8, 16, 30, 0.4) 0%, rgba(19, 89, 151, 0.65) 50%, rgba(8, 16, 30, 0.4) 100%);
  border-bottom: 1px solid var(--mmo-border-strong);
  position: relative;
  text-align: center;
}
.info-sheet .info-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mmo-gold), transparent);
  opacity: 0.85;
}

.info-sheet .character-name {
  font-family: "Cinzel", "Montserrat", serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.7), 0 0 18px rgba(95, 182, 255, 0.45), 0 0 28px rgba(217, 164, 65, 0.25);
  margin: 0;
  line-height: 1.1;
}

.info-sheet .info-title {
  font-family: "Cinzel", "Montserrat", serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffe7b0;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.65), 0 0 14px rgba(217, 164, 65, 0.35);
  margin: 0;
  line-height: 1.2;
}

.info-sheet .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Cinzel", "Montserrat", serif;
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid;
  text-transform: uppercase;
}
.info-sheet .status-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.info-sheet .status-pill.status-online {
  color: #b5e8b8;
  border-color: rgba(76, 175, 80, 0.6);
  background: linear-gradient(135deg, rgba(46, 139, 53, 0.35), rgba(26, 90, 32, 0.45));
  box-shadow: 0 0 16px rgba(76, 175, 80, 0.35);
}
.info-sheet .status-pill.status-online .dot {
  background: #6cdf72;
  box-shadow: 0 0 8px #6cdf72, 0 0 14px rgba(108, 223, 114, 0.75);
  animation: mmo-pulse 1.8s ease-in-out infinite;
}
.info-sheet .status-pill.status-offline {
  color: #b8c2d1;
  border-color: rgba(180, 190, 205, 0.3);
  background: linear-gradient(135deg, rgba(40, 50, 66, 0.6), rgba(20, 28, 42, 0.7));
}
.info-sheet .status-pill.status-offline .dot {
  background: #8893a5;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.5);
}
.info-sheet .status-pill.status-danger {
  color: #f7c8c8;
  border-color: rgba(220, 60, 60, 0.65);
  background: linear-gradient(135deg, rgba(140, 25, 30, 0.45), rgba(80, 12, 18, 0.6));
  box-shadow: 0 0 16px rgba(220, 60, 60, 0.4);
}
.info-sheet .status-pill.status-danger .dot {
  background: #ff5d5d;
  box-shadow: 0 0 8px #ff5d5d, 0 0 14px rgba(255, 93, 93, 0.75);
  animation: mmo-pulse 1.4s ease-in-out infinite;
}
.info-sheet .status-pill.status-safe {
  color: #c6d4c8;
  border-color: rgba(120, 160, 130, 0.35);
  background: linear-gradient(135deg, rgba(34, 52, 42, 0.6), rgba(18, 28, 24, 0.7));
}
.info-sheet .status-pill.status-safe .dot {
  background: #7fa888;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.5);
}
.info-sheet .status-pill.status-vip-on {
  color: #ffe7b0;
  border-color: rgba(217, 164, 65, 0.7);
  background: linear-gradient(135deg, rgba(120, 80, 25, 0.45), rgba(70, 45, 15, 0.6));
  box-shadow: 0 0 18px rgba(217, 164, 65, 0.45);
}
.info-sheet .status-pill.status-vip-on .dot {
  background: #f4cc6a;
  box-shadow: 0 0 8px #f4cc6a, 0 0 14px rgba(244, 204, 106, 0.7);
  animation: mmo-pulse 2.2s ease-in-out infinite;
}
.info-sheet .status-pill.status-vip-off {
  color: #8893a5;
  border-color: rgba(120, 130, 145, 0.3);
  background: linear-gradient(135deg, rgba(30, 38, 52, 0.6), rgba(15, 22, 32, 0.7));
}
.info-sheet .status-pill.status-vip-off .dot {
  background: #5a6477;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.5);
}
.info-sheet .status-pill.status-credits {
  color: #ffe7b0;
  border-color: rgba(217, 164, 65, 0.55);
  background: linear-gradient(135deg, rgba(60, 42, 18, 0.55), rgba(30, 20, 10, 0.7));
  box-shadow: inset 0 0 12px rgba(217, 164, 65, 0.15), 0 2px 6px rgba(0, 0, 0, 0.3);
  padding: 7px 16px;
}
.info-sheet .status-pill.status-credits .balance {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
}
.info-sheet .status-pill.status-credits .ra,
.info-sheet .status-pill.status-credits .fa {
  color: #f4cc6a;
  filter: drop-shadow(0 0 6px rgba(244, 204, 106, 0.55));
}

.info-sheet .status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 26px 0;
}

@keyframes mmo-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}

.info-sheet .stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 22px 26px 24px;
}
@media (max-width: 991px) { .info-sheet .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .info-sheet .stat-grid { grid-template-columns: 1fr; } }

.info-sheet .stat {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background-image: linear-gradient(160deg, rgba(22, 38, 62, 0.7), rgba(10, 20, 38, 0.78));
  border: 1px solid var(--mmo-border);
  border-left: 3px solid var(--mmo-gold);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.info-sheet .stat:hover {
  border-color: var(--mmo-border-strong);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 16px rgba(217, 164, 65, 0.12);
}
.info-sheet .stat.stat-wide { grid-column: span 2; }
@media (max-width: 575px) { .info-sheet .stat.stat-wide { grid-column: span 1; } }

.info-sheet .stat-icon {
  font-size: 1.9rem;
  line-height: 1;
  color: var(--mmo-gold-soft);
  filter: drop-shadow(0 0 8px rgba(217, 164, 65, 0.35));
  width: 38px;
  text-align: center;
}
.info-sheet .stat-text { min-width: 0; }
.info-sheet .stat-label {
  font-family: "Cinzel", "Montserrat", serif;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mmo-text-soft);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.info-sheet .stat-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.25;
  word-break: break-word;
}
.info-sheet .stat-value .ra,
.info-sheet .stat-value .fa { margin-right: 4px; }

/* ============================================================
 * Info form — fantasy form treatment inside .info-sheet
 * (scoped to avoid affecting legacy forms elsewhere)
 * ============================================================ */
.info-sheet .info-form {
  padding: 22px 26px 26px;
}
.info-sheet .info-form .form-group.row {
  flex-direction: column;
  margin-bottom: 18px;
}
.info-sheet .info-form .form-group.row > [class*="col-"] {
  max-width: 100%;
  flex: 0 0 100%;
  padding-left: 0;
  padding-right: 0;
}
.info-sheet .info-form .col-form-label,
.info-sheet .info-form label {
  font-family: "Cinzel", "Montserrat", serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mmo-gold-soft);
  text-align: left;
  padding: 0 0 6px;
  line-height: 1.2;
  white-space: normal;
}
.info-sheet .info-form .form-control {
  background-color: rgba(8, 16, 30, 0.55);
  border: 1px solid var(--mmo-border) !important;
  border-radius: 8px !important;
  color: #ffffff;
  padding: 10px 14px;
  font-size: 0.95rem;
  line-height: 1.4;
  height: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.info-sheet .info-form .form-control:focus {
  background-color: rgba(8, 16, 30, 0.75);
  border-color: rgba(217, 164, 65, 0.7) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 3px rgba(217, 164, 65, 0.15), 0 0 16px rgba(217, 164, 65, 0.2);
  color: #ffffff;
}
.info-sheet .info-form .form-control::placeholder {
  color: rgba(180, 195, 215, 0.45);
}
.info-sheet .info-form textarea.form-control {
  min-height: 150px;
  resize: vertical;
}
.info-sheet .info-form select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--mmo-gold-soft) 50%), linear-gradient(135deg, var(--mmo-gold-soft) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.info-sheet .info-form select.form-control option {
  background-color: #0a1426;
  color: #ffffff;
}
.info-sheet .info-form .invalid-feedback,
.info-sheet .info-form .form-error-message,
.info-sheet .info-form .form-text {
  color: #f7c1c1;
  font-size: 0.85rem;
  margin-top: 6px;
  letter-spacing: 0.02em;
}

.info-sheet .info-form button[type="submit"],
.info-sheet .info-form input[type="submit"] {
  width: 100%;
  margin-top: 8px;
  padding: 12px 18px;
  font-family: "Cinzel", "Montserrat", serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #1a1208 !important;
  background: linear-gradient(180deg, #f0c878 0%, #d9a441 100%) !important;
  border: 1px solid rgba(217, 164, 65, 0.85) !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 14px rgba(217, 164, 65, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: box-shadow 0.25s ease, transform 0.15s ease, background 0.25s ease;
}
.info-sheet .info-form button[type="submit"]:hover,
.info-sheet .info-form input[type="submit"]:hover {
  background: linear-gradient(180deg, #f7d590 0%, #e8b754 100%) !important;
  box-shadow: 0 6px 22px rgba(217, 164, 65, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transform: translateY(-1px);
  color: #1a1208 !important;
}
.info-sheet .info-form button[type="submit"]:focus,
.info-sheet .info-form input[type="submit"]:focus {
  outline: none;
  box-shadow: 0 6px 22px rgba(217, 164, 65, 0.55), 0 0 0 3px rgba(217, 164, 65, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}


/* Footer — refined */
.footer {
  background: linear-gradient(180deg, transparent, rgba(5, 10, 20, 0.7));
  border-top: 1px solid var(--mmo-border);
}
.footer nav ul li a { color: var(--mmo-text-soft); transition: color 0.25s; }
.footer nav ul li a:hover { color: var(--mmo-gold-soft); }

/* Modal — themed */
.modal-content {
  background: linear-gradient(160deg, #0e2138, #050a14);
  border: 1px solid var(--mmo-border);
  color: #eef2f9;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}
.modal-profile { background: rgba(217, 164, 65, 0.12); border: 1px solid var(--mmo-border); }

/* Mobile sidebar panel — opaque dark glass with golden trim */

/* ID-based rule (specificity 1,0,0) to guarantee the sidebar is never transparent */
#navigation {
  background-color: #0a1628;
  background-image: linear-gradient(180deg, #0e2138 0%, #050a14 100%);
}

@media (max-width: 991px) {
  /* Keep the ID rule here too with !important for the mobile sidebar open state */
  #navigation,
  .sidebar-collapse .navbar-collapse,
  .sidebar-collapse .navbar-collapse.has-image,
  .navbar .navbar-collapse {
    background: #0a1628 !important;
    background-color: #0a1628 !important;
    background-image: linear-gradient(180deg, #0e2138 0%, #050a14 100%) !important;
    background-size: auto !important;
    border-left: 1px solid var(--mmo-border-strong);
    border-bottom: 1px solid var(--mmo-border-strong);
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.6);
    padding-bottom: 20px !important;
  }
  .sidebar-collapse .navbar-collapse::before {
    background: radial-gradient(ellipse at top right, rgba(19, 89, 151, 0.35), transparent 60%),
                radial-gradient(ellipse at bottom left, rgba(217, 164, 65, 0.10), transparent 65%) !important;
    opacity: 1 !important;
  }
  .sidebar-collapse .navbar-collapse .navbar-nav {
    padding: 0 0.5rem;
  }
  .sidebar-collapse .navbar-collapse .navbar-nav .nav-item {
    border-bottom: 1px solid rgba(217, 164, 65, 0.12);
  }
  .sidebar-collapse .navbar-collapse .navbar-nav .nav-item:last-child {
    border-bottom: none;
  }
  .sidebar-collapse .navbar-collapse .navbar-nav .nav-link {
    color: var(--mmo-text-soft) !important;
    padding: 0.7rem 0.75rem !important;
    margin: 0 !important;
    transition: color 0.2s ease;
  }
  .sidebar-collapse .navbar-collapse .navbar-nav .nav-link:hover,
  .sidebar-collapse .navbar-collapse .navbar-nav .nav-link:focus {
    color: var(--mmo-gold-soft) !important;
  }
}


/* ============================================================
 * Auth pages — login, register, recover, reset
 * ============================================================ */
.auth-shell {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px 16px 60px;
  position: relative;
  z-index: 1;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(160deg, rgba(14, 33, 56, 0.92), rgba(5, 10, 20, 0.95));
  border: 1px solid var(--mmo-border);
  border-radius: 14px;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(217, 164, 65, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 30px 32px 28px;
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: "";
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 164, 65, 0.7), transparent);
}
.auth-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(217, 164, 65, 0.12), transparent 55%),
    radial-gradient(circle at 50% 100%, rgba(95, 182, 255, 0.06), transparent 60%);
}

.auth-brand {
  text-align: center;
  margin-bottom: 26px;
  position: relative;
}
.auth-brand img {
  max-width: 240px;
  width: 80%;
  height: auto;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.6));
}
.auth-brand-since {
  margin-top: 6px;
  font-family: "Cinzel", "Montserrat", serif;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--mmo-gold-soft);
  opacity: 0.85;
}
.auth-brand-since::before,
.auth-brand-since::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mmo-gold-soft));
  vertical-align: middle;
  margin: 0 10px;
}
.auth-brand-since::after {
  background: linear-gradient(90deg, var(--mmo-gold-soft), transparent);
}

.auth-form { position: relative; z-index: 1; }

.auth-field {
  position: relative;
  margin-bottom: 14px;
}
.auth-field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mmo-gold-soft);
  font-size: 1rem;
  pointer-events: none;
  opacity: 0.85;
  z-index: 2;
}
.auth-card .form-control,
.auth-card input.form-control {
  background-color: rgba(8, 16, 30, 0.6) !important;
  border: 1px solid var(--mmo-border) !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  height: auto;
  padding: 12px 14px 12px 42px;
  font-size: 0.95rem;
  line-height: 1.4;
  width: 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.auth-card .form-control:focus,
.auth-card input.form-control:focus {
  background-color: rgba(8, 16, 30, 0.85) !important;
  border-color: rgba(217, 164, 65, 0.7) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 3px rgba(217, 164, 65, 0.15),
    0 0 16px rgba(217, 164, 65, 0.2);
  outline: none;
}
.auth-card .form-control::placeholder { color: rgba(180, 195, 215, 0.5); }

.auth-field-error {
  color: #f7c1c1;
  font-size: 0.82rem;
  margin: -6px 4px 12px;
  letter-spacing: 0.02em;
}
.auth-field-error ul { list-style: none; padding: 0; margin: 0; }

.auth-submit {
  width: 100%;
  margin-top: 8px;
  padding: 13px 18px;
  font-family: "Cinzel", "Montserrat", serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #1a1208 !important;
  background: linear-gradient(180deg, #f0c878 0%, #d9a441 100%) !important;
  border: 1px solid rgba(217, 164, 65, 0.85) !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 14px rgba(217, 164, 65, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.15s ease, background 0.25s ease;
}
.auth-submit:hover {
  background: linear-gradient(180deg, #f7d590 0%, #e8b754 100%) !important;
  box-shadow: 0 6px 22px rgba(217, 164, 65, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transform: translateY(-1px);
  color: #1a1208 !important;
}
.auth-submit:focus {
  outline: none;
  box-shadow: 0 6px 22px rgba(217, 164, 65, 0.55), 0 0 0 3px rgba(217, 164, 65, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.auth-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  gap: 12px;
}
.auth-links a {
  font-family: "Cinzel", "Montserrat", serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mmo-text-soft);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.auth-links a:hover {
  color: var(--mmo-gold-soft);
  text-shadow: 0 0 10px rgba(217, 164, 65, 0.5);
}

@media (max-width: 480px) {
  .auth-card { padding: 24px 20px 22px; }
  .auth-shell { padding-top: 90px; }
  .auth-links { flex-direction: column; gap: 8px; }
}

/* ============================================================
 * Action cards — character action grid (resurrection, repair, etc.)
 * ============================================================ */
.action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 26px;
}
@media (max-width: 991px) { .action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .action-grid { grid-template-columns: 1fr; } }

.action-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 200px;
  background-image: linear-gradient(160deg, rgba(22, 38, 62, 0.78), rgba(10, 20, 38, 0.85));
  border: 1px solid var(--mmo-border);
  border-left: 3px solid var(--mmo-gold);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 6px 22px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.action-card:hover {
  border-color: var(--mmo-border-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 0 24px rgba(217, 164, 65, 0.15);
}

.action-card.is-locked {
  border-left-color: rgba(180, 190, 205, 0.4);
  opacity: 0.78;
}
.action-card.is-locked:hover {
  border-color: rgba(180, 190, 205, 0.45);
  transform: none;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4);
}

.action-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background-image: linear-gradient(90deg, rgba(8, 16, 30, 0.4) 0%, rgba(19, 89, 151, 0.55) 50%, rgba(8, 16, 30, 0.4) 100%);
  border-bottom: 1px solid var(--mmo-border);
  position: relative;
}
.action-card__header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mmo-gold), transparent);
  opacity: 0.7;
}
.action-card.is-locked .action-card__header {
  background-image: linear-gradient(90deg, rgba(8, 16, 30, 0.4) 0%, rgba(40, 50, 66, 0.55) 50%, rgba(8, 16, 30, 0.4) 100%);
}
.action-card.is-locked .action-card__header::after {
  background: linear-gradient(90deg, transparent, rgba(180, 190, 205, 0.4), transparent);
}

.action-card__icon {
  font-size: 1.55rem;
  color: var(--mmo-gold-soft);
  filter: drop-shadow(0 0 8px rgba(217, 164, 65, 0.45));
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}
.action-card.is-locked .action-card__icon {
  color: #8893a5;
  filter: none;
}

.action-card__title {
  margin: 0;
  font-family: "Cinzel", "Montserrat", serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.65), 0 0 12px rgba(95, 182, 255, 0.25);
  line-height: 1.25;
}

.action-card__body {
  flex: 1 1 auto;
  padding: 16px 20px 6px;
}
.action-card__tooltip {
  margin: 0;
  color: var(--mmo-text-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.action-card__footer {
  padding: 12px 20px 18px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.action-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  font-family: "Cinzel", "Montserrat", serif;
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffe7b0;
  background: linear-gradient(180deg, rgba(217, 164, 65, 0.18) 0%, rgba(140, 95, 25, 0.30) 100%);
  border: 1px solid var(--mmo-border-strong);
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 2px 8px rgba(0, 0, 0, 0.35);
}
.action-card__btn:hover,
.action-card__btn:focus {
  color: #fff5d2;
  background: linear-gradient(180deg, rgba(244, 204, 106, 0.28) 0%, rgba(180, 130, 40, 0.45) 100%);
  border-color: var(--mmo-gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 4px 14px rgba(217, 164, 65, 0.3);
  text-decoration: none;
  transform: translateY(-1px);
}
.action-card__btn .ra,
.action-card__btn .fa { font-size: 0.95rem; }

.action-card__btn.is-disabled {
  color: #8893a5;
  background: linear-gradient(180deg, rgba(40, 50, 66, 0.55), rgba(20, 28, 42, 0.7));
  border-color: rgba(180, 190, 205, 0.25);
  cursor: not-allowed;
  box-shadow: none;
}
.action-card__btn.is-disabled:hover,
.action-card__btn.is-disabled:focus {
  color: #8893a5;
  background: linear-gradient(180deg, rgba(40, 50, 66, 0.55), rgba(20, 28, 42, 0.7));
  border-color: rgba(180, 190, 205, 0.25);
  box-shadow: none;
  transform: none;
}


/* ============================================================
 * Action modal — confirmation + completion dialog
 * ============================================================ */
#actionModal .modal-content {
  background-image: linear-gradient(160deg, rgba(22, 38, 62, 0.96), rgba(8, 16, 30, 0.98));
  border: 1px solid var(--mmo-border-strong);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7), 0 0 32px rgba(217, 164, 65, 0.10);
  overflow: hidden;
}

#actionModal .modal-header {
  background-image: linear-gradient(90deg, rgba(8, 16, 30, 0.4) 0%, rgba(19, 89, 151, 0.55) 50%, rgba(8, 16, 30, 0.4) 100%);
  border-bottom: 1px solid var(--mmo-border-strong);
  padding: 18px 26px;
  position: relative;
}
#actionModal .modal-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mmo-gold), transparent);
  opacity: 0.85;
}

#actionModal .modal-header .title.title-up {
  font-family: "Cinzel", "Montserrat", serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffe7b0;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.65), 0 0 14px rgba(217, 164, 65, 0.35);
  margin: 0;
}

#actionModal .modal-header .close {
  opacity: 0.7;
  padding: 4px 10px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
#actionModal .modal-header .close:hover { opacity: 1; transform: scale(1.1); }

#actionModal .modal-body { padding: 24px 28px 26px; }

#actionModal .spinner i.fa-spinner {
  color: var(--mmo-gold-soft);
  filter: drop-shadow(0 0 12px rgba(217, 164, 65, 0.5));
}

/* Shared action-dialog primitives (used by confirm + execute fragments) */
.action-dialog__subtitle {
  font-family: "Cinzel", "Montserrat", serif;
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mmo-text-soft);
  text-align: center;
  margin: 0 0 14px;
}

.action-dialog__divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mmo-border-strong), transparent);
  margin: 0 0 20px;
}

.action-dialog__description {
  color: #d8e0ec;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 20px;
  text-align: center;
}

.action-dialog__price-row {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}
.action-dialog__price {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-family: "Cinzel", "Montserrat", serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffe7b0;
  background: linear-gradient(135deg, rgba(60, 42, 18, 0.55), rgba(30, 20, 10, 0.7));
  border: 1px solid rgba(217, 164, 65, 0.55);
  border-radius: 999px;
  box-shadow: inset 0 0 12px rgba(217, 164, 65, 0.15), 0 2px 6px rgba(0, 0, 0, 0.3);
}
.action-dialog__price .balance {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
}
.action-dialog__price .ra,
.action-dialog__price .fa {
  color: #f4cc6a;
  filter: drop-shadow(0 0 6px rgba(244, 204, 106, 0.55));
}
.action-dialog__price.is-free {
  color: #c7ecca;
  border-color: rgba(76, 175, 80, 0.55);
  background: linear-gradient(135deg, rgba(46, 139, 53, 0.30), rgba(26, 90, 32, 0.42));
  box-shadow: 0 0 16px rgba(76, 175, 80, 0.25), inset 0 0 12px rgba(76, 175, 80, 0.10);
}
.action-dialog__price.is-free .ra,
.action-dialog__price.is-free .fa {
  color: #6cdf72;
  filter: drop-shadow(0 0 6px rgba(108, 223, 114, 0.55));
}

.action-dialog__actions {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.action-dialog__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 32px;
  font-family: "Cinzel", "Montserrat", serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #eaf6e6;
  background: linear-gradient(180deg, rgba(56, 142, 60, 0.55) 0%, rgba(32, 96, 38, 0.78) 100%);
  border: 1px solid rgba(108, 223, 114, 0.55);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 14px rgba(0, 0, 0, 0.4);
}
.action-dialog__btn:hover,
.action-dialog__btn:focus {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(76, 175, 80, 0.78) 0%, rgba(46, 125, 50, 0.92) 100%);
  border-color: #6cdf72;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 6px 22px rgba(76, 175, 80, 0.35);
  transform: translateY(-1px);
  text-decoration: none;
}
.action-dialog__btn .fa,
.action-dialog__btn .ra { font-size: 0.95rem; }

/* Completion fragment — success / failure */
.action-result {
  text-align: center;
  padding: 6px 0 4px;
}
.action-result__icon {
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 14px;
  display: block;
}
.action-result.is-success .action-result__icon {
  color: #6cdf72;
  filter: drop-shadow(0 0 14px rgba(108, 223, 114, 0.55));
}
.action-result.is-failure .action-result__icon {
  color: #ff5d5d;
  filter: drop-shadow(0 0 14px rgba(255, 93, 93, 0.55));
}
.action-result__message {
  margin: 0;
  font-family: "Cinzel", "Montserrat", serif;
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  color: #ffffff;
  line-height: 1.55;
}
.action-result.is-failure .action-result__message { color: #f7c8c8; }


/* ============================================================
 * Voucher list — themed rows for the Vouchers screen
 * ============================================================ */
.info-sheet .voucher-list {
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.info-sheet .voucher-list--used {
  padding-top: 8px;
}

.info-sheet .voucher-empty {
  text-align: center;
  padding: 28px 16px 12px;
  color: var(--mmo-text-soft);
}
.info-sheet .voucher-empty i {
  display: block;
  font-size: 2.4rem;
  color: var(--mmo-gold-soft);
  filter: drop-shadow(0 0 12px rgba(217, 164, 65, 0.35));
  margin-bottom: 10px;
}
.info-sheet .voucher-empty p {
  margin: 0;
  font-family: "Cinzel", "Montserrat", serif;
  letter-spacing: 0.06em;
}

.voucher-item {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(180px, 1.6fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background-image: linear-gradient(135deg, rgba(14, 24, 42, 0.7), rgba(8, 16, 30, 0.78));
  border: 1px solid var(--mmo-border);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}
.voucher-item:hover {
  border-color: var(--mmo-border-strong);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45), 0 0 18px rgba(217, 164, 65, 0.12);
  transform: translateY(-1px);
}
.voucher-item--used { opacity: 0.7; }
.voucher-item--used:hover { transform: none; }

.voucher-item__type {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.voucher-item__type > i {
  color: var(--mmo-gold-soft);
  filter: drop-shadow(0 0 8px rgba(217, 164, 65, 0.4));
  font-size: 1.3rem;
}
.voucher-item__description {
  color: #eef2f9;
  font-weight: 600;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voucher-item__token { min-width: 0; }
.voucher-item__token code {
  display: inline-block;
  background-color: rgba(8, 16, 30, 0.55);
  border: 1px solid var(--mmo-border);
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--mmo-gold-soft);
  font-family: "Menlo", "Consolas", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  word-break: break-all;
  user-select: all;
  max-width: 100%;
}

.voucher-item__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}
.voucher-item__delete { letter-spacing: 0.05em; }
.voucher-item__delete .fas { margin-right: 4px; }

.info-sheet .voucher-toggle {
  text-align: center;
  margin-top: 14px;
}
.info-sheet .voucher-toggle .btn .fas { margin-right: 6px; }

.info-sheet .voucher-info {
  padding: 22px 26px;
  color: #e6ecf5;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

@media (max-width: 767.98px) {
  .voucher-item {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .voucher-item__type { justify-content: center; }
  .voucher-item__actions { justify-self: center; }
}


/* ============================================================
 * Language switcher — flag-based dropdown in the navbar
 * ============================================================ */
.navbar .lang-switch {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 0.5rem;
}

.navbar .lang-switch__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(8, 16, 30, 0.55);
  border: 1px solid var(--mmo-border);
  color: var(--mmo-text-soft) !important;
  font-family: "Cinzel", "Montserrat", serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, background 0.25s ease, transform 0.15s ease;
}
.navbar .lang-switch__toggle:hover,
.navbar .lang-switch__toggle:focus,
.navbar .lang-switch.show .lang-switch__toggle {
  border-color: var(--mmo-border-strong);
  color: var(--mmo-gold-soft) !important;
  box-shadow: 0 0 0 1px rgba(217, 164, 65, 0.15), 0 4px 16px rgba(217, 164, 65, 0.18);
  text-decoration: none;
}
.navbar .lang-switch__toggle::after { display: none; }

.lang-switch__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 16px;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 1px 2px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}
.lang-switch__flag .lang-flag {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lang-switch__code { line-height: 1; }
.lang-switch__caret {
  font-size: 0.65rem;
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.navbar .lang-switch.show .lang-switch__caret {
  transform: rotate(180deg);
  opacity: 1;
}

.navbar .lang-switch__menu {
  margin-top: 10px;
  min-width: 200px;
  right: 0;
  left: auto;
  padding: 8px;
  background-color: transparent;
  background-image: linear-gradient(160deg, rgba(22, 42, 70, 0.96), rgba(10, 20, 38, 0.98));
  border: 1px solid var(--mmo-border-strong);
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(217, 164, 65, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lang-switch__header {
  display: block;
  padding: 6px 10px 8px;
  font-family: "Cinzel", "Montserrat", serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mmo-gold-soft);
  border-bottom: 1px solid var(--mmo-border);
  margin-bottom: 4px;
}

.navbar .lang-switch__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: #eef2f9 !important;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.navbar .lang-switch__item:hover,
.navbar .lang-switch__item:focus {
  background: linear-gradient(135deg, rgba(19, 89, 151, 0.45), rgba(8, 16, 30, 0.55));
  color: #ffffff !important;
  text-decoration: none;
  transform: translateX(2px);
}
.navbar .lang-switch__item.is-active {
  background: linear-gradient(135deg, rgba(217, 164, 65, 0.22), rgba(19, 89, 151, 0.18));
  color: var(--mmo-gold-soft) !important;
  box-shadow: inset 0 0 0 1px rgba(217, 164, 65, 0.35);
}
.lang-switch__name { flex: 1 1 auto; }
.lang-switch__check {
  color: var(--mmo-gold-soft);
  font-size: 0.75rem;
  filter: drop-shadow(0 0 6px rgba(217, 164, 65, 0.55));
}

@media (max-width: 991.98px) {
  .navbar .lang-switch { margin: 6px 0 0; align-self: flex-start; flex-direction: column; width: 100%; }
  .navbar .lang-switch__menu {
    position: static !important;
    float: none;
    transform: none !important;
    min-width: 220px;
    margin-top: 20px !important;
    margin-left: 0;
    right: auto;
    left: 0;
    height: auto !important;
    overflow-y: hidden !important;
  }
}
