/*
 * NebraOT - Global Modern UI layer
 * Applies to the complete public MyAAC site without changing business logic.
 */
:root {
  --nebra-bg: #090706;
  --nebra-panel: rgba(18, 13, 11, .94);
  --nebra-panel-2: rgba(31, 21, 16, .94);
  --nebra-panel-soft: rgba(40, 27, 20, .78);
  --nebra-line: rgba(210, 158, 69, .34);
  --nebra-line-strong: rgba(234, 181, 83, .62);
  --nebra-gold: #e9b558;
  --nebra-gold-soft: #ffd989;
  --nebra-red: #9d2c1a;
  --nebra-red-dark: #52120c;
  --nebra-text: #f2e5d2;
  --nebra-text-soft: #cdbba6;
  --nebra-muted: #9d8a77;
  --nebra-good: #6ecf8b;
  --nebra-bad: #f27768;
  --nebra-radius: 14px;
  --nebra-shadow: 0 14px 36px rgba(0, 0, 0, .38);
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--nebra-text);
  font-family: Inter, "Segoe UI", Tahoma, Arial, sans-serif !important;
  background-color: #080605 !important;
}

#ArtworkHelper {
  min-width: 0 !important;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(8, 5, 4, .12) 0%, rgba(8, 5, 4, .48) 58%, rgba(8, 5, 4, .84) 100%),
    radial-gradient(circle at 50% 5%, rgba(157, 44, 26, .10), transparent 45%);
}

#Bodycontainer {
  box-sizing: border-box;
  min-width: 0 !important;
  max-width: 1460px !important;
  width: 100% !important;
  padding: 0 18px 72px !important;
}

#ContentRow {
  top: 155px !important;
  display: grid !important;
  grid-template-columns: 205px minmax(0, 1fr) 205px;
  gap: 18px;
  align-items: start;
}

#MenuColumn,
#ContentColumn,
#ThemeboxesColumn {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  margin: 0 !important;
  min-width: 0 !important;
}

#MenuColumn,
#ThemeboxesColumn {
  width: 100% !important;
}

#ContentColumn {
  width: auto !important;
}

/* ---------- logo ---------- */
#LeftArtwork {
  left: 2px !important;
}
#LeftArtwork #TibiaLogoArtworkTop {
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.7));
  transition: transform .18s ease, filter .18s ease;
}
#LeftArtwork #TibiaLogoArtworkTop:hover {
  transform: translateY(-2px) scale(1.015);
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.82));
}

/* ---------- left account / download cards ---------- */
#Loginbox,
.SmallMenuBox,
#Menu {
  box-sizing: border-box;
  left: 0 !important;
  width: 100% !important;
}

#Loginbox,
.SmallMenuBox#DownloadBox {
  margin: 0 0 12px !important;
  padding: 9px !important;
  border: 1px solid var(--nebra-line);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(18,13,11,.96), rgba(42,24,18,.92));
  box-shadow: 0 8px 24px rgba(0,0,0,.34), inset 0 1px rgba(255,255,255,.03);
}

#LoginTop,
#LoginBottom,
.LoginBorder,
.SmallMenuBox .SmallBoxTop,
.SmallMenuBox .SmallBoxBottom,
.SmallMenuBox .SmallBoxBorder {
  display: none !important;
}

#LoginButtonContainer,
#Loginbox .Loginstatus,
.SmallMenuBox .SmallBoxButtonContainer {
  box-sizing: border-box;
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  background: none !important;
}

#Loginbox #LoginButton,
#PlayNowContainer,
.MediumButtonBackground {
  box-sizing: border-box;
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: 38px !important;
}

#Loginbox #LoginButton {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(234,181,83,.58);
  border-radius: 9px;
  background: linear-gradient(180deg, #9b311e, #5f160e) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 4px 10px rgba(0,0,0,.28);
  overflow: hidden;
}

#Loginbox #LoginButton .Button,
#Loginbox #LoginButton #ButtonText,
.MediumButtonOver,
.MediumButtonText {
  background-image: none !important;
}

#Loginbox #LoginButton #ButtonText {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.NebraLoginButtonText,
.NebraDownloadText {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: #fff0c4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  text-shadow: 0 1px 2px #000;
  z-index: 30;
}

#Loginbox .Loginstatus {
  margin-top: 7px !important;
  min-height: 27px;
  border-radius: 7px;
  background: rgba(255,255,255,.035) !important;
}
#LoginstatusText_2 {
  position: relative !important;
  width: 100% !important;
  min-height: 27px;
  cursor: pointer;
}
#Loginbox .LoginstatusText {
  display: none !important;
}
.NebraLoginStatusText {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  color: var(--nebra-text-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .25px;
}
.NebraLoginStatusText:hover { color: var(--nebra-gold-soft); }

.SmallMenuBox#DownloadBox {
  top: auto !important;
  min-height: 58px;
}
.SmallMenuBox .SmallBoxButtonContainer {
  min-height: 38px;
}
#PlayNowContainer {
  top: auto !important;
  left: auto !important;
}
#PlayNowContainer .MediumButtonBackground {
  border: 1px solid rgba(234,181,83,.52);
  border-radius: 9px;
  background: linear-gradient(180deg, #3f2a1a, #21150f) !important;
  overflow: hidden;
}
#PlayNowContainer .MediumButtonText {
  opacity: 0 !important;
}
#PlayNowContainer:hover .MediumButtonBackground {
  border-color: var(--nebra-gold);
  background: linear-gradient(180deg, #5a3820, #281810) !important;
}

/* ---------- modern navigation ---------- */
#Menu {
  padding: 8px;
  border: 1px solid var(--nebra-line);
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(14,10,9,.97), rgba(34,21,16,.95));
  box-shadow: var(--nebra-shadow);
}
#MenuTop,
#MenuBottom { display: none !important; }

