/* CueArrena Developer Portal — shared stylesheet.
   Mirrors the cuearr.com / merchant.cuearr.com design language:
   Manrope typography, cyan-blue brand accents, dark by default
   with `body.theme-light` overrides, pill buttons, panel cards. */

:root {
  --cuearr-blue: #4fb7ff;
  --cuearr-blue-soft: #e1f3ff;
  --cuearr-blue-deep: #006fbe;

  --bg-dark: #040812;
  --bg-main: #060b18;
  --bg-light: #f3f5fb;

  --text-main: #0c1020;
  --text-muted: #858aa0;
  --text-on-dark: #f7f8ff;

  --panel-dark: #0b1224;
  --panel-light: #ffffff;
  --panel-border-dark: rgba(255, 255, 255, 0.08);
  --panel-border-light: rgba(9, 17, 41, 0.08);

  --accent-success: #34d99f;
  --accent-warning: #f5b941;
  --accent-danger:  #ef4f5a;

  --border-subtle: rgba(255, 255, 255, 0.06);
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.45);
  --shadow-light: 0 10px 28px rgba(9, 17, 41, 0.08);
  --max-width: 1120px;
  --nav-height: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; scroll-behavior: smooth; }

body {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(79, 183, 255, 0.22), transparent 60%),
    radial-gradient(circle at 90% 40%, rgba(188, 82, 255, 0.14), transparent 60%),
    linear-gradient(180deg, #050814, #02030a 70%, #050814);
  color: var(--text-on-dark);
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.25s ease;
  min-height: 100%;
}

body.theme-light {
  --bg-main: #f6f8fd;
  --bg-dark: #ffffff;
  --text-on-dark: #111321;
  --border-subtle: rgba(9, 17, 41, 0.08);
  background: var(--bg-main);
  color: var(--text-main);
}

a { color: inherit; text-decoration: none; }
a.link { color: var(--cuearr-blue); }
a.link:hover { text-decoration: underline; }

/* ===== Topbar ===== */

.topbar-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(4, 8, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.25s ease, border-color 0.25s ease;
}
body.theme-light .topbar-wrap {
  background: rgba(246, 249, 255, 0.96);
  border-bottom-color: rgba(9, 17, 41, 0.08);
}

.topbar {
  max-width: var(--max-width);
  margin: 0 auto;
  height: var(--nav-height);
  padding-inline: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: flex; align-items: center; gap: 0.75rem; }

.brand-mark {
  width: 48px; height: 48px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,0.18), transparent 55%),
    radial-gradient(circle at 80% 85%, var(--cuearr-blue), transparent 60%),
    #02030a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 1px rgba(79, 183, 255, 0.4), 0 8px 22px rgba(0, 0, 0, 0.5);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
body.theme-light .brand-mark {
  border-color: rgba(9, 17, 41, 0.16);
  box-shadow: 0 6px 16px rgba(9, 17, 41, 0.28);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }

.brand-text-primary { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.02em; }
.brand-text-secondary { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.2em; }

.nav-main { display: flex; align-items: center; gap: 1.5rem; }

