/* ══════════════════════════════════════════════════════════════
   SKY ANGEL — Tema "Obsidiana & Ouro"
   Paleta única: obsidiana quente · ouro envelhecido · pergaminho
   Template MyAAC
══════════════════════════════════════════════════════════════ */

:root {
  /* obsidiana quente (fundos) */
  --bg-0: #1f1914;
  --bg-1: #29211a;
  --bg-2: #332a21;
  --bg-3: #3d3227;
  --line: #5a4932;
  --line-2: #75603f;

  /* ouro envelhecido (único acento) */
  --gold-deep: #a8823f;
  --gold: #dbb066;
  --gold-hi: #f0d08f;
  --gold-pale: #fbecc8;

  /* pergaminho e tinta */
  --parch: #f1e6cc;
  --parch-2: #e8d9b6;
  --parch-3: #dcc79c;
  --parch-line: #c3a774;
  --ink: #2b2116;
  --ink-soft: #5a4733;
  --ink-accent: #6e3b1a;

  /* texto sobre escuro */
  --txt: #f6efe0;
  --txt-dim: #d6c8aa;
  --txt-muted: #ae9f84;

  --ok: #9fd977;
  --bad: #ee8167;

  --radius: 4px;
  --shadow: 0 10px 26px rgba(0,0,0,.40);

  --f-head: 'Cinzel', 'Trajan Pro', serif;
  --f-body: 'EB Garamond', Georgia, 'Times New Roman', serif;

  --grad-panel: linear-gradient(180deg, #3a2f24 0%, #2d241b 100%);
  --grad-head: linear-gradient(180deg, #4a3b2a 0%, #3a2e20 100%);
  --grad-gold: linear-gradient(180deg, #e3c68b 0%, #c19a55 48%, #9a7638 100%);
  --grad-gold-h: linear-gradient(180deg, #efd7a3 0%, #d0aa63 48%, #a9843f 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body); font-size: 17px; line-height: 1.6;
  color: var(--txt);
  background-color: var(--bg-0);
  background-image:
    url('images/skyangel/parchment.svg'),
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(219,176,102,.16), transparent 70%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  background-attachment: fixed;
  background-blend-mode: soft-light, normal, normal;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { border: none; max-width: 100%; height: auto; }
a { color: var(--gold-hi); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-pale); }
b, strong { font-weight: 700; }

.gk-container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ═════════════ BARRA SUPERIOR ═════════════ */
#gk-topbar {
  position: relative; z-index: 20;
  min-height: 42px; display: flex; align-items: center;
  background: var(--bg-0);
  border-bottom: 1px solid var(--line);
}
#gk-topbar .gk-container { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 12px; }
.gk-topbar-left { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.gk-toplink {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--f-head); font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--txt-dim);
}
.gk-toplink i { color: var(--gold); font-size: 12px; }
.gk-toplink:hover { color: var(--gold-pale); }
.gk-online-badge {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--f-head); font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--txt-dim);
}
.gk-online-badge strong { color: var(--gold-pale); font-size: 13px; }
.gk-online-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(143,191,106,.18); }
.gk-online-dot.off { background: var(--bad); box-shadow: 0 0 0 3px rgba(208,106,85,.18); }

/* ═════════════ HERO ═════════════ */
#sa-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 55% 60% at 50% 42%, rgba(219,176,102,.30) 0%, rgba(219,176,102,0) 70%),
    radial-gradient(ellipse 120% 80% at 50% 120%, rgba(0,0,0,.35) 0%, transparent 60%),
    linear-gradient(180deg, #3a2e22 0%, #2a2119 100%);
  border-bottom: 1px solid var(--line-2);
}
#sa-hero.has-banner {
  background:
    linear-gradient(180deg, rgba(12,10,8,.55) 0%, rgba(12,10,8,.70) 60%, rgba(12,10,8,.95) 100%),
    var(--sa-banner) center 30% / cover no-repeat;
}
#sa-hero::before { /* vinheta + granulado */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url('images/skyangel/parchment.svg');
  opacity: .18; mix-blend-mode: soft-light;
}
#sa-hero::after { /* fio de ouro no rodapé do hero */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  opacity: .55;
}

.sa-sigil-bg {
  position: absolute; left: 50%; top: 44%; width: 760px; height: 760px;
  transform: translate(-50%, -50%);
  fill: none; stroke: var(--gold); stroke-width: .7; opacity: .18;
  pointer-events: none;
  animation: saTurn 240s linear infinite;
}
.sa-sigil-bg text { fill: var(--gold); stroke: none; font-family: var(--f-head); font-size: 13px; letter-spacing: 6px; }
@keyframes saTurn { to { transform: translate(-50%, -50%) rotate(360deg); } }

