/* =====================================================================
   OTSoria — layout v2 (Faza G)
   Dark fantasy theme / RWD 360–1920px
   Pokrywa: klasy layoutu (ots-*) + klasy dziedziczone z Gesior (Table*,
   Box*, Caption*, Message*, News*, BigButton, TopButton, itd.)
   ===================================================================== */

:root {
  --bg: #0b1017;
  --surface: #131c27;
  --surface-2: #182330;
  --surface-3: #1e2b3a;
  --border: #1a2430;
  --border-2: #2a3a4d;
  --gold: #c8a45c;
  --gold-2: #e0c078;
  --gold-dim: #8a7040;
  --text: #d8dee6;
  --text-dim: #8b96a5;
  --text-faint: #5c6877;
  --ok: #2e7d32;
  --ok-bg: rgba(46, 125, 50, .16);
  --bad: #e05252;
  --bad-bg: rgba(224, 82, 82, .14);
  --link: #7fb2e5;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 2px 10px rgba(0, 0, 0, .35);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "DejaVu Sans", "Liberation Sans", Arial, sans-serif;
  --font-mono: Consolas, Menlo, "DejaVu Sans Mono", monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--gold-2); text-decoration: underline; }

h1, h2, h3, h4, h5 { color: var(--text); font-weight: 600; line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.8rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }

img { max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid var(--border-2); margin: 1rem 0; }

input, select, textarea, button {
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
}

input[type="text"], input[type="password"], input[type="email"], input[type="number"], select, textarea {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  color: var(--text);
  padding: 8px 10px;
  max-width: 100%;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(200, 164, 92, .25);
}

/* ==================== UTILITIES (klasy Gesior) ==================== */