.menuitem {
  margin: 0 0 5px;
  border-radius: 9px;
  overflow: hidden;
}
.MenuButton {
  box-sizing: border-box;
  width: 100% !important;
  height: 38px !important;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255,255,255,.025) !important;
  transition: border-color .14s ease, background .14s ease, transform .14s ease;
}
.MenuButton:hover {
  border-color: rgba(234,181,83,.38);
  background: linear-gradient(90deg, rgba(116,29,18,.66), rgba(71,29,18,.34)) !important;
  transform: translateX(2px);
}
.MenuButton > div { height: 100% !important; }
.MenuButton .Button,
.MenuButton .Lights,
.MenuButton .Label {
  display: none !important;
}
.MenuButton .Icon {
  top: 3px !important;
  left: 5px !important;
  width: 32px !important;
  height: 32px !important;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.75));
}
.MenuButton .Extend {
  top: 13px !important;
  right: 8px !important;
  opacity: .72;
  filter: sepia(1) saturate(.7) brightness(1.4);
}
.NebraMenuText {
  position: absolute;
  left: 42px;
  right: 27px;
  top: 0;
  height: 38px;
  display: flex;
  align-items: center;
  color: #f0dfc5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .45px;
  text-transform: uppercase;
  text-shadow: 0 1px 2px #000;
  pointer-events: none;
}