.sa-hero-inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 64px 20px 54px;
}
.sa-crest { width: 74px; height: 74px; margin-bottom: 22px; }
.sa-crest .o { fill: none; stroke: var(--gold); stroke-width: 1.4; }
.sa-crest .i { fill: rgba(193,154,85,.06); stroke: var(--gold); stroke-width: .8; opacity: .7; }
.sa-crest .s { fill: var(--gold-hi); }
.sa-crest .s2 { fill: none; stroke: var(--gold); stroke-width: 1; opacity: .7; }
.sa-crest .c { fill: var(--bg-1); }

.sa-eyebrow {
  font-family: var(--f-head); font-size: 12px; font-weight: 700;
  letter-spacing: 6px; text-transform: uppercase; color: var(--gold);
  margin-bottom: 12px;
}
.sa-title {
  margin: 0;
  font-family: var(--f-head); font-weight: 700;
  font-size: clamp(44px, 7.4vw, 92px); line-height: 1; letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-pale);
  background: linear-gradient(180deg, #f6ead0 0%, #e2c78f 55%, #b48b47 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.6)) drop-shadow(0 12px 30px rgba(0,0,0,.55));
}
.sa-title-img img { max-height: 160px; width: auto; }
.sa-ornament {
  width: 300px; max-width: 80%; height: 18px; margin: 22px auto 20px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 18'><line x1='0' y1='9' x2='128' y2='9' stroke='%23c19a55' stroke-width='1'/><line x1='172' y1='9' x2='300' y2='9' stroke='%23c19a55' stroke-width='1'/><path d='M150 1 L158 9 L150 17 L142 9Z' fill='none' stroke='%23c19a55' stroke-width='1.2'/><path d='M150 5 L154 9 L150 13 L146 9Z' fill='%23dcbd80'/><circle cx='134' cy='9' r='1.6' fill='%23c19a55'/><circle cx='166' cy='9' r='1.6' fill='%23c19a55'/></svg>") center/contain no-repeat;
}
.sa-tagline {
  max-width: 620px; margin: 0 auto 34px;
  font-size: 20px; line-height: 1.6; font-style: italic;
  color: var(--txt);
}
.gk-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.gk-countdown { margin-top: 38px; }
.gk-countdown-label { font-family: var(--f-head); font-size: 11.5px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.gk-countdown-boxes { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.gk-cd-box {
  width: 80px; padding: 14px 6px 10px;
  background: var(--grad-panel); border: 1px solid var(--line-2);
  box-shadow: inset 0 0 0 3px var(--bg-1), inset 0 0 0 4px rgba(219,176,102,.35);
}
.gk-cd-box span { display: block; font-family: var(--f-head); font-weight: 700; font-size: 30px; line-height: 1; color: var(--gold-pale); }
.gk-cd-box small { display: block; margin-top: 6px; font-family: var(--f-head); font-size: 9.5px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--txt-muted); }

/* barra de status do hero */
.sa-statbar { position: relative; z-index: 2; background: rgba(31,25,20,.88); border-top: 1px solid var(--line); }
.sa-statbar-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.sa-stat {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 16px 10px;
  border-left: 1px solid var(--line);
}
.sa-stat:first-child { border-left: none; }
.sa-stat-label { font-family: var(--f-head); font-size: 10.5px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--txt-muted); }
.sa-stat-val { display: flex; align-items: center; gap: 8px; font-family: var(--f-head); font-size: 17px; font-weight: 700; letter-spacing: 1px; color: var(--gold-pale); }
.sa-stat-val .sa-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(143,191,106,.2); }
.sa-stat-val.off .sa-dot { background: var(--bad); box-shadow: 0 0 0 3px rgba(208,106,85,.2); }
.sa-stat-val.on { color: #cfe3bd; }
.sa-stat-val.off { color: #ecb3a5; }

/* ═════════════ BOTÕES ═════════════ */
.gk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 34px; border-radius: 2px;
  font-family: var(--f-head); font-size: 12.5px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.gk-btn-red, a.gk-btn-red, button.gk-btn-red {
  background: var(--grad-gold); color: #1d150b !important;
  border: 1px solid #e8cf9a;
  box-shadow: 0 8px 22px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.35);
}
.gk-btn-red:hover { background: var(--grad-gold-h); color: #120c05 !important; box-shadow: 0 10px 28px rgba(0,0,0,.5), 0 0 24px rgba(193,154,85,.25); }
.gk-btn-outline, a.gk-btn-outline {
  background: rgba(31,25,20,.45); color: var(--gold-pale) !important;
  border: 1px solid var(--gold-deep);
}
.gk-btn-outline:hover { border-color: var(--gold); background: rgba(193,154,85,.10); color: #fff7e4 !important; }
.gk-btn-full { width: 100%; }

/* ═════════════ LAYOUT ═════════════ */
#gk-main { padding: 40px 0 60px; }
.gk-layout { display: grid; grid-template-columns: 220px minmax(0,1fr) 260px; gap: 26px; align-items: flex-start; }

/* ═════════════ MENU ═════════════ */
#gk-sidebar { position: sticky; top: 16px; }
.sa-side-title {
  font-family: var(--f-head); font-size: 11.5px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase;
  color: var(--txt-muted); padding: 0 4px 10px; margin-bottom: 12px; border-bottom: 1px solid var(--line);
}
.gk-nav { display: flex; flex-direction: column; gap: 6px; }
.gk-nav-group { background: var(--grad-panel); border: 1px solid var(--line); }
.gk-nav-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; cursor: pointer; user-select: none;
  font-family: var(--f-head); font-size: 12.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold-pale); transition: background .2s;
}
.gk-nav-header:hover { background: rgba(193,154,85,.07); }
.sa-nav-ico { width: 18px; margin-right: 10px; color: var(--gold); font-size: 12px; text-align: center; }
.gk-nav-arrow { font-size: 9px; color: var(--gold-deep); transition: transform .3s; }
.gk-nav-group.open .gk-nav-arrow { transform: rotate(180deg); color: var(--gold); }
.gk-nav-group.open .gk-nav-header { border-bottom: 1px solid var(--line); }
.gk-nav-items { display: none; flex-direction: column; padding: 6px 0; background: rgba(0,0,0,.10); }
.gk-nav-group.open .gk-nav-items { display: flex; }
.gk-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 18px;
  font-size: 17px; color: var(--txt) !important;
  border-left: 2px solid transparent; transition: all .2s;
}
.gk-nav-item i { font-size: 10px; color: var(--gold-deep); }
.gk-nav-item:hover { color: var(--gold-pale) !important; background: rgba(219,176,102,.12); }
.gk-nav-item:hover i { color: var(--gold); }
.gk-nav-item.active { color: var(--gold-pale) !important; border-left-color: var(--gold); background: rgba(219,176,102,.16); }
.gk-nav-item.active i { color: var(--gold); }

