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

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

:root {
  --bg: #050505;
  --bg-2: #0a0a0a;
  --surface: #101010;
  --surface-2: #181818;
  --surface-3: #202020;
  --text: #f8fafc;
  --text-2: #c7c7c7;
  --text-3: #858585;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 196, 0, 0.34);
  --accent: #ffc400;
  --accent-2: #f5a800;
  --accent-soft: rgba(255, 196, 0, 0.13);
  --accent-hover: #ffd84a;
  --ok: #22c55e;
  --ok-soft: rgba(34, 197, 94, 0.13);
  --bad: #ef4444;
  --bad-soft: rgba(239, 68, 68, 0.13);
  --warn: #f59e0b;
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.42);
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.28);
  --radius: 8px;
  --radius-sm: 6px;
  --sidebar-w: 258px;
  --font: 'Outfit', system-ui, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.55;
  background:
    linear-gradient(180deg, rgba(255, 196, 0, 0.05), transparent 240px),
    linear-gradient(135deg, #020202 0%, #080808 42%, #111 100%);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

/* Login */
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    linear-gradient(180deg, rgba(255, 196, 0, 0.1), transparent 32%),
    linear-gradient(135deg, #000 0%, #090909 48%, #151515 100%);
}

.login-card {
  width: 100%;
  max-width: 410px;
  padding: 2.35rem 2rem 2rem;
  overflow: hidden;
  position: relative;
  background: rgba(16, 16, 16, 0.96);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.login-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 196, 0, 0.12), transparent 42%);
  opacity: 0.42;
}

.login-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.login-brand .mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #050505;
  background: linear-gradient(180deg, var(--accent-hover), var(--accent-2));
  border-radius: var(--radius);
  box-shadow: 0 0 0 4px rgba(255, 196, 0, 0.1);
}

.login-brand h1 {
  font-size: 1.24rem;
  font-weight: 700;
  color: var(--text);
}

/* Layout */
.shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 200;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  background: #050505;
  border-right: 1px solid var(--line);
  box-shadow: 12px 0 38px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s var(--ease);
}

.sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  right: -1px;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(255, 196, 0, 0.45), transparent);
}

.sidebar-head {
  min-height: 76px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.72rem;
  border-bottom: 1px solid var(--line);
}

.sidebar-head .mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #050505;
  background: var(--accent);
  border-radius: var(--radius);
}

.sidebar-head span {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav {
  list-style: none;
  flex: 1;
  padding: 0.85rem 0.65rem;
  overflow-y: auto;
}

.nav li a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 42px;
  margin-bottom: 3px;
  padding: 0.64rem 0.85rem;
  color: var(--text-2);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.91rem;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.nav li a i,
.nav li a svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.82;
}

.nav li a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--line);
  text-decoration: none;
}

.nav li a.active {
  color: var(--accent);
  background: linear-gradient(90deg, rgba(255, 196, 0, 0.17), rgba(255, 196, 0, 0.04));
  border-color: rgba(255, 196, 0, 0.24);
}

.nav li a.active::before {
  content: '';
  width: 4px;
  height: 22px;
  position: absolute;
  left: -0.65rem;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
}

.nav li a.active i,
.nav li a.active svg {
  opacity: 1;
}

.nav-divider {
  height: 1px;
  margin: 0.7rem 0.85rem;
  padding: 0;
  list-style: none;
  background: var(--line);
}