.Submenu {
  box-sizing: border-box;
  width: 100% !important;
  margin: 4px 0 8px !important;
  padding: 4px !important;
  border: 1px solid rgba(234,181,83,.14);
  border-radius: 8px;
  background: rgba(0,0,0,.28) !important;
}
.Submenu .LeftChain,
.Submenu .RightChain { display: none !important; }
.Submenuitem {
  border-radius: 6px;
  overflow: hidden;
  background: transparent !important;
}
.SubmenuitemLabel {
  box-sizing: border-box;
  padding: 7px 7px 7px 23px !important;
  border: 0 !important;
  color: var(--nebra-text-soft) !important;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.25;
}
.Submenuitem:hover {
  background: linear-gradient(90deg, rgba(157,44,26,.42), rgba(157,44,26,.08)) !important;
}
.Submenuitem:hover .SubmenuitemLabel { color: #fff2d1 !important; }
.ActiveSubmenuItemIcon {
  top: 9px !important;
  left: 7px !important;
  filter: sepia(1) saturate(1.4) brightness(1.6);
}

/* ---------- main content shell ---------- */
.Content .Box {
  box-sizing: border-box;
  margin: 0 0 18px !important;
  border: 1px solid var(--nebra-line) !important;
  border-radius: var(--nebra-radius);
  background: rgba(17,12,10,.92) !important;
  box-shadow: var(--nebra-shadow), inset 0 1px rgba(255,255,255,.025);
  overflow: hidden !important;
}
.Content .Box > .Corner-tl,
.Content .Box > .Corner-tr,
.Content .Box > .CornerWrapper-b,
.Content .Box > .Border_1,
.Content .Box > .BorderTitleText {
  display: none !important;
}
.Content .Box > .Title {
  position: relative !important;
  inset: auto !important;
  display: block;
  max-width: calc(100% - 28px);
  height: auto;
  margin: 13px 14px 8px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.72)) sepia(.18) saturate(1.12);
}
.Content .Border_2,
.Content .Border_3 {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.Content .BoxContent {
  box-sizing: border-box;
  min-height: 360px !important;
  padding: 16px !important;
  color: var(--nebra-text) !important;
  background:
    radial-gradient(circle at 90% 0%, rgba(157,44,26,.09), transparent 28%),
    linear-gradient(180deg, rgba(28,19,15,.84), rgba(14,10,9,.92)) !important;
  font-family: Inter, "Segoe UI", Tahoma, Arial, sans-serif !important;
  font-size: 12px !important;
  line-height: 1.52;
  overflow-x: auto;
}
.Content .BoxContent td,
.Content .BoxContent .ff_info,
.Content .BoxContent .ff_infotext,
.Content .BoxContent .ff_smallinfo,
.Content .BoxContent .ff_large,
.Content .BoxContent .ff_pagetext,
.Content .BoxContent .ff_pagetextgrey {
  color: var(--nebra-text) !important;
  font-family: Inter, "Segoe UI", Tahoma, Arial, sans-serif !important;
}
.Content .BoxContent .ff_pagetextgrey,
.Content .BoxContent .grey { color: var(--nebra-muted) !important; }
.Content .BoxContent .white,
.Content .BoxContent td .white,
.Content .BoxContent td .whites { color: #fff6e7 !important; }

.Content a,
.Content a:link,
.Content a:visited {
  color: var(--nebra-gold-soft) !important;
  text-decoration: none;
  transition: color .14s ease;
}
.Content a:hover {
  color: #fff1b8 !important;
  text-decoration: underline;
}

.Content h1,
.Content h2,
.Content h3,
.Content h4 {
  color: var(--nebra-gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: .2px;
}
.Content hr {
  border: 0;
  border-top: 1px solid var(--nebra-line);
}

/* ---------- forms ---------- */
.Content input[type="text"],
.Content input[type="email"],
.Content input[type="password"],
.Content input[type="number"],
.Content input[type="search"],
.Content input[type="url"],
.Content textarea,
.Content select {
  box-sizing: border-box;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid rgba(234,181,83,.32) !important;
  border-radius: 8px !important;
  outline: none;
  background: rgba(7,6,5,.68) !important;
  color: #f4e7d2 !important;
  font: 12px/1.3 Inter, "Segoe UI", Arial, sans-serif !important;
  box-shadow: inset 0 1px 4px rgba(0,0,0,.3);
}
.Content textarea { min-height: 90px; resize: vertical; }
.Content input:focus,
.Content textarea:focus,
.Content select:focus {
  border-color: var(--nebra-gold) !important;
  box-shadow: 0 0 0 3px rgba(233,181,88,.11) !important;
}
.Content input::placeholder,
.Content textarea::placeholder { color: #8d7b69; }
.Content option { background: #16100d; color: #f3e4cd; }

/* ---------- classic MyAAC buttons ---------- */
.BigButton,
.MediumButtonBackground {
  box-sizing: border-box !important;
  border: 1px solid rgba(234,181,83,.48) !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, #8f2a19, #57140d) !important;
  box-shadow: 0 4px 11px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.08);
  overflow: hidden;
}
.BigButtonOver,
.MediumButtonOver {
  background: linear-gradient(180deg, #b13a22, #731b10) !important;
}
.BigButtonText,
.Content input[type="submit"],
.Content input[type="button"],
.Content button,
.Content .btn {
  border-radius: 8px !important;
  color: #fff0c9 !important;
  font-family: Inter, "Segoe UI", Arial, sans-serif !important;
  font-weight: 750 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.75) !important;
}
.Content input[type="submit"]:not(.BigButtonText),
.Content input[type="button"]:not(.BigButtonText),
.Content button:not(.close),
.Content .btn {
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid rgba(234,181,83,.46) !important;
  background: linear-gradient(180deg, #8f2a19, #55140d) !important;
  cursor: pointer;
}
.Content input[type="submit"]:hover,
.Content input[type="button"]:hover,
.Content button:not(.close):hover,
.Content .btn:hover {
  border-color: var(--nebra-gold) !important;
  filter: brightness(1.12);
}

/* ---------- tables everywhere ---------- */
.TableContainer {
  box-sizing: border-box;
  border: 0 !important;
  border-radius: 11px;
  background: transparent !important;
  overflow: hidden;
  font-size: inherit !important;
}
.TableContainer .CaptionContainer,
.TableContainer .CaptionContainer .CaptionInnerContainer {
  min-height: 36px;
  background: linear-gradient(100deg, #35100b, #63180f 66%, #842315) !important;
}
.TableContainer .CaptionContainer {
  border: 1px solid rgba(234,181,83,.38);
  border-radius: 10px 10px 0 0;
}
.TableContainer .CaptionContainer .CaptionInnerContainer {
  box-sizing: border-box;
  padding: 8px 12px !important;
}
.TableContainer .CaptionContainer .Text {
  margin: 0 !important;
  padding: 0 !important;
  color: #ffe0a0 !important;
  font: 800 12px/20px Inter, "Segoe UI", Arial, sans-serif !important;
  letter-spacing: .15px;
}
.TableContainer .CaptionContainer [class*="CaptionEdge"],
.TableContainer .CaptionContainer [class*="CaptionBorder"],
.TableContainer .CaptionContainer [class*="CaptionVertical"],
.TableShadowContainer,
.TableShadowContainerRightTop,
.TableBottomShadow {
  display: none !important;
}
.TableContainer .Table1,
.TableContainer .Table2,
.TableContainer .Table3,
.TableContainer .Table4,
.TableContainer .Table5,
.TableContentContainer,
.TableContent {
  border-color: rgba(234,181,83,.22) !important;
  background: rgba(23,16,13,.82) !important;
  color: var(--nebra-text) !important;
  box-shadow: none !important;
}
.TableContainer .InnerTableContainer {
  box-sizing: border-box;
  margin: 0 !important;
  padding: 8px !important;
}
.TableContentContainer {
  margin: 0 0 7px !important;
  border-radius: 8px;
  overflow: hidden;
}
.TableContent {
  width: 100%;
  border-collapse: collapse;
}
.TableContent td,
.TableContainer td {
  border-color: rgba(234,181,83,.13) !important;
  color: var(--nebra-text) !important;
}
.TableContainer .Odd,
.Content .BoxContent .Odd,
tr.Odd,
.Odd { background: rgba(255,255,255,.026) !important; }
.TableContainer .Even,
.Content .BoxContent .Even,
tr.Even,
.Even { background: rgba(255,255,255,.055) !important; }
.TableContainer tr:hover td { background-color: rgba(157,44,26,.09); }
.LabelH,
.LabelH td,
.Content th {
  background: rgba(92,25,16,.86) !important;
  color: #ffe2aa !important;
}
.LabelV,
.LabelV80,
.LabelV100,
.LabelV120,
.LabelV150,
.LabelV175,
.LabelV200,
.LabelV250 { color: #e9c98f !important; }

/* legacy HTML tables using bgcolor attributes */
.Content table[bgcolor],
.Content tr[bgcolor] > td,
.Content td[bgcolor] {
  background-color: rgba(27,19,15,.88) !important;
  color: var(--nebra-text) !important;
}
.Content table {
  max-width: 100%;
}

/* ---------- messages / alerts ---------- */
.SmallBox .MessageContainer {
  border: 1px solid var(--nebra-line) !important;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(29,20,16,.88) !important;
  box-shadow: 0 7px 18px rgba(0,0,0,.26);
}
.SmallBox .Message,
.SmallBox .ErrorMessage {
  color: var(--nebra-text) !important;
  background: transparent !important;
}
.SmallBox .BoxFrameHorizontal,
.SmallBox .BoxFrameVerticalRight,
.SmallBox .BoxFrameVerticalLeft,
.SmallBox [class*="BoxFrameEdge"] { display: none !important; }
.note,
.success,
.warning,
.error,
.alert {
  box-sizing: border-box;
  border-radius: 9px !important;
  padding: 10px 12px !important;
}
.note,
.alert-info { border: 1px solid rgba(93,156,207,.35) !important; background: rgba(32,74,105,.18) !important; color: #c9e5fa !important; }
.success,
.alert-success { border: 1px solid rgba(110,207,139,.35) !important; background: rgba(37,105,57,.18) !important; color: #c9f3d4 !important; }
.warning,
.alert-warning { border: 1px solid rgba(233,181,88,.38) !important; background: rgba(119,82,20,.18) !important; color: #ffe3a6 !important; }
.error,
.alert-danger { border: 1px solid rgba(242,119,104,.38) !important; background: rgba(112,32,24,.22) !important; color: #ffc9c2 !important; }

/* ---------- right-side theme boxes ---------- */
#ThemeboxesColumn {
  padding-top: 2px;
}
#RightArtwork {
  right: 14px !important;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.55));
}
#Themeboxes .Themebox {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 180px;
  margin: 0 auto 12px !important;
  border-radius: 12px;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.35));
  overflow: hidden;
}
#Themeboxes .ThemeboxButton,
#Themeboxes .BigButton {
  border-radius: 8px;
}

/* ---------- ticker / status / helper ---------- */
#ContentHelper { min-width: 0 !important; }
.NewsTicker,
#NewsTicker,
.InfoBar,
#statusbar {
  border-radius: 10px !important;
  border-color: rgba(234,181,83,.25) !important;
}
#HelperDivContainer {
  border: 1px solid var(--nebra-line-strong) !important;
  border-radius: 10px;
  color: var(--nebra-text) !important;
  background: rgba(19,13,11,.97) !important;
  box-shadow: var(--nebra-shadow);
}
#HelperDivContainer .HelperDivArrow { display: none !important; }

/* ---------- footer / scroll ---------- */
#Footer {
  margin-top: 18px;
  padding: 14px 8px 30px !important;
  color: rgba(239,222,197,.66) !important;
  font-size: 10px !important;
  letter-spacing: .2px;
}
#Footer a { color: var(--nebra-gold-soft) !important; }
.scrollToTop {
  padding: 8px !important;
  border: 1px solid var(--nebra-line);
  border-radius: 999px;
  background: rgba(18,13,11,.88);
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.scrollToTop img { width: 34px !important; }

/* ---------- preserve custom Nebra sections ---------- */
.NebraBazaarHero,
.nebra-rules-shell,
.nebra-rules-page {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  #ContentRow {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  #ThemeboxesColumn { display: none !important; }
}

@media (max-width: 820px) {
  #Bodycontainer { padding: 0 10px 55px !important; }
  #ContentRow {
    top: 145px !important;
    display: block !important;
  }
  #MenuColumn {
    display: none;
    width: 100% !important;
    margin-bottom: 12px !important;
  }
  body.nebra-mobile-menu-open #MenuColumn { display: block !important; }
  #ContentColumn { width: 100% !important; }
  #LeftArtwork {
    width: 170px !important;
    left: 50% !important;
    transform: translateX(-50%);
  }
  .NebraMobileMenuButton {
    display: inline-flex !important;
  }
  .Content .BoxContent { padding: 12px !important; }
}