/* ═════════════ PAINEL PRINCIPAL (pergaminho) ═════════════ */
#gk-content { min-width: 0; }
.gk-box {
  position: relative; margin-bottom: 26px;
  color: var(--ink);
  background:
    url('images/skyangel/parchment.svg'),
    radial-gradient(ellipse at 50% 40%, transparent 60%, rgba(140,105,55,.20) 100%),
    linear-gradient(180deg, var(--parch) 0%, var(--parch-2) 100%);
  border: 1px solid #6b5537;
  box-shadow: var(--shadow);
  outline: 1px solid var(--parch-line); outline-offset: -7px;
}
/* cantoneiras */
.gk-box::before, .gk-box::after {
  content: ""; position: absolute; width: 26px; height: 26px; pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'><path d='M1 25 V1 H25' fill='none' stroke='%238a6a35' stroke-width='1.5'/><path d='M5 25 V5 H25' fill='none' stroke='%238a6a35' stroke-width='.8'/><path d='M5 5 L10 10' stroke='%238a6a35' stroke-width='1'/><circle cx='11' cy='11' r='1.6' fill='%238a6a35'/></svg>") center/contain no-repeat;
}
.gk-box::before { top: 3px; left: 3px; }
.gk-box::after { top: 3px; right: 3px; transform: scaleX(-1); }

.gk-box-head {
  position: relative; padding: 30px 40px 4px; text-align: center;
  font-family: var(--f-head); font-size: 25px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--ink);
}
.gk-box-head::after {
  content: ""; display: block; width: 220px; max-width: 70%; height: 14px; margin: 12px auto 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 14'><line x1='0' y1='7' x2='96' y2='7' stroke='%238a6a35' stroke-width='1'/><line x1='124' y1='7' x2='220' y2='7' stroke='%238a6a35' stroke-width='1'/><path d='M110 1 L116 7 L110 13 L104 7Z' fill='%238a6a35'/></svg>") center/contain no-repeat;
}
.gk-box-body { padding: 16px 38px 38px; font-size: 18px; line-height: 1.68; color: var(--ink); }

#gk-content .gk-box-body,
#gk-content .gk-box-body p, #gk-content .gk-box-body li,
#gk-content .gk-box-body td, #gk-content .gk-box-body div { color: var(--ink); }
#gk-content .gk-box-body a { color: var(--ink-accent); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(110,59,26,.3); text-underline-offset: 3px; }
#gk-content .gk-box-body a:hover { color: #4a2510; text-decoration-color: currentColor; }
#gk-content .gk-box-body h1, #gk-content .gk-box-body h2, #gk-content .gk-box-body h3, #gk-content .gk-box-body h4 {
  font-family: var(--f-head); color: var(--ink); letter-spacing: 1px; line-height: 1.3;
}
#gk-content .gk-box-body b, #gk-content .gk-box-body strong { color: var(--ink); }

