@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* =========================================================
   SMM PANEL — DESIGN SYSTEM (tema escuro padrão + claro)
   ========================================================= */
:root {
  --bg: #0f1014;
  --bg-2: #13141a;
  --sidebar: #121318;
  --card: #16171d;
  --card-2: #1c1d24;
  --input: #111217;
  --border: #262730;
  --border-2: #32333d;
  --text: #ecedf1;
  --text-2: #b9bac4;
  --muted: #8a8b97;
  --accent: #2f6fed;
  --on-accent: #ffffff;
  --accent-ink: #93b4f6;
  --accent-2: #4a84f2;
  --accent-soft: rgba(47, 111, 237, .16);
  --accent-line: rgba(98, 146, 244, .55);
  --success: #2fbf71;
  --success-soft: rgba(47, 191, 113, .12);
  --warning: #f08a24;
  --warning-soft: rgba(240, 138, 36, .12);
  --danger: #ef4d5a;
  --danger-soft: rgba(239, 77, 90, .12);
  --info: #06b6d4;
  --info-soft: rgba(6, 182, 212, .12);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --sidebar-w: 272px;
  --topbar-h: 72px;
  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
}
html[data-theme="light"] {
  --bg: #f4f5f8;
  --bg-2: #eceef3;
  --sidebar: #ffffff;
  --card: #ffffff;
  --card-2: #f6f7fa;
  --input: #ffffff;
  --border: #e3e5eb;
  --border-2: #d4d7df;
  --text: #16171d;
  --text-2: #3d3f4a;
  --muted: #6d7080;
  --accent-soft: rgba(47, 111, 237, .10);
  --accent-line: rgba(47, 111, 237, .40);
  --accent-text: #2160e0;
  --accent-ink: #2160e0;
  --shadow: 0 10px 30px rgba(20, 22, 35, .08);
}

/* ---------- Base ---------- */
html, body { background: var(--bg); }
body {
  font-family: var(--font);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent-ink); transition: color .15s; }
a:hover, a:focus { color: var(--text); text-decoration: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font); color: var(--text); font-weight: 700; letter-spacing: -.01em; }
hr { border-color: var(--border); }
::selection { background: var(--accent); color: var(--on-accent); }
pre, code { font-family: var(--mono); }
pre {
  background: var(--input);
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 12.5px;
  white-space: pre-wrap;
  word-break: break-word;
}
code { background: var(--card-2); color: var(--accent-ink); border-radius: 6px; padding: 2px 6px; }
.text-muted, .help-block { color: var(--muted); }
* { scrollbar-width: thin; scrollbar-color: var(--border-2) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- App shell ---------- */
.app-shell { min-height: 100vh; }
.app-sidebar {
  position: fixed; top: 0; bottom: 0; left: 0;
  width: var(--sidebar-w);
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  z-index: 1040;
  transition: transform .25s ease;
}
.app-sidebar__brand {
  height: var(--topbar-h);
  display: flex; align-items: center;
  padding: 0 22px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.app-sidebar__brand a { color: var(--text); font-size: 20px; font-weight: 800; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.app-sidebar__brand img { max-height: 40px; max-width: 190px; }
.app-sidebar__close { display: none; margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 20px; }
.app-sidebar__nav { flex: 1; overflow-y: auto; padding: 14px 12px; }
.app-sidebar__label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 8px 12px 6px; font-weight: 600; }
.side-menu { list-style: none; margin: 0; padding: 0; }
.side-menu > li { margin: 0; border-bottom: 1px solid var(--border); }
.side-menu > li:last-child { border-bottom: 0; }
.side-menu > li > a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  margin: 3px 0;
  color: var(--text-2);
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.side-menu > li > a:hover { background: var(--card-2); color: var(--text); }
.side-menu > li.active > a {
  background: var(--card-2);
  color: var(--text);
  font-weight: 600;
  border-color: var(--border-2);
  box-shadow: inset 3px 0 0 var(--accent);
}
.side-menu .navbar-icon, .side-menu .menu-icon {
  width: 20px; text-align: center; font-size: 16px; color: var(--muted); flex-shrink: 0;
}
.side-menu > li.active .navbar-icon, .side-menu > li.active .menu-icon { color: var(--accent-ink); }
.side-menu .menu-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-sidebar__footer { border-top: 1px solid var(--border); padding: 12px; flex-shrink: 0; }
.side-account { list-style: none; margin: 0; padding: 0; }
.side-account > li > a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--text-2); font-weight: 500; font-size: 13px;
}
.side-account > li > a:hover, .side-account > li.active > a { background: var(--card-2); color: var(--text); }
.side-account > li > a .fa, .side-account > li > a .fas, .side-account > li > a .far { width: 18px; text-align: center; color: var(--muted); }
.side-account .side-balance { display: none; }

