/* Tema "moderno" do CurseOT: escuro, dourado e responsivo */
:root {
	--bg: #0b0e14;
	--bg-2: #10141d;
	--panel: rgba(20, 26, 38, 0.82);
	--panel-solid: #141a26;
	--line: rgba(255, 255, 255, 0.08);
	--line-2: rgba(255, 255, 255, 0.14);
	--text: #e7e9ee;
	--muted: #9aa3b5;
	--gold: #f0c060;
	--gold-2: #c8912e;
	--purple: #8b5cf6;
	--ok: #34d399;
	--bad: #f87171;
	--radius: 14px;
	--shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 15px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
}

.bg-glow {
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(900px 500px at 15% -10%, rgba(139, 92, 246, 0.18), transparent 60%),
		radial-gradient(800px 500px at 90% 0%, rgba(240, 192, 96, 0.12), transparent 60%),
		radial-gradient(700px 600px at 50% 110%, rgba(56, 189, 248, 0.07), transparent 60%),
		var(--bg);
}

a { color: var(--gold); text-decoration: none; transition: color .15s; }
a:hover { color: #ffe1a1; }

h1, h2, h3, h4 { font-family: "Cinzel", Georgia, serif; letter-spacing: .02em; margin: 0 0 .5em; line-height: 1.2; }

code {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: .88em;
	background: rgba(240, 192, 96, 0.1);
	color: var(--gold);
	padding: 2px 6px;
	border-radius: 6px;
}

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.text-ok { color: var(--ok) !important; }
.text-bad { color: var(--bad) !important; }

/* ---------- Botões ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 9px 16px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 14px;
	border: 1px solid transparent;
	cursor: pointer;
	white-space: nowrap;
	transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
	background: linear-gradient(135deg, #ffd27a, var(--gold-2));
	color: #1a1205 !important;
	box-shadow: 0 6px 20px rgba(240, 192, 96, 0.25);
}
.btn-gold:hover { box-shadow: 0 8px 28px rgba(240, 192, 96, 0.4); }
.btn-ghost {
	background: rgba(255, 255, 255, 0.04);
	border-color: var(--line-2);
	color: var(--text) !important;
}
.btn-ghost:hover { border-color: rgba(240, 192, 96, 0.5); background: rgba(240, 192, 96, 0.08); }
.btn-lg { padding: 13px 22px; font-size: 15px; border-radius: 12px; }
.btn-block { display: flex; width: 100%; margin-top: 14px; }

/* ---------- Navegação ---------- */
.navbar {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(11, 14, 20, 0.72);
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	border-bottom: 1px solid var(--line);
}
.navbar-inner { display: flex; align-items: center; gap: 24px; height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); flex-shrink: 0; }
.brand:hover { color: var(--text); }
.brand-mark { width: 38px; height: 38px; display: block; filter: drop-shadow(0 2px 8px rgba(240, 192, 96, .35)); }
.brand-name { font-family: "Cinzel", Georgia, serif; font-weight: 800; font-size: 20px; letter-spacing: .04em; }
.brand-name.small { font-size: 17px; margin-bottom: 6px; }

.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-item { position: relative; }
.nav-link {
	display: flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: 0;
	color: var(--muted);
	font: 600 14px "Inter", sans-serif;
	padding: 9px 12px;
	border-radius: 9px;
	cursor: pointer;
	transition: color .15s, background .15s;
}
.nav-icon { font-size: 14px; }
.nav-link .chev { width: 12px; height: 12px; transition: transform .2s; }
.nav-item:hover .nav-link,
.nav-item.open .nav-link { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-item.active .nav-link { color: var(--gold); }
.nav-item.open .chev { transform: rotate(180deg); }

.dropdown {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 220px;
	padding: 8px;
	background: var(--panel-solid);
	border: 1px solid var(--line-2);
	border-radius: 12px;
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity .15s, transform .15s, visibility .15s;
}
.dropdown::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav-item:hover .dropdown,
.nav-item.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a {
	display: block;
	padding: 8px 12px;
	border-radius: 8px;
	color: var(--text);
	font-size: 14px;
}
.dropdown a:hover { background: rgba(240, 192, 96, 0.1); color: var(--gold); }
.dropdown a.current { color: var(--gold); background: rgba(240, 192, 96, 0.08); }

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.status-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid var(--line-2);
	background: rgba(255, 255, 255, 0.03);
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.status-pill.on { color: var(--ok); border-color: rgba(52, 211, 153, .35); }
.status-pill.on .dot { background: var(--ok); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse 2s infinite; }
.status-pill.off { color: var(--bad); }
@keyframes pulse {
	0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); }
	70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
	100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; position: relative; overflow: hidden; }