.sidebar-foot {
  padding: 1rem 1.25rem;
  color: var(--text-3);
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

.main {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 66px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(7, 7, 7, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.topbar-left h1 {
  overflow: hidden;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: none;
  place-items: center;
  flex-shrink: 0;
  cursor: pointer;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.icon-btn:hover {
  color: var(--accent);
  background: var(--surface-3);
  border-color: var(--line-2);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 210px;
  padding: 0.35rem 0.78rem 0.35rem 0.35rem;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
}

.user-chip .avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #050505;
  background: var(--accent);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
}

.page {
  width: 100%;
  max-width: 1280px;
  flex: 1;
  padding: 1.5rem;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.stat {
  position: relative;
  overflow: hidden;
  padding: 1.12rem 1.2rem;
  background: linear-gradient(180deg, #151515, #0f0f0f);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.stat::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
}

.stat:hover {
  border-color: rgba(255, 196, 0, 0.3);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.stat-label {
  color: var(--text-3);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat-value {
  margin-top: 0.18rem;
  color: var(--text);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.1;
}

/* Cards */
.card {
  margin-bottom: 1rem;
  overflow: hidden;
  background: rgba(16, 16, 16, 0.98);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.card-head {
  min-height: 58px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: linear-gradient(90deg, rgba(255, 196, 0, 0.08), transparent 45%);
  border-bottom: 1px solid var(--line);
}

.card-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 700;
}

.card-head h2::before {
  content: '';
  width: 4px;
  height: 22px;
  display: inline-block;
  background: var(--accent);
  border-radius: 3px;
}

.card-body {
  padding: 1.25rem;
}

.card-body.flush {
  padding: 0;
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text-2);
  font-size: 0.8rem;
  font-weight: 600;
}

.field-wide {
  grid-column: span 2;
}

.field-help {
  display: block;
  margin-top: 0.38rem;
  color: var(--text-3);
  font-size: 0.78rem;
}

.qr-preview-field {
  max-width: 190px;
}

.qr-preview {
  display: block;
  width: 132px;
  height: 132px;
  margin-bottom: 0.65rem;
  padding: 0.42rem;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
}

.input-wrap {
  position: relative;
}

.input-wrap i,
.input-wrap svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  width: 16px;
  height: 16px;
  color: var(--text-3);
  pointer-events: none;
  transform: translateY(-50%);
}

.input-wrap input {
  padding-left: 2.5rem !important;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.64rem 0.85rem;
  color: var(--text);
  background: #0b0b0b;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

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

input::placeholder,
textarea::placeholder {
  color: #6f6f6f;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  background: #101010;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 196, 0, 0.14);
}

input[type="file"] {
  padding: 0.52rem;
  color: var(--text-2);
  font-size: 0.85rem;
}

input[type="file"]::file-selector-button {
  margin-right: 0.75rem;
  padding: 0.42rem 0.68rem;
  color: #050505;
  background: var(--accent);
  border: 0;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.15rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 38px;
  padding: 0.58rem 1.08rem;
  cursor: pointer;
  color: #050505;
  background: linear-gradient(180deg, var(--accent-hover), var(--accent));
  border: 1px solid rgba(255, 196, 0, 0.26);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 24px rgba(255, 196, 0, 0.12);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s, border-color 0.15s;
}

.btn:hover {
  color: #050505;
  background: var(--accent-hover);
  border-color: rgba(255, 216, 74, 0.55);
  box-shadow: 0 12px 28px rgba(255, 196, 0, 0.2);
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  min-height: 32px;
  padding: 0.38rem 0.74rem;
  font-size: 0.8rem;
}

.btn-ghost {
  color: var(--text-2);
  background: #111;
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn-ghost:hover {
  color: var(--accent);
  background: #181818;
  border-color: var(--line-2);
  box-shadow: none;
}

.btn-danger {
  color: #fff;
  background: #d92d3a;
  border-color: rgba(239, 68, 68, 0.34);
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.12);
}

.btn-danger:hover {
  color: #fff;
  background: #ef4444;
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.2);
}

.btn-icon {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
}

.btn svg,
.btn i {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* Tables */
.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

th {
  padding: 0.78rem 1.25rem;
  color: var(--text-3);
  background: #0b0b0b;
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
}

td {
  padding: 0.88rem 1.25rem;
  color: var(--text-2);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: none;
}

tbody tr {
  transition: background 0.12s;
}

tbody tr:hover td {
  background: rgba(255, 196, 0, 0.045);
}

.empty {
  padding: 2.5rem 1rem !important;
  color: var(--text-3);
  text-align: center;
}

code,
.url-chip {
  padding: 0.2rem 0.45rem;
  color: var(--accent);
  background: #0b0b0b;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 0.8rem;
  word-break: break-all;
}

.url-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.2rem 0.58rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.badge-ok {
  color: #86efac;
  background: var(--ok-soft);
  border-color: rgba(34, 197, 94, 0.24);
}

.badge-bad {
  color: #fca5a5;
  background: var(--bad-soft);
  border-color: rgba(239, 68, 68, 0.24);
}

.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.toolbar input[type="text"],
.toolbar input[type="search"] {
  flex: 1;
  min-width: 180px;
}

.thumb {
  height: 42px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.preview-img {
  display: block;
  max-height: 78px;
  margin-top: 0.65rem;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

/* Overlay */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  opacity: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(3px);
  transition: opacity 0.25s;
}

.backdrop.show {
  display: block;
  opacity: 1;
}

/* Toast */
.toast-stack {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  max-width: 340px;
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  pointer-events: auto;
  color: var(--text);
  background: #171717;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  font-weight: 600;
  animation: toastIn 0.35s var(--ease);
}

.toast.ok { border-left-color: var(--ok); }
.toast.bad { border-left-color: var(--bad); }
.toast.warn { border-left-color: var(--warn); }

.toast.hide {
  animation: toastOut 0.3s var(--ease) forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateY(8px); }
}

/* Responsive */
@media (max-width: 960px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow);
  }

  .main {
    margin-left: 0;
  }

  .icon-btn {
    display: grid;
  }

  .stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .field-wide {
    grid-column: auto;
  }

  .qr-preview-field {
    max-width: none;
  }

  .page {
    padding: 1rem;
  }

  .topbar {
    padding: 0 1rem;
  }

  .card-body,
  .card-head {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  th,
  td {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 520px) {
  .login-wrap {
    padding: 1rem;
  }

  .login-card {
    padding: 2rem 1.25rem 1.35rem;
  }

  .user-chip span:not(.avatar) {
    display: none;
  }
}

/* FIX V3 - mantém os botões Editar/Remover visíveis na página DNS */
.row-actions .btn {
  white-space: nowrap;
}


/* PLAY MAX - visual profissional sem mexer na lógica do formulário */
.playmax-login-wrap {
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 196, 0, 0.18), transparent 30%),
    radial-gradient(circle at 86% 14%, rgba(255, 216, 74, 0.10), transparent 24%),
    linear-gradient(135deg, #020202 0%, #090806 48%, #171005 100%);
}

.playmax-login-card {
  max-width: 420px;
  border: 1px solid rgba(255, 196, 0, 0.24);
  border-top: 4px solid var(--accent);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.98), rgba(7, 7, 7, 0.98));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(255, 196, 0, 0.05) inset;
}

.playmax-login-card::before {
  pointer-events: none;
}

.playmax-login-brand {
  justify-content: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.playmax-login-mark {
  width: 76px !important;
  height: 76px !important;
  padding: 0;
  overflow: visible;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.playmax-login-logo {
  display: block;
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.55));
}

.playmax-login-brand h1 {
  color: #fff;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.playmax-login-subtitle {
  margin-bottom: 1.25rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.login-error {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bad-soft);
  color: var(--bad);
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
}

.playmax-login-btn {
  min-height: 48px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--accent-hover), var(--accent));
  color: #050505;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(255, 196, 0, 0.18);
}

.playmax-sidebar-head {
  min-height: 86px;
  background: linear-gradient(180deg, rgba(255, 196, 0, 0.075), transparent);
}

.playmax-sidebar-logo-wrap {
  width: 46px !important;
  height: 46px !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.playmax-sidebar-logo {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.sidebar {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 196, 0, 0.10), transparent 35%),
    linear-gradient(180deg, #050505 0%, #080806 100%);
}

.nav li a.active {
  color: var(--accent);
  background: linear-gradient(90deg, rgba(255, 196, 0, 0.17), rgba(255, 196, 0, 0.045));
  border-color: rgba(255, 196, 0, 0.26);
}

.topbar {
  background:
    linear-gradient(90deg, rgba(255, 196, 0, 0.055), transparent 38%),
    rgba(7, 7, 7, 0.92);
}

@media (max-width: 520px) {
  .playmax-login-card {
    padding: 1.75rem 1.25rem;
  }
  .playmax-login-mark,
  .playmax-login-logo {
    width: 64px !important;
    height: 64px !important;
  }
  .playmax-login-brand h1 {
    font-size: 1.45rem;
  }
}

/* Dashboard refresh */
.page {
  max-width: 1440px;
  padding: 1.75rem;
}

.sidebar-head {
  align-items: center;
  gap: 0.9rem;
}

.sidebar-brand-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sidebar-brand-copy strong {
  overflow: hidden;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-brand-copy small {
  color: var(--text-3);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.sidebar-foot {
  padding: 1rem;
  border-top: 1px solid var(--line);
}

.sidebar-foot-card {
  padding: 1rem;
  background: linear-gradient(180deg, rgba(255, 196, 0, 0.12), rgba(255, 196, 0, 0.04));
  border: 1px solid rgba(255, 196, 0, 0.16);
  border-radius: 16px;
}

.sidebar-foot-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-foot-card strong {
  display: block;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.35;
}

.sidebar-foot-card small {
  display: block;
  margin-top: 0.45rem;
  color: var(--text-3);
  font-size: 0.76rem;
}

.topbar {
  height: auto;
  min-height: 82px;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.topbar-copy {
  min-width: 0;
}

.topbar-eyebrow {
  display: block;
  margin-bottom: 0.16rem;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-left h1 {
  font-size: 1.28rem;
}

.topbar-copy p {
  margin-top: 0.18rem;
  color: var(--text-3);
  font-size: 0.85rem;
}

.topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.topbar-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 36px;
  padding: 0.35rem 0.8rem;
  color: var(--accent);
  background: rgba(255, 196, 0, 0.08);
  border: 1px solid rgba(255, 196, 0, 0.18);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.topbar-pill.muted {
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}

.topbar-pill svg,
.topbar-pill i {
  width: 15px;
  height: 15px;
}

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1.35rem;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 196, 0, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(20, 20, 20, 0.98), rgba(10, 10, 10, 0.98));
  border: 1px solid rgba(255, 196, 0, 0.16);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(125deg, transparent 10%, rgba(255, 255, 255, 0.04) 32%, transparent 54%);
  opacity: 0.6;
}

.hero-copy,
.hero-meta {
  position: relative;
  z-index: 1;
}

.hero-copy h2 {
  max-width: 14ch;
  color: var(--text);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 66ch;
  margin-top: 0.9rem;
  color: var(--text-2);
  font-size: 0.96rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-bottom: 0.95rem;
  padding: 0.3rem 0.75rem;
  color: var(--accent);
  background: rgba(255, 196, 0, 0.08);
  border: 1px solid rgba(255, 196, 0, 0.18);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.hero-meta {
  display: grid;
  gap: 0.8rem;
}

.hero-kpi {
  padding: 1rem 1.05rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  backdrop-filter: blur(8px);
}

.hero-kpi span {
  display: block;
  color: var(--text-3);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-kpi strong {
  display: block;
  margin-top: 0.38rem;
  color: var(--text);
  font-size: 1.7rem;
  font-weight: 800;
}

.hero-kpi small {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-2);
  font-size: 0.8rem;
}

.stats-rich {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-rich {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  min-height: 136px;
}

.stat-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #050505;
  background: linear-gradient(180deg, var(--accent-hover), var(--accent));
  border-radius: 16px;
  box-shadow: 0 14px 28px rgba(255, 196, 0, 0.16);
}

.stat-icon svg,
.stat-icon i {
  width: 22px;
  height: 22px;
}

.stat-content {
  min-width: 0;
}

.stat-meta {
  margin-top: 0.35rem;
  color: var(--text-3);
  font-size: 0.8rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.9fr);
  gap: 1rem;
}

.dashboard-main,
.dashboard-side {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.2rem 0.65rem;
  color: var(--accent);
  background: rgba(255, 196, 0, 0.08);
  border: 1px solid rgba(255, 196, 0, 0.14);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.quick-card {
  display: block;
  padding: 1rem;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform 0.18s, border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.quick-card:hover {
  color: var(--text);
  border-color: rgba(255, 196, 0, 0.22);
  background: linear-gradient(180deg, rgba(255, 196, 0, 0.08), rgba(255, 196, 0, 0.03));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

.quick-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  color: var(--accent);
  background: rgba(255, 196, 0, 0.08);
  border: 1px solid rgba(255, 196, 0, 0.14);
  border-radius: 14px;
}

.quick-card strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
}

.quick-card span {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-3);
  font-size: 0.82rem;
  line-height: 1.5;
}

.info-list {
  display: grid;
  gap: 0.8rem;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-2);
  font-size: 0.88rem;
}

.info-row strong {
  color: var(--text);
  font-size: 0.96rem;
}

.progress-track {
  width: 100%;
  height: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
}

.dns-list {
  display: grid;
  gap: 0.75rem;
}

.dns-item {
  padding: 0.85rem 0.9rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.dns-item strong {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
}

.dns-item span {
  display: block;
  margin-top: 0.28rem;
  color: var(--text-3);
  font-size: 0.78rem;
  word-break: break-all;
}

.accent-card {
  background:
    radial-gradient(circle at top right, rgba(255, 196, 0, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(20, 20, 20, 0.98), rgba(12, 12, 12, 0.98));
  border-color: rgba(255, 196, 0, 0.18);
}

.accent-kicker {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.accent-card h3 {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.35;
}

.accent-card p {
  margin-top: 0.55rem;
  color: var(--text-2);
  font-size: 0.87rem;
}

.stack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 0.4rem;
}

.empty-state svg,
.empty-state i,
.mini-empty svg,
.mini-empty i {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.empty-state strong {
  color: var(--text);
}

.empty-state span,
.mini-empty span {
  max-width: 42ch;
  color: var(--text-3);
  font-size: 0.84rem;
}

.mini-empty {
  display: grid;
  justify-items: start;
  gap: 0.4rem;
}

@media (max-width: 1180px) {
  .hero-panel,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .stats-rich {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .topbar {
    align-items: flex-start;
  }

  .topbar-right {
    width: 100%;
    justify-content: flex-start;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
  }

  .hero-panel {
    padding: 1rem;
    border-radius: 20px;
  }

  .stats-rich {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .topbar-pill {
    display: none;
  }
}

/* Fullscreen responsive pass */
body {
  overflow-x: hidden;
}

.page {
  max-width: none;
  padding: clamp(1rem, 1.6vw, 1.9rem);
  display: grid;
  gap: 1rem;
  align-content: start;
}

.topbar {
  padding-left: clamp(1rem, 1.6vw, 1.75rem);
  padding-right: clamp(1rem, 1.6vw, 1.75rem);
}

.hero-panel {
  grid-template-columns: minmax(0, 2fr) minmax(320px, 0.95fr);
  min-height: clamp(320px, 36vh, 460px);
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy h2 {
  max-width: 12ch;
}

.hero-meta {
  align-content: stretch;
}

.hero-kpi {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stats,
.stats-rich {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.75fr) minmax(320px, 0.85fr);
  align-items: start;
}

.quick-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  margin-bottom: 0;
}

.card-head {
  flex-wrap: wrap;
}

.card-head > * {
  min-width: 0;
}

table {
  min-width: 680px;
}

.table-scroll {
  width: 100%;
}

@media (min-width: 1600px) {
  .hero-panel {
    grid-template-columns: minmax(0, 2.2fr) minmax(360px, 0.9fr);
  }

  .dashboard-grid {
    grid-template-columns: minmax(0, 1.9fr) minmax(360px, 0.82fr);
  }

  .hero-copy h2 {
    max-width: 13ch;
    font-size: clamp(2.2rem, 3vw, 3.35rem);
  }
}

@media (min-width: 961px) and (max-width: 1360px) {
  :root {
    --sidebar-w: 92px;
  }

  .main {
    margin-left: var(--sidebar-w);
  }

  .sidebar-head {
    justify-content: center;
    padding: 1rem 0.55rem;
  }

  .sidebar-brand-copy,
  .sidebar-foot {
    display: none;
  }

  .nav {
    padding-left: 0.45rem;
    padding-right: 0.45rem;
  }

  .nav li a {
    justify-content: center;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }

  .nav li a span {
    display: none;
  }

  .nav li a.active::before {
    left: -0.45rem;
  }
}

@media (max-width: 1180px) {
  .hero-panel {
    min-height: 0;
  }

  .hero-copy h2 {
    max-width: 14ch;
  }
}

@media (max-width: 960px) {
  .page {
    padding: 1rem;
  }

  .topbar {
    gap: 0.9rem;
  }

  .topbar-left {
    width: 100%;
    align-items: flex-start;
  }

  .topbar-copy {
    width: 100%;
  }

  .topbar-copy p {
    max-width: 60ch;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    padding: 1rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 220px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar-left h1 {
    white-space: normal;
    line-height: 1.05;
  }

  .topbar-right {
    gap: 0.5rem;
  }

  .hero-copy h2 {
    max-width: none;
    font-size: clamp(1.85rem, 9vw, 2.45rem);
  }

  .hero-copy p {
    font-size: 0.9rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .stat-rich {
    min-height: 112px;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    min-height: 0;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
  }

  .topbar-copy p {
    font-size: 0.82rem;
  }

  .hero-panel,
  .card,
  .quick-card,
  .hero-kpi,
  .dns-item {
    border-radius: 18px;
  }

  .card-head,
  .card-body {
    padding-left: 0.95rem;
    padding-right: 0.95rem;
  }
}

@media (max-width: 520px) {
  .page {
    padding: 0.85rem;
  }

  .hero-badge,
  .topbar-eyebrow {
    letter-spacing: 0.05em;
  }

  .topbar-copy p {
    display: none;
  }

  .user-chip {
    padding-right: 0.55rem;
  }

  .stat-rich {
    align-items: flex-start;
  }

  .stat-icon {
    width: 48px;
    height: 48px;
  }

  .card-tag {
    width: 100%;
    justify-content: center;
  }
}

/* TROPA PLAY REBRAND */
.tropa-theme {
  --bg: #07111a;
  --bg-2: #0a1621;
  --surface: #101d2a;
  --surface-2: #162637;
  --surface-3: #1d3044;
  --text: #f7fafc;
  --text-2: #d7dee8;
  --text-3: #8a9bb0;
  --line: rgba(148, 163, 184, 0.16);
  --line-2: rgba(255, 107, 44, 0.34);
  --accent: #ff6b2c;
  --accent-2: #ff884d;
  --accent-soft: rgba(255, 107, 44, 0.13);
  --accent-hover: #ff9b68;
  --ok: #2dd4bf;
  --ok-soft: rgba(45, 212, 191, 0.12);
  --warn: #f59e0b;
  --shadow: 0 24px 80px rgba(1, 8, 17, 0.48);
  --shadow-sm: 0 18px 44px rgba(1, 8, 17, 0.32);
  --radius: 24px;
  --radius-sm: 16px;
  --sidebar-w: 288px;
  --font: 'Kanit', system-ui, sans-serif;
}

body.tropa-theme {
  background:
    radial-gradient(circle at top left, rgba(255, 107, 44, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.08), transparent 26%),
    linear-gradient(135deg, #060d14 0%, #0c1722 46%, #121f2d 100%);
}

body.tropa-theme .page {
  max-width: 100%;
  padding: 2rem;
}

body.tropa-theme .sidebar {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 16%),
    linear-gradient(180deg, #08111a 0%, #0c1824 100%);
  border-right: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 22px 0 58px rgba(1, 8, 17, 0.3);
}

body.tropa-theme .sidebar-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 80%);
}

body.tropa-theme .sidebar-head {
  min-height: 104px;
  padding: 1.35rem 1.4rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  background: linear-gradient(180deg, rgba(255, 107, 44, 0.12), rgba(255, 107, 44, 0.02));
}

body.tropa-theme .playmax-sidebar-logo-wrap,
body.tropa-theme .tropa-login-mark {
  width: 56px !important;
  height: 56px !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)) !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.tropa-theme .playmax-sidebar-logo,
body.tropa-theme .playmax-login-logo {
  width: 100%;
  height: 100%;
  padding: 0.45rem;
  object-fit: contain;
}

body.tropa-theme .sidebar-brand-copy strong,
body.tropa-theme .tropa-login-copy h1,
body.tropa-theme .ops-hero-copy h2,
body.tropa-theme .ops-callout h3,
body.tropa-theme .topbar-left h1 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.04em;
}

body.tropa-theme .sidebar-brand-copy strong {
  font-size: 1.18rem;
}

body.tropa-theme .sidebar-brand-copy small {
  margin-top: 0.18rem;
  color: #8ea0b8;
  font-size: 0.8rem;
}

body.tropa-theme .sidebar-intel {
  margin: 1rem 1rem 0;
  padding: 1rem 1rem 1.05rem;
  background: linear-gradient(180deg, rgba(255, 107, 44, 0.13), rgba(255, 107, 44, 0.03));
  border: 1px solid rgba(255, 107, 44, 0.14);
  border-radius: 18px;
}

body.tropa-theme .sidebar-intel-kicker,
body.tropa-theme .tropa-login-kicker,
body.tropa-theme .ops-kicker,
body.tropa-theme .accent-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  color: #ffd2be;
  background: rgba(255, 107, 44, 0.14);
  border: 1px solid rgba(255, 107, 44, 0.18);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.tropa-theme .sidebar-intel strong {
  display: block;
  margin-top: 0.6rem;
  color: #fff;
  font-size: 0.98rem;
  line-height: 1.35;
}

body.tropa-theme .sidebar-intel small,
body.tropa-theme .playmax-login-subtitle {
  display: block;
  margin-top: 0.45rem;
  color: #9aa9bc;
  font-size: 0.82rem;
  line-height: 1.5;
}

body.tropa-theme .nav {
  padding: 0.7rem 0.75rem;
  overflow: hidden;
}

body.tropa-theme .nav li a {
  min-height: 42px;
  margin-bottom: 0.22rem;
  padding: 0.58rem 0.8rem;
  border-radius: 16px;
  color: #cfd7e1;
  font-size: 0.86rem;
}

body.tropa-theme .nav li a:hover {
  background: rgba(255, 255, 255, 0.06);
}

body.tropa-theme .nav li a.active {
  color: #fff6f1;
  background:
    linear-gradient(90deg, rgba(255, 107, 44, 0.24), rgba(255, 107, 44, 0.08)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
  border-color: rgba(255, 107, 44, 0.2);
}

body.tropa-theme .nav li a.active::before {
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff9b68, #ff6b2c);
}

body.tropa-theme .sidebar-foot {
  margin-top: auto;
  padding: 0.75rem;
}

body.tropa-theme .sidebar-foot-card {
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

body.tropa-theme .sidebar-foot-card strong {
  font-size: 0.9rem;
  line-height: 1.35;
}

body.tropa-theme .sidebar-foot-card small {
  font-size: 0.76rem;
}

body.tropa-theme .topbar {
  height: auto;
  padding: 1rem 1.4rem;
  background:
    linear-gradient(90deg, rgba(255, 107, 44, 0.08), transparent 28%),
    rgba(8, 17, 26, 0.88);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

body.tropa-theme .topbar-eyebrow {
  color: #ffb38d;
}

body.tropa-theme .topbar-left h1 {
  font-size: 1.45rem;
}

body.tropa-theme .topbar-copy p {
  color: #98a8bb;
}

body.tropa-theme .topbar-pill,
body.tropa-theme .user-chip,
body.tropa-theme .icon-btn {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(148, 163, 184, 0.12);
}

body.tropa-theme .user-chip .avatar {
  color: #fff;
  background: linear-gradient(180deg, #ff8b57, #ff6b2c);
}

body.tropa-theme .card,
body.tropa-theme .ops-metric,
body.tropa-theme .ops-hero,
body.tropa-theme .login-card {
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    rgba(13, 24, 36, 0.92);
  box-shadow: var(--shadow-sm);
}

body.tropa-theme .ops-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
  gap: 1.2rem;
  padding: 1.35rem;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}

body.tropa-theme .ops-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 107, 44, 0.18), transparent 34%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.03), transparent 36%);
  pointer-events: none;
}

body.tropa-theme .ops-hero-copy,
body.tropa-theme .ops-board {
  position: relative;
  z-index: 1;
}

body.tropa-theme .ops-hero-copy h2 {
  margin-top: 0.9rem;
  max-width: 16ch;
  color: #fff;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

body.tropa-theme .ops-hero-copy p {
  max-width: 62ch;
  margin-top: 1rem;
  color: #b5c1cf;
}

body.tropa-theme .ops-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

body.tropa-theme .ops-board {
  display: grid;
  gap: 0.9rem;
}

body.tropa-theme .ops-board-card,
body.tropa-theme .ops-metric {
  padding: 1rem 1.05rem;
  position: relative;
  overflow: hidden;
}

body.tropa-theme .ops-board-card::before,
body.tropa-theme .ops-metric::before {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, #ff6b2c, rgba(255, 107, 44, 0));
}

body.tropa-theme .ops-board-card span,
body.tropa-theme .ops-metric span {
  display: block;
  color: #8ea0b8;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.tropa-theme .ops-board-card strong,
body.tropa-theme .ops-metric strong {
  display: block;
  margin-top: 0.3rem;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.9rem;
  line-height: 1;
}

body.tropa-theme .ops-board-card small,
body.tropa-theme .ops-metric small {
  display: block;
  margin-top: 0.35rem;
  color: #9fb0c4;
}

body.tropa-theme .ops-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.2rem;
}

body.tropa-theme .ops-metric {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

body.tropa-theme .ops-metric-icon,
body.tropa-theme .ops-shortcut-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 18px;
  color: #fff4ed;
  background: linear-gradient(180deg, rgba(255, 107, 44, 0.26), rgba(255, 107, 44, 0.1));
  border: 1px solid rgba(255, 107, 44, 0.14);
}

body.tropa-theme .ops-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.75fr);
  gap: 1rem;
}

body.tropa-theme .ops-card .card-head {
  background: transparent;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

body.tropa-theme .ops-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

body.tropa-theme .ops-shortcut {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 188px;
  padding: 1rem;
  color: #fff;
  text-decoration: none;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

body.tropa-theme .ops-shortcut:hover {
  color: #fff;
  transform: translateY(-2px);
  border-color: rgba(255, 107, 44, 0.22);
  background: linear-gradient(180deg, rgba(255, 107, 44, 0.09), rgba(255, 107, 44, 0.03));
}

body.tropa-theme .ops-shortcut strong {
  font-size: 1rem;
}

body.tropa-theme .ops-shortcut span {
  color: #9fb0c4;
  line-height: 1.55;
}

body.tropa-theme .ops-callout {
  background:
    radial-gradient(circle at top right, rgba(255, 107, 44, 0.22), transparent 35%),
    linear-gradient(180deg, rgba(255, 107, 44, 0.08), rgba(255, 107, 44, 0.02)),
    rgba(13, 24, 36, 0.92);
}

body.tropa-theme .ops-callout h3 {
  margin-top: 0.85rem;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.05;
}

body.tropa-theme .ops-callout p {
  margin-top: 0.75rem;
  color: #c1cddd;
}

body.tropa-theme .btn {
  color: #fff;
  background: linear-gradient(180deg, #ff8f5b, #ff6b2c);
  border-color: rgba(255, 107, 44, 0.24);
  box-shadow: 0 16px 30px rgba(255, 107, 44, 0.18);
}

body.tropa-theme .btn:hover {
  color: #fff;
  background: linear-gradient(180deg, #ffa67a, #ff7a41);
}

body.tropa-theme .btn-ghost {
  color: #d9e1ea;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(148, 163, 184, 0.12);
  box-shadow: none;
}

body.tropa-theme .btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 107, 44, 0.18);
}

body.tropa-theme th {
  background: rgba(6, 13, 20, 0.88);
  color: #8ea0b8;
}

body.tropa-theme tbody tr:hover td {
  background: rgba(255, 107, 44, 0.045);
}

body.tropa-theme code,
body.tropa-theme .url-chip {
  color: #ffd4c2;
  background: rgba(255, 255, 255, 0.03);
}

body.tropa-theme .progress-track {
  height: 10px;
  margin: 0.8rem 0 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

body.tropa-theme .progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff6b2c, #ffb088);
}

body.tropa-theme .login-wrap {
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 107, 44, 0.22), transparent 22%),
    radial-gradient(circle at 80% 14%, rgba(34, 211, 238, 0.12), transparent 20%),
    linear-gradient(135deg, #050c13 0%, #0d1823 48%, #162331 100%);
}

body.tropa-theme .tropa-login-card {
  max-width: 470px;
  position: relative;
  overflow: hidden;
}

body.tropa-theme .tropa-login-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background:
    linear-gradient(transparent 95%, rgba(255, 255, 255, 0.03) 95%),
    linear-gradient(90deg, transparent 95%, rgba(255, 255, 255, 0.03) 95%);
  background-size: 18px 18px;
}

body.tropa-theme .tropa-login-brand {
  align-items: center;
  margin-bottom: 1rem;
}

body.tropa-theme .tropa-login-copy {
  display: flex;
  flex-direction: column;
}

body.tropa-theme .tropa-login-copy h1 {
  color: #fff;
  font-size: 2rem;
}

body.tropa-theme .tropa-login-btn {
  min-height: 50px;
  border-radius: 18px;
}

@media (max-width: 1180px) {
  body.tropa-theme .ops-hero,
  body.tropa-theme .ops-grid {
    grid-template-columns: 1fr;
  }

  body.tropa-theme .ops-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  body.tropa-theme .page {
    padding: 1rem;
  }

  body.tropa-theme .ops-shortcuts,
  body.tropa-theme .ops-metrics {
    grid-template-columns: 1fr;
  }

  body.tropa-theme .ops-hero-copy h2 {
    max-width: none;
    font-size: 2rem;
  }
}

@media (max-height: 900px) {
  body.tropa-theme .sidebar-head {
    min-height: 92px;
    padding: 1rem 1.1rem;
  }

  body.tropa-theme .sidebar-intel {
    margin: 0.7rem 0.8rem 0;
    padding: 0.75rem 0.85rem;
  }

  body.tropa-theme .sidebar-intel strong {
    margin-top: 0.45rem;
    font-size: 0.9rem;
  }

  body.tropa-theme .sidebar-intel small {
    font-size: 0.76rem;
  }

  body.tropa-theme .nav {
    padding: 0.55rem 0.7rem;
  }

  body.tropa-theme .nav li a {
    min-height: 40px;
    padding: 0.5rem 0.74rem;
    font-size: 0.84rem;
  }

  body.tropa-theme .nav-divider {
    margin: 0.45rem 0.8rem;
  }
}

@media (max-height: 820px) {
  body.tropa-theme .sidebar-intel small,
  body.tropa-theme .sidebar-foot {
    display: none;
  }

  body.tropa-theme .sidebar-intel {
    margin-bottom: 0.2rem;
  }
}

@media (max-height: 760px) {
  body.tropa-theme .sidebar-intel {
    display: none;
  }

  body.tropa-theme .sidebar-head {
    min-height: 80px;
    padding: 0.85rem 1rem;
  }

  body.tropa-theme .nav {
    padding: 0.45rem 0.6rem;
  }

  body.tropa-theme .nav li a {
    min-height: 37px;
    padding: 0.42rem 0.68rem;
    font-size: 0.82rem;
  }

  body.tropa-theme .nav li a i,
  body.tropa-theme .nav li a svg {
    width: 16px;
    height: 16px;
  }
}