.white, .whites { color: #eef1f5; }
.size_xxs { font-size: 10px; }
.size_xs { font-size: 11px; }
.size_s { font-size: 12px; }
.size_m { font-size: 14px; }
.size_l { font-size: 16px; }
.size_xl { font-size: 18px; }
.green { color: #58c25e; }
.yellow { color: #ffbb05; }
.red { color: var(--bad); }
.w230 { width: 230px; }

/* ==================== SKIP LINK ==================== */

.ots-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: #111;
  padding: 8px 14px;
  border-radius: 0 0 var(--radius) 0;
  z-index: 200;
  font-weight: 600;
}
.ots-skip:focus { left: 0; }

/* ==================== HEADER ==================== */

.ots-header {
  background: linear-gradient(180deg, #0e161f 0%, #0b1017 100%);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.ots-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.ots-brand { display: flex; align-items: baseline; gap: 10px; margin-right: auto; }

.ots-logo {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: .5px;
  display: inline-flex;
  align-items: baseline;
  text-decoration: none !important;
}
.ots-logo-mark {
  color: #fff;
  background: linear-gradient(135deg, var(--gold) 0%, #8a6a30 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ots-logo-suffix { color: var(--gold); }
.ots-logo:hover .ots-logo-mark { -webkit-text-fill-color: var(--gold-2); }

.ots-logo-sm { font-size: 1.15rem; }
.ots-version {
  font-size: .72rem;
  color: var(--text-faint);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 1px 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ots-header-status { display: flex; align-items: center; gap: 12px; white-space: nowrap; }

.ots-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .78rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.ots-pill-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ots-pill-on { color: #7bd883; background: var(--ok-bg); border-color: rgba(46,125,50,.45); }
.ots-pill-off { color: #f09090; background: var(--bad-bg); border-color: rgba(224,82,82,.45); }

.ots-header-players { font-size: .8rem; color: var(--text-dim); }

.ots-header-account { display: flex; align-items: center; gap: 8px; }
.ots-acc-name { font-size: .85rem; color: var(--gold); font-weight: 600; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ots-login { display: flex; align-items: center; gap: 6px; }
.ots-login input { width: 110px; padding: 6px 9px; font-size: 13px; }

.ots-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  cursor: pointer;
}
.ots-burger span { display: block; height: 2px; background: var(--text-dim); border-radius: 2px; transition: transform .2s, opacity .2s; }
.ots-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ots-burger.is-open span:nth-child(2) { opacity: 0; }
.ots-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==================== NAV ==================== */

.ots-nav {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ots-nav-list {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
}

.ots-nav-item { position: relative; }

.ots-nav-link {
  display: inline-block;
  padding: 12px 15px;
  color: var(--text);
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none !important;
  border-bottom: 2px solid transparent;
}
.ots-nav-link:hover { color: var(--gold-2); }
.ots-nav-item.is-active > .ots-nav-link {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.ots-nav-toggle {
  background: none;
  border: 0;
  color: var(--text-faint);
  cursor: pointer;
  font-size: .8rem;
  padding: 4px 6px;
  vertical-align: 1px;
}
.ots-nav-toggle:hover { color: var(--gold); }

.ots-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  z-index: 90;
}
.ots-nav-item:hover .ots-dropdown, .ots-nav-item:focus-within .ots-dropdown, .ots-nav-item.is-open .ots-dropdown { display: block; }
.ots-dropdown a {
  display: block;
  padding: 7px 16px;
  color: var(--text-dim);
  font-size: .88rem;
  text-decoration: none !important;
}
.ots-dropdown a:hover { color: var(--gold-2); background: rgba(200,164,92,.07); }

.ots-nav-cta {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 10px;
  display: none;
  gap: 8px;
}
.ots-nav-cta .ots-btn { flex: 1; text-align: center; }

/* ==================== BUTTONS (ots-btn) ==================== */

.ots-btn {
  display: inline-block;
  padding: 9px 18px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none !important;
  transition: border-color .15s, background .15s, color .15s, transform .05s;
  line-height: 1.35;
}
.ots-btn:hover { color: #fff; border-color: var(--gold); background: var(--surface-2); }
.ots-btn:active { transform: translateY(1px); }

.ots-btn-sm { padding: 6px 13px; font-size: .82rem; }
.ots-btn-lg { padding: 13px 28px; font-size: 1.02rem; border-radius: 8px; }
.ots-btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #9a7432 100%);
  border-color: #9a7432;
  color: #14100a;
}
.ots-btn-gold:hover { color: #000; border-color: var(--gold-2); background: linear-gradient(135deg, var(--gold-2) 0%, var(--gold) 100%); }
.ots-btn-ghost { background: transparent; }

/* ==================== MAIN / PAGE ==================== */

.ots-main { width: 100%; max-width: 1280px; margin: 0 auto; padding: 24px 20px 48px; }

.ots-page .ots-page-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.ots-page .ots-page-card > *:first-child { margin-top: 0; }

.ots-empty { color: var(--text-dim); font-style: italic; }

/* ==================== HERO ==================== */

.ots-hero {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(200,164,92,.10) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(46,90,140,.14) 0%, transparent 50%),
    linear-gradient(180deg, #0e161f 0%, var(--bg) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 34px;
  margin-bottom: 30px;
}

.ots-hero-inner { max-width: 760px; }
.ots-hero-kicker { text-transform: uppercase; letter-spacing: 2.5px; font-size: .74rem; color: var(--gold-dim); margin: 0 0 10px; font-weight: 600; }
.ots-hero-title { font-size: 2.6rem; font-weight: 800; margin: 0 0 12px; color: #fff; }
.ots-hero-gold {
  background: linear-gradient(135deg, var(--gold-2) 0%, var(--gold) 60%, #8a6a30 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ots-hero-sub { font-size: 1.08rem; color: var(--text-dim); margin: 0 0 26px; max-width: 640px; }

.ots-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

.ots-hero-status { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; font-size: .88rem; color: var(--text-dim); }
.ots-hero-stat b { color: var(--text); }

/* ==================== SEKCJE / KARTY ==================== */

.ots-section { margin-bottom: 34px; }
.ots-section-title {
  font-size: 1.3rem;
  color: var(--gold);
  border-bottom: 1px solid var(--border-2);
  padding-bottom: 8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ots-section-title::before { content: ""; width: 6px; height: 22px; background: linear-gradient(180deg, var(--gold-2), var(--gold-dim)); border-radius: 3px; display: inline-block; }

.ots-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
  overflow-x: auto;
}
.ots-card-footer { margin-top: 12px; text-align: right; font-size: .9rem; }
.ots-card-footer a { font-weight: 600; }

/* ==================== GRID / STATYSTYKI ==================== */

.ots-grid { display: grid; gap: 14px; }
.ots-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ots-grid-4 { grid-template-columns: repeat(4, 1fr); }

.ots-stat {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.ots-stat b { display: block; font-size: 1.35rem; color: #fff; margin-top: 6px; }
.ots-stat-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-faint); }

.ots-stat-icon { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-bottom: 8px; }
.ots-stat-ok { background: #58c25e; box-shadow: 0 0 8px rgba(88,194,94,.6); }

/* ==================== TICKER / NEWS ==================== */

.ots-ticker { border-left: 3px solid var(--gold-dim); padding: 10px 14px; }
.ots-featured { border-left: 3px solid var(--gold); padding: 10px 14px; }
.ots-news-list { padding-top: 14px; }

/* ==================== TABELA (ots-table) ==================== */

.ots-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
.ots-table th {
  background: var(--surface-3);
  color: var(--gold);
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border-2);
  font-weight: 600;
  white-space: nowrap;
}
.ots-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); }
.ots-table tbody tr:hover td { background: rgba(200,164,92,.05); }
.ots-table tbody tr:last-child td { border-bottom: 0; }

/* ==================== SPOŁECZNOŚĆ / KROKI ==================== */

.ots-community-card h3 { color: var(--gold); margin-bottom: 8px; }
.ots-community-card p { color: var(--text-dim); font-size: .9rem; margin-bottom: 12px; }

.ots-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.ots-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  position: relative;
}
.ots-step h3 { font-size: 1rem; color: #fff; margin-bottom: 6px; }
.ots-step p { color: var(--text-dim); font-size: .86rem; margin: 0; }
.ots-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, #9a7432 100%);
  color: #14100a;
  font-weight: 800;
  font-size: .95rem;
  margin-bottom: 10px;
}

.ots-start-cta { text-align: center; padding: 10px 0 4px; }

/* ==================== FOOTER ==================== */

.ots-footer {
  flex-shrink: 0;
  background: #0e141c;
  border-top: 1px solid var(--border);
  margin-top: 30px;
}
.ots-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 20px 20px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 26px;
}
.ots-footer-col h4 {
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: 1.6px;
  color: var(--gold);
  margin-bottom: 12px;
}
.ots-footer-col ul { list-style: none; margin: 0; padding: 0; }
.ots-footer-col li { margin-bottom: 7px; }
.ots-footer-col a { color: var(--text-dim); font-size: .9rem; text-decoration: none !important; }
.ots-footer-col a:hover { color: var(--gold-2); }
.ots-footer-desc { color: var(--text-faint); font-size: .88rem; margin-top: 10px; max-width: 300px; }
.ots-footer-bottom {
  border-top: 1px solid var(--border);
  padding: 14px 20px;
  text-align: center;
  color: var(--text-faint);
  font-size: .8rem;
}
.ots-footer-bottom p { margin: 4px 0; }
.ots-footer-meta { font-size: .72rem; }

/* =====================================================================
   KLASY DZIEDZICZONE Z GESIOR (restyling na dark theme)
   ===================================================================== */

/* ---- ramki dekoracyjne Box (News Ticker / Featured Article) ---- */
.Box .Corner-tl, .Box .Corner-tr, .Box .Corner-bl, .Box .Corner-br,
.Corner-tl, .Corner-tr, .Corner-bl, .Corner-br { display: none; }
.CornerWrapper-b { display: none; }

.Border_1 {
  background-image: none !important;
  background: none !important;
  height: 1px;
  background-color: var(--border-2) !important;
}
.Border_2 { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.Border_3 { border: 0; }

.BorderTitleText {
  background-image: none !important;
  background: linear-gradient(90deg, rgba(200,164,92,.16) 0%, rgba(200,164,92,0) 100%);
  height: 30px;
  line-height: 30px;
  padding: 0 12px;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--gold);
  border-bottom: 1px solid var(--border-2);
}

#newsticker .BorderTitleText::after { content: "News Ticker"; }
#featuredarticle .BorderTitleText::after { content: "Featured Article"; }

#ContentBoxHeadline.Title { display: none; }

.Box .BoxContent, .Box .BoxContent,
#newsticker .BoxContent, #featuredarticle .BoxContent {
  background-image: none !important;
  background: var(--surface) !important;
  padding: 12px 14px;
}

/* ---- News Ticker ---- */
#newsticker .BoxContent { padding: 6px 10px; }
#newsticker .Row { cursor: pointer; border-radius: var(--radius); }
#newsticker .Row:hover { background: rgba(200,164,92,.05); }
#newsticker .Odd { position: relative; padding: 6px 4px; min-height: 22px; }
.NewsTickerIcon {
  background-image: none !important;
  position: absolute;
  left: 2px;
  top: 8px;
  width: 14px !important;
  height: 14px !important;
  background: var(--gold-dim);
  border-radius: 3px;
  -webkit-mask: var(--ots-ticker-icon, none);
}
.NewsTickerText { margin-left: 24px !important; font-size: .9rem !important; color: var(--text-dim); }
.NewsTickerDate { font-size: .72rem !important; color: var(--text-faint); position: static !important; float: none !important; }
.NewsTickerShortText { display: block; margin-left: 0 !important; height: auto !important; color: var(--text); }
.NewsTickerFullText { margin: 6px 12px 6px 0 !important; color: var(--text-dim); }
.NewsTickerExtend {
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 12px 12px !important;
  width: 18px !important;
  height: 18px !important;
  top: 6px !important;
  right: 2px !important;
  float: right;
  border-radius: 3px;
  background-color: rgba(255,255,255,.08);
}

/* ---- Featured Article ---- */
#featuredarticle { position: relative; }
#featuredarticle .BoxContent { position: relative; padding-top: 16px; }
#Link { color: var(--gold) !important; font-size: .86rem; font-weight: 600; right: 10px; }
#TeaserText { color: var(--text-dim); font-size: .95rem; margin: 4px 10px 6px 0; }

/* ---- News Headlines ---- */
.NewsHeadline { margin-bottom: 14px; }
.NewsHeadlineBackground {
  background-image: none !important;
  background: linear-gradient(90deg, rgba(200,164,92,.14), rgba(200,164,92,.02)) !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-bottom: 1px solid var(--border-2);
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: auto !important;
  min-height: 34px;
  padding: 5px 10px;
}
.NewsHeadlineIcon {
  position: static !important;
  float: none !important;
  margin: 0 !important;
  width: 22px;
  height: auto;
  opacity: .85;
}
.NewsHeadlineDate {
  position: static !important;
  width: auto !important;
  color: var(--text-faint) !important;
  font-size: .78rem !important;
  white-space: nowrap;
}
.NewsHeadlineText {
  position: static !important;
  left: auto !important;
  color: var(--text) !important;
  font-size: .95rem !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =====================================================================
   TABELE GESIOR (TableContainer / Table1 / Table3 / Box itd.)
   ===================================================================== */

.TableContainer {
  position: relative;
  width: 100%;
  margin-bottom: 12px;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.TableContainer > table.Table1, table.Table1, table.Table3, table.Table5 {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border-radius: var(--radius);
}

.TableContainer .CaptionContainer {
  background: var(--surface-2) !important;
  border-bottom: 1px solid var(--border-2);
  border-radius: var(--radius) var(--radius) 0 0;
}
.TableContainer .CaptionContainer .CaptionInnerContainer {
  background: none !important;
  padding: 8px 12px !important;
  min-height: 32px;
}
.TableContainer .CaptionContainer .Text {
  color: var(--gold) !important;
  font-family: var(--font);
  font-size: .95rem;
  padding: 0 !important;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.TableContainer .CaptionBorderTop { background: transparent !important; }
.TableContainer .CaptionBorderBottom { background: transparent !important; }
.TableContainer .CaptionVerticalLeft, .TableContainer .CaptionVerticalRight,
.TableContainer .CaptionEdgeLeftTop, .TableContainer .CaptionEdgeRightTop,
.TableContainer .CaptionEdgeLeftBottom, .TableContainer .CaptionEdgeRightBottom {
  background-image: none !important;
  background: transparent !important;
  display: none;
}

.TableContainer .InnerTableContainer {
  background: var(--surface);
  padding: 8px 10px;
}
.TableContainer .InnerTableButtonRow { padding: 8px 10px; }

.TableContainer td, table.Table1 td, table.Table3 td, table.Table5 td,
table.TableContent td, .InnerTableContainer td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  vertical-align: middle;
}
.TableContainer tr:last-child td, table.Table1 tr:last-child td { border-bottom: 0; }

.TableContainer .LabelV, table.Table1 .LabelV, .InnerTableContainer .LabelV,
td.LabelV {
  color: var(--text-dim);
  font-size: .86rem;
  white-space: nowrap;
  font-weight: 400;
}
.TableContainer .LabelH, .LabelH {
  color: var(--text-dim);
  font-weight: 500;
}

.TableContainer .Row, table.Table1 tr, table.Table3 tr, table.Table5 tr { background: var(--surface); }
.TableContainer .Odd, table.Table1 tr:nth-child(even), table.Table3 tr:nth-child(even) { background: var(--surface-2); }
.TableContainer tr:hover, table.Table1 tr:hover { background: rgba(200,164,92,.05); }

/* cienie/stare dekoracje */
.TableShadowContainer, .TableShadowContainerRightTop, .TableShadowRightTop,
.TableBottomShadow, .TableBottomLeftShadow, .TableBottomRightShadow,
.TableContentAndRightShadow, .TableContentContainer {
  background: none !important;
}

/* Box (w news) + SmallBox / MessageContainer */
.Box { margin-bottom: 14px; }
.Box#newsticker, .Box#featuredarticle { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }

.SmallBox {
  background: var(--surface) !important;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 14px;
  overflow: hidden;
}
.SmallBox .MessageContainer {
  position: relative;
  background: none;
  padding: 0;
}
.SmallBox .Message {
  background: none !important;
  color: var(--text);
  padding: 12px 14px;
  margin: 0;
  font-size: .92rem;
}
.SmallBox .BoxFrameHorizontal {
  background-image: none !important;
  background: var(--surface-2) !important;
  height: 3px;
}
.SmallBox .BoxFrameVerticalLeft, .SmallBox .BoxFrameVerticalRight {
  background-image: none !important;
  background: var(--border-2) !important;
  width: 1px;
}
.SmallBox .BoxFrameEdgeLeftTop, .SmallBox .BoxFrameEdgeRightTop,
.SmallBox .BoxFrameEdgeLeftBottom, .SmallBox .BoxFrameEdgeRightBottom {
  background-image: none !important;
  background: transparent !important;
}
.SmallBox .Message table { width: 100%; border-collapse: collapse; }
.SmallBox .Message table td { padding: 4px 6px; border: 0; }

.MessageContainer .Message table td { border: 0; }

.AttentionSign {
  background-image: none !important;
}
.SmallBox .AttentionSign {
  width: 22px;
  height: 22px;
  background: var(--bad);
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
  padding: 0;
}
.SmallBox .AttentionSign::after { content: "!"; }

/* komunikaty */
.Message { font-size: .92rem; }
.ErrorMessage {
  background: var(--bad-bg);
  border: 1px solid rgba(224,82,82,.4);
  border-radius: var(--radius);
  color: #f2b8b8;
  padding: 9px 12px;
  margin-bottom: 12px;
  font-size: .9rem;
}
.SmallBox .ErrorMessage {
  background: var(--bad-bg);
  color: #f2b8b8;
}

/* =====================================================================
   PRZYCISKI GESIOR (BigButton / TopButton) -> CSS
   ===================================================================== */

.BigButton {
  border: 1px solid var(--border-2);
  border-radius: 5px;
  cursor: pointer;
  display: inline-block;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.BigButton:hover { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(200,164,92,.25); }
.BigButtonOver { visibility: hidden !important; }
.ButtonText {
  background: none !important;
  border: 0 !important;
  padding: 2px 4px !important;
}
.BigButton input.ButtonText { display: block; }
input.ButtonText[type="image"] {
  padding: 0 !important;
  border: 0 !important;
  cursor: pointer;
}

.TopButton { background: var(--surface-2); border: 1px solid var(--border-2); border-radius: var(--radius); }
.TopButtonContainer { background: none; }

/* =====================================================================
   RÓŻNE KLASY WZORCÓW (btn/bootstrap resztki itd.)
   ===================================================================== */

.btn { display: inline-block; padding: 8px 16px; border-radius: var(--radius); background: var(--surface-3); border: 1px solid var(--border-2); color: var(--text); cursor: pointer; text-decoration: none !important; }
.btn:hover { border-color: var(--gold); color: #fff; }
.btn-success { background: rgba(46,125,50,.3); border-color: rgba(46,125,50,.6); color: #7bd883; }
.btn-login, .navibutton { background: var(--surface-2); border: 1px solid var(--border-2); border-radius: var(--radius); color: var(--text-dim); cursor: pointer; padding: 5px 14px; }
.btn-login:hover, .navibutton:hover { color: var(--gold); border-color: var(--gold); }

.cryptoError { background: var(--bad-bg); border: 1px solid rgba(224,82,82,.4); border-radius: var(--radius); color: #f2b8b8; padding: 8px 12px; }
.dropdown-toggle { background: var(--surface-2); border: 1px solid var(--border-2); border-radius: var(--radius); color: var(--text); padding: 6px 12px; cursor: pointer; }
.panel-title { color: var(--gold); font-weight: 600; }

.g-recaptcha { filter: invert(0.92) hue-rotate(180deg); }

/* tabele inline (np. showPost) */
table[border="0"] td { font-size: .92rem; }
.Content .BoxContent td .white, .Content .BoxContent td .whites { color: #eef1f5; }

/* =====================================================================
   RWD
   ===================================================================== */

/* >= 1200: max szerokość kontenerów */
@media (min-width: 1200px) {
  .ots-header-inner, .ots-nav-list, .ots-nav-cta, .ots-main { max-width: 1280px; }
}

/* <= 1024: zwijamy rozmiary */
@media (max-width: 1024px) {
  .ots-login input { width: 95px; }
  .ots-nav-link { padding: 11px 11px; font-size: .88rem; }
  .ots-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .ots-steps { grid-template-columns: repeat(2, 1fr); }
}

/* <= 900: burger + nawigacja mobilna */
@media (max-width: 900px) {
  .ots-burger { display: flex; }
  .ots-header-status { display: none; }
  .ots-header-inner { height: 58px; padding: 0 14px; gap: 10px; }

  .ots-nav {
    display: none;
    border-top: 0;
  }
  .ots-nav.is-open { display: block; }

  .ots-nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0;
  }
  .ots-nav-item { border-bottom: 1px solid var(--border); }
  .ots-nav-link { display: block; padding: 12px 16px; border-bottom: 0; font-size: .95rem; }
  .ots-nav-item.is-active > .ots-nav-link { color: var(--gold); background: rgba(200,164,92,.06); }

  .ots-nav-toggle { float: right; margin-top: -38px; margin-right: 6px; padding: 10px 12px; font-size: 1rem; }
  .ots-nav-item.is-open .ots-nav-toggle { transform: rotate(180deg); }

  .ots-dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border: 0;
    border-top: 1px dashed var(--border-2);
    border-radius: 0;
    background: rgba(0,0,0,.15);
    padding: 4px 0;
  }
  .ots-nav-item.is-open .ots-dropdown { display: block; }
  .ots-nav-item:hover .ots-dropdown { display: none; }
  .ots-nav-item.is-open:hover .ots-dropdown { display: block; }
  .ots-dropdown li { padding-left: 12px; }

  .ots-nav-cta { display: flex; padding: 12px 16px; }

  .ots-header-account .ots-login { display: none; }
  .ots-header-account .ots-btn { font-size: .78rem; padding: 6px 10px; }
}

/* <= 720: hero i siatki */
@media (max-width: 720px) {
  .ots-hero { padding: 30px 20px; }
  .ots-hero-title { font-size: 2rem; }
  .ots-grid-3, .ots-grid-4 { grid-template-columns: 1fr; }
  .ots-footer-inner { grid-template-columns: repeat(2, 1fr); }
  .ots-main { padding: 16px 12px 36px; }
  .ots-steps { grid-template-columns: 1fr; }

  .ots-table { min-width: 480px; }
  .TableContainer table.Table1 { min-width: 480px; }
  .ots-card, .ots-page .ots-page-card { padding: 14px 12px; }
  .ots-hero-actions .ots-btn { flex: 1 1 100%; text-align: center; }
}

/* <= 480: mobilne */
@media (max-width: 480px) {
  .ots-header-inner { height: 54px; }
  .ots-logo { font-size: 1.35rem; }
  .ots-version { display: none; }
  .ots-header-account .ots-acc-name { max-width: 90px; }
  .ots-header-account .ots-btn { display: none; }
  .ots-header-account .ots-btn:last-child, .ots-header-account .ots-btn:first-of-type { display: none; }

  .ots-footer-inner { grid-template-columns: 1fr; gap: 18px; }
  .ots-section-title { font-size: 1.15rem; }
  .ots-hero-title { font-size: 1.7rem; }
  .ots-hero-sub { font-size: .95rem; }
  .NewsHeadlineDate { display: none; }
  .NewsHeadlineText { white-space: normal; }
}

/* <= 360: ekstremalne */
@media (max-width: 360px) {
  .ots-header-inner { padding: 0 10px; }
  .ots-main { padding: 12px 8px 28px; }
  .ots-btn { padding: 8px 14px; }
  .ots-hero { padding: 22px 14px; }
  .ots-nav-cta { flex-direction: column; }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* =====================================================================
   DRUK — tylko treść
   ===================================================================== */
@media print {
  .ots-header, .ots-nav, .ots-footer, .ots-hero, .ots-section-title::before { display: none !important; }
  body { background: #fff; color: #000; }
  .ots-card, .ots-page .ots-page-card, .TableContainer { border: 1px solid #999; box-shadow: none; background: #fff; }
}


