/* =====================================================================
   YouCine — layout "Neon"
   Carregado DEPOIS do admin.css (ver includes/head.php).
   Todas as páginas do painel usam as mesmas classes (app-card, app-table,
   btn-app-*, badge-app, alert-app, app-input...), então ao redefinir
   essas classes aqui o painel inteiro muda de uma vez.
   ===================================================================== */

:root {
  --bg-root: #060a13;
  --bg-surface: #0b1220;
  --bg-elevated: #101a2c;
  --bg-input: #0a1322;
  --border: rgba(126, 154, 204, .14);
  --border-strong: rgba(126, 154, 204, .28);
  --text: #f4f7fd;
  --text-muted: rgba(203, 214, 234, .64);

  --accent: #ffb21f;
  --accent-hover: #ffc94d;
  --accent-dim: rgba(255, 178, 31, .16);
  --danger: #ff6370;
  --danger-dim: rgba(255, 99, 112, .14);
  --success: #2ee59d;
  --success-dim: rgba(46, 229, 157, .14);
  --info: #4aa3ff;
  --info-dim: rgba(74, 163, 255, .14);
  --violet: #b36bff;
  --violet-dim: rgba(179, 107, 255, .16);

  --nx-gold-1: #ffd24f;
  --nx-gold-2: #f59e0b;
  --nx-green: #22d391;
  --nx-blue: #3b8cff;
  --nx-violet: #a65bff;

  --sidebar-w: 256px;
  --topbar-h: 76px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .4);
}