hr {
  border: none; height: 14px; margin: 22px 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'><line x1='0' y1='7' x2='138' y2='7' stroke='%23a88a55' stroke-width='1'/><line x1='162' y1='7' x2='300' y2='7' stroke='%23a88a55' stroke-width='1'/><path d='M150 2 L155 7 L150 12 L145 7Z' fill='%238a6a35'/></svg>") center/100% 100% no-repeat;
}

/* ═════════════ TICKER / DESTAQUE ═════════════ */
#newsticker, #FeaturedArticle {
  margin-bottom: 26px; padding: 18px 24px 12px;
  background: var(--grad-panel); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
#newsticker img.Title, #FeaturedArticle img.Title, #gk-content img.Title { display: none; }
#newsticker::before, #FeaturedArticle::before {
  display: block; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line);
  font-family: var(--f-head); font-size: 12px; font-weight: 700; letter-spacing: 3.5px; text-transform: uppercase; color: var(--gold);
}
#newsticker::before { content: "Últimas Notícias"; }
#FeaturedArticle::before { content: "Em Destaque"; }
#newsticker .BoxContent, #FeaturedArticle .BoxContent { color: var(--txt); }
.NewsTickerItem { padding: 10px 0; border-bottom: 1px solid rgba(58,47,34,.7); }
.NewsTickerItem:last-child { border-bottom: none; }
.NewsTickerText { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; font-size: 17.5px; }
.NewsTickerDate { font-family: var(--f-head); font-size: 11.5px; font-weight: 700; letter-spacing: 1px; color: var(--gold); white-space: nowrap; }
.NewsTickerFullText, .NewsTickerFullText * { color: var(--txt) !important; }
#FeaturedArticle #TeaserThumbnail { float: left; margin: 6px 16px 8px 0; }
#FeaturedArticle #TeaserThumbnail img { border: 1px solid var(--gold-deep); }
#FeaturedArticle #TeaserText, #FeaturedArticle #TeaserText * { color: var(--txt); }
#FeaturedArticle #Link { float: right; font-family: var(--f-head); font-size: 12px; }
#FeaturedArticle .BoxContent::after { content: ""; display: block; clear: both; }

/* ═════════════ NOTÍCIAS (MyAAC) ═════════════ */
.NewsHeadline { margin: 6px 0 18px; }
.NewsHeadlineBackground {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px;
  padding: 0 0 12px !important; background: none !important;
  border-bottom: 1px solid var(--parch-line);
}
.NewsHeadlineIcon { display: none; }
#gk-content .NewsHeadlineText, .NewsHeadlineText {
  order: -1; flex-basis: 100%; float: none !important;
  font-family: var(--f-head); font-size: 22px; font-weight: 700; letter-spacing: .5px; line-height: 1.3;
  color: var(--ink) !important;
}
#gk-content .NewsHeadlineDate, .NewsHeadlineDate { float: none !important; font-family: var(--f-head); font-size: 12px; font-weight: 600; letter-spacing: 1px; color: var(--ink-soft) !important; }
#gk-content .NewsHeadlineAuthor, #gk-content .NewsHeadlineAuthor b, .NewsHeadlineAuthor { float: none !important; font-size: 15px; font-style: italic; color: var(--ink-accent) !important; }

/* ═════════════ TABELAS MyAAC ═════════════ */
.TableContainer {
  margin: 0 0 22px; overflow: hidden;
  border: 1px solid var(--parch-line);
  background: rgba(255,251,240,.35);
}
.CaptionContainer { margin: 0; }
.CaptionInnerContainer { padding: 11px 16px; background: var(--grad-head); border-bottom: 1px solid var(--gold-deep); }
.CaptionInnerContainer .Text, #gk-content .CaptionInnerContainer .Text {
  font-family: var(--f-head); font-size: 13px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold-pale) !important;
}
.CaptionEdgeLeftTop, .CaptionEdgeRightTop, .CaptionEdgeLeftBottom, .CaptionEdgeRightBottom,
.CaptionBorderTop, .CaptionBorderBottom, .CaptionVerticalLeft, .CaptionVerticalRight { display: none !important; }
.InnerTableContainer { padding: 10px; }
.TableContentContainer { padding: 0; }

#gk-content table { border-collapse: collapse; max-width: 100%; }
#gk-content table.TableContent, #gk-content table.Table1, #gk-content table.Table2,
#gk-content table.Table3, #gk-content table.Table4, #gk-content table.Table5 { width: 100%; }
#gk-content table.TableContent { border: 1px solid rgba(195,167,116,.7) !important; }
#gk-content table td, #gk-content table th { padding: 6px 10px; font-size: 16.5px; color: var(--ink); vertical-align: middle; }
#gk-content table.TableContent td, #gk-content table.TableContent th { padding: 10px 14px; border-bottom: 1px solid rgba(195,167,116,.55); }
#gk-content .TableContent tr:hover td { background-color: rgba(193,154,85,.12); }
#gk-content table.Table1 > tbody > tr > td, #gk-content table.Table2 > tbody > tr > td,
#gk-content table.Table3 > tbody > tr > td, #gk-content table.Table4 > tbody > tr > td,
#gk-content table.Table5 > tbody > tr > td, #gk-content .InnerTableContainer > table > tbody > tr > td { padding: 0; border: 0; }

