/* Yggdra: o que o protótipo não tinha. Menu com grupos, dados ao vivo e as páginas internas do FluxCP. */

/* menu: grupos com submenu */
.nav nav { align-items: center; }
.nav-group { position: relative; }
.nav-group > button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font: 700 14px var(--f-tit); letter-spacing: .04em; color: var(--ink2); transition: color .2s, background .2s; }
.nav-group > button svg { width: 10px; height: 10px; }
.nav-group:hover > button, .nav-group:focus-within > button { color: var(--ink); background: #1F18300A; }
.nav-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 210px; padding: 8px; border-radius: 18px; background: var(--surface); border: 1px solid #E8B04B40;
  box-shadow: var(--sh-3); opacity: 0; visibility: hidden; translate: 0 -4px; transition: opacity .18s, translate .18s, visibility .18s; }
.nav-group:hover .nav-menu, .nav-group:focus-within .nav-menu { opacity: 1; visibility: visible; translate: 0 0; }
.nav-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav nav .nav-menu a { display: block; padding: 9px 12px; border-radius: 10px; font: 600 14px var(--f-body); letter-spacing: 0; color: var(--ink2); }
.nav nav .nav-menu a:hover { background: #E8B04B1F; color: var(--ink); }
.nav nav .nav-acc { display: none; }
.nav .online { text-decoration: none; }
.nav-toggle { display: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #1F18300A; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); }
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .nav-open .nav nav { display: flex; position: fixed; top: 76px; left: 0; right: 0; margin: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px;
    max-height: calc(100vh - 100px); overflow: auto; border-radius: 24px; background: var(--surface); border: 1px solid #E8B04B40; box-shadow: var(--sh-3); }
  .nav-open .nav-menu { position: static; opacity: 1; visibility: visible; translate: none; box-shadow: none; border: 0; padding: 0 0 6px 12px; min-width: 0; }
  .nav-open .nav-menu::before { display: none; }
  .nav-open .nav nav .nav-acc { display: block; padding: 10px 14px; font: 700 14px var(--f-tit); color: var(--ink); text-decoration: none; }
}
@media (max-width: 640px) { .nav .actions .acc { display: none; } }

/* home: dados ao vivo */
.home .flash { padding-top: 100px; }
.stat.srv .badge.off { --b: #FDE8E8; --c: #C53030; }
.stat.srv .badge.off .live { background: #C53030; animation: none; }
.npc .tag { position: absolute; left: 50%; bottom: 50px; translate: -50% 0; white-space: nowrap; padding: 1px 6px; border-radius: 6px; background: #120D2BB3;
  color: var(--gold2); font: 800 9px var(--f-body); letter-spacing: .02em; }
.npc.real .sh { background: #E8B04B66; box-shadow: 0 0 6px #E8B04B; }
.feed li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed li b { color: var(--gold2); font-weight: 700; }
.feed ul.still li { animation: none; }
.feed ul.still { height: auto; -webkit-mask-image: none; mask-image: none; }
.rank .empty { padding: 40px 12px; text-align: center; color: var(--ink2); }
.rank > .link { margin: 18px 0 0 6px; font-size: 14px; }

/* páginas internas (módulos do FluxCP) */
.page { padding: 130px 0 90px; min-height: 70vh; }
.page .eyebrow { margin-bottom: 12px; }
.page-title { margin: 0 0 24px; font: 700 clamp(30px, 3.4vw, 44px)/1.1 var(--f-tit); color: var(--ink); }
.panel.content { padding: 32px; overflow-x: auto; background: var(--surface); border: 1px solid #E8B04B33; border-radius: var(--r-lg); box-shadow: var(--sh-2); }
.content h2 { margin: 0 0 14px; font: 700 24px/1.25 var(--f-tit); }
.content h3 { margin: 26px 0 10px; font: 700 18px/1.3 var(--f-tit); }
.content p { color: var(--ink2); font-weight: 500; }
.content a { color: var(--gold3); font-weight: 700; text-decoration: none; }
.content a:hover { color: var(--ink); }
.content img { display: inline-block; vertical-align: middle; }
#submenu, #pagemenu { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 22px; color: transparent; font-size: 0; }
#submenu a, #pagemenu a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: #1F18300A; color: var(--ink2); font: 700 13px/1 var(--f-body); }
#submenu a:hover, #pagemenu a:hover { background: #E8B04B26; color: var(--ink); }
#submenu a.current-sub-menu { background: var(--forge); color: var(--ink); }
.message, .notice, p.red, p.green { padding: 12px 16px; border-radius: 14px; font-weight: 600; }
.message { background: #EAF6FF; color: #1E5F99; border: 1px solid #3FD3FF55; }
.red, p.red { color: #B42318; } p.red { background: #FEF0EE; border: 1px solid #F9706655; }
.green, p.green { color: #1B7F4B; } p.green { background: #E9F8F0; border: 1px solid #3DBE7A55; }
.notice { background: #FFF6E2; color: var(--gold3); border: 1px solid #E8B04B55; }
.content table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14px; font-weight: 500; }
.content th, .content td { padding: 12px; text-align: left; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.content th { color: var(--ink3); font: 700 11px/1.3 var(--f-body); letter-spacing: .1em; text-transform: uppercase; background: #F8F2E6; }
.content tr:hover td { background: #E8B04B0D; }
.vertical-table th { width: 30%; text-align: right; }
.generic-form-table th, .generic-form-table td { border-bottom: 0; }
.generic-form-table th { text-align: right; width: 32%; background: none; }
.generic-form-table th label { color: var(--ink2); text-transform: none; letter-spacing: 0; font-size: 14px; }
.content input[type=text], .content input[type=password], .content input[type=email], .content input[type=number], .content input[type=search], .content input[type=file], .content textarea, .content select, footer select {
  height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid #1F183026; background: #FFFDF8; color: var(--ink); font: 500 15px var(--f-body); max-width: 100%; }
.content textarea { height: auto; min-height: 120px; padding: 10px 14px; }
.content input:focus, .content textarea:focus, .content select:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 4px #E8B04B33; }
.content input[type=submit], .content button[type=submit], .content button, .content input[type=button] {
  height: 44px; padding: 0 22px; border: 1px solid #C98A2C; border-radius: 999px; background: var(--forge); color: var(--ink); font: 700 15px var(--f-body); cursor: pointer;
  box-shadow: 0 1px 0 #ffffff88 inset, 0 10px 26px -12px #E8B04Bcc; }
.content input[type=radio], .content input[type=checkbox] { accent-color: var(--gold3); }
.search-form { margin: 0 0 20px; padding: 18px; border-radius: 16px; background: #F8F2E6; border: 1px solid var(--line2); }
.search-form p { margin: 0 0 10px; }
.pages, .pages a { color: var(--ink2); }
.pages .current-page { color: var(--gold3); font-weight: 800; }
.content .not-applicable, .content .na { color: var(--ink3); font-style: italic; }
footer .prefs { display: flex; gap: 14px; flex-wrap: wrap; }
footer .prefs label { display: flex; align-items: center; gap: 8px; }
footer select { height: 34px; padding: 0 10px; font-size: 13px; background: #1E1745; color: #fff; border-color: #E8B04B40; }
@media (max-width: 640px) {
  .page { padding-top: 110px; }
  .panel.content { padding: 20px 16px; border-radius: 20px; }
  .vertical-table th, .generic-form-table th { text-align: left; width: auto; }
  .generic-form-table tr, .generic-form-table th, .generic-form-table td { display: block; }
}