/* ---------------------------------------------------------------- base */
body.app-body {
  background-color: var(--bg-root) !important;
  background-image:
    radial-gradient(ellipse 55% 40% at 0% 0%, rgba(255, 178, 31, .10), transparent 60%),
    radial-gradient(ellipse 60% 45% at 100% 100%, rgba(255, 178, 31, .09), transparent 60%),
    linear-gradient(135deg, transparent 0 62%, rgba(255, 178, 31, .045) 62.1% 70%, transparent 70.1%),
    linear-gradient(180deg, #070c16 0%, #050810 100%) !important;
  background-attachment: fixed !important;
  color: var(--text);
  font-size: 15px;
}
body.app-body::before { display: none !important; }

.text-dim { color: var(--text-muted) !important; }

/* ------------------------------------------------------------- sidebar */
body.app-body .app-sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #0a1120 0%, #070c17 60%, #060a13 100%) !important;
  border-right: 1px solid rgba(126, 154, 204, .12) !important;
  box-shadow: none;
}
.app-sidebar__brand { padding: 1.1rem 1.1rem .8rem; border-bottom: 0; }
.app-sidebar__logo { gap: .8rem; }
.app-sidebar__logo-img { width: 46px; height: 46px; border-radius: 12px; object-fit: contain; }
body.app-body .app-sidebar__logo-mark {
  width: 46px; height: 46px; border-radius: 14px; font-size: 1.05rem;
  background: linear-gradient(135deg, var(--nx-gold-1), var(--nx-gold-2)) !important;
  color: #1a1204 !important;
  box-shadow: 0 8px 26px rgba(255, 178, 31, .32) !important;
}
.app-sidebar__logo-text strong { font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.app-sidebar__logo-text span { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }

.app-sidebar__nav { padding: .3rem .85rem .8rem; display: flex; flex-direction: column; gap: 2px; }
.app-sidebar__label {
  margin: .8rem .4rem .25rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(203, 214, 234, .45);
}

body.app-body .app-nav-link,
body.app-body .app-nav-group__summary {
  display: flex; align-items: center; gap: .85rem;
  min-height: 42px; padding: 0 .95rem;
  border-radius: 12px; border: 1px solid transparent !important; border-left-width: 1px !important;
  color: #c9d3e6; font-weight: 500; font-size: .93rem;
  text-decoration: none; background: transparent;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
body.app-body .app-nav-link i,
body.app-body .app-nav-group__summary > span > i { font-size: 1.15rem; color: #8ea3c6; width: 1.3rem; text-align: center; transition: color .18s; }
body.app-body .app-nav-group__summary > span { display: inline-flex; align-items: center; gap: .85rem; }
body.app-body .app-nav-link:hover,
body.app-body .app-nav-group__summary:hover { background: rgba(255, 178, 31, .07) !important; color: #fff !important; }
body.app-body .app-nav-link:hover i,
body.app-body .app-nav-group__summary:hover > span > i { color: var(--nx-gold-1); }

body.app-body .app-nav-link.is-active {
  background: linear-gradient(90deg, rgba(255, 178, 31, .30), rgba(255, 178, 31, .08)) !important;
  border-color: rgba(255, 178, 31, .65) !important;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 0 22px rgba(255, 178, 31, .13), inset 0 1px 0 rgba(255, 255, 255, .06);
}
body.app-body .app-nav-link.is-active i { color: var(--nx-gold-1); }

.app-nav-group { border: 0; background: transparent; }
.app-nav-group__summary { cursor: pointer; justify-content: space-between; list-style: none; }
.app-nav-group__summary::-webkit-details-marker { display: none; }
.app-nav-group__chevron { font-size: .85rem !important; width: auto !important; color: #8ea3c6; transition: transform .2s; }
.app-nav-group[open] > .app-nav-group__summary .app-nav-group__chevron { transform: rotate(180deg); }
body.app-body .app-nav-group.is-active > .app-nav-group__summary { color: #fff; }
body.app-body .app-nav-group.is-active > .app-nav-group__summary > span > i { color: var(--nx-gold-1); }
.app-nav-group__items {
  display: flex; flex-direction: column; gap: 2px;
  margin: 2px 0 6px 1.55rem; padding-left: .6rem;
  border-left: 1px solid rgba(126, 154, 204, .16);
}
body.app-body .app-nav-link--sub { min-height: 36px; font-size: .87rem; padding: 0 .8rem; }
body.app-body .app-nav-link--sub i { font-size: 1rem; }

.app-sidebar__footer { padding: .75rem .85rem .9rem; margin-top: auto; display: grid; gap: .65rem; border-top: 0; flex-shrink: 0; }
.app-sidebar__card {
  display: flex; flex-direction: column; gap: .15rem;
  padding: .75rem .9rem; border-radius: 16px;
  border: 1px solid rgba(255, 178, 31, .28);
  background: linear-gradient(160deg, rgba(255, 178, 31, .10), rgba(255, 178, 31, .02) 55%, rgba(10, 16, 30, .6));
}
.app-sidebar__card-head { display: flex; align-items: center; gap: .7rem; }
.app-sidebar__card-head > i { font-size: 1.9rem; color: var(--nx-gold-1); filter: drop-shadow(0 0 10px rgba(255, 178, 31, .5)); }
.app-sidebar__card strong { display: block; font-size: .98rem; line-height: 1.15; }
.app-sidebar__card small { color: var(--text-muted); font-size: .74rem; }
.app-sidebar__card p { margin: .45rem 0 0; text-align: center; font-size: .74rem; color: var(--text-muted); }

.btn-exit {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  height: 44px; border-radius: 13px; border: 0; width: 100%;
  background: linear-gradient(135deg, var(--nx-gold-1), var(--nx-gold-2));
  color: #1a1204; font-weight: 800; font-size: .98rem; text-decoration: none;
  box-shadow: 0 10px 28px rgba(255, 178, 31, .28);
  transition: transform .18s, box-shadow .18s, filter .18s;
}
.btn-exit:hover { color: #1a1204; transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 14px 34px rgba(255, 178, 31, .38); }

/* --------------------------------------------------------------- topbar */
body.app-body .app-topbar {
  height: var(--topbar-h);
  background: rgba(7, 12, 22, .78) !important;
  border-bottom: 1px solid rgba(126, 154, 204, .12) !important;
  backdrop-filter: blur(14px);
  padding: 0 1.6rem; gap: 1rem;
}
.app-topbar__left { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.app-topbar__icon { font-size: 1.5rem; color: #6f8cc4; flex-shrink: 0; }
.app-topbar__title { font-size: 1.15rem; font-weight: 700; margin: 0; line-height: 1.2; }
.app-topbar__subtitle { margin: 2px 0 0; font-size: .85rem; color: var(--text-muted); }
.app-topbar__actions { display: flex; align-items: center; gap: .9rem; flex-shrink: 0; }

.app-burger {
  display: flex !important; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 42px; height: 42px; border-radius: 12px; border: 0; background: transparent; cursor: pointer; flex-shrink: 0;
}
.app-burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: #9fb2d6; transition: background .18s; }
.app-burger:hover span { background: var(--nx-gold-1); }

.app-search {
  position: relative; display: flex; align-items: center;
  width: 300px; height: 44px; border-radius: 13px;
  background: rgba(14, 22, 38, .85); border: 1px solid rgba(126, 154, 204, .22);
  transition: border-color .18s, box-shadow .18s;
}
.app-search:focus-within { border-color: rgba(255, 178, 31, .6); box-shadow: 0 0 0 3px rgba(255, 178, 31, .12); }
.app-search > i { position: absolute; left: .95rem; color: #8ea3c6; font-size: 1rem; pointer-events: none; }
.app-search input {
  width: 100%; height: 100%; padding: 0 1rem 0 2.6rem; border: 0; outline: 0; background: transparent;
  color: var(--text); font-size: .9rem;
}
.app-search input::placeholder { color: rgba(203, 214, 234, .5); }

.app-bell {
  position: relative; width: 44px; height: 44px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #c9d3e6; text-decoration: none; font-size: 1.2rem;
  border: 1px solid transparent; transition: background .18s, color .18s;
}
.app-bell:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.app-bell__dot {
  position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%;
  background: #ff4d5e; box-shadow: 0 0 0 2px #0a101d, 0 0 10px rgba(255, 77, 94, .7);
}

.app-user { position: relative; padding-left: .9rem; border-left: 1px solid rgba(126, 154, 204, .16); }
.app-user__btn {
  display: flex; align-items: center; gap: .7rem; padding: .25rem .4rem .25rem .25rem;
  background: transparent; border: 0; border-radius: 14px; color: var(--text); cursor: pointer; text-align: left;
}
.app-user__btn:hover { background: rgba(255, 255, 255, .04); }
.app-user__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.app-user__avatar {
  width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; background: linear-gradient(135deg, #4a8bff, #2756d9);
  box-shadow: 0 6px 18px rgba(59, 140, 255, .35);
}
.app-user__info { display: flex; flex-direction: column; line-height: 1.2; }
.app-user__name { font-weight: 700; font-size: .92rem; }
.app-user__role { font-size: .75rem; color: var(--text-muted); }
.app-user__btn > .bi-chevron-down { font-size: .8rem; color: #8ea3c6; }
.app-user .dropdown-menu {
  margin-top: .6rem !important; min-width: 200px; padding: .4rem;
  background: #0d1526; border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow);
}
.app-user .dropdown-item { display: flex; align-items: center; gap: .65rem; padding: .6rem .8rem; border-radius: 10px; color: #d5def0; font-size: .9rem; }
.app-user .dropdown-item:hover { background: rgba(255, 178, 31, .1); color: #fff; }
.app-user .dropdown-item.is-exit { color: #ff9aa4; }
.app-user .dropdown-divider { border-color: var(--border); }

/* ------------------------------------------------------------- content */
.app-content { padding: 1.6rem 1.7rem 1.2rem; max-width: 1480px; }

/* --------------------------------------------------------------- cards */
body.app-body .app-card {
  background: linear-gradient(180deg, rgba(17, 26, 44, .88), rgba(10, 16, 29, .92)) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .04);
}
body.app-body .app-card::before { content: none !important; }
body.app-body .app-card--padded { padding: 1.4rem; }
.app-card__header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.app-card__head-main { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.app-card__icon {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem;
  color: var(--nx-gold-1); background: radial-gradient(circle at 30% 25%, rgba(255, 178, 31, .28), rgba(255, 178, 31, .08));
  border: 1px solid rgba(255, 178, 31, .28);
}
.app-card__title { font-size: 1.12rem; font-weight: 700; margin: 0; }
.app-card__desc { margin: .15rem 0 0; font-size: .82rem; color: var(--text-muted); }
body.app-body .app-card--accent { border-color: rgba(255, 178, 31, .38) !important; }
.app-card--padded > .app-card__title + .app-card__desc { margin-bottom: 1rem; }
.app-card__header--row { flex-wrap: nowrap; align-items: center; }
.app-card__header--row .app-card__head-main { flex: 1 1 auto; }
.app-card__header--row > .btn, .app-card__header--row > .d-flex { flex-shrink: 0; }
.app-card__header--row .btn { white-space: nowrap; padding-left: .95rem; padding-right: .95rem; font-size: .88rem; }

/* ---------------------------------------------------------- stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; margin-bottom: 1.4rem; }
.stat-card {
  --sc: var(--nx-gold-2); --sc-soft: rgba(245, 158, 11, .16); --sc-line: rgba(245, 158, 11, .55);
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "icon label go" "value value value" "foot foot foot";
  align-items: center; column-gap: .75rem; row-gap: .15rem;
  min-height: 168px; padding: 1.2rem 1.15rem 3.4rem;
  border-radius: 18px; text-decoration: none; color: var(--text);
  border: 1px solid var(--sc-line);
  background:
    radial-gradient(120% 90% at 0% 0%, var(--sc-soft), transparent 60%),
    linear-gradient(180deg, rgba(15, 22, 38, .92), rgba(9, 14, 26, .96));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .02) inset, 0 0 28px var(--sc-soft), 0 16px 40px rgba(0, 0, 0, .35);
  transition: transform .2s, box-shadow .2s;
}
.stat-card::before { content: none; }
a.stat-card:hover { color: var(--text); transform: translateY(-3px); box-shadow: 0 0 34px var(--sc-soft), 0 20px 46px rgba(0, 0, 0, .45); }
.stat-card--amber { --sc: #ffb21f; --sc-soft: rgba(255, 178, 31, .16); --sc-line: rgba(255, 178, 31, .6); }
.stat-card--emerald { --sc: #22d391; --sc-soft: rgba(34, 211, 145, .15); --sc-line: rgba(34, 211, 145, .6); }
.stat-card--sky { --sc: #3b8cff; --sc-soft: rgba(59, 140, 255, .16); --sc-line: rgba(59, 140, 255, .6); }
.stat-card--rose { --sc: #a65bff; --sc-soft: rgba(166, 91, 255, .17); --sc-line: rgba(166, 91, 255, .6); }

.stat-card__icon {
  grid-area: icon; width: 48px; height: 48px; border-radius: 50%; margin: 0;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.45rem;
  color: var(--sc); background: var(--sc-soft); border: 1px solid var(--sc-line);
  box-shadow: 0 0 18px var(--sc-soft);
}
.stat-card__label {
  grid-area: label; align-self: center; margin: 0;
  font-size: .72rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: #fff; line-height: 1.25;
}
.stat-card__go {
  grid-area: go; align-self: start; width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-size: .9rem;
  color: #dfe7f7; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08);
  transition: background .18s, color .18s;
}
a.stat-card:hover .stat-card__go { background: var(--sc); color: #0a0f1a; }
.stat-card__value { grid-area: value; margin-top: .55rem; font-size: 2.7rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.stat-card__foot { grid-area: foot; margin-top: .35rem; font-size: .86rem; color: var(--text-muted); }
.stat-card__foot strong { color: #fff; font-weight: 600; }
.stat-card__spark { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 58px; z-index: -1; pointer-events: none; }
.stat-card__spark path.line { fill: none; stroke: var(--sc); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px var(--sc)); }
.stat-card__spark path.area { fill: var(--sc); opacity: .13; }
.stat-card:not(:has(.stat-card__spark)) { padding-bottom: 1.3rem; min-height: 0; }

/* ----------------------------------------------------------- forms */
body.app-body .app-form-label,
body.app-body .form-label { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: rgba(203, 214, 234, .72); margin-bottom: .4rem; }
body.app-body .app-input,
body.app-body .form-control,
body.app-body .form-select {
  min-height: 46px; border-radius: 12px;
  background-color: var(--bg-input); color: var(--text);
  border: 1px solid rgba(126, 154, 204, .22);
}
body.app-body .app-input, body.app-body .form-control.app-input, body.app-body .form-select.app-input { padding: .65rem .95rem !important; font-size: .92rem !important; }
body.app-body textarea.form-control { min-height: 96px; }
body.app-body .form-select { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238ea3c6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
body.app-body .app-input::placeholder, body.app-body .form-control::placeholder { color: rgba(203, 214, 234, .42); }
body.app-body .app-input:focus,
body.app-body .form-control:focus,
body.app-body .form-select:focus {
  background-color: #0c1628; color: var(--text);
  border-color: rgba(255, 178, 31, .7) !important; box-shadow: 0 0 0 3px rgba(255, 178, 31, .14) !important;
}
body.app-body .form-control:disabled, body.app-body .form-select:disabled { opacity: .55; }
.form-check-input { background-color: #0a1322; border-color: rgba(126, 154, 204, .4); }
body.app-body .form-check-input:checked { background-color: var(--accent) !important; border-color: var(--accent) !important; }
.form-switch .form-check-input:focus { box-shadow: 0 0 0 3px rgba(255, 178, 31, .16); }

/* --------------------------------------------------------- buttons */
body.app-body .btn { border-radius: 12px; font-weight: 700; transition: transform .16s, box-shadow .16s, filter .16s, background .16s, border-color .16s; }
body.app-body .btn:not(.btn-sm) { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; }
body.app-body .btn-sm { border-radius: 10px; }
body.app-body .btn-app-primary, body.app-body .btn-login {
  background: linear-gradient(135deg, var(--nx-gold-1), var(--nx-gold-2)) !important;
  border: 0 !important; color: #1a1204 !important;
  box-shadow: 0 10px 26px rgba(255, 178, 31, .24) !important;
}
body.app-body .btn-app-primary:hover, body.app-body .btn-login:hover { transform: translateY(-1px); filter: brightness(1.07); color: #1a1204 !important; box-shadow: 0 14px 32px rgba(255, 178, 31, .34) !important; }
body.app-body .btn-app-accent {
  background: rgba(255, 178, 31, .08) !important; border: 1px solid rgba(255, 178, 31, .6) !important; color: #ffd36b !important;
}
body.app-body .btn-app-accent:hover { background: rgba(255, 178, 31, .18) !important; color: #fff0c2 !important; }
body.app-body .btn-app-ghost {
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(126, 154, 204, .28); color: #e3eaf8;
}
body.app-body .btn-app-ghost:hover { background: rgba(255, 255, 255, .07); border-color: rgba(126, 154, 204, .5); color: #fff; }
body.app-body .btn-app-danger, body.app-body .btn-danger {
  background: rgba(255, 99, 112, .1) !important; border: 1px solid rgba(255, 99, 112, .5) !important;
  color: #ff9aa4 !important; box-shadow: none !important;
}
body.app-body .btn-app-danger:hover, body.app-body .btn-danger:hover { background: rgba(255, 99, 112, .22) !important; color: #fff !important; }
body.app-body .btn-app-success { background: rgba(46, 229, 157, .12) !important; border: 1px solid rgba(46, 229, 157, .5) !important; color: #7af0c3 !important; }
body.app-body .btn:disabled, body.app-body .btn.disabled { opacity: .5; transform: none; }

/* ---------------------------------------------------------- tables */
.table-responsive { border-radius: 14px; }
body.app-body .table.app-table {
  --bs-table-bg: transparent; --bs-table-color: var(--text); --bs-table-hover-bg: rgba(255, 178, 31, .045);
  margin: 0; color: var(--text);
}
body.app-body .table.app-table thead th {
  background: rgba(14, 22, 38, .9); color: rgba(203, 214, 234, .75);
  font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .95rem 1rem; border-bottom: 1px solid var(--border-strong); white-space: nowrap;
}
body.app-body .table.app-table tbody td { padding: .95rem 1rem; border-color: var(--border); vertical-align: middle; }
body.app-body .table.app-table tbody tr:hover > * { background: rgba(255, 178, 31, .045); }
.mac-cell { font-variant-numeric: tabular-nums; font-weight: 600; }
.app-table-wrap, .app-table-shell {
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: rgba(8, 13, 24, .55);
}

/* ---------------------------------------------------------- badges */
body.app-body .badge-app {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .32em .85em; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  border: 1px solid transparent;
}
body.app-body .badge-app--ok { background: rgba(34, 211, 145, .12); color: #34e0a1; border-color: rgba(34, 211, 145, .5); }
body.app-body .badge-app--off { background: rgba(142, 163, 198, .12); color: #a9b8d4; border-color: rgba(142, 163, 198, .3); }
body.app-body .badge-app--wait { background: rgba(255, 178, 31, .13); color: #ffc650; border-color: rgba(255, 178, 31, .45); }
body.app-body .badge-app--trial { background: rgba(59, 140, 255, .13); color: #7db6ff; border-color: rgba(59, 140, 255, .42); }

/* ---------------------------------------------------------- alerts */
body.app-body .alert-app {
  display: flex; gap: .7rem; padding: .9rem 1.1rem; margin-bottom: 1.1rem;
  border-radius: 14px; border: 1px solid; font-size: .92rem;
}
body.app-body .alert-app--success { background: rgba(34, 211, 145, .1) !important; border-color: rgba(34, 211, 145, .42) !important; color: #9af3d0 !important; }
body.app-body .alert-app--danger { background: rgba(255, 99, 112, .1) !important; border-color: rgba(255, 99, 112, .45) !important; color: #ffb4bb !important; }
body.app-body .alert-app--info { background: rgba(59, 140, 255, .1) !important; border-color: rgba(59, 140, 255, .42) !important; color: #a9ceff !important; }
body.app-body .alert-app--warning { background: rgba(255, 178, 31, .1) !important; border-color: rgba(255, 178, 31, .45) !important; color: #ffdb8f !important; }
body.app-body .text-danger { color: #ff8a95 !important; }

/* ----------------------------------------------------------- modals */
body.app-body .modal-content, body.app-body .modal-content.app-modal-dark {
  background: linear-gradient(180deg, #111b2f, #0a1120) !important;
  border: 1px solid var(--border-strong) !important; border-radius: 20px !important; color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
body.app-body .modal-header, body.app-body .modal-footer { border-color: var(--border) !important; }
body.app-body .modal-title { font-weight: 700; }
body.app-body .modal-backdrop.show { opacity: .7; }
body.app-body .btn-close { filter: invert(1) grayscale(1) brightness(1.6); opacity: .7; }

/* ------------------------------------------------------ pagination */
.app-pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; font-size: .84rem; color: var(--text-muted); }
.app-pager__nav { display: flex; gap: .45rem; }
.app-pager__btn {
  min-width: 38px; height: 38px; padding: 0 .6rem; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #dbe5f8; text-decoration: none; font-weight: 700;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(126, 154, 204, .22);
}
.app-pager__btn:hover { color: #fff; border-color: rgba(255, 178, 31, .5); }
.app-pager__btn.is-on { background: linear-gradient(135deg, #2f6fe8, #1f4fc2); border-color: #4a86ff; color: #fff; box-shadow: 0 0 18px rgba(59, 140, 255, .35); }
.app-pager__btn.is-disabled { opacity: .4; pointer-events: none; }
body.app-body .pagination .page-link { background: rgba(255, 255, 255, .04); border: 1px solid rgba(126, 154, 204, .22); color: #dbe5f8; border-radius: 10px; margin: 0 2px; }
body.app-body .pagination .active > .page-link { background: linear-gradient(135deg, #2f6fe8, #1f4fc2); border-color: #4a86ff; }

/* -------------------------------------------------- dashboard blocks */
.dash-search { position: relative; display: flex; gap: .7rem; margin-bottom: .9rem; }
.dash-search__field { position: relative; flex: 1; min-width: 0; }
.dash-search__field > i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: #8ea3c6; pointer-events: none; }
body.app-body .dash-search__field .app-input { padding-left: 2.8rem !important; height: 50px; }
.dash-note { display: flex; align-items: flex-start; gap: .6rem; margin: 0 0 1rem; font-size: .84rem; color: var(--text-muted); }
.dash-note > i { color: #6f9cf0; margin-top: .1rem; }
.dash-menu-btn { width: 34px; height: 34px; border: 0; background: transparent; color: #9fb2d6; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.dash-menu-btn:hover { background: rgba(255, 255, 255, .06); color: #fff; }
tr.dash-row { cursor: pointer; }

.pay-empty {
  border: 1px solid var(--border); border-radius: 16px; padding: 1.6rem 1.2rem 1.3rem;
  background: linear-gradient(180deg, rgba(9, 15, 27, .7), rgba(8, 13, 24, .5)); text-align: center;
}
.pay-empty__icon { font-size: 3.2rem; color: #7f93b8; line-height: 1; margin-bottom: .6rem; }
.pay-empty h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 .4rem; }
.pay-empty p { margin: 0 auto; max-width: 280px; font-size: .86rem; color: var(--text-muted); }
.pay-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 1.6rem; }
.pay-bars > div { padding: 0 1.1rem; }
.pay-bars > div + div { border-left: 1px solid var(--border); }
.pay-bar { height: 14px; border-radius: 999px; background: rgba(142, 163, 198, .16); overflow: hidden; margin-bottom: .9rem; }
.pay-bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(180deg, #8392b0, #4d5b78); }
.pay-bar--paid > span { background: linear-gradient(180deg, #ffe07a, #f2a900); box-shadow: 0 0 16px rgba(255, 178, 31, .4); }
.pay-bars strong { display: block; font-size: 1.25rem; font-weight: 800; }
.pay-bars small { color: var(--text-muted); font-size: .8rem; }

/* ---------------------------------------------------------- footer */
body.app-body .developer-footer {
  display: flex; align-items: center; justify-content: center; position: relative;
  padding: 1.3rem 1.5rem; border-top: 1px solid rgba(126, 154, 204, .12); background: transparent;
  font-size: .8rem; color: var(--text-muted);
}
body.app-body .developer-footer a { color: var(--nx-gold-1); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; margin-left: .3rem; }
.footer-top {
  position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(126, 154, 204, .22);
  background: rgba(255, 255, 255, .04); color: #c9d3e6; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.footer-top:hover { color: var(--nx-gold-1); border-color: rgba(255, 178, 31, .5); }

/* --------------------------------------- páginas de revenda / outras */
body.app-body .reseller-hero, body.app-body .premium-hero--red {
  background: linear-gradient(135deg, rgba(255, 178, 31, .16), rgba(10, 16, 29, .94) 70%) !important;
  border-color: rgba(255, 178, 31, .3) !important;
}
body.app-body .reseller-stat-card { background: rgba(14, 22, 38, .8); border: 1px solid var(--border); border-radius: 16px; }
body.app-body .reseller-modal { background: linear-gradient(180deg, #111b2f, #0a1120) !important; border-color: var(--border-strong) !important; }
body.app-body .badge-reseller-credit { background: rgba(255, 178, 31, .14) !important; color: #ffd36b !important; border-color: rgba(255, 178, 31, .4) !important; }
body.app-body .badge-reseller-date { background: rgba(59, 140, 255, .14) !important; color: #8fbfff !important; border-color: rgba(59, 140, 255, .42) !important; }
body.app-body .upload-tab { border-radius: 11px; }
body.app-body .upload-tab.active { background: linear-gradient(135deg, var(--nx-gold-1), var(--nx-gold-2)) !important; border-color: transparent !important; color: #1a1204 !important; }

/* -------------------------------------------- sidebar recolhida (PC) */
body.sidebar-collapsed .app-sidebar { transform: translateX(-100%); }
body.sidebar-collapsed .app-main { margin-left: 0; }
.app-sidebar, .app-main { transition: transform .28s cubic-bezier(.4, 0, .2, 1), margin-left .28s cubic-bezier(.4, 0, .2, 1); }

/* ======================================================= responsivo */
@media (max-width: 1399.98px) {
  .app-search { width: 240px; }
}
@media (max-width: 1199.98px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-search { width: 200px; }
}
@media (max-width: 991.98px) {
  body.app-body .app-sidebar { transform: translateX(-100%); }
  body.app-body .app-sidebar.is-open { transform: translateX(0); box-shadow: 10px 0 50px rgba(0, 0, 0, .65) !important; }
  .app-main { margin-left: 0 !important; }
  body.app-body .app-topbar { padding: 0 1rem; }
  .app-content { padding: 1.1rem 1rem; }
  .app-topbar__icon { display: none; }
  .app-user__info, .app-user__btn > .bi-chevron-down { display: none; }
  .app-user { padding-left: .5rem; }
  .app-search { display: none; }
}
@media (max-width: 767.98px) {
  :root { --topbar-h: 66px; }
  .app-topbar__title { font-size: 1rem; }
  .app-topbar__subtitle { display: none; }
  .stat-grid { gap: .8rem; }
  .stat-card { min-height: 150px; padding: 1rem 1rem 3rem; column-gap: .65rem; }
  .stat-card__icon { width: 42px; height: 42px; font-size: 1.15rem; }
  .stat-card__label { font-size: .7rem; }
  .stat-card__value { font-size: 2.1rem; }
  .stat-card__foot { font-size: .78rem; }
  .stat-card__go { display: none; }
  body.app-body .app-card--padded { padding: 1rem; }
  .app-card__header { align-items: flex-start; }
  .dash-search { flex-direction: column; }
  .pay-bars > div { padding: 0 .6rem; }
  body.app-body .table.app-table thead th, body.app-body .table.app-table tbody td { padding: .7rem .65rem; font-size: .82rem; }
}
@media (max-width: 575.98px) {
  .app-card__header--row { flex-wrap: wrap; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .stat-card {
    grid-template-columns: 1fr; grid-template-areas: "icon" "label" "value" "foot";
    row-gap: .3rem; min-height: 0; padding: .95rem .9rem 2.9rem;
  }
  .stat-card__icon { width: 38px; height: 38px; font-size: 1.05rem; }
  .stat-card__label { margin-top: .35rem; }
  .stat-card__value { font-size: 1.9rem; margin-top: .1rem; }
  .stat-card__spark { height: 38px; }
}
@media (max-width: 479.98px) {
  .app-card__head-main { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ===================================================== tela de login */
body.login-screen { background: #060a13 !important; }
body.login-screen::before {
  background:
    radial-gradient(ellipse 55% 45% at 0% 0%, rgba(255, 178, 31, .13), transparent 62%),
    radial-gradient(ellipse 60% 45% at 100% 100%, rgba(255, 178, 31, .10), transparent 62%),
    linear-gradient(180deg, #070c16 0%, #050810 100%) !important;
}
body.login-screen::after { display: none !important; }
body.login-screen .login-card {
  background: linear-gradient(180deg, rgba(17, 26, 44, .94), rgba(10, 16, 29, .97)) !important;
  border: 1px solid rgba(255, 178, 31, .45) !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6), 0 0 46px rgba(255, 178, 31, .13) !important;
}
body.login-screen .app-input { background: var(--bg-input) !important; border: 1px solid rgba(126, 154, 204, .24) !important; }
body.login-screen .app-input:focus { border-color: rgba(255, 178, 31, .7) !important; box-shadow: 0 0 0 3px rgba(255, 178, 31, .14) !important; }