.NebraMobileMenuButton {
  display: none;
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 99999;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(234,181,83,.5);
  border-radius: 9px;
  background: rgba(25,15,12,.95);
  color: #ffe2a9;
  font: 800 11px/1 Inter, "Segoe UI", Arial, sans-serif;
  box-shadow: 0 8px 22px rgba(0,0,0,.4);
  cursor: pointer;
}

@media (max-width: 560px) {
  .Content .BoxContent { font-size: 11px !important; }
  .TableContent td,
  .TableContainer td { padding: 6px !important; }
  .NebraBazaarHero { padding: 14px !important; }
}

/* ========================================================================== 
   NEBRAOT SITE MODERN V2 — COMPLETE PUBLIC SITE LAYER
   This section intentionally stays visual-only. It does not change forms,
   links, routes, permissions, queries, purchases, Bazaar logic or account logic.
   ========================================================================== */

:root {
  --nebra-bg-image: url('../images/nebraot-global-background.png');
  --nebra-panel-deep: rgba(10, 8, 7, .93);
  --nebra-panel-solid: #17100d;
  --nebra-card: rgba(29, 20, 16, .90);
  --nebra-card-hover: rgba(45, 28, 20, .94);
  --nebra-gold-bright: #ffd77a;
  --nebra-gold-dim: #b98636;
  --nebra-red-bright: #c64b32;
  --nebra-red-glow: rgba(187, 55, 31, .28);
  --nebra-border-soft: rgba(255, 216, 137, .12);
  --nebra-shadow-soft: 0 10px 28px rgba(0,0,0,.28);
  --nebra-shadow-strong: 0 18px 52px rgba(0,0,0,.50);
}

html,
body {
  background: #080605 var(--nebra-bg-image) center top / cover fixed no-repeat !important;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(5,4,3,.10), rgba(7,5,4,.46) 55%, rgba(7,5,4,.82)),
    radial-gradient(ellipse at 50% 0%, rgba(164,49,27,.13), transparent 48%);
}

#ArtworkHelper {
  background: transparent !important;
}

/* ===== Page frame ===== */
#Bodycontainer {
  max-width: 1500px !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

#ContentRow {
  grid-template-columns: 216px minmax(0, 1fr) 210px !important;
  gap: 20px !important;
}

#MenuColumn,
#ThemeboxesColumn {
  position: sticky !important;
  top: 16px !important;
  align-self: start;
}

#ContentColumn {
  filter: drop-shadow(0 14px 36px rgba(0,0,0,.18));
}

/* ===== Logo / brand ===== */
#LeftArtwork {
  position: relative !important;
  width: 100% !important;
  height: 132px !important;
  left: 0 !important;
  top: auto !important;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

#LeftArtwork #TibiaLogoArtworkTop {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  max-width: 198px !important;
  height: auto !important;
  cursor: pointer;
}

#LeftArtwork #LogoLink {
  display: none !important;
}

/* ===== Account and download ===== */
#Loginbox,
#DownloadBox {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#Loginbox::before,
#DownloadBox::before {
  display: block;
  margin: 0 0 8px;
  color: var(--nebra-gold-soft);
  font: 800 10px/1.2 Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  opacity: .82;
}

#Loginbox::before { content: 'Cuenta NebraOT'; }
#DownloadBox::before { content: 'Cliente oficial'; }

#Loginbox #LoginButton,
#PlayNowContainer .MediumButtonBackground {
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, filter .16s ease;
}

#Loginbox #LoginButton:hover,
#PlayNowContainer:hover .MediumButtonBackground {
  transform: translateY(-1px);
  border-color: rgba(255,216,137,.85) !important;
  box-shadow: 0 7px 18px rgba(0,0,0,.34), 0 0 18px rgba(190,57,32,.18) !important;
}

/* ===== Navigation: make every category + submenu feel current ===== */
#Menu {
  padding: 9px !important;
  border: 1px solid rgba(232,181,83,.30) !important;
  border-radius: 15px !important;
  background:
    linear-gradient(155deg, rgba(16,12,10,.96), rgba(37,22,17,.93)) !important;
  box-shadow: var(--nebra-shadow-soft), inset 0 1px rgba(255,255,255,.035) !important;
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
}

.menuitem + .menuitem {
  margin-top: 7px !important;
}

.MenuButton {
  min-height: 46px !important;
  border-color: rgba(232,181,83,.20) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.008)),
    rgba(23,16,13,.92) !important;
}

.menuitem:has(.Submenu[style*="display: block"]) > span .MenuButton,
.MenuButton:hover {
  border-color: rgba(236,184,85,.58) !important;
  background: linear-gradient(180deg, rgba(126,35,23,.70), rgba(60,19,14,.84)) !important;
  box-shadow: inset 3px 0 0 var(--nebra-gold), 0 6px 14px rgba(0,0,0,.24);
}

.MenuButton .Icon {
  width: 36px !important;
  height: 36px !important;
  left: 5px !important;
  top: 4px !important;
  background-size: contain !important;
  filter: drop-shadow(0 4px 5px rgba(0,0,0,.55));
}

.NebraMenuText {
  padding-left: 43px !important;
  padding-right: 27px !important;
  font-size: 11px !important;
}

.Submenu {
  margin: 4px 4px 3px 13px !important;
  padding: 5px !important;
  border-left: 1px solid rgba(232,181,83,.23) !important;
  border-radius: 0 0 10px 10px !important;
}

.Submenuitem {
  min-height: 29px !important;
  margin: 2px 0 !important;
  border-radius: 7px !important;
}