/* cabeçalhos de tabela */
#gk-content .TableHead td, #gk-content tr.TableHead td, #gk-content td.TableHead, #gk-content th,
#gk-content [bgcolor="#505050"], #gk-content [bgcolor="#5F2A10"], #gk-content [bgcolor="#5f2a10"],
#gk-content [bgcolor="#2a2219"], #gk-content [style*="background-color: #2a2219"], #gk-content [style*="background-color:#2a2219"] {
  background: var(--grad-head) !important; color: var(--gold-pale) !important;
  font-family: var(--f-head); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
}
#gk-content [bgcolor="#505050"] *, #gk-content [bgcolor="#5F2A10"] *, #gk-content [bgcolor="#2a2219"] *, #gk-content th *,
#gk-content .white, #gk-content td.white, #gk-content .white * { color: var(--gold-pale) !important; }

/* linhas alternadas */
#gk-content [bgcolor="#F1E0C6"], #gk-content [bgcolor="#f1e0c6"], #gk-content [bgcolor="#f6eedb"],
#gk-content [style*="background-color: #F1E0C6"], #gk-content [style*="background-color:#F1E0C6"] { background-color: #f6eedb !important; }
#gk-content [bgcolor="#D4C0A1"], #gk-content [bgcolor="#d4c0a1"], #gk-content [bgcolor="#ebdfc2"],
#gk-content [style*="background-color: #D4C0A1"], #gk-content [style*="background-color:#D4C0A1"] { background-color: #ebdfc2 !important; }
#gk-content [bgcolor="#faf0d7"], #gk-content [style*="background-color:#faf0d7"], #gk-content [style*="background: #faf0d7"] { background-color: #faf4e4 !important; }

.LabelV, #gk-content .LabelV, #gk-content td.LabelV, #gk-content .LabelH {
  white-space: nowrap; padding-right: 16px !important;
  font-family: var(--f-head); font-size: 13px; font-weight: 700; letter-spacing: .8px;
  color: var(--ink-soft) !important;
}
#gk-content .red, .red { color: #a3321e !important; }
#gk-content .green { color: #3f6b22 !important; }
.green { color: var(--ok); }
.gold { color: var(--gold-pale); }
#gk-content .Description, #gk-content .SmallLabel { font-style: italic; color: var(--ink-soft) !important; }
#gk-content .FormFieldError { color: #a3321e !important; }
#gk-content .SmallBox, #gk-content .MessageContainer { background: rgba(255,251,240,.6) !important; border: 1px solid var(--parch-line); }
#gk-content .Message { padding: 10px 14px; color: var(--ink) !important; }

.BoxContent, #gk-content .BoxContent { background-image: none !important; background-color: transparent !important; }
div[style*="scroll.gif"], #gk-content table[background], #gk-content div[background] { background-image: none !important; }
.Corner-tl, .Corner-tr, .Corner-bl, .Corner-br, .CornerWrapper-b, .Border_1, .TableShadow,
#MenuTop, #MenuBottom, #LoginTop, #LoginBottom, #BorderLeft, #BorderRight, .Ornament,
.SmallBoxTop, .SmallBoxBottom, .TableBottomShadow, .TableBottomLeftShadow, .TableBottomRightShadow,
.TableRightShadow, .TableShadowRightTop, .TableShadowContainerRightTop { display: none !important; }
#gk-content img[src*="flag"] { border: 1px solid var(--parch-line); vertical-align: middle; }

/* ═════════════ FORMULÁRIOS ═════════════ */
input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="search"], textarea, select {
  font-family: var(--f-body); font-size: 16.5px;
  padding: 9px 12px; border-radius: 2px; outline: none;
  background: #18130f; color: var(--txt);
  border: 1px solid var(--line-2);
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder { color: var(--txt-muted); }
input:focus, textarea:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(193,154,85,.18); }
#gk-content input[type="text"], #gk-content input[type="password"], #gk-content input[type="email"],
#gk-content input[type="number"], #gk-content input[type="search"], #gk-content textarea, #gk-content select {
  background: #fffaf0 !important; color: var(--ink) !important;
  border: 1px solid #b89c69 !important; min-height: 40px; height: auto !important;
  box-shadow: inset 0 1px 2px rgba(80,60,30,.15) !important;
}
#gk-content input:focus, #gk-content textarea:focus, #gk-content select:focus { border-color: var(--gold-deep) !important; box-shadow: 0 0 0 3px rgba(138,106,53,.2) !important; }
#gk-content input[type="radio"], #gk-content input[type="checkbox"] { accent-color: var(--gold-deep); width: 16px; height: 16px; vertical-align: middle; }