.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%);
	-webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%);
}
.hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--gold);
	background: rgba(240, 192, 96, 0.08);
	border: 1px solid rgba(240, 192, 96, 0.25);
	padding: 6px 12px;
	border-radius: 999px;
	margin-bottom: 20px;
}
.hero h1 {
	font-size: clamp(40px, 6vw, 68px);
	font-weight: 800;
	background: linear-gradient(180deg, #fff6df 0%, var(--gold) 55%, var(--gold-2) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	text-shadow: 0 0 60px rgba(240, 192, 96, 0.15);
}
.lead { font-size: 17px; color: var(--muted); max-width: 520px; margin: 0 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 20px;
	box-shadow: var(--shadow);
	position: relative;
	overflow: hidden;
}
.stat::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--gold), transparent);
	opacity: .5;
}
.stat-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 6px; }
.stat-value { font-size: 28px; font-weight: 700; }
.stat-value small { font-size: 15px; color: var(--muted); font-weight: 500; }
.stat-value.small { font-size: 15px; font-weight: 600; }

/* ---------- Destaques ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.feature {
	background: linear-gradient(180deg, rgba(139, 92, 246, 0.08), transparent 70%), var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 22px;
	transition: transform .2s, border-color .2s;
}
.feature:hover { transform: translateY(-3px); border-color: rgba(139, 92, 246, 0.4); }
.feature-icon {
	width: 44px; height: 44px;
	display: grid; place-items: center;
	font-size: 22px;
	border-radius: 12px;
	background: rgba(139, 92, 246, 0.15);
	margin-bottom: 14px;
}
.feature h3 { font-size: 18px; color: #fff; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; padding-top: 8px; padding-bottom: 48px; }
.is-inner .layout { padding-top: 32px; }

.panel {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	backdrop-filter: blur(6px);
}
.content-panel { overflow: hidden; }
.panel-head { padding: 14px 22px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span:last-child { color: var(--text); font-weight: 600; }
.content-body { padding: 22px; overflow-x: auto; }

.sidebar { display: flex; flex-direction: column; gap: 18px; }
.side-card { padding: 20px; }
.side-card h4 { font-size: 15px; color: var(--gold); margin-bottom: 14px; }

.info-list, .top-list, .cmd-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.info-list li:last-child { border-bottom: 0; }
.info-list span { color: var(--muted); }

.top-list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; }
.top-list a { color: var(--text); font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-list a:hover { color: var(--gold); }
.rank {
	width: 24px; height: 24px; flex-shrink: 0;
	display: grid; place-items: center;
	font-size: 12px; font-weight: 700;
	border-radius: 7px;
	background: rgba(255, 255, 255, 0.06);
	color: var(--muted);
}
.rank-1 { background: linear-gradient(135deg, #ffd27a, #c8912e); color: #1a1205; }
.rank-2 { background: linear-gradient(135deg, #e5e7eb, #9ca3af); color: #111; }
.rank-3 { background: linear-gradient(135deg, #f0a46b, #a0522d); color: #1a0d05; }
.voc-icon { width: 18px; height: 18px; object-fit: contain; }
.lvl { color: var(--muted); font-size: 12px; font-weight: 600; }

.cmd-list li { display: flex; flex-direction: column; gap: 2px; padding: 7px 0; }
.cmd-list code { align-self: flex-start; }
.cmd-list span { font-size: 13px; color: var(--muted); }

/* ---------- Notícias ---------- */
.news-card {
	border: 1px solid var(--line);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.02);
	margin-bottom: 20px;
	overflow: hidden;
}
.news-head {
	display: flex;
	gap: 14px;
	align-items: center;
	padding: 16px 20px;
	border-bottom: 1px solid var(--line);
	background: linear-gradient(90deg, rgba(240, 192, 96, 0.08), transparent);
}
.news-icon { width: 32px; height: 32px; image-rendering: pixelated; }
.news-title { font-size: 20px; color: #fff; margin: 0; }
.news-meta { font-size: 13px; color: var(--muted); }
.news-body { padding: 18px 20px; }
.news-foot { padding: 0 20px 16px; text-align: right; font-size: 14px; }

/* ---------- Conteúdo das páginas do MyAAC ---------- */
.content-body table { border-collapse: separate; border-spacing: 0; max-width: 100%; }
.content-body table[width="100%"], .content-body > table, .content-body .TableContent { width: 100%; }
.content-body td, .content-body th { padding: 8px 10px; color: var(--text); }
.content-body tr[bgcolor] td:first-child, .content-body tr[style*="background"] td:first-child { border-top-left-radius: 0; }
.content-body thead tr td, .content-body thead tr th, .content-body .white, .content-body tr.white td {
	color: #ffe1a1 !important;
	font-weight: 700;
}
.content-body table + br { line-height: 2; }
.content-body img { max-width: 100%; }
.content-body hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

.white, .white a { color: #ffe1a1 !important; }
.red { color: var(--bad); }

.myaac-table { width: 100%; border-radius: 10px; overflow: hidden; }

.TableContainer { width: 100%; margin-bottom: 16px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.TableContainer .CaptionContainer { background: linear-gradient(90deg, #3a2c12, #1c2433); }
.TableContainer .CaptionContainer .Text { padding: 10px 14px; font-weight: 700; color: #ffe1a1; font-family: "Cinzel", Georgia, serif; }
.TableContainer [class^="Caption"]:not(.CaptionContainer):not(.CaptionInnerContainer),
.TableShadowContainerRightTop, .TableShadowRightTop, .TableShadowContainer,
.TableBottomShadow, .TableBottomLeftShadow, .TableBottomRightShadow { display: none !important; }
.TableContentContainer, .InnerTableContainer, .TableContentAndRightShadow { background: transparent !important; border: 0 !important; }
.TableContent { width: 100%; border-collapse: collapse; background: var(--bg-2); }
.TableContent td { border-bottom: 1px solid var(--line); }
.Odd { background: #161c28; }
.Even { background: #1c2433; }
.LabelV, .LabelV120, .LabelV150, .LabelV200 { font-weight: 600; color: var(--muted); vertical-align: top; }
.LabelV120 { width: 120px; } .LabelV150 { width: 150px; } .LabelV200 { width: 200px; }
.LabelH, .LabelH td { font-weight: 700; color: #ffe1a1; background: #3a2c12; }
.FormFieldError, .error { color: var(--bad); }

/* Formulários */
input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="search"],
select, textarea {
	background: #0e131c;
	color: var(--text);
	border: 1px solid var(--line-2);
	border-radius: 9px;
	padding: 9px 12px;
	font: inherit;
	font-size: 14px;
	max-width: 100%;
	transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: var(--gold);
	box-shadow: 0 0 0 3px rgba(240, 192, 96, 0.18);
}
input[type="submit"], input[type="button"], button[type="submit"], .content-body button:not(.nav-link) {
	background: linear-gradient(135deg, #ffd27a, var(--gold-2));
	color: #1a1205;
	border: 0;
	border-radius: 9px;
	padding: 9px 18px;
	font: 700 14px "Inter", sans-serif;
	cursor: pointer;
	transition: transform .15s, box-shadow .15s;
}
input[type="submit"]:hover, input[type="button"]:hover, button[type="submit"]:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(240, 192, 96, 0.3);
}
.BigButton, .BigButtonOver {
	background: none !important;
	width: auto !important;
	height: auto !important;
	display: inline-block;
}
.BigButton .BigButtonOver, .ButtonText { display: none !important; }

/* Caixas de aviso do MyAAC */
.SmallBox { border-radius: 10px; overflow: hidden; margin-bottom: 14px; }
.SmallBox [class^="BoxFrame"], .SmallBox .AttentionSign { display: none !important; }
.SmallBox .ErrorMessage, .SmallBox .Message {
	padding: 12px 16px;
	border-radius: 10px;
	background: rgba(248, 113, 113, 0.1);
	border: 1px solid rgba(248, 113, 113, 0.35);
}
.SmallBox .Message { background: rgba(240, 192, 96, 0.08); border-color: rgba(240, 192, 96, 0.3); }

/* ---------- Rodapé ---------- */
.footer { border-top: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 13px; }
.footer p { margin: 0; }
.footer-meta { text-align: right; color: var(--muted); }
.template-switch { margin-top: 8px; }

/* ---------- Telas menores ---------- */
@media (max-width: 1020px) {
	.nav-toggle {
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 5px;
		margin-left: auto;
		width: 42px; height: 42px;
		padding: 0 10px;
		background: rgba(255, 255, 255, 0.05);
		border: 1px solid var(--line-2);
		border-radius: 10px;
		cursor: pointer;
	}
	.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
	.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
	.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

	.nav {
		display: none;
		position: absolute;
		top: 68px; left: 0; right: 0;
		flex-direction: column;
		align-items: stretch;
		padding: 12px 20px 20px;
		background: var(--bg-2);
		border-bottom: 1px solid var(--line);
		max-height: calc(100vh - 68px);
		overflow-y: auto;
	}
	.nav-open .nav { display: flex; }
	.nav-link { width: 100%; justify-content: flex-start; padding: 12px; }
	.nav-link .chev { margin-left: auto; }
	.dropdown {
		position: static;
		display: none;
		opacity: 1; visibility: visible; transform: none;
		box-shadow: none;
		border: 0;
		background: transparent;
		padding: 0 0 8px 28px;
	}
	.nav-item:hover .dropdown { display: none; }
	.nav-item.open .dropdown { display: block; }

	.nav-actions .btn { display: none; }
	.hero-inner { grid-template-columns: 1fr; gap: 32px; }
	.layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
	.features { grid-template-columns: 1fr; }
	.hero { padding-top: 44px; }
	.content-body { padding: 16px; }
	.brand-name { font-size: 17px; }
	.status-pill { display: none; }
}

/* Bordas antigas (atributo border) no tom do tema */
.content-body table, .content-body td, .content-body th { border-color: var(--line) !important; border-style: solid; }
.content-body table:not([border]), .content-body td:not([style*="border"]) { border-width: 0; }
.content-body .InnerTableContainer > table, .content-body table[border="1"] { border-width: 1px; border-radius: 10px; }

/* Logo do CurseOT no destaque da página inicial */
.hero h1.hero-logo { background: none; -webkit-background-clip: border-box; background-clip: border-box; margin: -10px 0 8px -24px; line-height: 0; }
.hero-logo img { width: min(490px, 100%); height: auto; filter: drop-shadow(0 0 40px rgba(240, 192, 96, .25)); }


/* CurseOT: fogo, cinzas e identidade sombria. */
:root {
 --bg: #09090b;
 --bg-2: #110d0e;
 --panel: rgba(25, 19, 21, .9);
 --panel-solid: #191315;
 --gold: #f2a15b;
 --gold-2: #bd582b;
 --purple: #8d3430;
}
.bg-glow {
 background:
  radial-gradient(900px 560px at 12% -6%, rgba(145, 27, 20, .24), transparent 65%),
  radial-gradient(740px 520px at 75% 10%, rgba(193, 75, 21, .10), transparent 64%),
  radial-gradient(900px 700px at 50% 110%, rgba(91, 24, 25, .11), transparent 65%),
  var(--bg);
}
.brand-mark { filter: drop-shadow(0 0 9px rgba(239, 83, 30, .4)); object-fit: contain; }
.brand-name { color: #f3e5d7; }
.hero h1.hero-logo { margin: 0 0 18px; }
.hero-logo img { width: min(520px, 100%); height: auto; filter: drop-shadow(0 8px 34px rgba(171, 47, 19, .26)); }
.btn-gold { background: linear-gradient(135deg, #ffc27c, #c66835); box-shadow: 0 6px 22px rgba(211, 77, 26, .23); }
.btn-gold:hover { box-shadow: 0 8px 28px rgba(239, 98, 39, .34); }
@media (max-width: 600px) {
 .hero h1.hero-logo { margin-left: 0; margin-right: 0; }
 .hero-logo img { max-width: 100%; }
}