.nav-links { display: flex; align-items: center; gap: 1.25rem; font-size: 0.92rem; color: rgba(233, 236, 248, 0.9); }
body.theme-light .nav-links { color: #3a405c; }

.nav-links a { position: relative; padding-block: 0.2rem; transition: color 0.16s ease; font-weight: 500; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.18rem;
  height: 2px; border-radius: 999px;
  background: linear-gradient(90deg, var(--cuearr-blue), #8e5bff);
  transform: scaleX(0); transform-origin: center;
  transition: transform 0.18s ease-out;
}
.nav-links a:hover { color: #fff; }
.nav-links a.is-active { color: #fff; }
.nav-links a.is-active::after,
.nav-links a:hover::after { transform: scaleX(1); }
body.theme-light .nav-links a:hover,
body.theme-light .nav-links a.is-active { color: #111321; }

.nav-cta { display: flex; align-items: center; gap: 0.5rem; }

/* ===== Buttons ===== */

.btn, .btn-ghost, .btn-danger, .btn-outline {
  font-family: inherit;
  font-size: 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.55rem 1.1rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.09s ease, box-shadow 0.16s ease;
}

.btn {
  background: linear-gradient(135deg, var(--cuearr-blue), var(--cuearr-blue-deep));
  color: #02030a;
  box-shadow: 0 12px 28px rgba(79, 183, 255, 0.35);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 16px 40px rgba(79, 183, 255, 0.45); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-ghost {
  background: transparent;
  color: rgba(233, 236, 248, 0.9);
  border-color: rgba(255, 255, 255, 0.15);
}
body.theme-light .btn-ghost { color: #343a56; border-color: rgba(9, 17, 41, 0.12); background: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }
body.theme-light .btn-ghost:hover { background: #f3f6ff; }

.btn-outline {
  background: transparent;
  color: var(--cuearr-blue);
  border-color: var(--cuearr-blue);
}
.btn-outline:hover { background: rgba(79, 183, 255, 0.08); }

.btn-danger {
  background: transparent;
  color: var(--accent-danger);
  border-color: var(--accent-danger);
}
.btn-danger:hover { background: rgba(239, 79, 90, 0.1); }

.btn-sm { font-size: 0.8rem; padding: 0.4rem 0.85rem; }
.btn-xs { font-size: 0.72rem; padding: 0.3rem 0.7rem; }

/* ===== Layout ===== */

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-header h1 { font-size: 1.8rem; font-weight: 700; letter-spacing: -0.01em; }
.page-header .subtitle { color: var(--text-muted); font-size: 0.95rem; margin-top: 0.25rem; }

.section { margin-top: 2.5rem; }
.section-title {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--text-muted); font-weight: 600; margin-bottom: 0.75rem;
}
.section h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; }

/* ===== Panels / Cards ===== */

.panel {
  background: rgba(11, 18, 36, 0.78);
  border: 1px solid var(--panel-border-dark);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.25s ease;
}
body.theme-light .panel {
  background: var(--panel-light);
  border-color: var(--panel-border-light);
  box-shadow: var(--shadow-light);
}

.panel--accent::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--cuearr-blue), var(--cuearr-blue-deep));
  border-radius: 4px 0 0 4px;
}

.panel + .panel { margin-top: 1rem; }

.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1rem;
}
.panel-header h3 { font-size: 1.1rem; font-weight: 700; }

.panel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }

.empty-state {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--panel-border-dark);
  border-radius: var(--radius-md);
}
body.theme-light .empty-state { border-color: var(--panel-border-light); }

/* ===== Tables ===== */

.table-wrap {
  border-radius: var(--radius-lg);
  border: 1px solid var(--panel-border-dark);
  overflow: hidden;
  background: rgba(11, 18, 36, 0.78);
}
body.theme-light .table-wrap {
  background: #fff;
  border-color: var(--panel-border-light);
  box-shadow: var(--shadow-light);
}

table.dev-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
table.dev-table th, table.dev-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
}
table.dev-table thead th {
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  border-bottom: 1px solid var(--panel-border-dark);
}
body.theme-light table.dev-table thead th {
  background: #f7f9ff;
  border-bottom-color: var(--panel-border-light);
  color: #5b637a;
}
table.dev-table tbody tr + tr td { border-top: 1px solid var(--panel-border-dark); }
body.theme-light table.dev-table tbody tr + tr td { border-top-color: var(--panel-border-light); }
table.dev-table tbody tr:hover { background: rgba(79, 183, 255, 0.04); }

.actions-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* ===== Chips / badges ===== */

.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid var(--panel-border-dark);
  background: rgba(255,255,255,0.04);
  color: var(--text-on-dark);
}
body.theme-light .chip { background: #f3f6ff; border-color: var(--panel-border-light); color: var(--text-main); }

.chip::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cuearr-blue);
}
.chip--success { color: var(--accent-success); border-color: rgba(52, 217, 159, 0.4); }
.chip--success::before { background: var(--accent-success); }
.chip--warning { color: var(--accent-warning); border-color: rgba(245, 185, 65, 0.4); }
.chip--warning::before { background: var(--accent-warning); }
.chip--danger { color: var(--accent-danger); border-color: rgba(239, 79, 90, 0.4); }
.chip--danger::before { background: var(--accent-danger); }
.chip--plain::before { display: none; }

/* ===== Code blocks ===== */

code, kbd {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82em;
  background: rgba(255,255,255,0.06);
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  color: inherit;
}
body.theme-light code, body.theme-light kbd { background: #eef1fb; color: #1d2240; }

/* ===== Notes / muted text ===== */

.note { color: var(--text-muted); font-size: 0.88rem; line-height: 1.5; }
.subtle { color: var(--text-muted); }

/* ===== Forms ===== */

label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-on-dark); margin-bottom: 0.35rem; }
body.theme-light label { color: #1d2240; }
label .label-note { display: block; font-weight: 400; color: var(--text-muted); font-size: 0.78rem; margin-top: 0.15rem; }

input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="search"], input[type="url"], textarea, select {
  width: 100%;
  font-family: inherit;
  font-size: 0.92rem;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--panel-border-dark);
  background: rgba(255,255,255,0.04);
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
body.theme-light input[type="text"], body.theme-light input[type="email"],
body.theme-light input[type="password"], body.theme-light input[type="number"],
body.theme-light input[type="search"], body.theme-light input[type="url"],
body.theme-light textarea, body.theme-light select {
  background: #fff;
  border-color: var(--panel-border-light);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--cuearr-blue);
  box-shadow: 0 0 0 3px rgba(79, 183, 255, 0.2);
}