.SubmenuitemLabel {
  min-height: 29px !important;
  line-height: 29px !important;
  padding-left: 21px !important;
  font-size: 10px !important;
}

/* ===== Main page card ===== */
.Content .Box {
  overflow: visible !important;
  border-radius: 18px !important;
  background: transparent !important;
}

.Content .Box > .Border_2 {
  border: 1px solid rgba(232,181,83,.34) !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  background:
    linear-gradient(160deg, rgba(16,12,10,.96), rgba(28,18,14,.93)) !important;
  box-shadow: var(--nebra-shadow-strong), inset 0 1px rgba(255,255,255,.035) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.Content .Box > .Border_2 > .Border_3 {
  border: 0 !important;
  background: transparent !important;
}

.Content .BoxContent {
  padding: 17px !important;
  border: 0 !important;
  border-radius: 0 0 17px 17px !important;
  background: rgba(13,10,8,.74) !important;
}

/* Modern title injected by nebra_site_modern_v2.js */
.NebraModernPageHeader {
  position: relative;
  z-index: 5;
  box-sizing: border-box;
  min-height: 82px;
  margin: 0 0 -1px;
  padding: 17px 20px 15px 72px;
  border: 1px solid rgba(232,181,83,.34);
  border-bottom-color: rgba(232,181,83,.16);
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(113,29,19,.96), rgba(51,17,13,.94) 42%, rgba(22,14,11,.96));
  box-shadow: 0 10px 28px rgba(0,0,0,.30), inset 0 1px rgba(255,255,255,.05);
}

.NebraModernPageHeader::before {
  content: 'N';
  position: absolute;
  left: 18px;
  top: 16px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,216,137,.46);
  border-radius: 11px;
  color: var(--nebra-gold-bright);
  background: rgba(12,8,7,.54);
  box-shadow: inset 0 0 18px rgba(192,55,30,.18), 0 6px 16px rgba(0,0,0,.34);
  font: 900 20px/1 Georgia, serif;
  text-shadow: 0 0 10px rgba(255,203,107,.25);
}

.NebraModernPageHeader::after {
  content: '';
  position: absolute;
  right: -55px;
  top: -90px;
  width: 260px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(206,68,38,.20), transparent 68%);
  pointer-events: none;
}

.NebraModernPageTitle {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #fff0c8;
  font: 800 21px/1.15 Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: .25px;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
}

.NebraModernPageSubtitle {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 5px;
  color: rgba(241,218,181,.68);
  font: 600 10px/1.35 Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: .22px;
}

body.nebra-v2-ready .Content .Box > img.Title,
body.nebra-v2-ready .Content .Box > .BorderTitleText,
body.nebra-v2-ready .Content .Box > .Corner-tl,
body.nebra-v2-ready .Content .Box > .Corner-tr,
body.nebra-v2-ready .Content .Box > .CornerWrapper-b,
body.nebra-v2-ready .Content .Box > .Border_1 {
  display: none !important;
}

/* Do not replace the special internal title graphics of ticker/featured boxes. */
body.nebra-v2-ready .Content #NewsTicker > img.Title,
body.nebra-v2-ready .Content #FeaturedArticle > img.Title {
  display: block !important;
}

/* ===== Type ===== */
.Content .BoxContent,
.Content .BoxContent p,
.Content .BoxContent li,
.Content .BoxContent td,
.Content .BoxContent label,
.Content .BoxContent span {
  line-height: 1.48;
}

.Content h1,
.Content h2,
.Content h3,
.Content h4,
.Content h5 {
  font-family: Inter, "Segoe UI", Arial, sans-serif !important;
  color: #f4d89e !important;
  text-shadow: 0 2px 7px rgba(0,0,0,.32);
}

.Content h1 { font-size: 24px !important; }
.Content h2 { font-size: 19px !important; }
.Content h3 { font-size: 15px !important; }
.Content h4,
.Content h5 { font-size: 13px !important; }