.app-main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.app-topbar {
  position: sticky; top: 0; z-index: 1030;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 14px;
  padding: 0 28px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.app-topbar__toggle, .icon-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--text-2);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 16px; cursor: pointer; transition: all .15s;
}
.app-topbar__toggle:hover, .icon-btn:hover { color: var(--text); border-color: var(--border-2); background: var(--card-2); }
.app-topbar__crumb { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--muted); font-size: 13px; }
.app-topbar__crumb strong { color: var(--text); font-weight: 700; }
.app-topbar__crumb .sep { width: 1px; height: 16px; background: var(--border-2); }
.app-topbar__crumb .crumb-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-topbar__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.app-topbar__right > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 10px; }
.balance-pill, .app-topbar .dropdown-currencies > a {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px;
  background: var(--card); color: var(--text) !important;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.balance-pill .badge, .side-balance .badge, .app-topbar .dropdown-currencies > a .badge { background: transparent !important; color: var(--text); font-size: 13px; padding: 0; font-weight: 700; }
.app-topbar .dropdown-currencies > a:before { content: "\f555"; font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free"; font-weight: 900; color: var(--accent-ink); }
.app-topbar .dropdown-menu { right: 0; left: auto; }
.app-topbar .navbar-right { float: none !important; margin: 0 !important; }
.app-topbar .nav > li > a { padding-top: 0; padding-bottom: 0; display: inline-flex; align-items: center; }
.app-topbar .nav > li > a:hover, .app-topbar .nav > li > a:focus, .app-topbar .nav .open > a { background: var(--card-2); border-color: var(--border-2); }
.app-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 1035; }
.app-content { flex: 1; padding: 34px 28px 48px; width: 100%; max-width: 1640px; }
.app-footer { padding: 18px 28px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--border); }

body.sidebar-collapsed .app-sidebar { transform: translateX(-100%); }
body.sidebar-collapsed .app-main { margin-left: 0; }

/* Remove o espaçamento das grades antigas dentro do novo layout */
.app-content > .container,
.app-content > .container-fluid { width: 100%; max-width: 100%; padding: 0; }

/* ---------- Page head ---------- */
.page-head { margin: 0 0 26px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 32px; margin: 0 0 6px; font-weight: 700; }
.page-head p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.page-head__icon {
  width: 58px; height: 58px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-ink); font-size: 22px;
  border: 1px solid var(--accent-line); flex-shrink: 0;
}
.page-head__row { display: flex; align-items: center; gap: 18px; }

/* ---------- Cards ---------- */
.well, .card-ui, .panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
  padding: 26px;
  margin-bottom: 22px;
  color: var(--text);
}
.card-ui__head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.card-ui__head h2, .card-ui__head h3 { font-size: 19px; margin: 0; font-weight: 700; }
.card-ui__head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.card-ui__icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent-line); font-size: 17px;
}
.card-ui__icon.is-blue { background: var(--info-soft); color: var(--info); border-color: rgba(6,182,212,.35); }
.card-ui__icon.is-amber { background: var(--warning-soft); color: var(--warning); border-color: rgba(240,138,36,.35); }
.card-ui--flush { padding: 0; overflow: hidden; }
.card-ui__divider { height: 1px; background: var(--border); margin: 20px 0; border: 0; }
.panel-body { padding: 0; }
.panel-body.border-solid {
  background: var(--input); border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm); padding: 16px 18px; color: var(--text-2);
  white-space: pre-line; max-height: 320px; overflow: auto;
}

.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 26px; align-items: start; }
.grid-2 > * { min-width: 0; }
.sticky-col { position: sticky; top: calc(var(--topbar-h) + 20px); }

/* Summary rows */
.sum-title { font-size: 19px; font-weight: 700; margin: 0 0 18px; }
.sum-service { font-weight: 700; font-size: 15px; margin-bottom: 14px; color: var(--text); word-break: break-word; }
.sum-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.sum-row:last-child { border-bottom: 0; }
.sum-row span:first-child { color: var(--muted); }
.sum-row span:last-child { color: var(--text); font-weight: 600; text-align: right; word-break: break-word; }
.sum-row .big { font-size: 24px; font-weight: 800; }

/* Stats */
.stats-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; }
.stat-box small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.stat-box strong { font-size: 26px; font-weight: 800; }
.stat-box.is-ok strong { color: var(--success); }
.stat-box.is-warn strong { color: var(--warning); }

/* Tips */
.tip-list { list-style: none; padding: 0; margin: 0; }
.tip-list li { display: flex; gap: 10px; padding: 10px 0; color: var(--text-2); border-bottom: 1px solid var(--border); font-size: 13.5px; }
.tip-list li:last-child { border-bottom: 0; }
.tip-list li i { color: var(--accent-ink); margin-top: 3px; }