input[type="submit"], button[type="submit"], input[type="button"] {
  background: var(--grad-gold); color: #1d150b;
  border: 1px solid #e8cf9a; border-radius: 2px;
  padding: 11px 24px; cursor: pointer;
  font-family: var(--f-head); font-size: 12px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.35); transition: all .2s;
}
input[type="submit"]:hover, button[type="submit"]:hover, input[type="button"]:hover { background: var(--grad-gold-h); }
#gk-content input[type="submit"], #gk-content button[type="submit"], #gk-content input[type="button"] { color: #1d150b !important; }

.MediumButtonBackground, .BigButton {
  display: inline-flex !important; align-items: center; justify-content: center;
  background: var(--grad-gold) !important; background-image: var(--grad-gold) !important;
  border: 1px solid #e8cf9a !important; border-radius: 2px !important;
  padding: 2px 8px; min-height: 36px; width: auto !important; height: auto !important; cursor: pointer;
}
.MediumButtonBackground:hover, .BigButton:hover { background: var(--grad-gold-h) !important; }
.MediumButtonOver, .BigButtonOver { display: none !important; }
.MediumButtonText, .BigButtonText {
  font-family: var(--f-head) !important; font-size: 12px !important; font-weight: 700; letter-spacing: 1.5px;
  color: #1d150b !important; background: transparent !important; border: none !important; box-shadow: none !important;
}

/* ═════════════ WIDGETS ═════════════ */
#gk-widgets { display: flex; flex-direction: column; gap: 20px; }
.gk-widget { background: var(--grad-panel); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--txt); }
.gk-widget-head {
  position: relative; padding: 14px 18px 12px;
  font-family: var(--f-head); font-size: 12.5px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold-pale); border-bottom: 1px solid var(--line);
}
.gk-widget-head::after {
  content: ""; position: absolute; left: 18px; bottom: -1px; width: 36px; height: 1px; background: var(--gold);
}
.gk-widget-body { padding: 16px 18px; font-size: 16.5px; }

.gk-status-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.gk-status-row:last-child { border-bottom: none; }
.gk-status-row span:first-child { font-family: var(--f-head); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--txt-muted); }
.gk-status-val { font-family: var(--f-head); font-size: 14px; font-weight: 700; color: var(--gold-pale); }
.gk-status-val.green { color: var(--ok); } .gk-status-val.red { color: var(--bad); }

.gk-field { margin-bottom: 14px; }
.gk-field label { display: block; margin-bottom: 6px; font-family: var(--f-head); font-size: 10.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--txt-dim); }
.gk-field input[type="text"], .gk-field input[type="password"] { width: 100%; }
.gk-field-row { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; font-size: 15px; color: var(--txt-dim); }
.gk-field-row input[type="checkbox"] { accent-color: var(--gold); }
.gk-widget-links { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.gk-widget-links a { font-size: 15px; color: var(--txt-dim); }
.gk-widget-links a:hover { color: var(--gold-pale); }

/* ranking lateral */
.gk-hs-row { transition: background .2s; }
.gk-hs-row:hover { background: rgba(193,154,85,.06); }
.sa-hs-row { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.sa-hs-rank { flex: 0 0 22px; font-family: var(--f-head); font-size: 15px; font-weight: 700; color: var(--txt-muted); text-align: center; }
.sa-hs-rank.r1 { color: var(--gold-hi); } .sa-hs-rank.r2 { color: #d8d2c4; } .sa-hs-rank.r3 { color: #c08a5a; }
.sa-hs-outfit { flex: 0 0 auto; image-rendering: pixelated; margin: -10px -6px -6px -10px; }
.sa-hs-ico { flex: 0 0 30px; height: 30px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); color: var(--gold); font-size: 13px; }
.sa-hs-info { flex: 1; min-width: 0; }
.sa-hs-name { display: block; font-size: 16.5px; font-weight: 600; color: var(--txt) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.sa-hs-name:hover { color: var(--gold-pale) !important; }
.sa-hs-level { font-family: var(--f-head); font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--txt-muted); }
.sa-hs-more { display: block; padding: 12px; text-align: center; font-family: var(--f-head); font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold) !important; }
.sa-hs-more:hover { color: var(--gold-pale) !important; }
.sa-hs-empty { padding: 16px; text-align: center; color: var(--txt-muted); font-style: italic; }

/* castelo */
.castle-widget-body { text-align: center; }
.castle-image {
  height: 70px; margin: 2px auto 10px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 80' fill='none' stroke='%23c19a55' stroke-width='1.6'><path d='M10 79 V40 h8 v-6 h6 v6 h6 v-6 h6 v6 h8 V79Z'/><path d='M74 79 V40 h8 v-6 h6 v6 h6 v-6 h6 v6 h8 V79Z'/><path d='M38 79 V24 h10 v-8 h8 v8 h8 v-8 h8 v8 h10 V79Z'/><path d='M52 79 V64 a8 8 0 0 1 16 0 V79'/><path d='M60 16 V3 l10 4 l-10 4'/></svg>") center/contain no-repeat;
}
.castle-guild-name { font-family: var(--f-head); font-size: 16px; font-weight: 700; color: var(--gold-pale); margin-bottom: 12px; }
.castle-button { display: inline-block; padding: 8px 18px; border: 1px solid var(--gold-deep); font-family: var(--f-head); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-pale); }
.castle-button:hover { border-color: var(--gold); background: rgba(193,154,85,.1); }