.Content strong,
.Content b { color: #f4dfb7; }
.Content small { color: var(--nebra-muted); }
.Content code {
  padding: 2px 5px;
  border: 1px solid rgba(232,181,83,.17);
  border-radius: 5px;
  color: #ffd98d;
  background: rgba(0,0,0,.24);
}

.Content blockquote {
  margin: 12px 0;
  padding: 11px 14px;
  border-left: 3px solid var(--nebra-gold);
  border-radius: 0 9px 9px 0;
  color: var(--nebra-text-soft);
  background: rgba(255,255,255,.025);
}

/* ===== Form controls: account, search, guilds, houses, forum, store ===== */
.Content .form-control,
.Content .form-select,
.Content input:not([type="image"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.Content textarea,
.Content select {
  box-sizing: border-box !important;
  min-height: 38px;
  border: 1px solid rgba(232,181,83,.27) !important;
  border-radius: 9px !important;
  background: rgba(9,7,6,.76) !important;
  color: #f4e8d7 !important;
  box-shadow: inset 0 1px 8px rgba(0,0,0,.20) !important;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.Content textarea { min-height: 104px; }

.Content .form-control:focus,
.Content .form-select:focus,
.Content input:not([type="image"]):not([type="checkbox"]):not([type="radio"]):focus,
.Content textarea:focus,
.Content select:focus {
  outline: 0 !important;
  border-color: rgba(255,216,137,.70) !important;
  background: rgba(14,9,8,.92) !important;
  box-shadow: 0 0 0 3px rgba(205,143,47,.10), inset 0 1px 8px rgba(0,0,0,.18) !important;
}

.Content input[type="checkbox"],
.Content input[type="radio"] {
  accent-color: #a53722;
}

.Content label,
.Content .control-label {
  color: #d9c39e !important;
  font-weight: 700 !important;
}

.Content .form-group,
.Content .mb-3 {
  margin-bottom: 14px !important;
}

/* ===== Buttons ===== */
.Content .btn,
.Content button:not(.close):not(.btn-close),
.Content input[type="submit"],
.Content input[type="button"],
.Content input[type="reset"] {
  border: 1px solid rgba(240,190,91,.44) !important;
  border-radius: 9px !important;
  background: linear-gradient(180deg, #96321f, #5d170f) !important;
  color: #fff0c7 !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.55);
  box-shadow: inset 0 1px rgba(255,255,255,.07), 0 5px 13px rgba(0,0,0,.24) !important;
  transition: transform .14s ease, filter .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.Content .btn:hover,
.Content button:not(.close):not(.btn-close):hover,
.Content input[type="submit"]:hover,
.Content input[type="button"]:hover,
.Content input[type="reset"]:hover {
  transform: translateY(-1px);
  filter: brightness(1.10);
  border-color: rgba(255,216,137,.75) !important;
  box-shadow: 0 8px 18px rgba(0,0,0,.30), 0 0 16px rgba(171,46,27,.13) !important;
}

.Content .btn-success { background: linear-gradient(180deg, #356d43, #1d4328) !important; border-color: rgba(111,206,139,.45) !important; }
.Content .btn-danger { background: linear-gradient(180deg, #a43a2d, #641d16) !important; border-color: rgba(243,125,111,.48) !important; }
.Content .btn-info,
.Content .btn-primary { background: linear-gradient(180deg, #7d4d20, #4a2c12) !important; border-color: rgba(233,181,88,.48) !important; }
.Content .btn-default,
.Content .btn-secondary { background: linear-gradient(180deg, #3d332c, #241d19) !important; border-color: rgba(215,193,165,.25) !important; }

/* Legacy image buttons become clean and consistent without changing click behavior. */
.BigButton,
.MediumButtonBackground {
  border-radius: 9px !important;
  overflow: hidden;
}
.BigButtonText,
.MediumButtonText {
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.55));
}

/* ===== Tables ===== */
.TableContainer {
  margin: 12px 0 !important;
  border: 1px solid rgba(232,181,83,.23) !important;
  border-radius: 12px !important;
  background: rgba(11,8,7,.48) !important;
  box-shadow: 0 7px 20px rgba(0,0,0,.20) !important;
}

.TableContentContainer {
  overflow-x: auto !important;
  border-radius: 0 0 11px 11px !important;
}

.TableContent,
.TableContainer table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.TableContent td,
.TableContent th,
.TableContainer td,
.TableContainer th {
  padding: 9px 10px !important;
  border-color: rgba(255,216,137,.08) !important;
}

.TableContainer .CaptionContainer {
  min-height: 42px !important;
  border-radius: 11px 11px 0 0 !important;
  background: linear-gradient(90deg, rgba(98,25,17,.92), rgba(43,17,13,.92)) !important;
}

.TableContainer .CaptionContainer .Text {
  padding: 0 13px !important;
  color: #ffe2a9 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .25px;
}

.TableContainer .Odd,
tr.Odd,
.Odd { background: rgba(255,255,255,.022) !important; }
.TableContainer .Even,
tr.Even,
.Even { background: rgba(255,255,255,.047) !important; }
.TableContainer tr:hover > td,
.TableContent tr:hover > td { background-color: rgba(162,47,28,.105) !important; }

.LabelH,
.LabelH td,
.Content th {
  background: rgba(88,25,17,.78) !important;
  color: #ffe1a8 !important;
  font-weight: 800 !important;
}

.LabelV,
.LabelV80,
.LabelV100,
.LabelV120,
.LabelV150,
.LabelV175,
.LabelV200,
.LabelV250 {
  color: #e1c38d !important;
  font-weight: 700 !important;
}

/* ===== Bootstrap / admin-derived public widgets ===== */
.Content .box,
.Content .card,
.Content .info-box,
.Content .modal-content,
.Content .dropdown-menu {
  border: 1px solid rgba(232,181,83,.22) !important;
  border-radius: 12px !important;
  background: linear-gradient(155deg, rgba(29,20,16,.96), rgba(15,11,9,.96)) !important;
  color: var(--nebra-text) !important;
  box-shadow: var(--nebra-shadow-soft) !important;
}

.Content .box-header,
.Content .card-header,
.Content .modal-header {
  border-bottom: 1px solid rgba(232,181,83,.17) !important;
  background: rgba(120,35,22,.20) !important;
  color: #f6d99c !important;
}

.Content .box-title,
.Content .card-title,
.Content .modal-title {
  color: #f5daa3 !important;
  font-weight: 800 !important;
}

.Content .box-body,
.Content .card-body,
.Content .modal-body { color: var(--nebra-text) !important; }
.Content .box-footer,
.Content .card-footer,
.Content .modal-footer {
  border-top-color: rgba(232,181,83,.14) !important;
  background: rgba(0,0,0,.08) !important;
}

.Content .info-box {
  overflow: hidden;
}
.Content .info-box-icon {
  background: linear-gradient(145deg, rgba(137,39,24,.72), rgba(71,21,15,.80)) !important;
  color: #ffd887 !important;
}
.Content .info-box-text { color: var(--nebra-text-soft) !important; }
.Content .info-box-number { color: #fff0c5 !important; }

.Content .progress {
  height: 10px !important;
  border-radius: 999px !important;
  background: rgba(0,0,0,.35) !important;
  overflow: hidden;
}
.Content .progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, #8a2a1c, #d69a3f) !important;
}

/* ===== Alerts / errors / status ===== */
.Content .alert,
.Content .error,
.Content .success,
.Content .warning,
.Content .note,
.FormFieldError {
  border-radius: 10px !important;
  box-shadow: 0 7px 18px rgba(0,0,0,.16);
}

.FormFieldError {
  padding: 7px 9px !important;
  border: 1px solid rgba(242,119,104,.32) !important;
  color: #ffc9c0 !important;
  background: rgba(119,33,24,.20) !important;
}

/* ===== News / ticker / featured article ===== */
.Content #NewsTicker,
.Content #FeaturedArticle {
  margin-bottom: 14px !important;
  border: 1px solid rgba(232,181,83,.22) !important;
  border-radius: 13px !important;
  overflow: hidden !important;
  background: rgba(18,13,11,.89) !important;
  box-shadow: var(--nebra-shadow-soft) !important;
}

.Content #NewsTicker .BoxContent,
.Content #FeaturedArticle .BoxContent {
  padding: 11px 13px !important;
  background: rgba(12,9,8,.64) !important;
}

.Content #NewsTicker .Row {
  min-height: 30px !important;
  padding: 5px 7px !important;
  border-bottom: 1px solid rgba(255,216,137,.08);
}
.Content #NewsTicker .Row:last-child { border-bottom: 0; }
.Content #NewsTicker .NewsTickerDate { color: #d8b36e !important; font-weight: 800 !important; }
.Content #NewsTicker .NewsTickerText,
.Content #NewsTicker .NewsTickerShortText,
.Content #NewsTicker .NewsTickerFullText { color: #e9dcc8 !important; }

.Content .NewsHeadline,
.Content .NewsHeadlineBackground {
  border-radius: 10px !important;
}
.Content .NewsHeadlineBackground {
  background: linear-gradient(90deg, rgba(105,29,19,.82), rgba(39,17,13,.70)) !important;
  border: 1px solid rgba(232,181,83,.18) !important;
}
.Content .NewsHeadlineDate { color: #e1bf7b !important; }
.Content .NewsHeadlineText { color: #fff0ca !important; font-weight: 800 !important; }
.Content .NewsHeadlineAuthor { color: #a9957d !important; }

/* ===== Forum ===== */
.Content .ForumWelcome,
.Content .ForumPost,
.Content .ForumBreadCrumbs,
.Content .PageNavigation {
  border-radius: 10px !important;
}

.Content .ForumWelcome {
  padding: 12px !important;
  border: 1px solid rgba(232,181,83,.20) !important;
  background: rgba(255,255,255,.025) !important;
}

.Content .ForumBreadCrumbs {
  margin: 8px 0 !important;
  color: var(--nebra-text-soft) !important;
}
.Content .ForumBreadCrumbsSeparator { color: var(--nebra-gold) !important; }

.Content .ForumPost {
  margin: 10px 0 !important;
  border: 1px solid rgba(232,181,83,.18) !important;
  overflow: hidden;
  background: rgba(255,255,255,.02) !important;
}
.Content .PostSeparatorV { background: rgba(232,181,83,.16) !important; }
.Content .BoardListFirstColumn { color: var(--nebra-gold-soft) !important; }

/* ===== Pagination ===== */
.Content .PageNavigation,
.Content .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}
.Content .PageLink,
.Content .CurrentPageLink,
.Content .pagination a,
.Content .pagination span,
.Content .page-link {
  min-width: 31px;
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 1px solid rgba(232,181,83,.23) !important;
  border-radius: 7px !important;
  color: #e9d1a1 !important;
  background: rgba(16,11,9,.72) !important;
  text-decoration: none !important;
}
.Content .CurrentPageLink,
.Content .page-item.active .page-link {
  border-color: rgba(255,216,137,.58) !important;
  background: linear-gradient(180deg, #8f2c1c, #59160f) !important;
  color: #fff1c8 !important;
}

/* ===== Guild / character / house / highscores details ===== */
#GuildInformationContainer,
.Content .OptionContainer,
.Content [id$="CollapseContainer"] {
  border-radius: 10px !important;
}

.Content .OptionContainer {
  box-sizing: border-box;
  border: 1px solid rgba(232,181,83,.17) !important;
  background: rgba(255,255,255,.025) !important;
}

.Content .BigToggleButton,
.Content .TopButton {
  filter: drop-shadow(0 5px 9px rgba(0,0,0,.25));
}

.Content .CircleSymbolPlus,
.Content .CircleSymbolMinus {
  filter: sepia(.5) saturate(1.2) brightness(1.06);
}

/* ===== Image presentation ===== */
.Content img:not([src*="corner-"]):not([src*="border-"]):not(.Title) {
  max-width: 100%;
}
.Content img[alt*="outfit" i],
.Content img[src*="outfit" i],
.Content img[src*="images/items" i] {
  image-rendering: auto;
  filter: drop-shadow(0 5px 7px rgba(0,0,0,.28));
}

/* ===== Donate / store / Bazaar / Rules harmonization ===== */
.nebra-rules-shell,
.nebra-rules-page,
.NebraBazaarHero,
[class*="NebraBazaar"],
[class*="nebra-bazaar"] {
  --nebra-panel: rgba(18,13,11,.91);
}

.nebra-rules-shell,
.nebra-rules-page,
.NebraBazaarHero {
  border-radius: 13px !important;
}

.Content .store-card,
.Content .product-card,
.Content .donate-card,
.Content [class*="package-card"],
.Content [class*="PackageCard"] {
  border: 1px solid rgba(232,181,83,.22) !important;
  border-radius: 12px !important;
  background: linear-gradient(155deg, rgba(35,23,17,.90), rgba(15,11,9,.92)) !important;
  box-shadow: var(--nebra-shadow-soft) !important;
}

/* ===== Boosted creature / boss: replace floating 2000s pedestal with a compact card ===== */
#RightArtwork {
  box-sizing: border-box !important;
  position: relative !important;
  top: auto !important;
  right: auto !important;
  width: 100% !important;
  height: 136px !important;
  margin: 132px 0 12px !important;
  border: 1px solid rgba(232,181,83,.28);
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(16,12,10,.95), rgba(44,24,17,.91)) !important;
  box-shadow: var(--nebra-shadow-soft);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#RightArtwork::before {
  content: 'BOOSTED TODAY';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(232,181,83,.16);
  color: #f4d28f;
  background: rgba(100,27,18,.32);
  font: 800 9px/1 Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 1px;
}

#RightArtwork #Creature,
#RightArtwork #Boss {
  position: absolute !important;
  top: 43px !important;
  width: 58px !important;
  height: 58px !important;
  object-fit: contain;
  z-index: 3 !important;
  padding: 4px;
  border: 1px solid rgba(232,181,83,.17);
  border-radius: 10px;
  background: rgba(0,0,0,.20);
  transition: transform .16s ease, border-color .16s ease;
}
#RightArtwork #Creature { left: 24px !important; }
#RightArtwork #Boss { left: auto !important; right: 24px !important; }
#RightArtwork #Creature:hover,
#RightArtwork #Boss:hover { transform: translateY(-2px) scale(1.04); border-color: rgba(255,216,137,.52); }
#PedestalAndOnline,
#RightArtwork #PlayersOnline { display: none !important; }

.NebraBoostCaption {
  position: absolute;
  top: 106px;
  width: 82px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #cbb58f;
  font: 700 8px/1 Inter, "Segoe UI", Arial, sans-serif;
  text-align: center;
}
.NebraBoostCaption.creature { left: 12px; }
.NebraBoostCaption.boss { right: 12px; }

/* ===== Right widgets ===== */
#Themeboxes {
  width: 100% !important;
}

#Themeboxes .Themebox {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 12px !important;
  border: 1px solid rgba(232,181,83,.20) !important;
  border-radius: 13px !important;
  background-color: rgba(19,13,11,.90) !important;
  box-shadow: var(--nebra-shadow-soft) !important;
  overflow: hidden !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#Themeboxes .Themebox:hover {
  border-color: rgba(232,181,83,.36) !important;
}

#Themeboxes .ThemeboxButton {
  border-radius: 8px !important;
  filter: drop-shadow(0 5px 9px rgba(0,0,0,.25));
}

/* ===== Tooltip / helper ===== */
#HelperDivContainer {
  max-width: min(420px, calc(100vw - 30px)) !important;
  padding: 11px !important;
  border-radius: 11px !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
#HelperDivHeadline { color: #f3d392 !important; font-weight: 800 !important; }
#HelperDivText { color: #e2d4c1 !important; }
#HelperDivContainer .Ornament { opacity: .45; }

/* ===== Footer ===== */
#Footer {
  box-sizing: border-box;
  margin: 18px 0 0 !important;
  padding: 15px 16px 28px !important;
  border-top: 1px solid rgba(232,181,83,.12);
  color: rgba(226,209,184,.60) !important;
  font-size: 9px !important;
  text-align: center;
}

#Footer::before {
  content: 'NEBRAOT';
  display: block;
  margin-bottom: 5px;
  color: rgba(241,198,111,.78);
  font-weight: 900;
  letter-spacing: 2px;
}

.scrollToTop {
  width: 42px !important;
  height: 42px !important;
  display: none;
  place-items: center;
  padding: 0 !important;
  border: 1px solid rgba(232,181,83,.38) !important;
  background: rgba(31,17,13,.91) !important;
  backdrop-filter: blur(8px);
}
.scrollToTop img { width: 29px !important; opacity: .86; }
.scrollToTop:hover { border-color: rgba(255,216,137,.70) !important; transform: translateY(-2px); }

/* ===== Selection and scrollbars ===== */
::selection { background: rgba(177,55,31,.78); color: #fff2d0; }
* { scrollbar-width: thin; scrollbar-color: #71301f #120d0a; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: #120d0a; }
*::-webkit-scrollbar-thumb { background: linear-gradient(#87331f, #5b2419); border: 2px solid #120d0a; border-radius: 999px; }

/* ===== Mobile / tablet ===== */
@media (max-width: 1180px) {
  #ContentRow { grid-template-columns: 216px minmax(0, 1fr) !important; }
  #ThemeboxesColumn { display: none !important; }
}

@media (max-width: 820px) {
  html, body { background-position: 56% top !important; }
  #Bodycontainer { padding: 0 9px 45px !important; }
  #ContentRow { top: 118px !important; }
  #MenuColumn {
    position: fixed !important;
    inset: 58px 9px auto 9px !important;
    z-index: 99990;
    width: auto !important;
    max-height: calc(100vh - 74px);
    overflow-y: auto;
    padding: 9px;
    border: 1px solid rgba(232,181,83,.30);
    border-radius: 14px;
    background: rgba(10,8,7,.97);
    box-shadow: var(--nebra-shadow-strong);
  }
  #LeftArtwork { display: none !important; }
  #Loginbox,
  #DownloadBox { margin-bottom: 8px !important; }
  .NebraModernPageHeader { min-height: 72px; padding: 14px 13px 12px 59px; }
  .NebraModernPageHeader::before { left: 12px; top: 13px; width: 34px; height: 34px; font-size: 17px; }
  .NebraModernPageTitle { font-size: 18px; }
  .NebraModernPageSubtitle { font-size: 9px; }
  .Content .BoxContent { padding: 12px !important; }
  .TableContentContainer,
  .Content .table-responsive { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
  .NebraMobileMenuButton { top: 10px !important; left: 10px !important; }
}

@media (max-width: 560px) {
  .Content .Box > .Border_2 { border-radius: 13px !important; }
  .NebraModernPageHeader { border-radius: 13px 13px 0 0; }
  .Content .BoxContent { border-radius: 0 0 13px 13px !important; }
  .Content .BoxContent { font-size: 11px !important; }
  .TableContent td,
  .TableContent th,
  .TableContainer td,
  .TableContainer th { padding: 7px !important; }
  .Content .btn,
  .Content button,
  .Content input[type="submit"],
  .Content input[type="button"] { min-height: 37px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* NEBRAOT_CUSTOM_HEADER_LOGO_START */
#LeftArtwork {
    overflow: visible !important;
}

#LeftArtwork #TibiaLogoArtworkTop {
    width: 250px !important;
    max-width: 250px !important;
    height: auto !important;
    object-fit: contain !important;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,.82)) !important;
    transform: translateY(-30px) !important;
    transform-origin: center top !important;
}

#LeftArtwork #TibiaLogoArtworkTop:hover {
    transform: translateY(-32px) scale(1.018) !important;
}

#LeftArtwork #LogoLink {
    display: none !important;
}
/* NEBRAOT_CUSTOM_HEADER_LOGO_END */
/* NEBRAOT_LIBRARY_COMMANDS_V4_NO_DB_START */
#NebraPlayerCommandsV4 .nebra-command-intro {
    margin: 0 0 16px;
    padding: 12px 15px;
    border: 1px solid #69461f;
    border-radius: 10px;
    background: rgba(25,10,5,.45);
    line-height: 1.55;
}
#NebraPlayerCommandsV4 .nebra-command-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #5d3b1b;
}
#NebraPlayerCommandsV4 .nebra-command-table th {
    padding: 11px 13px;
    text-align: left;
    background: #5a1e10;
    color: #fff0c8;
}
#NebraPlayerCommandsV4 .nebra-command-table td {
    padding: 10px 13px;
    vertical-align: top;
}
#NebraPlayerCommandsV4 .nebra-command-table tbody tr:nth-child(even):not(.nebra-command-section) td {
    background: #d8c29f;
    color: #20140e;
}
#NebraPlayerCommandsV4 .nebra-command-table tbody tr:nth-child(odd):not(.nebra-command-section) td {
    background: #f0dfc2;
    color: #20140e;
}
#NebraPlayerCommandsV4 .nebra-command-section td {
    background: #28120c !important;
    color: #efcb7c !important;
    font-weight: 700;
    letter-spacing: .4px;
    padding: 9px 13px;
}
#NebraPlayerCommandsV4 .nebra-command-word {
    width: 31%;
    white-space: nowrap;
    font-weight: 700;
}
#NebraPlayerCommandsV4 .nebra-command-word code {
    color: #7a210e;
    background: transparent;
    font-weight: 800;
}
#NebraPlayerCommandsV4 .nebra-command-note {
    margin-top: 14px;
    padding: 10px 13px;
    border-left: 3px solid #a97024;
    background: rgba(43,18,9,.35);
}
/* NEBRAOT_LIBRARY_COMMANDS_V4_NO_DB_END */