/* ---------- Forms ---------- */
label, .control-label { color: var(--text); font-weight: 700; font-size: 14px; margin-bottom: 9px; }
.form-group { margin-bottom: 22px; }
.form-control {
  background: var(--input);
  border: 1px solid var(--border-2);
  color: var(--text);
  border-radius: var(--radius-sm);
  height: 50px;
  padding: 12px 16px;
  font-size: 14px;
  box-shadow: none;
  transition: border-color .15s, box-shadow .15s;
}
textarea.form-control { height: auto; min-height: 120px; resize: vertical; line-height: 1.6; }
select.form-control { -webkit-appearance: none; -moz-appearance: none; appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8b97' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background-color: var(--input); color: var(--text); }
.form-control::placeholder { color: var(--muted); opacity: 1; }
.form-control[readonly], .form-control[disabled] { background-color: var(--card-2); color: var(--text); opacity: 1; }
.input-sm, select.input-sm { height: 38px; padding: 6px 12px; font-size: 13px; }
.input-group .form-control { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group-btn .btn { height: 50px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; border-left: 0; min-width: 52px; }
.input-group-addon { background: var(--card-2); border-color: var(--border-2); color: var(--muted); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; }
.terms, label.terms { font-weight: 500; color: var(--text-2); }
.has-error .form-control { border-color: var(--danger); }
.form-group__password { position: relative; }
.forgot-password { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; }

/* search inside new order */
.search-dropdown .form-control { padding-left: 42px; }
.search-dropdown button { color: var(--muted); }
.search-field { position: relative; }
.search-field > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-field .form-control { padding-left: 44px; }

/* custom select plugin used by the panel (defensive) */
.select2-container .select2-selection, .bootstrap-select .btn, .dropdown-select .btn,
[data-select] + .btn-group > .btn, .btn-group.bootstrap-select > .dropdown-toggle {
  background: var(--input) !important; border: 1px solid var(--border-2) !important; color: var(--text) !important;
  border-radius: var(--radius-sm) !important; min-height: 50px; text-align: left; box-shadow: none !important;
}

/* ---------- Buttons ---------- */
.btn {
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  padding: 11px 20px;
  border: 1px solid transparent;
  transition: all .15s ease;
  box-shadow: none !important;
  outline: none !important;
}
.btn-primary, .btn-primary:focus {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
}
.btn-primary:hover, .btn-primary:active, .btn-primary.active, .open > .dropdown-toggle.btn-primary,
.btn-primary:active:hover, .btn-primary:active:focus {
  background: var(--accent-2); border-color: var(--accent-2); color: var(--on-accent);
}
.btn-primary.disabled, .btn-primary[disabled] { background: var(--accent); border-color: var(--accent); opacity: .55; }
.btn-default, .btn-default:focus {
  background: var(--card-2); border-color: var(--border-2); color: var(--text);
}
.btn-default:hover, .btn-default:active, .open > .dropdown-toggle.btn-default, .btn-default:active:hover {
  background: var(--card); border-color: var(--accent-line); color: var(--text);
}
.btn-lg { padding: 14px 26px; font-size: 15px; border-radius: 12px; }
.btn-xs { padding: 5px 11px; font-size: 12px; border-radius: 8px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block + .btn-block { margin-top: 10px; }
.btn-ghost { background: transparent; border: 1px solid var(--border-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent-line); color: var(--text); background: var(--card-2); }
.btn-submit { min-width: 180px; height: 50px; }

/* chips / quick buttons */
.chip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.chip {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  height: 48px; padding: 0 12px;
  background: var(--card-2); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-weight: 700; font-size: 13.5px; cursor: pointer;
  transition: all .15s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chip:hover { border-color: var(--border-2); background: var(--card); color: var(--text); }
.chip.is-active { background: var(--accent-soft); border-color: var(--accent-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent-2); }
.chip i { font-size: 17px; }
.chip.is-hidden { display: none; }
.chip .fa-instagram { color: #e1306c; } .chip .fa-facebook { color: #1877f2; } .chip .fa-youtube { color: #ff0000; }
.chip .fa-tiktok { color: var(--text); } .chip .fa-spotify { color: #1db954; } .chip .fa-whatsapp { color: #25d366; } .chip .fa-telegram, .chip .fa-telegram-plane { color: #29a9eb; }
.chip .fa-twitter { color: #1d9bf0; } .chip .fa-discord { color: #5865f2; } .chip .fa-twitch { color: #9146ff; }
.chip .fa-linkedin { color: #0a66c2; } .chip .fa-kickstarter-k { color: #53fc18; } .chip .fa-globe { color: var(--info); }
.chip .fa-layer-group, .chip .fa-star, .chip .fa-th-large { color: var(--accent-ink); }
.platform-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 22px; background: var(--bg-2); }
.platform-box__title { font-weight: 700; margin: 2px 4px 14px; font-size: 14px; }
.chip-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.chip-row .chip { flex: 0 0 auto; }
.amount-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: -6px 0 22px; }
.amount-grid .chip { height: 44px; }

/* ---------- Alerts ---------- */
.alert { border-radius: var(--radius-sm); border: 1px solid; padding: 14px 18px; font-size: 14px; }
.alert h4 { font-size: 16px; margin-bottom: 8px; color: inherit; }
.alert .close { color: inherit; opacity: .6; text-shadow: none; font-weight: 400; }
.alert-success { background: var(--success-soft); border-color: rgba(47,191,113,.4); color: #6fe3a4; }
.alert-danger { background: var(--danger-soft); border-color: rgba(239,77,90,.4); color: #ff8d96; }
.alert-warning { background: var(--warning-soft); border-color: rgba(240,138,36,.4); color: #f3c47d; }
.alert-info { background: var(--info-soft); border-color: rgba(6,182,212,.4); color: #67e8f9; }
html[data-theme="light"] .alert-success { color: #1a8a4e; }
html[data-theme="light"] .alert-danger { color: #c62f3b; }
html[data-theme="light"] .alert-warning { color: #9a6310; }
html[data-theme="light"] .alert-info { color: #0e7490; }
#notify-wrapper { position: fixed; right: 20px; bottom: 20px; z-index: 2000; max-width: 360px; box-shadow: var(--shadow); }

/* ---------- Nav pills (filtros) ---------- */
.nav-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.nav-pills:before, .nav-pills:after { display: none; }
.nav-pills > li { float: none; margin: 0 !important; }
.nav-pills > li > a {
  display: inline-flex; align-items: center; gap: 7px;
  height: 44px; padding: 0 16px;
  border-radius: var(--radius-sm);
  background: var(--card); color: var(--text-2);
  border: 1px solid var(--border);
  font-weight: 600;
}
.nav-pills > li > a:hover, .nav-pills > li > a:focus { background: var(--card-2); color: var(--text); }
.nav-pills > li.active > a, .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus {
  background: var(--card-2); color: var(--text); border-color: var(--border-2);
  box-shadow: inset 0 0 0 1px var(--border-2);
}
.nav-pills > li.search { margin-left: auto !important; min-width: 300px; }
.nav-pills > li.search .input-group { width: 100%; }
.nav-pills > li > .dropdown > .btn { height: 44px; }
.pill-pending > a { border-color: rgba(240,138,36,.35) !important; color: var(--warning) !important; }
.pill-progress > a { border-color: rgba(6,182,212,.35) !important; color: var(--info) !important; }
.pill-completed > a { border-color: rgba(47,191,113,.35) !important; color: var(--success) !important; }
.pill-partial > a, .pill-processing > a { color: var(--text-2) !important; }
.pill-canceled > a { border-color: rgba(239,77,90,.35) !important; color: var(--danger) !important; }
.nav-pills > li.active[class*="pill-"] > a { background: var(--card-2); box-shadow: inset 0 0 0 1px currentColor; }

/* ---------- Dropdowns ---------- */
.dropdown-menu {
  background: var(--card); border: 1px solid var(--border-2); border-radius: 12px;
  box-shadow: var(--shadow); padding: 6px; margin-top: 6px; max-height: 420px; overflow-y: auto; min-width: 220px;
}
.dropdown-menu > li > a { color: var(--text-2); padding: 9px 12px; border-radius: 8px; display: flex; align-items: center; gap: 8px; white-space: normal; }
.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus { background: var(--card-2); color: var(--text); }
.dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus { background: var(--accent-soft); color: var(--text); }
.dropdown-max-height { max-height: 320px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.well-float { padding: 0; overflow: hidden; float: none !important; width: auto !important; }
.well-float .table-wrap { padding: 0; }
.table { color: var(--text); margin-bottom: 0; background: transparent; }
.table > thead > tr > th {
  background: var(--card-2);
  color: var(--text-2);
  font-weight: 700; font-size: 13px;
  border-bottom: 1px solid var(--border) !important;
  border-top: 0 !important;
  padding: 14px 12px; white-space: nowrap;
}
.table > tbody > tr > td {
  border-top: 1px solid var(--border);
  padding: 14px 12px; vertical-align: middle; font-size: 13.5px;
}
.table > tbody > tr:hover > td { background: rgba(255,255,255,.015); }
html[data-theme="light"] .table > tbody > tr:hover > td { background: rgba(0,0,0,.015); }
.table-bordered, .table-bordered > thead > tr > th, .table-bordered > tbody > tr > td { border-color: var(--border) !important; }
.table-bordered { border-radius: var(--radius-sm); overflow: hidden; border-collapse: separate; border-spacing: 0; }
.table .link, .table .width-40 { word-break: break-all; min-width: 200px; max-width: 280px; }
.table td.service-col { min-width: 240px; }
.table td.link, .table td.width-40 { color: var(--accent-ink); }
.table .nowrap, .nowrap { white-space: nowrap; }
.table .service-name { font-weight: 600; min-width: 280px; }
.id-cell { font-weight: 800; color: var(--text); }
.date-cell { color: var(--muted); font-size: 12px; }
.table .order-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.width-service-name { width: 55%; }

/* category rows in services */
#service-table tr[data-filter-table-category-id] > td[colspan] {
  background: var(--card-2);
  font-size: 14px; padding: 16px 18px;
  border-top: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
}
#service-table tr > td[colspan] img, #service-table tr > td[colspan] span[class] { margin-right: 8px; display: inline-block; vertical-align: middle; }
[data-favorite-service-id] { cursor: pointer; color: var(--muted); font-size: 15px; }
.favorite-active, .favorite-active [data-favorite-icon] { color: #f5b301; }

/* status badges */
.status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 8px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
  background: var(--card-2); color: var(--text-2); border: 1px solid var(--border-2);
}
.status-badge:before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-badge.is-completed { background: var(--success-soft); color: var(--success); border-color: rgba(47,191,113,.35); }
.status-badge.is-progress { background: var(--info-soft); color: var(--info); border-color: rgba(6,182,212,.35); }
.status-badge.is-pending { background: var(--warning-soft); color: var(--warning); border-color: rgba(240,138,36,.35); }
.status-badge.is-canceled { background: var(--danger-soft); color: var(--danger); border-color: rgba(239,77,90,.35); }
.status-badge.is-partial { background: rgba(160,120,255,.12); color: #b294ff; border-color: rgba(160,120,255,.35); }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0 0; clear: both; float: none; width: 100%; }
.pagination > li > a, .pagination > li > span {
  float: none; margin: 0; min-width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card); color: var(--text-2);
  border: 1px solid var(--border); border-radius: 10px !important;
  font-weight: 600;
}
.pagination > li > a:hover { background: var(--card-2); color: var(--text); border-color: var(--border-2); }
.pagination > .active > a, .pagination > .active > a:hover, .pagination > .active > a:focus {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
}

/* ---------- Modals & tooltips ---------- */
.modal-backdrop.in { opacity: .7; }
.modal-content { background: var(--card); border: 1px solid var(--border-2); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); }
.modal-header { border-bottom: 1px solid var(--border); padding: 18px 22px; }
.modal-header .close { color: var(--text); opacity: .6; text-shadow: none; }
.modal-body { padding: 22px; }
.modal-footer { border-top: 1px solid var(--border); }
.modal-title { font-weight: 700; }
.tooltip-inner { background: #000; border-radius: 8px; padding: 7px 10px; font-family: var(--font); }

/* ---------- Tickets uploader (defensive) ---------- */
.tickets-uploader { border: 1px dashed var(--border-2); border-radius: var(--radius-sm); padding: 16px; background: var(--bg-2); }
.tickets-uploader .btn { background: var(--card-2); border: 1px solid var(--border-2); color: var(--text); }

/* ---------- API page ---------- */
.api-meta td:first-child { color: var(--muted); font-weight: 600; width: 38%; }
.api-meta td:last-child { font-family: var(--mono); font-size: 13px; word-break: break-all; }
.api-method { margin-top: 28px; }
.api-method h4 { display: flex; align-items: center; gap: 10px; font-size: 17px; margin: 0 0 14px; }
.api-method h4:before { content: "POST"; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; padding: 4px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent-line); }
.api-method td:first-child { font-family: var(--mono); color: var(--accent-ink); font-size: 13px; }
.api-method .code-label { font-weight: 700; margin: 16px 0 8px; font-size: 13px; color: var(--text-2); }

/* ---------- Guest header / Landing ---------- */
.guest-nav {
  position: sticky; top: 0; z-index: 1030;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.guest-nav__inner { max-width: 1240px; margin: 0 auto; height: 72px; padding: 0 20px; display: flex; align-items: center; gap: 18px; }
.guest-nav__brand { white-space: nowrap; flex-shrink: 0; color: var(--text); font-weight: 800; font-size: 21px; display: flex; align-items: center; }
.guest-nav__brand:hover { color: var(--text); }
.guest-nav__brand img { max-height: 40px; max-width: 180px; }
.guest-nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.guest-nav__links > li > a { white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; color: var(--text-2); font-weight: 600; border-radius: 10px; }
.guest-nav__links > li > a:hover, .guest-nav__links > li.active > a { color: var(--text); background: var(--card-2); }
.guest-nav__links > li:last-child > a { background: var(--accent); color: var(--on-accent); margin-left: 6px; }
.guest-nav__links > li:last-child > a:hover { background: var(--accent-2); }
.guest-nav__lang { list-style: none; margin: 0; padding: 0; }
.guest-nav__lang > li > a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; color: var(--text-2); border: 1px solid var(--border); border-radius: 10px; font-weight: 600; }
.guest-nav__toggle { display: none; margin-left: auto; }
.guest-content > .container { padding-top: 40px; padding-bottom: 40px; }
.guest-content .well { max-width: 560px; margin-left: auto; margin-right: auto; }

.landing { overflow: hidden; }
.lp-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.lp-hero { position: relative; padding: 70px 0 60px; }
.lp-hero:before {
  content: ""; position: absolute; width: 720px; height: 720px; right: -220px; top: -260px;
  background: radial-gradient(circle, rgba(47, 111, 237,.28), transparent 62%); pointer-events: none;
}
.lp-hero:after {
  content: ""; position: absolute; width: 560px; height: 560px; left: -260px; bottom: -300px;
  background: radial-gradient(circle, rgba(6,182,212,.10), transparent 65%); pointer-events: none;
}
.lp-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-ink); font-weight: 700; font-size: 12.5px; margin-bottom: 22px; }
.lp-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(47,191,113,.18); }
.lp-title { font-size: 56px; line-height: 1.04; font-weight: 800; letter-spacing: -.03em; margin: 0 0 20px; }
.lp-title span { background: linear-gradient(90deg, #6c9af5, #c3d5fb); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-lead { font-size: 18px; color: var(--text-2); max-width: 560px; margin: 0 0 30px; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.lp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 560px; }
.lp-stat { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.lp-stat strong { display: block; font-size: 22px; font-weight: 800; }
.lp-stat small { color: var(--muted); font-size: 12.5px; }

.auth-card { background: var(--card); border: 1px solid var(--border-2); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); position: relative; }
.auth-card h2 { font-size: 24px; margin: 0 0 6px; }
.auth-card > p { color: var(--muted); margin: 0 0 24px; }
.auth-card .alert { margin-bottom: 18px; }
.auth-card .btn-primary { width: 100%; height: 50px; }
.auth-card .auth-extra { margin-top: 14px; }
.auth-card .auth-foot { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); text-align: center; color: var(--muted); }
.auth-card .auth-foot a { font-weight: 700; }
.auth-card .g_id_signin { display: flex; justify-content: center; margin-top: 12px; }
.pw-wrap { position: relative; }
.pw-wrap .form-control { padding-right: 48px; }
.pw-toggle { position: absolute; right: 6px; top: 5px; width: 40px; height: 40px; background: none; border: 0; color: var(--muted); }

.lp-section { padding: 70px 0; border-top: 1px solid var(--border); }
.lp-section__head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.lp-section__head h2 { font-size: 36px; font-weight: 800; margin: 0 0 12px; letter-spacing: -.02em; }
.lp-section__head p { color: var(--text-2); font-size: 16px; margin: 0; }
.lp-platforms { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.lp-platforms .chip { height: 58px; font-size: 14px; cursor: default; }
.lp-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: border-color .2s, transform .2s; }
.lp-feature:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.lp-feature h3 { font-size: 18px; margin: 16px 0 8px; }
.lp-feature p { color: var(--text-2); margin: 0; }
.lp-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.lp-step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: relative; }
.lp-step:before { counter-increment: step; content: counter(step, decimal-leading-zero); font-weight: 800; font-size: 13px; color: var(--accent-ink); display: block; margin-bottom: 12px; }
.lp-step h3 { font-size: 16.5px; margin: 0 0 6px; }
.lp-step p { color: var(--text-2); margin: 0; font-size: 13.5px; }
.lp-cta { background: linear-gradient(135deg, rgba(47, 111, 237,.22), rgba(6,182,212,.06)); border: 1px solid var(--accent-line); border-radius: 22px; padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.lp-cta h2 { margin: 0 0 8px; font-size: 30px; font-weight: 800; }
.lp-cta p { margin: 0; color: var(--text-2); }
.lp-authtext { max-width: 900px; margin: 0 auto; color: var(--text-2); }
.lp-footer { border-top: 1px solid var(--border); padding: 26px 0; color: var(--muted); font-size: 13px; }
.lp-footer .lp-wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- RTL ---------- */
.rtl-navbar, .rtl-form, .rtl-content, .rtl-table { direction: rtl; }
html[dir="rtl"] .app-sidebar { left: auto; right: 0; border-right: 0; border-left: 1px solid var(--border); }
html[dir="rtl"] .app-main { margin-left: 0; margin-right: var(--sidebar-w); }
.rtl-nav > li.search { margin-left: 0 !important; margin-right: auto !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .grid-2 { grid-template-columns: minmax(0, 1fr) 320px; }
  .lp-platforms { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-title { font-size: 46px; }
}
@media (max-width: 1199px) {
  .guest-nav__links > li > a { padding: 9px 10px; font-size: 13px; }
}
@media (max-width: 991px) {
  .app-sidebar { transform: translateX(-100%); box-shadow: var(--shadow); }
  html[dir="rtl"] .app-sidebar { transform: translateX(100%); }
  .app-main, html[dir="rtl"] .app-main { margin-left: 0; margin-right: 0; }
  body.sidebar-open .app-sidebar { transform: translateX(0); }
  body.sidebar-open .app-overlay { display: block; }
  body.sidebar-open { overflow: hidden; }
  .app-sidebar__close { display: inline-flex; }
  .side-account .side-balance { display: block; }
  .grid-2 { grid-template-columns: 1fr; }
  .sticky-col { position: static; }
  .chip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .lp-features { grid-template-columns: 1fr 1fr; }
  .nav-pills > li.search { min-width: 0; width: 100%; margin-left: 0 !important; order: -1; }
}
@media (min-width: 1200px) {
  .guest-nav__menu { display: flex; align-items: center; gap: 12px; margin-left: auto; }
}
@media (max-width: 767px) {
  body { font-size: 14px; }
  .app-topbar { padding: 0 16px; gap: 10px; }
  .app-topbar__crumb .hide-xs { display: none; }
  .app-topbar .theme-toggle { display: none; }
  .app-content { padding: 22px 16px 36px; }
  .page-head h1 { font-size: 26px; }
  .page-head__icon { width: 48px; height: 48px; font-size: 18px; }
  .well, .card-ui, .panel { padding: 18px; border-radius: 12px; }
  .well-float { padding: 0; }
  .amount-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat-box { padding: 12px; }
  .stat-box strong { font-size: 20px; }
  .btn-submit { width: 100%; }
  .nav-pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
  .nav-pills > li { flex: 0 0 auto; }
  .nav-pills > li.search { flex: 0 0 100%; }
  .nav-pills > li > a { height: 38px; padding: 0 12px; font-size: 13px; }
  .nav-pills.has-search { flex-wrap: wrap; }
  .nav-pills.has-search > li:not(.search) { flex: 0 0 auto; }

  /* tabelas viram cartões */
  .table-cards thead { display: none; }
  .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards > tbody > tr { border-bottom: 1px solid var(--border); padding: 12px 16px; }
  .table-cards > tbody > tr > td {
    border: 0 !important; padding: 7px 0 !important;
    display: flex; justify-content: space-between; align-items: flex-start; gap: 14px;
    text-align: right; min-width: 0 !important;
  }
  .table-cards > tbody > tr > td:before {
    content: attr(data-label); color: var(--muted); font-weight: 600; font-size: 12px;
    text-align: left; flex-shrink: 0; max-width: 42%;
  }
  .table-cards > tbody > tr > td:not([data-label]):before, .table-cards > tbody > tr > td[data-label=""]:before { display: none; }
  .table-cards > tbody > tr > td[colspan] { display: block; text-align: left; margin: -12px -16px; padding: 14px 16px !important; width: calc(100% + 32px); }
  .table-cards > tbody > tr > td[colspan]:before { display: none; }
  .table-cards > tbody > tr > td > * { max-width: 58%; }
  .table-cards > tbody > tr > td.link, .table-cards > tbody > tr > td.width-40 { word-break: break-all; }
  .table-cards > tbody > tr > td:empty { display: none; }
  .table-cards .order-actions { justify-content: flex-end; }
  #service-table > tbody > tr > td.service-name { display: block; text-align: left; font-size: 14px; }
  #service-table > tbody > tr > td.service-name:before { display: none; }

  .lp-hero { padding: 40px 0 40px; }
  .lp-title { font-size: 36px; }
  .lp-lead { font-size: 16px; }
  .lp-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-stat strong { font-size: 18px; }
  .lp-features, .lp-steps { grid-template-columns: 1fr; }
  .lp-platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-section { padding: 48px 0; }
  .lp-section__head h2 { font-size: 28px; }
  .lp-cta { padding: 28px 22px; }
  .lp-cta .btn { width: 100%; }
  .auth-card { padding: 24px 20px; }
  .lp-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 420px) {
  .chip-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .chip { font-size: 12.5px; padding: 0 8px; }
  .app-topbar .balance-pill, .app-topbar .dropdown-currencies > a { padding: 0 10px; font-size: 12px; }
}

html[data-theme="light"] .app-content a:not(.btn):not(.chip), html[data-theme="light"] .guest-content a:not(.btn):not(.chip), html[data-theme="light"] .table td.link, html[data-theme="light"] .table td.width-40, html[data-theme="light"] .lp-eyebrow, html[data-theme="light"] code, html[data-theme="light"] .api-method td:first-child { color: var(--accent-text); }
html[data-theme="light"] .btn-primary { color: var(--on-accent); }

/* ---------- Select2 (categoria / serviço) ---------- */
.select2-dropdown { background: var(--card) !important; border: 1px solid var(--border-2) !important; border-radius: 12px !important; overflow: hidden; box-shadow: var(--shadow); }
.select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--text) !important; }
.select2-search--dropdown .select2-search__field { background: var(--input) !important; border: 1px solid var(--border-2) !important; color: var(--text) !important; border-radius: 8px !important; padding: 8px 12px !important; }
.select2-results__options { padding: 4px !important; }

/* padrão */
.select2-container .select2-results__option,
.select2-container .select2-results__option * { color: var(--text) !important; }
.select2-container .select2-results__option {
  background: transparent !important; padding: 10px 14px !important; margin: 2px 0;
  border-radius: 8px; transition: background .12s, box-shadow .12s;
}

/* passar o mouse / navegar com teclado: destaque suave e legível */
.select2-container .select2-results__option:hover,
.select2-container .select2-results__option.select2-results__option--highlighted {
  background: var(--accent-soft) !important;
  box-shadow: inset 0 0 0 1px var(--accent-line), inset 4px 0 0 var(--accent);
}
.select2-container .select2-results__option:hover,
.select2-container .select2-results__option:hover *,
.select2-container .select2-results__option.select2-results__option--highlighted,
.select2-container .select2-results__option.select2-results__option--highlighted * { color: var(--text) !important; }

/* item selecionado: cor de destaque com texto contrastante (inclusive com o mouse em cima) */
.select2-container .select2-results__option[aria-selected="true"],
.select2-container .select2-results__option[aria-selected="true"]:hover,
.select2-container .select2-results__option.active,
.select2-container .select2-results__option.active:hover {
  background: var(--accent) !important; box-shadow: none; font-weight: 600;
}
.select2-container .select2-results__option[aria-selected="true"],
.select2-container .select2-results__option[aria-selected="true"] *,
.select2-container .select2-results__option.active,
.select2-container .select2-results__option.active * { color: var(--on-accent) !important; }

/* elementos internos nunca ganham fundo próprio */
.select2-container .select2-results__option > *,
.select2-container .select2-results__option span:not(.badge) { background: transparent !important; box-shadow: none !important; }

/* etiqueta com o número do serviço */
.select2-container .select2-selection__id.badge,
.select2-container .select2-results__option .select2-selection__id.badge {
  background: var(--accent) !important; color: var(--on-accent) !important;
  font-weight: 800; font-size: 12px; padding: 4px 9px; border-radius: 999px; margin-right: 4px;
}
.select2-container .select2-results__option[aria-selected="true"] .select2-selection__id.badge,
.select2-container .select2-results__option.active .select2-selection__id.badge {
  background: var(--on-accent) !important; color: var(--accent) !important;
}

/* ---------- Botão Adicionar saldo (topo) ---------- */
.topbar-addfunds {
  height: 40px; padding: 0 16px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; white-space: nowrap; border-radius: var(--radius-sm);
}
.topbar-addfunds i { font-size: 12px; }
@media (max-width: 767px) {
  .app-topbar__crumb { flex: 1 1 auto; }
  .app-topbar__right { gap: 8px; }
  .topbar-addfunds { padding: 0 12px; font-size: 12.5px; }
}
@media (max-width: 400px) {
  .app-topbar__crumb .crumb-title { display: none; }
  .topbar-addfunds { padding: 0 10px; gap: 6px; }
}
@media (max-width: 340px) {
  .topbar-addfunds span { display: none; }
}

/* ---------- Marca (logo do site / ícone + nome) ---------- */
.app-sidebar__brand { padding: 0 18px; }
.app-sidebar__brand a, .guest-nav__brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; color: var(--text); }
.guest-nav__brand { flex: 0 0 auto; }
.app-sidebar__brand img.brand-img, .guest-nav__brand img.brand-img { max-height: 42px; max-width: 220px; width: auto; }
.app-sidebar__brand img.brand-mark, .guest-nav__brand img.brand-mark { width: 36px; height: 36px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 19px; font-weight: 800; }

/* menu do visitante vira hambúrguer abaixo de 1200px */
@media (max-width: 1199px) {
  .guest-nav__toggle { display: inline-flex; }
  .guest-nav__menu { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--border); padding: 12px 16px 16px; flex-direction: column; align-items: stretch; gap: 10px; }
  .guest-nav.is-open .guest-nav__menu { display: flex; }
  .guest-nav__links { flex-direction: column; align-items: stretch; margin: 0; }
  .guest-nav__links > li > a { width: 100%; }
  .guest-nav__links > li:last-child > a { margin-left: 0; justify-content: center; }
}

html[data-theme="light"] .lp-title span { background: linear-gradient(90deg, #2160e0, #4f8cf7); -webkit-background-clip: text; background-clip: text; }

/* ---------- Franquia (child panel) ---------- */
.fr-steps { list-style: none; counter-reset: fr; margin: 0; padding: 0; }
.fr-steps li { counter-increment: fr; position: relative; padding: 0 0 18px 50px; }
.fr-steps li:last-child { padding-bottom: 0; }
.fr-steps li:before {
  content: counter(fr); position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 14px;
}
.fr-steps li:not(:last-child):after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 2px; background: var(--border-2); }
.fr-steps strong { display: block; font-size: 15px; margin: 6px 0 4px; }
.fr-steps span { display: block; color: var(--text-2); font-size: 13.5px; }
.fr-steps code { word-break: break-all; }
.status-badge.is-completed:empty, .status-badge:empty { display: none; }
.fr-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-bottom: 28px; }
.fr-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-2); background: #000; box-shadow: var(--shadow); }
.fr-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fr-copy h1 { font-size: 36px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 16px; line-height: 1.1; }
.fr-copy p { color: var(--text-2); font-size: 15px; font-weight: 500; margin: 0 0 12px; }
.fr-copy .fr-punch { color: var(--text); font-weight: 700; }
@media (max-width: 1199px) { .fr-hero { grid-template-columns: 1fr; } }
@media (max-width: 767px) { .fr-copy h1 { font-size: 26px; } .fr-copy p { font-size: 14px; } }

/* ---------- Menu lateral: Mostrar mais ---------- */
.side-more-toggle {
  width: 100%; margin: 10px 0 6px; height: 46px; padding: 0 14px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card); color: var(--text); font-weight: 600; font-size: 14px;
  border: 1px solid var(--border-2); border-radius: var(--radius-sm); cursor: pointer;
  transition: background .15s, border-color .15s;
}
.side-more-toggle:hover { background: var(--card-2); border-color: var(--accent-line); }
.side-more-toggle i { font-size: 12px; color: var(--muted); transition: transform .2s; }
.side-more-toggle.is-open i { transform: rotate(180deg); }
.side-menu--more { display: none; }
.side-menu--more.is-open { display: block; }
.side-menu:not(.side-menu--more) > li:last-child { border-bottom: 1px solid var(--border); }

/* ---------- Botão fechar (X) dos avisos ---------- */
.alert { position: relative; }
.alert-dismissible, .alert:has(> .close) { padding-right: 58px; }
.alert .close, .alert-dismissible .close {
  position: absolute; top: 10px; right: 10px;
  width: 34px; height: 34px; margin: 0; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  float: none; font-size: 26px; line-height: 1; font-weight: 400;
  color: inherit; opacity: .75; text-shadow: none;
  background: transparent; border: 1px solid transparent; border-radius: 8px;
  cursor: pointer; transition: background .15s, opacity .15s;
}
.alert .close:hover, .alert .close:focus { opacity: 1; background: rgba(127,127,127,.18); outline: none; }
.alert .close span { display: block; line-height: 1; }
@media (max-width: 767px) { .alert .close { top: 8px; right: 8px; } }

/* ---------- Instruções de pagamento com estilo próprio (ex.: IBAN) ---------- */
[data-css-scope] { min-height: 0 !important; display: block !important; padding: 0 !important; background: transparent !important; font-family: var(--font) !important; }
[data-css-scope] .card { margin: 0 auto; }
.form-group.instruction { overflow: hidden; }
[data-css-scope] .panel-body.border-solid { max-height: none !important; overflow: visible !important; white-space: normal !important; padding: 0 !important; background: transparent !important; border: 0 !important; }
[data-css-scope] .card { max-width: 100% !important; }

/* ---------- Topo: saudação ---------- */
.topbar-hello { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; }
.topbar-hello strong { color: var(--text); font-weight: 700; }
.topbar-hello i { color: var(--accent-ink); margin-right: 4px; }
@media (max-width: 400px) { .topbar-hello i { display: none; } }

/* ---------- Novo pedido: lista de serviços mais compacta ---------- */
.select2-container .select2-results__option { padding: 7px 10px !important; margin: 1px 0 !important; line-height: 1.35; font-size: 13.5px; }
.select2-results__options { padding: 3px !important; }
.select2-container .select2-selection__id.badge,
.select2-container .select2-results__option .select2-selection__id.badge { padding: 2px 8px; font-size: 11.5px; }

/* ---------- Novo pedido: descrição recolhida ---------- */
.desc-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 9px; }
.desc-head .control-label { margin: 0; }
.desc-required { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--warning); background: var(--warning-soft); border: 1px solid rgba(240,138,36,.35); }
.desc-toggle { margin-left: auto; height: 34px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; }
#service_description .desc-body { display: none; }
#service_description.desc-open .desc-body { display: block; }
@media (max-width: 480px) { .desc-toggle { margin-left: 0; width: 100%; justify-content: center; } }