/* boxes antigos */
.ThemeBox, .themebox, .Themebox, div[class*="rank"] { background: var(--grad-panel) !important; border: 1px solid var(--line) !important; box-shadow: var(--shadow) !important; }
.ThemeBoxHeadline, .themeboxheadline, div[class*="rank_header"] {
  background: none !important; color: var(--gold-pale) !important; font-family: var(--f-head) !important; font-size: 12.5px !important; font-weight: 700 !important;
  letter-spacing: 3px !important; text-transform: uppercase !important; padding: 14px 18px 12px !important; height: auto !important; line-height: 1.2 !important; border-bottom: 1px solid var(--line) !important;
}
.ThemeBoxContent, .themeboxcontent, div[class*="rank_content"] { padding: 12px 16px !important; background: transparent !important; }
div[class*="rank_bottom"] { display: none !important; }

/* ═════════════ RODAPÉ ═════════════ */
#gk-footer { padding: 42px 0 30px; background: #1a1511; border-top: 1px solid var(--line); }
.gk-footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.gk-footer-logo { font-family: var(--f-head); font-size: 22px; font-weight: 700; letter-spacing: 6px; text-transform: uppercase; color: var(--gold-hi); }
.gk-footer-links { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.gk-footer-links a { font-family: var(--f-head); font-size: 11.5px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--txt-dim); }
.gk-footer-links a:hover { color: var(--gold-pale); }
.gk-footer-copy, .gk-footer-copy a { font-size: 14px; color: var(--txt-muted); }

/* ═════════════ BOTÕES SOCIAIS ═════════════ */
.gk-social-stack { position: fixed; right: 22px; bottom: 22px; z-index: 10000; display: flex; flex-direction: column-reverse; gap: 10px; }
.gk-social-float { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.gk-social-tooltip {
  padding: 7px 12px; white-space: nowrap; font-family: var(--f-head); font-size: 10.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold-pale); background: var(--bg-2); border: 1px solid var(--line-2);
  opacity: 0; transform: translateX(8px); transition: opacity .25s, transform .25s; pointer-events: none;
}
.gk-social-float:hover .gk-social-tooltip { opacity: 1; transform: none; }
.gk-social-btn {
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--bg-2); border: 1px solid var(--gold-deep); box-shadow: var(--shadow); transition: border-color .2s, transform .2s;
}
.gk-social-btn svg { width: 24px; height: 24px; fill: var(--gold-hi); }
.gk-social-btn:hover { border-color: var(--gold); transform: translateY(-2px); }

/* ═════════════ DIVERSOS ═════════════ */
.scrollToTop { position: fixed; bottom: 150px; right: 28px; width: 44px; height: 44px; z-index: 9999; background: var(--bg-2) !important; border: 1px solid var(--gold-deep); border-radius: 50%; display: none; cursor: pointer; }
#HelperDivContainer { display: none; position: absolute; z-index: 2000; width: 270px; padding: 14px; background: var(--parch); color: var(--ink); border: 1px solid var(--parch-line); font-size: 15px; box-shadow: var(--shadow); }
.HelperDivArrow { display: none; }
#HelperDivHeadline { font-family: var(--f-head); font-weight: 700; font-size: 13px; text-align: center; padding-bottom: 8px; margin-bottom: 10px; border-bottom: 1px solid var(--parch-line); }

::selection { background: rgba(193,154,85,.45); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--line-2); border: 2px solid var(--bg-0); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

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