.form-row { margin-bottom: 1rem; }
.form-row-inline { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-row-inline > * { flex: 1 1 200px; }

textarea { resize: vertical; min-height: 80px; }

input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--cuearr-blue); vertical-align: middle; }

/* ===== Alerts / flashes ===== */

.flash {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}
.flash--success { background: rgba(52, 217, 159, 0.08); border-color: rgba(52, 217, 159, 0.4); color: var(--accent-success); }
.flash--error   { background: rgba(239, 79, 90, 0.08); border-color: rgba(239, 79, 90, 0.4); color: var(--accent-danger); }
.flash--info    { background: rgba(79, 183, 255, 0.08); border-color: rgba(79, 183, 255, 0.4); color: var(--cuearr-blue); }

/* ===== Theme toggle ===== */

.theme-toggle {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--panel-border-dark);
  color: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.16s ease, border-color 0.16s ease;
}
body.theme-light .theme-toggle { background: #fff; border-color: var(--panel-border-light); }
.theme-toggle:hover { background: rgba(255,255,255,0.08); }
body.theme-light .theme-toggle:hover { background: #f3f6ff; }
.theme-toggle-label { font-weight: 600; }

/* ===== jQuery UI overrides (tabs + sortable placeholder) ===== */

.ui-tabs.ui-widget,
.ui-tabs .ui-tabs-nav,
.ui-tabs .ui-tabs-panel {
  background: transparent !important;
  border: none !important;
  color: inherit !important;
  font-family: inherit !important;
  padding: 0 !important;
}
.ui-tabs .ui-tabs-nav {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--panel-border-dark) !important;
  margin-bottom: 1rem !important;
}
body.theme-light .ui-tabs .ui-tabs-nav { border-bottom-color: var(--panel-border-light) !important; }
.ui-tabs .ui-tabs-nav li {
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  top: 0 !important;
}
.ui-tabs .ui-tabs-nav li a {
  display: inline-block;
  padding: 0.7rem 1.1rem !important;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-muted) !important;
  text-decoration: none !important;
  border: none !important;
  background: transparent !important;
}
.ui-tabs .ui-tabs-nav li.ui-tabs-active {
  border-bottom-color: var(--cuearr-blue) !important;
}
.ui-tabs .ui-tabs-nav li.ui-tabs-active a {
  color: var(--text-on-dark) !important;
}
body.theme-light .ui-tabs .ui-tabs-nav li.ui-tabs-active a { color: var(--text-main) !important; }
.ui-tabs .ui-tabs-panel { padding-top: 0.5rem !important; }

.ui-state-highlight {
  background: rgba(79, 183, 255, 0.1) !important;
  border: 1px dashed var(--cuearr-blue) !important;
  border-radius: 8px !important;
  min-height: 36px;
}

/* ===== Schema / widget row editors (template_edit, template_new) ===== */

.schema-list, .widget-list {
  list-style: none; padding: 0; margin: 0.5rem 0 0.75rem;
}
.schema-row, .widget-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  margin: 0.35rem 0;
  border-radius: 10px;
  border: 1px solid var(--panel-border-dark);
  background: rgba(255,255,255,0.03);
  transition: border-color 0.15s ease, background 0.15s ease;
}
body.theme-light .schema-row, body.theme-light .widget-row {
  border-color: var(--panel-border-light);
  background: #fbfcff;
}
.schema-row:hover, .widget-row:hover {
  border-color: rgba(79, 183, 255, 0.4);
}

.drag-handle {
  cursor: move;
  padding: 0 0.35rem;
  font-size: 1rem;
  color: var(--text-muted);
  user-select: none;
}

.schema-row input[type=text],
.widget-row  input[type=text],
.schema-row select,
.widget-row  select {
  padding: 0.35rem 0.55rem;
  font-size: 0.88rem;
  width: auto;
}
.small-input  { width: 160px; }
.medium-input { width: 220px; }
.config-input { width: 260px; }

.section-header {
  margin-top: 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  font-weight: 600;
}

/* Small inline-icon delete button used by schema/widget editors */
.icon-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: inherit;
  font-size: 0.85rem;
}
.icon-btn--danger { color: var(--accent-danger); }
.icon-btn:hover   { background: rgba(255,255,255,0.06); }
body.theme-light .icon-btn:hover { background: rgba(9, 17, 41, 0.05); }

/* ===== Fieldset wrap (matches .panel but with a <legend>) ===== */