/* ═════════════ RESPONSIVO ═════════════ */
@media (max-width: 1100px) {
  .gk-layout { grid-template-columns: 210px minmax(0,1fr); gap: 22px; }
  #gk-widgets { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 780px) {
  body { font-size: 16px; }
  .gk-container { padding: 0 14px; }
  #gk-topbar { padding: 8px 0; }
  #gk-topbar .gk-container { flex-direction: column; gap: 4px; }
  .gk-topbar-left { justify-content: center; gap: 16px; }

  .sa-hero-inner { padding: 40px 14px 36px; }
  .sa-crest { width: 58px; height: 58px; margin-bottom: 16px; }
  .sa-eyebrow { font-size: 10.5px; letter-spacing: 4px; }
  .sa-tagline { font-size: 17.5px; margin-bottom: 26px; }
  .sa-sigil-bg { width: 520px; height: 520px; }
  .gk-hero-btns { width: 100%; }
  .gk-hero-btns .gk-btn { flex: 1; padding: 13px 12px; letter-spacing: 2px; font-size: 11.5px; }
  .sa-statbar-inner { grid-template-columns: repeat(2, 1fr); }
  .sa-stat:nth-child(3) { border-left: none; }
  .sa-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sa-stat { padding: 12px 6px; }
  .sa-stat-val { font-size: 15px; }

  .gk-layout { display: flex; flex-direction: column; }
  #gk-sidebar { position: static; width: 100%; }
  #gk-content, #gk-widgets { width: 100%; }
  #gk-widgets { display: grid; grid-template-columns: 1fr; }

  .gk-box-head { font-size: 20px; padding: 26px 18px 2px; }
  .gk-box-body { padding: 12px 16px 28px; font-size: 17px; }
  .TableContainer, .InnerTableContainer, .TableContentContainer { overflow-x: auto; }
  #gk-content input[type="text"], #gk-content input[type="password"], #gk-content input[type="email"], #gk-content select, #gk-content textarea { max-width: 100%; width: 100%; }
  .gk-social-tooltip { display: none; }
  .gk-social-btn { width: 46px; height: 46px; }
}

/* ═════════════ FORMULÁRIOS DO MyAAC (criar conta, personagem, recuperar conta) ═════════════ */
/* remove as listras/sombras antigas do tibia.com que ficavam por trás dos campos */
#gk-content .TableContentAndRightShadow,
#gk-content .TableShadowContainerRightTop,
#gk-content .TableShadowContainer,
#gk-content .TableShadowRightTop,
#gk-content .InnerTableContainer,
#gk-content .TableContentContainer,
#gk-content div[style*="background-image"],
#gk-content td[style*="background-image"],
#gk-content table[style*="background-image"],
#gk-content td[background] {
  background-image: none !important;
}
#gk-content .TableContent tr td,
#gk-content .TableContent tr { background-color: transparent; }
#gk-content table.TableContent { background: #fbf5e6 !important; }
#gk-content table.TableContent tr:nth-child(even) td { background-color: #f3e9d1; }

/* rótulos mais escuros e legíveis */
#gk-content .LabelV, #gk-content td.LabelV, #gk-content .LabelV span {
  color: var(--ink) !important;
  font-size: 13.5px;
  vertical-align: middle;
}
#gk-content .LabelV span.red, #gk-content td.LabelV.red { color: #a3321e !important; }

/* campos sem "type" (ex.: nome do personagem) recebem o mesmo estilo */
#gk-content input:not([type]),
#gk-content input[type="text"], #gk-content input[type="password"], #gk-content input[type="email"] {
  width: 320px; max-width: calc(100% - 30px);
  background: #fffdf7 !important; color: var(--ink) !important;
  border: 1px solid #b89c69 !important; border-radius: 2px !important;
  min-height: 40px; padding: 8px 12px !important;
  font-family: var(--f-body) !important; font-size: 16.5px !important;
  box-shadow: inset 0 1px 2px rgba(80,60,30,.15) !important;
}
#gk-content select { width: 320px; max-width: calc(100% - 30px); }
#gk-content input:not([type]):focus { border-color: var(--gold-deep) !important; box-shadow: 0 0 0 3px rgba(138,106,53,.2) !important; }

/* textos de ajuda e erros abaixo dos campos */
#gk-content .FormFieldError, #gk-content span.FormFieldError, #gk-content .error {
  display: inline-block; margin-top: 4px; font-size: 14.5px; font-style: italic; color: #a3321e !important;
}
#gk-content td img[src*="nok.gif"], #gk-content td img[src*="ok.gif"] { vertical-align: middle; margin-left: 6px; }

/* sexo / vocação / cidade (radios) */
#gk-content input[type="radio"] + label, #gk-content label { color: var(--ink); font-size: 16.5px; cursor: pointer; }
#gk-content input[type="radio"] { margin: 0 6px 0 14px; }

/* caixa de regras e checkbox de aceite */
#gk-content textarea, #gk-content .RulesText, #gk-content div[style*="overflow"] {
  background: #fffdf7 !important; color: var(--ink) !important;
  border: 1px solid var(--parch-line) !important; padding: 12px !important; font-size: 15px;
}

/* celular: rótulo em cima do campo */
@media (max-width: 780px) {
  #gk-content table.TableContent tr td.LabelV { display: block; padding-bottom: 2px !important; border-bottom: none !important; white-space: normal; }
  #gk-content table.TableContent tr td.LabelV + td { display: block; padding-top: 0 !important; }
}