fieldset.panel-fieldset {
  border: 1px solid var(--panel-border-dark);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.4rem;
  background: rgba(11, 18, 36, 0.5);
  margin-top: 1.5rem;
}
body.theme-light fieldset.panel-fieldset {
  background: #fff;
  border-color: var(--panel-border-light);
  box-shadow: var(--shadow-light);
}
fieldset.panel-fieldset > legend {
  padding: 0 0.6rem;
  font-weight: 700;
  font-size: 1rem;
}

/* Subtle divider used inside fieldsets to separate scan/geofence/anticheat groups */
hr.dev-divider {
  border: 0;
  border-top: 1px solid var(--panel-border-dark);
  margin: 1.2rem 0;
}
body.theme-light hr.dev-divider { border-top-color: var(--panel-border-light); }

/* ===== Settings dropdown (uses native <details>) ===== */

.nav-menu {
  position: relative;
}
.nav-menu > summary {
  list-style: none;      /* strip the default disclosure marker */
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  font-size: 0.92rem;
  color: rgba(233,236,248,0.9);
  background: rgba(255,255,255,0.04);
  transition: background 0.15s ease, border-color 0.15s ease;
}
body.theme-light .nav-menu > summary {
  border-color: rgba(30,35,55,0.18);
  color: #3a405c;
  background: rgba(0,0,0,0.03);
}
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary:hover { background: rgba(255,255,255,0.08); }
body.theme-light .nav-menu > summary:hover { background: rgba(0,0,0,0.06); }
.nav-menu[open] > summary { background: rgba(255,255,255,0.1); }
body.theme-light .nav-menu[open] > summary { background: rgba(0,0,0,0.08); }
.nav-menu.is-active > summary { border-color: rgba(255,255,255,0.35); }
body.theme-light .nav-menu.is-active > summary { border-color: rgba(30,35,55,0.35); }
.nav-menu-caret {
  font-size: 0.65rem;
  transition: transform 0.18s ease;
}
.nav-menu[open] .nav-menu-caret { transform: rotate(180deg); }

.nav-menu-panel {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 14rem;
  padding: 0.35rem;
  border-radius: 10px;
  background: #1a1d2e;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
body.theme-light .nav-menu-panel {
  background: #ffffff;
  border-color: rgba(30,35,55,0.14);
  box-shadow: 0 12px 32px rgba(20,30,60,0.14);
}
.nav-menu-panel a,
.nav-menu-panel .nav-menu-item {
  display: block;
  width: 100%;
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
  font: inherit;
  font-size: 0.92rem;
  text-align: left;
  color: rgba(233,236,248,0.9);
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
body.theme-light .nav-menu-panel a,
body.theme-light .nav-menu-panel .nav-menu-item {
  color: #3a405c;
}
.nav-menu-panel a:hover,
.nav-menu-panel .nav-menu-item:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
body.theme-light .nav-menu-panel a:hover,
body.theme-light .nav-menu-panel .nav-menu-item:hover {
  background: rgba(0,0,0,0.06);
  color: #111321;
}
.nav-menu-panel hr {
  margin: 0.25rem 0.35rem;
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
body.theme-light .nav-menu-panel hr {
  border-top-color: rgba(30,35,55,0.1);
}
.nav-menu-form { margin: 0; padding: 0; }

/* Simple card links used on the /dev/settings/ hub. */
.settings-card {
  padding: 1rem 1.1rem;
  border-radius: 10px;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
  text-decoration: none;
}
.settings-card:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.35); }
body.theme-light .settings-card:hover { border-color: rgba(30,35,55,0.35); }
.settings-card.is-disabled { pointer-events: none; }
.settings-card h2 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.settings-card p  { font-size: 0.9rem; margin: 0; opacity: 0.85; }
.settings-card .badge {
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* Auth / dashboard alert boxes (reused across enroll_2fa, settings, etc). */
.msg { padding: 0.7rem 0.9rem; border-radius: 6px; font-size: 0.92rem; }
.msg.ok    { background: rgba(48, 130, 78, 0.18);  border: 1px solid rgba(48,130,78,0.5); }
.msg.error { background: rgba(160, 30, 40, 0.18);  border: 1px solid rgba(160,30,40,0.5); }

.breadcrumb { color: rgba(233,236,248,0.6); }
.breadcrumb a { text-decoration: none; }
body.theme-light .breadcrumb { color: rgba(30,35,55,0.6); }

/* ===== Mobile ===== */

@media (max-width: 760px) {
  .nav-links { display: none; }
  .topbar { padding-inline: 1rem; }
  .page { padding: 1.25rem 1rem 3rem; }
  .brand-text-secondary { display: none; }
  .nav-menu-panel { right: 0.5rem; }
}
