/* Modern Dark SaaS Polish & Focus/Layout Refinements */
* {
  scrollbar-width: thin;
  scrollbar-color: #3a3944 #111114;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #111114; }
::-webkit-scrollbar-thumb { background: #363540; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #4d4b5a; }

/* Remove ugly browser default white focus outlines everywhere */
button:focus, a:focus, input:focus, select:focus, textarea:focus, summary:focus {
  outline: none;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 51, 61, 0.55) !important;
}

/* Smooth transitions & elevated surfaces */
.sidebar {
  background: linear-gradient(180deg, #161619 0%, #121215 100%);
  border-right: 1px solid #26262c;
}
.side-nav button {
  transition: background 0.16s ease, color 0.16s ease, transform 0.12s ease;
  border-radius: 9px;
  padding: 11px 13px;
}
.side-nav button.active {
  background: linear-gradient(90deg, #e52630 0%, #ff333d 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(240, 41, 51, 0.42);
}
.side-nav button.active span {
  color: #fff;
}
.side-nav button.active > i {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.side-nav button > i {
  border-radius: 999px;
  padding: 2px 7px;
  font-weight: 700;
}
.side-nav button.active:before {
  display: none;
}
.product-select {
  background: #1d1d22;
  border-color: #2f2e38;
  transition: border-color 0.15s, background 0.15s;
}
.product-select:hover {
  background: #232329;
  border-color: #4b475a;
}

.topbar, .utilitybar {
  background: rgba(16, 16, 19, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #24242b;
}

.panel, .license-card, .product-card {
  background: linear-gradient(180deg, #1a1a1f 0%, #16161a 100%);
  border: 1px solid #2a2a32;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.16s ease;
}
.product-card:hover, .license-card:hover {
  border-color: #4d3a3b;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
}
.btn {
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.btn:hover:not(:disabled) {
  filter: brightness(1.08);
}
.btn.primary {
  background: linear-gradient(135deg, #f23b44 0%, #ef343d 100%);
  border: 1px solid rgba(255, 129, 135, 0.35);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.btn.primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #fa5860 0%, #fb5159 100%);
  border-color: rgba(255, 179, 183, 0.55);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Data tables polish */
.data-table th {
  background: #141418;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  color: #8f8c9b;
}
.data-table tbody tr {
  transition: background 0.12s ease;
}
.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

/* Policy Page Redesign - Reference-inspired Legal/Security Layout */
.policy-ref-page {
  max-width: 1220px;
  margin: 0 auto;
  padding: 12px 0 36px;
  display: grid;
  gap: 26px;
  background-image:
    radial-gradient(ellipse 60% 240px at 50% 0%, rgba(240, 41, 51, 0.14), transparent 70%),
    linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 100% 100%, 44px 44px, 44px 44px;
  border-radius: 16px;
}
.policy-ref-hero {
  text-align: center;
  padding: 26px 20px 6px;
  display: grid;
  justify-items: center;
  gap: 14px;
}
.policy-ref-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 51, 61, 0.1);
  border: 1px solid rgba(255, 51, 61, 0.35);
  color: #ff9ea3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
}
.policy-ref-pill .svg-icon { width: 13px; height: 13px; }
.policy-ref-hero h1 {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}
.policy-ref-hero h1 span {
  color: #ff666e;
  text-shadow: 0 0 28px rgba(252, 54, 64, 0.55);
}
.policy-ref-hero p {
  margin: 0;
  max-width: 620px;
  color: #9e9bad;
  font-size: 14px;
  line-height: 1.6;
}
.policy-ref-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}
.policy-ref-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #17171c;
  border: 1px solid #2b2a34;
  color: #bab7c6;
  font-size: 11px;
  font-weight: 600;
}
.policy-ref-meta .svg-icon { width: 13px; height: 13px; color: #ff666e; }

.policy-ref-notice {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(240, 41, 51, 0.12), rgba(22, 22, 27, 0.95));
  border: 1px solid rgba(255, 51, 61, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}
.policy-ref-notice > i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(255, 51, 61, 0.16);
  border: 1px solid rgba(255, 51, 61, 0.35);
  color: #ff969b;
  flex: none;
}
.policy-ref-notice > i .svg-icon { width: 18px; height: 18px; }
.policy-ref-notice b {
  display: block;
  font-size: 12px;
  letter-spacing: 0.9px;
  color: #fff;
  margin-bottom: 6px;
}
.policy-ref-notice p {
  margin: 0;
  color: #b4b0c0;
  font-size: 13px;
  line-height: 1.6;
}

.policy-ref-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.policy-ref-card {
  position: relative;
  padding: 24px;
  border-radius: 14px;
  background: linear-gradient(180deg, #18181e 0%, #131317 100%);
  border: 1px solid #292833;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 14px;
  align-content: start;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.18s ease;
}
.policy-ref-card:before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 51, 61, 0.75), rgba(255, 51, 61, 0.05));
}
.policy-ref-card:hover {
  border-color: rgba(255, 51, 61, 0.45);
  transform: translateY(-2px);
}
.policy-ref-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.policy-ref-card-top > i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(255, 51, 61, 0.12);
  border: 1px solid rgba(255, 51, 61, 0.3);
  color: #ff8e94;
  flex: none;
}
.policy-ref-card-top > i .svg-icon { width: 18px; height: 18px; }
.policy-ref-tag {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 51, 61, 0.14);
  border: 1px solid rgba(255, 51, 61, 0.28);
  color: #ffafb3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.9px;
}
.policy-ref-num {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 26px;
  border-radius: 6px;
  background: #201f27;
  border: 1px solid #302f3b;
  color: #8f8c9b;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
}
.policy-ref-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}
.policy-ref-card > p {
  margin: 0;
  color: #a4a1b0;
  font-size: 13px;
  line-height: 1.65;
}
.policy-ref-card ul {
  list-style: none;
  margin: 4px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid #24232d;
  display: grid;
  gap: 9px;
}
.policy-ref-card li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #d4c6c6;
  font-size: 12px;
}
.policy-ref-card li .svg-icon {
  width: 14px;
  height: 14px;
  color: #ff666e;
  flex: none;
}
@media (max-width: 850px) {
  .policy-ref-grid { grid-template-columns: 1fr; }
  .policy-ref-hero h1 { font-size: 28px; }
}

/* Integration Page Enhancements */

/* Executive Suite Overview Dashboard */
.exec-dash {
  display: grid;
  gap: 16px;
}

.exec-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.exec-card-head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.7px;
  color: #f8f2f2;
  display: flex;
  align-items: center;
  gap: 8px;
}
.exec-card-head h3 .svg-icon { width: 15px; height: 15px; color: #ff666e; }
.exec-card-head p {
  margin: 5px 0 0;
  font-size: 11px;
  color: #7f7c8e;
}

.exec-range-tabs {
  display: flex;
  gap: 4px;
  background: #0d0d11;
  border: 1px solid #24232d;
  border-radius: 8px;
  padding: 3px;
}
.exec-range-tabs button {
  border: 0;
  background: transparent;
  color: #8f8c9b;
  padding: 6px 11px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.exec-range-tabs button.active {
  background: linear-gradient(135deg, #e52630, #ff333d);
  color: #fff;
}

.exec-link {
  border: 0;
  background: transparent;
  color: #ff666e;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0;
}
.exec-link:hover { color: #ffb2b6; }

.exec-legend {
  display: grid;
  gap: 9px;
  padding-top: 8px;
  border-top: 1px solid #22212b;
}
.exec-legend > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.exec-legend > div span { color: #b8b5c4; display: flex; align-items: center; }
.exec-legend > div b { color: #fff; font-weight: 700; }

.exec-rank-list {
  display: grid;
  gap: 10px;
}
.exec-rank-item {
  background: #15151b;
  border: 1px solid #23222d;
  border-radius: 10px;
  padding: 12px 14px;
  display: grid;
  gap: 8px;
}
.exec-rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.exec-rank-num {
  padding: 3px 7px;
  border-radius: 5px;
  background: #2c2121;
  color: #ff666e;
  font-size: 11px;
  font-weight: 800;
}
.exec-rank-row b { font-size: 13px; color: #fff; }
.exec-rank-row small { margin-left: auto; font-size: 11px; color: #8c899b; }
.exec-rank-row em { font-style: normal; font-size: 12px; font-weight: 800; color: #3ee49d; }
.exec-rank-bar {
  height: 4px;
  border-radius: 99px;
  background: #252430;
  overflow: hidden;
}
.exec-rank-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #e52630, #ff7b82);
  border-radius: inherit;
}

.exec-events-list {
  display: grid;
  gap: 8px;
}
.exec-event-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  background: #15151b;
  border: 1px solid #23222d;
  border-radius: 9px;
}
.exec-event-row > i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 51, 61, 0.14);
  color: #ff8e94;
  flex: none;
}
.exec-event-row > i .svg-icon { width: 15px; height: 15px; }
.exec-event-row b { display: block; font-size: 12px; color: #f7f1f1; }
.exec-event-row small { display: block; font-size: 11px; color: #848194; margin-top: 2px; }

.exec-empty-mini {
  min-height: 185px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  gap: 8px;
  color: #8f8c9b;
  padding: 20px;
}
.exec-empty-mini > .svg-icon { width: 32px; height: 32px; color: #ff666e; opacity: 0.9; }
.exec-empty-mini b { color: #fff; font-size: 14px; }
.exec-empty-mini p { margin: 0; font-size: 12px; max-width: 340px; line-height: 1.5; }

/* ============================================================
   GLOBAL BUTTONS, EMPTY STATES & EXECUTIVE SUITE UNIFICATION
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1;
  padding: 10px 15px;
  border: 1px solid #2e2d3b;
  background: #1c1c24;
  color: #f7f1f1;
}
.btn .svg-icon {
  width: 15px !important;
  height: 15px !important;
  flex: none;
  color: currentColor !important;
  opacity: 1 !important;
}
.btn.compact {
  padding: 8px 12px;
  font-size: 11px;
  border-radius: 8px;
}
.btn.primary {
  background: linear-gradient(135deg, #f23b44 0%, #ef343d 100%);
  border: 1px solid rgba(255, 129, 135, 0.35);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.btn.danger-button {
  background: rgba(241, 90, 108, 0.14);
  border-color: rgba(241, 90, 108, 0.35);
  color: #ff8e9b;
}

.page-head {
  background: linear-gradient(90deg, #131318 0%, #1f1414 100%);
  border-bottom: 1px solid #23222d;
}

.panel, .license-card, .product-card, .records-toolbar {
  background: linear-gradient(180deg, #18181f 0%, #131318 100%);
  border: 1px solid #252431;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.empty, .empty.mini {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 46px 24px;
}
.empty > div, .empty.mini > div {
  display: grid;
  justify-items: center;
  gap: 10px;
  max-width: 380px;
}
.empty > div > span, .empty.mini > div > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 51, 61, 0.14);
  border: 1px solid rgba(255, 51, 61, 0.28);
  color: #ff8e94;
}
.empty > div > span .svg-icon { width: 22px; height: 22px; }
.empty h3 { margin: 4px 0 0; font-size: 16px; color: #fff; }
.empty p { margin: 0 0 6px; font-size: 12px; color: #8c8999; line-height: 1.5; }

/* ============================================================
   SEGURIDAD - EXECUTIVE SUITE
   ============================================================ */
.security-page {
  display: grid;
  gap: 16px;
}
.security-profile {
  display: grid;
  grid-template-columns: auto minmax(150px, 1fr) auto auto auto;
  align-items: center;
  gap: 20px;
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
}
.security-profile::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 51, 61, 0.85), rgba(59, 130, 246, 0.4), transparent);
}
.big-avatar {
  width: 58px;
  height: 58px;
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(255, 51, 61, 0.25), rgba(59, 130, 246, 0.16));
  border: 1px solid rgba(255, 51, 61, 0.35);
  color: #fff;
}
.security-identity h2 { margin: 0; font-size: 18px; color: #fff; }
.security-identity p { margin: 3px 0 6px; font-size: 12px; color: #8c8999; }
.security-identity > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 51, 61, 0.14);
  border: 1px solid rgba(255, 51, 61, 0.28);
  color: #ffa6aa;
  font-size: 11px;
  font-weight: 700;
}
.account-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.account-meta > span {
  display: grid;
  gap: 4px;
  padding: 10px 14px;
  background: #121217;
  border: 1px solid #242330;
  border-radius: 10px;
  font-size: 11px;
  color: #848194;
  white-space: nowrap;
}
.account-meta > span b {
  font-size: 12px;
  color: #f7f1f1;
  font-weight: 700;
}
.security-profile .score {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 5px;
}
.security-profile .score b {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #15151b;
  display: grid;
  place-items: center;
  align-content: center;
  font-size: 15px;
  color: #fff;
  line-height: 1;
}
.security-profile .score small { font-size: 11px; color: #8c8999; font-weight: 600; margin-top: 2px; }
.score-copy { display: grid; gap: 3px; }
.score-copy small { font-size: 11px; color: #848194; text-transform: uppercase; letter-spacing: 0.6px; }
.score-copy b { font-size: 12px; color: #f7f1f1; }

.security-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  background: #131318;
  border: 1px solid #242330;
  border-radius: 12px;
}
.security-tabs button {
  border: 0;
  background: transparent;
  color: #9693a4;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.15s, color 0.15s;
}
.security-tabs button:hover { color: #fff; background: rgba(255, 255, 255, 0.04); }
.security-tabs button.active {
  background: linear-gradient(135deg, #e52630 0%, #fc3640 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(240, 41, 51, 0.34);
}
.security-tabs button i {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.security-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 16px;
}
.security-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.security-card-head > i {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 51, 61, 0.14);
  border: 1px solid rgba(255, 51, 61, 0.28);
  color: #ff8e94;
  flex: none;
}
.security-card-head h3 { margin: 0; font-size: 15px; color: #fff; }
.security-card-head p { margin: 3px 0 0; font-size: 11px; color: #848194; }
.security-card-head > span {
  margin-left: auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: #131318;
  border: 1px solid #272634;
  color: #d1c2c2;
  font-size: 11px;
  font-weight: 700;
}
.security-check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  background: #131318;
  border: 1px solid #23222e;
  border-radius: 10px;
  margin-bottom: 10px;
}
.security-check:last-child { margin-bottom: 0; }
.security-check > i {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: none;
}
.security-check.ok > i { background: rgba(34, 197, 94, 0.14); color: #4ade80; }
.security-check.warning > i { background: rgba(245, 158, 11, 0.14); color: #fbbf24; }
.security-check b { display: block; font-size: 13px; color: #f7f1f1; }
.security-check p { margin: 3px 0 0; font-size: 11px; color: #8c8999; }
.security-check .btn { margin-left: auto; }

.security-info ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  counter-reset: sec;
}
.security-info ol li {
  counter-increment: sec;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  background: #131318;
  border: 1px solid #23222e;
  border-radius: 10px;
  font-size: 12px;
  color: #d4c4c4;
  line-height: 1.45;
}
.security-info ol li::before {
  content: counter(sec);
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(255, 51, 61, 0.14);
  border: 1px solid rgba(255, 51, 61, 0.28);
  color: #ff8e94;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex: none;
}

.security-plan, .support-plan {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
}
.security-plan > i, .support-plan > i {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(255, 51, 61, 0.15);
  border: 1px solid rgba(255, 51, 61, 0.3);
  color: #ff8e94;
  flex: none;
}
.security-plan small, .support-plan small { font-size: 11px; font-weight: 800; letter-spacing: 0.8px; color: #ff6b72; }
.security-plan h3, .support-plan h3 { margin: 2px 0; font-size: 15px; color: #fff; }
.security-plan p, .support-plan p { margin: 0; font-size: 12px; color: #8c8999; }
.security-plan .btn, .support-plan .btn { margin-left: auto; }

/* ============================================================
   LICENCIAS, USUARIOS, PRODUCTOS, PLAN & SOPORTE - EXECUTIVE
   ============================================================ */
.records-toolbar {
  padding: 16px;
  margin-bottom: 16px;
  display: grid;
  gap: 12px;
}
.search-box {
  background: #121217;
  border: 1px solid #282735;
  border-radius: 9px;
}
.search-box:focus-within {
  border-color: #ff333d;
  box-shadow: 0 0 0 2px rgba(255, 51, 61, 0.2);
}
.records-options select, .view-actions button {
  background: #121217;
  border: 1px solid #282735;
  color: #e3d3d3;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
}
.view-actions button.selected {
  background: rgba(255, 51, 61, 0.18);
  border-color: rgba(255, 51, 61, 0.45);
  color: #fff;
}
.status-tabs button {
  background: #121217;
  border: 1px solid #242330;
  border-radius: 9px;
  padding: 7px 12px;
}
.status-tabs button.selected {
  background: rgba(255, 51, 61, 0.16);
  border-color: rgba(255, 51, 61, 0.45);
  color: #fff;
}

@media (max-width: 1100px) {
  .security-profile { grid-template-columns: auto 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  
}

/* ============================================================
   SEGURIDAD SUB-TABS (Credenciales, 2FA, Sesiones, Blacklist, Apariencia)
   ============================================================ */

.security-form { padding: 20px 22px; display: grid; gap: 14px; }
.security-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.security-form label { display: grid; gap: 6px; font-size: 11px; font-weight: 700; color: #c4b2b2; }
.security-form input, .totp-confirm-row input {
  background: #111116;
  border: 1px solid #292836;
  color: #fff;
  border-radius: 9px;
  padding: 11px 13px;
  font-size: 13px;
  width: 100%;
}
.security-form input:focus, .totp-confirm-row input:focus { border-color: #ff333d; }
.password-field { position: relative; display: flex; align-items: center; }
.password-field .svg-icon { position: absolute; right: 12px; width: 15px; height: 15px; color: #6e6b7d; pointer-events: none; }
.password-strength { padding: 10px 14px; border-radius: 9px; background: #121217; border: 1px solid #23222e; }
.password-strength p { margin: 0; font-size: 11px; color: #8c8999; }

.twofactor-intro { display: flex; align-items: center; gap: 16px; padding: 20px 22px; }
.twofactor-intro > i {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(255, 51, 61, 0.14); border: 1px solid rgba(255, 51, 61, 0.28); color: #ff8e94; flex: none;
}
.twofactor-intro small { font-size: 11px; font-weight: 800; letter-spacing: 0.7px; text-transform: uppercase; color: #ff7077; }
.twofactor-intro h2 { margin: 3px 0; font-size: 17px; color: #fff; }
.twofactor-intro p { margin: 0; font-size: 12px; color: #8c8999; }
.twofactor-intro > span {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #fff; white-space: nowrap;
}
.twofactor-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.twofactor-steps button {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 11px;
  background: #131318; border: 1px solid #242330; color: #9693a4; font-size: 12px; font-weight: 600;
}
.twofactor-steps button i {
  width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  background: #1d1c26; color: #d1c2c2; font-style: normal; font-weight: 800; font-size: 11px;
}
.twofactor-steps button.active { border-color: rgba(255, 51, 61, 0.45); background: rgba(255, 51, 61, 0.12); color: #fff; }
.twofactor-steps button.active i { background: #ff333d; color: #fff; }
.twofactor-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.auth-app {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: #121217; border: 1px solid #23222e; border-radius: 10px; margin-bottom: 10px;
}
.auth-app b { flex: 1; font-size: 13px; color: #f7f1f1; display: flex; align-items: center; gap: 8px; }
.auth-app b small { padding: 2px 7px; border-radius: 999px; background: rgba(255, 51, 61, 0.18); color: #ff9ea3; font-size: 11px; font-weight: 800; }
.auth-app a {
  display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 7px;
  background: #1b1a23; border: 1px solid #2b2a38; color: #e2d2d2; font-size: 11px; text-decoration: none;
}
.totp-setup-box { padding: 16px; background: #121217; border: 1px solid #262534; border-radius: 11px; display: grid; gap: 10px; }
.secret-code-row { display: flex; align-items: center; gap: 10px; }
.secret-code-row code { flex: 1; padding: 10px 12px; border-radius: 8px; background: #0d0d11; border: 1px solid #252431; color: #ff8e94; font-size: 13px; letter-spacing: 1px; }
.totp-confirm-row { display: flex; gap: 10px; }
.why-2fa > p {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 0 0 8px;
  background: #131318; border: 1px solid #23222e; border-radius: 9px; font-size: 12px; color: #d4c4c4;
}
.why-2fa > p .svg-icon { color: #3dd598; flex: none; }

.sessions-card .sessions-head, .security-page > .panel .security-card-head { padding: 18px 20px 0; }
.sessions-list { padding: 14px 20px 20px; }
.sessions-list .session-row { background: #121217; border: 1px solid #242330; border-radius: 11px; }
.sessions-list .session-row.current { border-color: rgba(61, 213, 152, 0.4); background: linear-gradient(90deg, rgba(35, 127, 94, 0.14), #121217 48%); }

/* ============================================================
   MI PLAN - EXECUTIVE SUITE
   ============================================================ */

/* ============================================================
   SOPORTE - EXECUTIVE SUITE
   ============================================================ */
.support-page { display: grid; gap: 16px; }

.discord-card {
  background: #121218; border: 1px solid rgba(88, 101, 242, 0.35); border-radius: 13px; padding: 18px; display: grid; gap: 12px;
}
.discord-title { display: flex; align-items: center; gap: 12px; }
.discord-title > i {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(88, 101, 242, 0.18); color: #7984ff;
}
.discord-title b { display: block; font-size: 14px; color: #fff; }
.discord-title small { font-size: 11px; color: #8c8999; }
.discord-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.discord-card ul li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #d4c4c4; }
.discord-card ul li .svg-icon { color: #3dd598; width: 14px; height: 14px; }
.discord-actions { display: flex; gap: 8px; }
.discord-join {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #5865f2; color: #fff; border-radius: 9px; padding: 10px 14px; font-size: 12px; font-weight: 700; text-decoration: none;
}

.support-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.support-stats article { padding: 16px 18px; display: grid; gap: 6px; }
.support-stats article > i { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #1c1c25; }
.support-stats article b { font-size: 24px; color: #fff; }
.support-stats article span { font-size: 11px; color: #848194; }

.support-layout { display: grid; grid-template-columns: 400px 1fr; gap: 16px; }
.ticket-list, .ticket-form { padding: 18px 20px; min-height: 0; }
.ticket-list .panel-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.ticket-list .panel-head h3 { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 14px; color: #fff; margin: 0; }
.ticket-list .panel-head h3 small { padding: 2px 7px; border-radius: 999px; background: #23222f; font-size: 11px; }
.ticket-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ticket-filters button {
  background: #121217; border: 1px solid #242330; color: #9c99aa; border-radius: 8px;
  padding: 6px 10px; font-size: 11px; display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
}
.ticket-filters button.active { background: rgba(255, 51, 61, 0.16); border-color: rgba(255, 51, 61, 0.45); color: #fff; }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.topic-grid button {
  display: flex; align-items: flex-start; gap: 10px; padding: 11px; text-align: left;
  background: #121217; border: 1px solid #242330; border-radius: 10px; color: #ece0e0; cursor: pointer;
}
.topic-grid button:hover, .topic-grid button.selected { border-color: #ff333d; background: rgba(255, 51, 61, 0.12); }
.topic-grid button b { display: block; font-size: 12px; color: #fff; }
.topic-grid button small { display: block; font-size: 11px; color: #848194; margin-top: 2px; }
.ticket-form textarea {
  width: 100%; min-height: 110px; background: #111116; border: 1px solid #282735;
  border-radius: 10px; padding: 12px; color: #fff; font-family: inherit; font-size: 12px; resize: vertical;
}
.dropzone {
  display: grid; place-items: center; gap: 5px; padding: 18px; border-radius: 10px;
  background: #121217; border: 1px dashed #323042; color: #9c99aa; cursor: pointer; margin-bottom: 14px;
}
.support-benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.support-benefits article { padding: 18px; }
.support-faq details {
  background: #121217; border: 1px solid #242330; border-radius: 10px; padding: 12px 14px; margin-bottom: 8px;
}

/* ============================================================
   LICENCIAS, USUARIOS & PRODUCTOS CARDS / CREDENTIALS
   ============================================================ */
.records-search { display: flex; gap: 10px; align-items: center; }
.records-search .search-box { flex: 1; }
.license-results-row { display: flex; align-items: center; justify-content: space-between; margin: 12px 0; flex-wrap: wrap; gap: 10px; }
.license-selection { display: flex; gap: 8px; flex-wrap: wrap; }
.bulk-action-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px 14px; margin-bottom: 14px;
  background: rgba(255, 51, 61, 0.1); border: 1px solid rgba(255, 51, 61, 0.35); border-radius: 12px;
}
.license-card, .product-card { padding: 18px; }
.product-card-stats > span {
  background: #121217; border: 1px solid #22212d; border-radius: 9px; padding: 9px 11px;
}
.credentials-panel {
  background: linear-gradient(180deg, #16161d 0%, #111116 100%);
  border: 1px solid rgba(250, 88, 96, 0.28);
  border-radius: 14px;
  padding: 0;
}
.credential-row > div {
  background: #0d0d12; border: 1px solid #242331; border-radius: 9px;
}

@media (max-width: 1100px) {
  .support-layout, .twofactor-grid, .security-fields { grid-template-columns: 1fr; }
  .support-stats, .support-benefits { grid-template-columns: repeat(2, 1fr); }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   EXECUTIVE SUITE v2.6 ULTRA-PREMIUM AESTHETICS & POLISH
   ============================================================ */

/* Clean matte dark background */
body, .dashboard {
  background: #0c0c0f !important;
}

/* Sidebar Luxury Redesign */
.sidebar {
  background: linear-gradient(180deg, rgba(16, 16, 22, 0.98) 0%, rgba(10, 10, 14, 0.99) 100%) !important;
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.45);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px 12px;
}
.brand > span {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e52630 0%, #3b82f6 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 20px rgba(229, 38, 48, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  font-size: 16px;
  font-weight: 900;
  color: #fff;
}
.brand-text {
  display: grid;
  gap: 2px;
}
.brand-text b {
  font-size: 16px;
  color: #fff;
  letter-spacing: -0.3px;
}
.brand-text em {
  color: #fb5159;
  font-style: normal;
  text-shadow: 0 0 12px rgba(251, 81, 89, 0.6);
}
.suite-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: #ffb3b7;
  background: rgba(251, 81, 89, 0.16);
  border: 1px solid rgba(251, 81, 89, 0.35);
  border-radius: 4px;
  padding: 2px 5px;
  width: fit-content;
}

.sidebar-status-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  background: #111116;
  border: 1px solid #23222e;
  border-radius: 8px;
  margin: 4px 0 12px;
  font-size: 11px;
  color: #8f8c9b;
  font-weight: 700;
  letter-spacing: 0.4px;
}
.status-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  display: inline-block;
  animation: pulse-glow 2s infinite ease-in-out;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}
.ping-badge {
  margin-left: auto;
  font-size: 11px;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.15);
  padding: 1px 5px;
  border-radius: 4px;
}

.side-nav small {
  color: #646272;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  margin: 12px 10px 6px;
}
.side-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #9c99aa;
  padding: 10px 12px;
  border-radius: 9px;
  transition: all 0.16s ease;
}
.side-nav button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.side-nav button.active {
  background: linear-gradient(135deg, #e52630 0%, #ff333d 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(229, 38, 48, 0.45) !important;
}
.side-nav button > i {
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
  font-style: normal;
  padding: 2px 7px;
  border-radius: 999px;
  background: #22212d;
  color: #d1c2c2;
}
.side-nav button.active > i {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.badge-mini {
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
  font-style: normal;
  padding: 2px 6px;
  border-radius: 5px;
  letter-spacing: 0.5px;
}
.badge-mini.purple { background: rgba(251, 81, 89, 0.18); border: 1px solid rgba(251, 81, 89, 0.38); color: #ffb3b7; }
.badge-mini.gold { background: rgba(245, 158, 11, 0.18); border: 1px solid rgba(245, 158, 11, 0.38); color: #fde68a; }
.badge-mini.green { background: rgba(34, 197, 94, 0.18); border: 1px solid rgba(34, 197, 94, 0.38); color: #86efac; }

.online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  display: inline-block;
  margin-right: 4px;
}

/* Topbar Enhancements */
.topbar {
  background: rgba(14, 14, 19, 0.88) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.topbar-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.pulse-dot-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  display: inline-block;
}
.topbar-status b {
  font-size: 11px;
  font-weight: 800;
  color: #4ade80;
  letter-spacing: 0.6px;
}
.topbar-status small {
  font-size: 11px;
  color: #86efac;
  opacity: 0.8;
}
.upgrade {
  background: linear-gradient(135deg, #e52630 0%, #ec4899 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff !important;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 11px !important;
  font-weight: 800;
  letter-spacing: 0.4px;
  box-shadow: 0 4px 16px rgba(229, 38, 48, 0.35);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.upgrade:hover {
  box-shadow: 0 6px 22px rgba(236, 72, 153, 0.5) !important;
  transform: translateY(-1px);
}
.upgrade-sparkle { color: #fde047; font-size: 12px; }

/* Specular Card Surfaces */
.panel, .license-card, .product-card, .records-toolbar {
  background: linear-gradient(180deg, #15151c 0%, #0e0e13 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.1),
    0 12px 30px -6px rgba(0, 0, 0, 0.55) !important;
  position: relative;
  overflow: hidden;
}
.product-card:hover, .license-card:hover {
  border-color: rgba(251, 81, 89, 0.35) !important;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.16),
    0 16px 36px -8px rgba(0, 0, 0, 0.7),
    0 0 20px -4px rgba(251, 81, 89, 0.18) !important;
  transform: translateY(-2px);
}

/* Clean KPI Cards */

/* Donut Legend High-Contrast */

.legend-vals {
  display: flex;
  align-items: center;
  gap: 8px;
}
.legend-vals b { color: #fff; font-size: 12px; }
.legend-pct {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  background: #191922;
  border: 1px solid #272635;
  color: #fb5159;
}

/* Metallic Ranking Badges */
.exec-rank-item {
  background: #121218;
  border: 1px solid #22212d;
  border-radius: 11px;
  padding: 12px 14px;
}
.exec-rank-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.exec-rank-num {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  flex: none;
}
.exec-rank-num.gold {
  background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
  color: #fff;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.45);
}
.exec-rank-num.silver {
  background: linear-gradient(135deg, #94a3b8 0%, #475569 100%);
  color: #fff;
}
.exec-rank-num.bronze {
  background: linear-gradient(135deg, #d97706 0%, #78350f 100%);
  color: #fff;
}
.exec-rank-num.default {
  background: #1f1e29;
  color: #8c899a;
}
.rank-name-box {
  display: grid;
  gap: 2px;
  flex: 1;
}
.rank-name-box b { font-size: 13px; color: #fff; }
.rank-name-box small { font-size: 11px; color: #848194; }
.rank-count-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  background: #191823;
  border: 1px solid #292837;
  color: #ffb3b7;
}
.exec-rank-bar {
  height: 4px;
  border-radius: 999px;
  background: #1c1b26;
  overflow: hidden;
  margin-top: 10px;
}
.rank-1 .exec-rank-bar i {
  background: linear-gradient(90deg, #ec4899, #fb5159);
  box-shadow: 0 0 10px rgba(251, 81, 89, 0.8);
}
.rank-2 .exec-rank-bar i {
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
}
.rank-3 .exec-rank-bar i {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.8);

}

/* Recent Activity Events */
.exec-events-list {
  display: grid;
  gap: 8px;
}
.exec-event-row {
  background: #121218;
  border: 1px solid #22212d;
  border-radius: 11px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.event-ico-box {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: none;
}
.event-ico-box .svg-icon { width: 15px; height: 15px; }
.event-ico-box.login { background: rgba(56, 189, 248, 0.14); border: 1px solid rgba(56, 189, 248, 0.35); color: #38bdf8; }
.event-ico-box.create { background: rgba(251, 81, 89, 0.14); border: 1px solid rgba(251, 81, 89, 0.35); color: #ff8187; }
.event-ico-box.ban { background: rgba(244, 63, 94, 0.14); border: 1px solid rgba(244, 63, 94, 0.35); color: #fb7185; }
.event-ico-box.general { background: rgba(34, 197, 94, 0.14); border: 1px solid rgba(34, 197, 94, 0.35); color: #4ade80; }
.event-info {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.event-info b { font-size: 12px; color: #f7f1f1; }
.event-info small { font-size: 11px; color: #848194; }
.event-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.6px;
}
.event-tag.login { background: rgba(56, 189, 248, 0.14); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.3); }
.event-tag.create { background: rgba(251, 81, 89, 0.14); color: #ffb3b7; border: 1px solid rgba(251, 81, 89, 0.3); }
.event-tag.ban { background: rgba(244, 63, 94, 0.14); color: #fda4af; border: 1px solid rgba(244, 63, 94, 0.3); }
.event-tag.general { background: rgba(34, 197, 94, 0.14); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.3); }

/* Integration IDE Code Box Window */

/* ============================================================
   INTEGRACIÓN DEL PROYECTO - EXECUTIVE DEVELOPER SUITE
   ============================================================ */
.integ-page {
  display: grid;
  gap: 16px;
  max-width: 1450px;
  margin: 0 auto;
}

/* Top: API Server Card & 4-Step Pipeline */
.integ-top-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 16px;
}
.integ-server-card {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}
.integ-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.integ-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  color: #4ade80;
  letter-spacing: 0.5px;
}
.integ-dot-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  display: inline-block;
}
.integ-url-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0d0d12;
  border: 1px solid #232230;
  border-radius: 9px;
  padding: 8px 12px;
}
.integ-proto-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  background: #1c1c28;
  color: #fb5159;
  letter-spacing: 0.6px;
}
.integ-url-box code {
  flex: 1;
  font-size: 12px;
  color: #fff;
  font-family: ui-monospace, Consolas, monospace;
}
.integ-copy-btn {
  border: 0;
  background: transparent;
  color: #8c899c;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: grid;
  place-items: center;
}
.integ-copy-btn:hover { color: #fff; background: #1c1b26; }
.integ-copy-btn .svg-icon { width: 14px; height: 14px; }
.integ-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 11px;
  color: #888597;
  padding-top: 10px;
  border-top: 1px solid #1c1b26;
}
.integ-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.integ-meta-row .svg-icon { width: 13px; height: 13px; color: #fb5159; }

/* 4-Step Pipeline */
.integ-pipeline-card {
  padding: 20px 22px;
  display: grid;
  gap: 14px;
}

/* Middle: Developer Credentials Console */
.integ-console-card {
  padding: 20px 22px;
  display: grid;
  gap: 16px;
}
.integ-console-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.integ-console-title {
  display: flex;
  gap: 12px;
  align-items: center;
}

.integ-console-title h3 { margin: 0; font-size: 14px; color: #fff; font-weight: 700; }
.integ-console-title p { margin: 3px 0 0; font-size: 11px; color: #848194; }
.integ-console-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.integ-select {
  background: #0d0d12;
  border: 1px solid #282736;
  color: #e8d9d9;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  min-width: 220px;
}
.integ-fields-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.integ-field-card {
  background: #101015;
  border: 1px solid #201f2c;
  border-radius: 10px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
}
.integ-field-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.integ-field-label span {
  font-size: 11px;
  font-weight: 700;
  color: #c4b2b2;
}
.integ-field-label code {
  font-size: 11px;
  font-weight: 800;
  color: #787589;
  letter-spacing: 0.5px;
}
.integ-input-wrap {
  display: flex;
  align-items: center;
  background: #0a0a0d;
  border: 1px solid #272635;
  border-radius: 8px;
  padding: 0 10px;
  transition: border-color 0.15s;
}
.integ-input-wrap:focus-within {
  border-color: #ff333d;
  box-shadow: 0 0 0 2px rgba(255, 51, 61, 0.2);
}
.integ-input-wrap i {
  color: #6a677a;
  display: grid;
  place-items: center;
  margin-right: 8px;
  flex: none;
}
.integ-input-wrap i .svg-icon { width: 14px; height: 14px; }
.integ-input-wrap input {
  flex: 1;
  background: transparent;
  border: 0;
  color: #fff;
  padding: 9px 0;
  font-size: 12px;
  outline: none;
  font-family: ui-monospace, Consolas, monospace;
}

/* Bottom Main Workspace: IDE + Sidebar */
.integ-workspace {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
  align-items: start;
}
.integ-ide-panel {
  padding: 20px;
  display: grid;
  gap: 14px;
}

/* Flow Tabs Bar */
.integ-flow-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.integ-flow-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.integ-flow-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #252433;
  background: #111116;
  color: #9c99aa;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.integ-flow-tabs button:hover {
  background: #181720;
  color: #fff;
}
.integ-flow-tabs button.active {
  background: linear-gradient(135deg, #e52630 0%, #ff333d 100%);
  border-color: #ff333d;
  color: #fff;
  box-shadow: 0 4px 14px rgba(229, 38, 48, 0.35);
}
.integ-flow-tabs button .svg-icon { width: 13px; height: 13px; }
.integ-endpoint-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #111116;
  border: 1px solid #242330;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 11px;
}
.http-tag {
  font-size: 11px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.6px;
}
.http-tag.post { background: #0f2b1d; color: #4ade80; border: 1px solid #1a5739; }
.integ-endpoint-pill code { color: #ffa6aa; font-family: ui-monospace, Consolas, monospace; }

.integ-flow-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #111116;
  border: 1px solid #232230;
  border-radius: 9px;
  font-size: 11px;
  color: #9f9baa;
}
.integ-flow-banner i { color: #fb5159; display: grid; place-items: center; flex: none; }
.integ-flow-banner i .svg-icon { width: 14px; height: 14px; }

/* Language Selector Bar */

.integ-lang-tabs {
  display: flex;
  gap: 6px;
}
.integ-lang-tabs button {
  border: 1px solid #242331;
  background: #101015;
  color: #8c899c;
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
}
.integ-lang-tabs button:hover { color: #fff; background: #161620; }
.integ-lang-tabs button.active {
  background: #2b1d1d;
  border-color: #6a3739;
  color: #ffb3b7;
}

/* IDE Window Chrome & Code Block */
.integ-window {
  border: 1px solid #242332;
  border-radius: 11px;
  overflow: hidden;
  background: #09090d;
}
.integ-window-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: #111117;
  border-bottom: 1px solid #201f2c;
}
.integ-dots { display: flex; gap: 6px; align-items: center; }
.integ-dots i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.integ-dots .d-r { background: #ef4444; }
.integ-dots .d-y { background: #f59e0b; }
.integ-dots .d-g { background: #22c55e; }
.integ-tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1b1a25;
  border: 1px solid #2d2c3e;
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  color: #e1cacc;
  font-family: ui-monospace, Consolas, monospace;
}
.integ-tab-pill .svg-icon { width: 12px; height: 12px; color: #fb5159; }
.integ-mode-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #737082;
}
.integ-code-block {
  margin: 0;
  padding: 18px 20px;
  color: #d4e7f8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.7;
  overflow: auto;
  max-height: 480px;
  min-height: 280px;
  background: #09090d;
}

/* Live Tester Panel */
.integ-tester-panel {
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid #1e1d2a;
}
.integ-tester-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #101015;
  border: 1px solid #201f2c;
  border-radius: 10px;
  padding: 10px 14px;
}
.integ-tester-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.integ-tester-left code {
  color: #fff;
  font-size: 12px;
  font-family: ui-monospace, Consolas, monospace;
}
.integ-status-text {
  font-size: 11px;
  color: #797688;
}
.integ-response-wrap {
  border: 1px solid #201f2c;
  border-radius: 10px;
  overflow: hidden;
  background: #09090d;
}
.integ-response-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  background: #111116;
  border-bottom: 1px solid #1e1d2a;
}
.integ-response-head small {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.7px;
  color: #797688;
}
.integ-resp-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
  background: #1a1a24;
  color: #8c899c;
}
.integ-resp-badge.is-ok { background: #0e291b; color: #4ade80; border: 1px solid #1c523b; }
.integ-resp-badge.is-error { background: #2b1114; color: #fb7185; border: 1px solid #571e24; }
.integ-response-code {
  margin: 0;
  padding: 14px 18px;
  color: #7ee787;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11.5px;
  line-height: 1.6;
  max-height: 220px;
  overflow: auto;
  background: #09090d;
}
.integ-response-code.is-error { color: #fda4af; }

/* Right Sidebar Reference Sheet */
.integ-side-sheet {
  display: grid;
  gap: 16px;
}
.integ-side-card {
  padding: 18px 20px;
  display: grid;
  gap: 12px;
}
.integ-side-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 10px;
  border-bottom: 1px solid #1e1d2a;
}
.integ-side-head i { color: #fb5159; display: grid; place-items: center; }
.integ-side-head i .svg-icon { width: 15px; height: 15px; }
.integ-side-head h4 { margin: 0; font-size: 13px; color: #fff; font-weight: 700; }

.integ-params-list {
  display: grid;
  gap: 8px;
}
.param-row {
  background: #101015;
  border: 1px solid #201f2c;
  border-radius: 8px;
  padding: 9px 12px;
  display: grid;
  gap: 3px;
}
.param-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.param-top code {
  color: #ffb3b7;
  font-size: 11.5px;
  font-weight: 700;
  font-family: ui-monospace, Consolas, monospace;
}
.p-req {
  font-size: 11px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.p-opt {
  font-size: 11px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  background: #1d1c26;
  color: #9c99aa;
}
.param-row p { margin: 0; font-size: 11px; color: #7f7c8d; line-height: 1.4; }

/* SDK Direct Downloads */

/* Error Table */

.err-status-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
}
.err-status-pill.warn { background: #2b1f0d; color: #fbbf24; }
.err-status-pill.stop { background: #2b1114; color: #f87171; }
.err-status-pill.retry { background: #0f233a; color: #38bdf8; }

/* Best Practices Checklist */

.integ-tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.integ-tip-card {
  display: flex;
  gap: 12px;
  background: #101015;
  border: 1px solid #201f2c;
  border-radius: 10px;
  padding: 14px;
  align-items: flex-start;
}
.integ-tip-card > i {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #161521;
  border: 1px solid #262436;
  color: #38bdf8;
  flex: none;
}
.integ-tip-card > i .svg-icon { width: 15px; height: 15px; }
.integ-tip-card small { font-size: 11px; font-weight: 800; color: #fb5159; letter-spacing: 0.5px; display: block; }
.integ-tip-card b { display: block; font-size: 12px; color: #fff; margin: 2px 0 3px; }
.integ-tip-card p { margin: 0; font-size: 11px; color: #7f7c8d; line-height: 1.45; }

@media (max-width: 1200px) {
  .integ-top-grid, .integ-workspace { grid-template-columns: 1fr; }
  .integ-fields-grid, .integ-tips-grid { grid-template-columns: repeat(2, 1fr); }
  
}
@media (max-width: 700px) {
  .integ-fields-grid, .integ-tips-grid { grid-template-columns: 1fr; }
  .integ-console-head { flex-direction: column; }
  .integ-select { min-width: 100%; }
}

/* Architecture Explainer Card */

.arch-step {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #fb5159;
  text-transform: uppercase;
}
.arch-step.green {
  color: #34d399;
}

/* IDE Mode Bar (Tabs inside IDE) */

.integ-mode-tabs {
  display: flex;
  gap: 4px;
  width: 100%;
}
.integ-mode-tabs button {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 7px 12px;
  color: #797688;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.14s ease;
  white-space: nowrap;
}
.integ-mode-tabs button .svg-icon { width: 13px; height: 13px; }
.integ-mode-tabs button:hover { color: #e8d9d9; background: #15151c; }
.integ-mode-tabs button.active {
  background: #1b1a25;
  color: #ff8187;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* Code Syntax & Line Numbers */
.code-line {
  display: flex;
  line-height: 1.7;
  min-height: 20px;
}
.code-ln {
  width: 44px;
  text-align: right;
  padding-right: 16px;
  user-select: none;
  color: #424050;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  flex: none;
  border-right: 1px solid #1c1b26;
  margin-right: 14px;
}
.code-txt {
  flex: 1;
  white-space: pre;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  color: #d1d5db;
}
.hl-cmt { color: #6b7280; font-style: italic; }
.hl-str { color: #34d399; }
.hl-kw { color: #ff8187; font-weight: 600; }
.hl-prep { color: #f472b6; font-weight: 600; }
.hl-typ { color: #38bdf8; }
.hl-num { color: #fbbf24; }

/* Micro Buttons */
.btn-micro {
  background: #171620;
  border: 1px solid #282638;
  color: #ffb3b7;
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.12s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-micro:hover {
  background: #352021;
  border-color: #613739;
  color: #fff;
}
.btn-micro.primary {
  background: #670e12;
  border-color: #af1e25;
  color: #ffd5d7;
}
.btn-micro.primary:hover {
  background: #66050a;
  color: #fff;
}

/* Downloads List in Sidebar */
.integ-downloads-list {
  display: grid;
  gap: 8px;
}
.integ-dl-item {
  background: #101015;
  border: 1px solid #201f2c;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.dl-info b { display: block; font-size: 11.5px; color: #fff; }
.dl-info small { font-size: 11px; color: #7f7c8d; font-family: ui-monospace, Consolas, monospace; }
.dl-btns { display: flex; gap: 4px; }

/* ============================================================
   EXECUTIVE SUITE v2.7 — MODALS, LICENSE CARDS & PRODUCTS UI
   ============================================================ */

/* Modal Container & Close Button Refinement */
.modal-card {
  background: linear-gradient(180deg, #16161d 0%, #111116 100%) !important;
  border: 1px solid #262535;
  border-radius: 16px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.78);
}
.modal-card > .close {
  background: #1c1b26 !important;
  border: 1px solid #2c2a3b;
  color: #bba3a5;
  border-radius: 9px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}
.modal-card > .close:hover {
  background: #252334 !important;
  color: #fff;
}

/* 1. MODAL: CREAR NUEVAS KEYS */
.license-builder-modal {
  padding: 26px;
}
.license-builder h3 {
  font-size: 12.5px;
  font-weight: 700;
  color: #f8f2f2;
  letter-spacing: 0.2px;
}
.license-builder p {
  color: #88849a;
  font-size: 11px;
}

.license-product label:has(input:checked) {
  background: linear-gradient(135deg, rgba(242, 59, 68, 0.22) 0%, rgba(251, 81, 89, 0.12) 100%);
  border-color: #fa5860;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 179, 183, 0.18);
}
.license-product label:has(input:checked) svg {
  color: #ffb3b7;
}

.duration-choices span {
  background: #1a1a24;
  border: 1px solid #292839;
  border-radius: 8px;
  color: #d9cbcb;
  font-size: 11.5px;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.choice-grid label:has(input:checked) span {
  background: linear-gradient(135deg, rgba(242, 59, 68, 0.26) 0%, rgba(239, 52, 61, 0.16) 100%);
  border-color: #fa5860;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 179, 183, 0.22);
}

.hwid-choices label:has(input:checked) small {
  color: #ffd5d7;
}

/* 2. MODAL: KEYS GENERADAS (VAULT DESIGN) */
.keys-vault-modal {
  width: min(560px, 94vw) !important;
}
.keys-vault-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 34px;
}
.kv-badge {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #34d399;
}
.kv-badge .svg-icon {
  width: 20px;
  height: 20px;
}
.keys-vault-card {
  position: relative;
  margin-top: 18px;
  background: #0d0d12;
  border: 1px solid #232231;
  border-radius: 12px;
  overflow: hidden;
}
.keys-vault-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #14141c;
  border-bottom: 1px solid #21202e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.7px;
  color: #8f8ba3;
}
.kv-enc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.22);
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.4px;
}
.kv-enc .svg-icon {
  width: 11px;
  height: 11px;
}
.keys-vault-list {
  max-height: 270px;
  overflow-y: auto;
  padding: 8px;
  display: grid;
  gap: 6px;
}
.keys-vault-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  background: #13131b;
  border: 1px solid #21202f;
  border-radius: 9px;
  padding: 9px 12px;
}
.kv-idx {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11px;
  color: #6f6b82;
  font-weight: 700;
}
.keys-vault-row code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  color: #a7f3d0;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kv-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #1b1a26;
  border: 1px solid #2d2c3f;
  color: #e6d3d4;
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.kv-copy:hover {
  background: #272538;
  border-color: #6c4547;
  color: #fff;
}
.kv-copy .svg-icon {
  width: 12px;
  height: 12px;
}
.sr-only-area {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.keys-vault-actions {
  margin-top: 18px !important;
}

/* 3. TARJETA DE LICENCIA (LICENSE CARDS) */
.license-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(335px, 1fr));
  gap: 14px;
  padding-bottom: 120px;
}
.license-card {
  background: linear-gradient(180deg, #16161d 0%, #111116 100%) !important;
  border: 1px solid #242332 !important;
  border-left: 3px solid #6c4c4d !important;
  border-radius: 13px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
}
.license-card:has(em.active) { border-left-color: #10b981 !important; }
.license-card:has(em.pending) { border-left-color: #fa5860 !important; }
.license-card:has(em.paused) { border-left-color: #f59e0b !important; }
.license-card:has(em.banned),
.license-card:has(em.expired) { border-left-color: #ef4444 !important; }
.license-card.selected {
  border-color: #fa5860 !important;
  box-shadow: 0 0 0 1px rgba(250, 88, 96, 0.35), 0 12px 28px rgba(0, 0, 0, 0.35) !important;
}
.license-card > header {
  gap: 8px !important;
  padding-bottom: 12px;
  border-bottom: 1px solid #201f2c;
}
.license-card > header code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px !important;
  font-weight: 700;
  color: #faf3f3;
  max-width: 170px !important;
  letter-spacing: 0.3px;
}
.license-card > header em {
  border-radius: 999px !important;
  padding: 4px 10px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px;
}
.license-card > header em.active {
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(52, 211, 153, 0.28);
  color: #34d399;
}
.license-card > header em.pending {
  background: rgba(250, 88, 96, 0.14) !important;
  border: 1px solid rgba(253, 136, 142, 0.32);
  color: #ffb3b7;
}
.license-card > header em.paused {
  background: rgba(245, 158, 11, 0.12) !important;
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: #fbbf24;
}
.license-card > header em.banned,
.license-card > header em.expired {
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(248, 113, 113, 0.28);
  color: #f87171;
}

.license-card footer {
  padding-top: 12px;
  border-top: 1px solid #201f2c;
  gap: 7px;
}
.license-card footer > span.hwid-tag {
  margin-right: auto;
  background: #191823 !important;
  border: 1px solid #29283a;
  color: #b4999b;
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
}
.license-card footer button.lic-act {
  background: #1b1a25 !important;
  border: 1px solid #2d2c3e;
  color: #f0e1e1;
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.15s ease;
}
.license-card footer button.lic-act:hover {
  background: #252336 !important;
  border-color: #644042 !important;
  color: #fff !important;
}
.license-card footer button.lic-act.accent {
  background: rgba(250, 88, 96, 0.16) !important;
  border-color: rgba(253, 136, 142, 0.34) !important;
  color: #ffd5d7 !important;
}
.license-card footer button.lic-act.accent:hover {
  background: rgba(250, 88, 96, 0.28) !important;
  border-color: rgba(255, 179, 183, 0.55) !important;
  color: #fff !important;
}
.license-card footer svg {
  width: 12px;
  height: 12px;
}
.license-menu {
  position: absolute !important;
  z-index: 999 !important;
  right: 10px !important;
  top: 38px !important;
  width: 175px !important;
  background: #15141f !important;
  border: 1px solid #41282a !important;
  border-radius: 10px !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
  padding: 5px !important;
  backdrop-filter: blur(14px) !important;
  overflow: visible !important;
  animation: licMenuFade 0.12s ease-out !important;
}
@keyframes licMenuFade {
  from { opacity: 0; transform: translateY(-4px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.license-menu .menu-divider {
  height: 1px !important;
  background: #332222 !important;
  margin: 4px 2px !important;
}
.license-menu button {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  border: 0 !important;
  border-bottom: 0 !important;
  background: transparent !important;
  color: #cfcddc !important;
  padding: 6px 9px !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  border-radius: 6px !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: all 0.12s ease !important;
}
.license-menu button svg {
  width: 13px !important;
  height: 13px !important;
  opacity: 0.8 !important;
  flex-shrink: 0 !important;
}
.license-menu button:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}
.license-menu button:hover svg {
  opacity: 1 !important;
}
.license-menu button.danger {
  color: #fb7185 !important;
}
.license-menu button.danger:hover {
  background: rgba(244, 63, 94, 0.14) !important;
  color: #fecdd3 !important;
}
.license-menu button.danger-delete {
  color: #f87171 !important;
  font-weight: 600 !important;
}
.license-menu button.danger-delete:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
}
.license-menu button.danger-delete:hover svg {
  color: #ffffff !important;
}

/* 4. VISTA DE PRODUCTOS & CREDENCIALES */

.products-workspace.has-credentials {
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 18px;
}
.credentials-panel {
  padding: 0;
  background: linear-gradient(180deg, #16161f 0%, #111116 100%) !important;
  border: 1px solid rgba(250, 88, 96, 0.3);
  border-radius: 14px;
}
.credentials-panel > h3 {
  font-size: 12px;
  letter-spacing: 0.6px;
  color: #faf3f3;
}
.credentials-panel > p {
  font-size: 11px;
  color: #8c889e;
  border-bottom: 1px solid #222130;
}
.credential-row > small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #858198;
}
.credential-row > div {
  background: #0c0c11 !important;
  border: 1px solid #232232;
  border-radius: 9px;
}
.credential-row code {
  display: block;
  line-height: 36px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11.5px;
  color: #f5e7e7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.credential-row button {
  background: #14141d !important;
  border-left: 1px solid #232232;
  color: #b4999b;
}
.credential-row button:hover {
  background: #2c1d1d !important;
  color: #fff;
}
.regenerate-secret {
  background: #1b1a26 !important;
  border: 1px solid #2f2d42;
  color: #f2e1e1;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.15s ease;
}
.regenerate-secret:hover {
  background: #242234 !important;
  border-color: #fa5860;
  color: #fff;
}
.credential-alert {
  background: rgba(56, 189, 248, 0.06) !important;
  border: 1px solid rgba(56, 189, 248, 0.24);
  color: #bae6fd;
  border-radius: 10px;
}
.credential-alert > .svg-icon {
  color: #38bdf8 !important;
}
.credential-alert p {
  font-size: 11px;
  color: #cbd5e1;
}

.product-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(305px, 340px));
  gap: 16px;
}
.product-card {
  background: linear-gradient(180deg, #16161d 0%, #111116 100%) !important;
  border: 1px solid #242332 !important;
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
}
.product-card.selected {
  border-color: rgba(250, 88, 96, 0.65) !important;
  box-shadow: 0 0 0 1px rgba(250, 88, 96, 0.22), 0 14px 32px rgba(0, 0, 0, 0.36) !important;
}

.product-card > header em {
  background: rgba(245, 158, 11, 0.12) !important;
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: #fbbf24 !important;
  border-radius: 999px !important;
  padding: 4px 9px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}
.product-card > header em.off {
  background: #1d1c27 !important;
  border-color: #2f2e40;
  color: #b9a1a3 !important;
}
.product-card-stats > span {
  background: #0e0e14 !important;
  border: 1px solid #21202f !important;
  border-radius: 9px;
}
.product-health i {
  background: #1d1c29 !important;
}
.product-health i span {
  background: linear-gradient(90deg, #f23b44, #ff8187) !important;
}
.product-primary-actions button {
  background: #1b1a25 !important;
  border: 1px solid #2d2c3e;
  color: #f0e0e0;
  border-radius: 9px;
  height: 36px;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.15s ease;
}
.product-primary-actions button:hover {
  background: #252335 !important;
  border-color: #674244;
  color: #fff;
}
.product-primary-actions button.selected {
  background: rgba(250, 88, 96, 0.2) !important;
  border-color: rgba(253, 136, 142, 0.55) !important;
  color: #ffe8ea;
  box-shadow: none !important;
}
.product-secondary-actions button {
  background: #13131b !important;
  border: 1px solid #232232;
  color: #b4999b !important;
  border-radius: 8px;
  height: 34px;
  transition: all 0.15s ease;
}
.product-secondary-actions button:hover {
  background: #1e1d2b !important;
  border-color: #3a3752;
  color: #fff !important;
}
.product-secondary-actions button.active {
  background: rgba(245, 158, 11, 0.14) !important;
  border-color: rgba(251, 191, 36, 0.35) !important;
  color: #fbbf24 !important;
}
.product-secondary-actions button.danger:hover {
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(248, 113, 113, 0.35);
  color: #f87171 !important;
}

/* ============================================================
   EXECUTIVE SUITE v2.8 — MODAL SCROLL FIX & CLEAN INTEGRATION
   ============================================================ */

/* Fix hidden radio inputs overflowing horizontally in Builder Modal */

.license-builder-modal {
  width: min(1240px, 95vw);
  max-height: 92vh;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 26px 28px;
  scrollbar-width: thin;
  scrollbar-color: #2f2d42 transparent;
}
.license-builder-modal::-webkit-scrollbar {
  width: 7px;
}
.license-builder-modal::-webkit-scrollbar-thumb {
  background: #2f2d42;
  border-radius: 999px;
}
.license-builder {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px !important;
  align-items: start;
}

.modal-card > .close {
  z-index: 40 !important;
  top: 16px;
  right: 16px;
}
@media (max-width: 960px) {
  .license-builder {
    grid-template-columns: 1fr;
  }
  
}

/* Reorganized Executive Integration View */
.integ-page {
  display: grid;
  gap: 18px;
}
.integ-top-grid {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.integ-pipeline-card {
  padding: 18px 20px;
  display: grid;
  gap: 14px;
  align-content: space-between;
}
.integ-pipe-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.integ-kicker {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.7px;
  color: #fb5159;
  margin-bottom: 3px;
}
.integ-pipe-head h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}
.integ-target-tag {
  background: #171622;
  border: 1px solid #2a283d;
  color: #ffb3b7;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.integ-arch-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 10px;
}
.arch-chip {
  text-align: left;
  background: #101016;
  border: 1px solid #232232;
  border-radius: 10px;
  padding: 11px 13px;
  display: grid;
  gap: 3px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.arch-chip:hover {
  background: #171622;
  border-color: #6c3e40;
}
.arch-chip.emerald {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(52, 211, 153, 0.24);
}
.arch-chip.emerald:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(52, 211, 153, 0.45);
}
.arch-step,
.arch-step.emerald {
  background: transparent !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #fd888e;
}
.arch-step.emerald {
  color: #34d399;
}
.arch-chip b {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  color: #faf3f3;
}
.arch-chip.emerald b {
  color: #6ee7b7;
}
.arch-chip small {
  font-size: 11px;
  color: #7f7b92;
}
.arch-arrow {
  display: grid;
  place-items: center;
  color: #5d4143;
  font-weight: 800;
  font-size: 14px;
}

/* Console Icon & Clean Inputs */
.integ-console-title > i {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(250, 88, 96, 0.12);
  border: 1px solid rgba(253, 136, 142, 0.26);
  color: #ffb3b7;
  flex: none;
}
.integ-console-title > i .svg-icon {
  width: 17px;
  height: 17px;
}
.integ-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0b0b10 !important;
  border: 1px solid #252434 !important;
  border-radius: 9px;
  padding: 0 12px;
}
.integ-input-wrap:focus-within {
  border-color: #fa5860 !important;
  box-shadow: 0 0 0 2px rgba(250, 88, 96, 0.16);
}
.integ-input-wrap i {
  margin-right: 0;
  color: #736f86;
  display: grid;
  place-items: center;
  flex: none;
}
.integ-input-wrap input {
  width: 100%;
  min-width: 0;
  background: transparent !important;
  border: 0;
  padding: 9px 0;
  min-height: 0;
  font-size: 12px;
  color: #f8f2f2;
}

/* Unified Toolbar & Active Flow Tab without Neon Halo */
.integ-flow-tabs button.active {
  background: linear-gradient(135deg, #f23b44 0%, #ef343d 100%) !important;
  border-color: rgba(255, 129, 135, 0.45) !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}
.integ-toolbar-unified {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.integ-toolbar-unified .integ-mode-tabs {
  width: auto;
  background: #0d0d13;
  border: 1px solid #222130;
  border-radius: 8px;
  padding: 3px;
}
.integ-toolbar-unified .integ-mode-tabs button {
  flex: initial;
  padding: 6px 11px;
  font-size: 11px;
}
.integ-chrome-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.integ-window-chrome .integ-mode-badge {
  margin-left: 6px;
}

/* Fixed Right Sidebar Error Table */
.integ-errors-table {
  display: grid;
  gap: 6px;
}
.err-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "code status"
    "desc desc";
  gap: 3px 8px;
  padding: 8px 10px;
  background: #0f0f15;
  border: 1px solid #201f2d;
  border-radius: 8px;
  align-items: center;
}
.err-code {
  grid-area: code;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  color: #efdfdf;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.err-status-pill {
  grid-area: status;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}
.err-status-pill.warn { background: rgba(245, 158, 11, 0.14); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.25); }
.err-status-pill.stop { background: rgba(239, 68, 68, 0.14); color: #f87171; border: 1px solid rgba(248, 113, 113, 0.25); }
.err-status-pill.retry { background: rgba(56, 189, 248, 0.14); color: #7dd3fc; border: 1px solid rgba(125, 211, 252, 0.25); }
.err-desc {
  grid-area: desc;
  font-size: 11px;
  color: #7f7b91;
}

/* Fixed Bottom Technical Checklist */
.integ-checklist-card {
  padding: 20px 22px;
  display: grid;
  gap: 16px;
}
.integ-check-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.integ-check-head h3 {
  margin: 2px 0 4px;
  font-size: 15px;
  color: #fff;
}
.integ-check-head p {
  margin: 0;
  font-size: 11px;
  color: #848096;
}
.integ-counter-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  background: #171622;
  border: 1px solid #2b293e;
  color: #ffb3b7;
  white-space: nowrap;
}

@media (max-width: 1120px) {
  .integ-top-grid,
.integ-arch-strip {
    grid-template-columns: 1fr;
  }
  .arch-arrow {
    display: none;
  }
}

/* ============================================================
   EXECUTIVE SUITE v3.0 — ULTRA-CLEAN LICENSE CREATION DIALOG
   ============================================================ */

.license-builder-modal {
  width: min(640px, 94vw);
  max-width: 640px;
  max-height: 88vh;
  padding: 24px 28px;
  background: #140d0d !important;
  border: 1px solid #242234;
  border-radius: 16px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.9), 0 0 1px 1px rgba(255, 255, 255, 0.05) inset;
  overflow-y: auto;
  overflow-x: hidden;
}

.license-builder.lb-modern-modal {
  display: flex !important;
  flex-direction: column;
  gap: 16px !important;
  grid-template-columns: none;
  width: 100%;
}

/* Hide native radio discs completely */
.lb-modern-modal input[type="radio"],
.lb-prod-pill input,
.lb-choice-pill input,
.lb-seg-pill input,
.lb-hwid-seg-pill input {
  display: none;
  visibility: hidden;
  opacity: 0 !important;
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Hide stray check dots — pills use active borders and backgrounds */
.lb-check-dot {
  display: none;
}

/* Header */
.lb-modern-modal .lb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #1f1e2c;
  margin-bottom: 2px;
}
.lb-modern-modal .lb-head-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lb-modern-modal .lb-head-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(250, 88, 96, 0.12);
  border: 1px solid rgba(253, 136, 142, 0.25);
  color: #ffb3b7;
  flex: none;
}
.lb-modern-modal .lb-head-icon .svg-icon {
  width: 18px;
  height: 18px;
}
.lb-modern-modal .lb-head-left h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.2px;
}
.lb-modern-modal .lb-head-left p {
  margin: 2px 0 0;
  font-size: 11px;
  color: #8c889f;
}
.lb-modern-modal .lb-badge-shield {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  color: #ffb3b7;
  background: rgba(250, 88, 96, 0.1);
  border: 1px solid rgba(253, 136, 142, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.4px;
}
.lb-modern-modal .lb-badge-shield .svg-icon {
  width: 11px;
  height: 11px;
}

/* Groups and Labels */
.lb-group {
  display: grid;
  gap: 6px;
}
.lb-group-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.lb-group-label > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #eae0e0;
}
.lb-group-label > span .svg-icon {
  width: 13px;
  height: 13px;
  color: #fd888e;
}
.lb-group-label small {
  font-size: 11px;
  color: #7b778c;
  font-weight: 400;
}

/* Product Picker */
.lb-modern-modal .lb-product-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lb-modern-modal .lb-prod-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #14131b;
  border: 1px solid #242232;
  border-radius: 9px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.lb-modern-modal .lb-prod-pill:hover {
  background: #1a1924;
  border-color: #533638;
}
.lb-modern-modal .lb-prod-pill:has(input:checked) {
  background: rgba(250, 88, 96, 0.15);
  border-color: #fa5860;
  box-shadow: 0 0 0 1px rgba(253, 136, 142, 0.3);
}
.lb-modern-modal .lb-prod-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: rgba(250, 88, 96, 0.12);
  color: #ffb3b7;
}
.lb-modern-modal .lb-prod-icon .svg-icon {
  width: 12px;
  height: 12px;
}
.lb-modern-modal .lb-prod-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lb-modern-modal .lb-prod-info b {
  font-size: 12px;
  color: #fff;
}
.lb-modern-modal .lb-prod-info small {
  font-size: 11px;
  color: #928ea3;
  background: #1d1c28;
  padding: 1px 6px;
  border-radius: 4px;
}

/* Duration Grid */
.lb-modern-modal .lb-duration-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.lb-modern-modal .lb-choice-pill {
  position: relative;
  display: block;
  cursor: pointer;
}
.lb-modern-modal .lb-choice-pill span {
  display: grid;
  place-items: center;
  padding: 8px 4px;
  border-radius: 8px;
  background: #13121a;
  border: 1px solid #302121;
  color: #9c97ad;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.lb-modern-modal .lb-choice-pill:hover span {
  background: #191823;
  border-color: #4f3335;
  color: #fff;
}
.lb-modern-modal .lb-choice-pill:has(input:checked) span {
  background: linear-gradient(135deg, #f23b44 0%, #6366f1 100%);
  border-color: #fd888e;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(242, 59, 68, 0.35);
}

/* Custom Duration Row */
.lb-custom-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #181111;
  border: 1px solid #232132;
  border-radius: 8px;
  margin-top: 4px;
}
.lb-custom-row > span {
  font-size: 11px;
  font-weight: 600;
  color: #9c97ad;
}
.lb-custom-row input,
.lb-custom-row select {
  background: #191824;
  border: 1px solid #2e2c40;
  border-radius: 6px;
  color: #fff;
  padding: 6px 10px;
  font-size: 11.5px;
}

/* Segmented Switches */
.lb-segmented-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.lb-seg-pill {
  position: relative;
  display: block;
  cursor: pointer;
}
.lb-seg-pill .lb-seg-content {
  display: grid;
  gap: 2px;
  padding: 9px 12px;
  background: #13121a;
  border: 1px solid #302121;
  border-radius: 9px;
  transition: all 0.15s ease;
}
.lb-seg-pill:hover .lb-seg-content {
  background: #181722;
  border-color: #4f3335;
}
.lb-seg-pill:has(input:checked) .lb-seg-content {
  background: rgba(250, 88, 96, 0.12);
  border-color: #fa5860;
  box-shadow: inset 0 0 0 1px rgba(253, 136, 142, 0.2);
}
.lb-seg-content b {
  font-size: 11.5px;
  color: #fff;
}
.lb-seg-content small {
  font-size: 11px;
  color: #817d94;
}

/* HWID Segmented */
.lb-hwid-segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.lb-hwid-seg-pill {
  position: relative;
  display: block;
  cursor: pointer;
}
.lb-hwid-seg-pill .lb-seg-content {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  background: #13121a;
  border: 1px solid #302121;
  border-radius: 9px;
  transition: all 0.15s ease;
}
.lb-hwid-seg-pill:hover .lb-seg-content {
  background: #181722;
  border-color: #4f3335;
}
.lb-hwid-seg-pill:has(input:checked) .lb-seg-content {
  background: rgba(250, 88, 96, 0.12);
  border-color: #fa5860;
  box-shadow: inset 0 0 0 1px rgba(253, 136, 142, 0.2);
}
.lb-hwid-seg-pill i {
  color: #ffb3b7;
  display: grid;
  place-items: center;
}
.lb-hwid-seg-pill i .svg-icon {
  width: 14px;
  height: 14px;
}
.lb-hwid-seg-pill .lb-seg-content div {
  display: grid;
  gap: 1px;
}
.lb-hwid-seg-pill .lb-seg-content b {
  font-size: 11.5px;
  color: #fff;
}
.lb-hwid-seg-pill .lb-seg-content small {
  font-size: 11px;
  color: #817d94;
}
.lb-max-devices-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #181111;
  border: 1px solid #232132;
  border-radius: 8px;
  padding: 8px 12px;
}
.lb-max-devices-box label {
  font-size: 11px;
  color: #9c97ad;
  font-weight: 600;
}
.lb-max-devices-box input {
  width: 60px;
  background: #191824;
  border: 1px solid #2e2c40;
  border-radius: 6px;
  color: #fff;
  padding: 5px 8px;
  font-size: 11.5px;
  text-align: center;
}

/* Two Columns Row */
.lb-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Quantity Wrap */
.lb-qty-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #13121a;
  border: 1px solid #302121;
  border-radius: 8px;
  padding: 4px 6px;
}
.lb-qty-input {
  width: 48px;
  background: #1a1924 !important;
  border: 1px solid #2f2d42 !important;
  border-radius: 6px !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 12px;
  text-align: center;
  padding: 6px 4px !important;
}
.lb-qty-chips {
  display: flex;
  gap: 4px;
  flex: 1;
}
.lb-qty-chips button {
  flex: 1;
  background: transparent;
  border: 1px solid #302121;
  border-radius: 5px;
  color: #8b869e;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 0;
  cursor: pointer;
  transition: all 0.15s ease;
}
.lb-qty-chips button:hover {
  background: #281b1b;
  color: #fff;
}
.lb-qty-chips button.active {
  background: #f23b44;
  border-color: #fa5860;
  color: #fff;
}

/* Input Icon Wrap */
.lb-input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.lb-input-icon-wrap i {
  position: absolute;
  left: 10px;
  color: #7b7692;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.lb-input-icon-wrap i .svg-icon {
  width: 13px;
  height: 13px;
}
.lb-input-icon-wrap input {
  width: 100%;
  background: #13121a !important;
  border: 1px solid #302121;
  border-radius: 8px;
  color: #fff;
  padding: 8px 10px 8px 32px;
  font-size: 11.5px;
  transition: border-color 0.15s ease;
}
.lb-input-icon-wrap input:focus {
  border-color: #fa5860;
  outline: none;
}

/* Preview Banner Strip */
.lb-preview-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, #111019 0%, #120b0b 100%);
  border: 1px solid #27243c;
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 4px;
}
.lb-pb-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lb-pb-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.7px;
  color: #a38889;
  background: #181724;
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid #2a273e;
}
.lb-preview-banner code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 800;
  color: #ffb3b7;
  letter-spacing: 0.8px;
}
.lb-pb-shield {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #fd888e;
}
.lb-pb-shield .svg-icon {
  width: 11px;
  height: 11px;
}

/* Modal Actions */
.lb-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid #1f1e2c;
}
.lb-modal-actions .btn.ghost {
  background: transparent;
  border: 1px solid #28263a;
  color: #9c97ad;
  height: 36px;
  padding: 0 16px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 8px;
}
.lb-modal-actions .btn.ghost:hover {
  background: #191823;
  color: #fff;
}
.lb-submit-btn {
  height: 38px;
  padding: 0 20px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  background: linear-gradient(135deg, #f23b44 0%, #6366f1 100%) !important;
  border: 1px solid #fd888e !important;
  box-shadow: 0 6px 20px rgba(242, 59, 68, 0.4) !important;
  color: #fff !important;
}
.lb-submit-btn:hover {
  filter: brightness(1.1);
}

@media (max-width: 680px) {
  .lb-duration-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .lb-hwid-segmented {
    grid-template-columns: 1fr;
  }
  .lb-row-2col {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   v3.1 — LAYOUT FIXES (full width blocks, aligned labels)
   ============================================================ */
.modal form.license-builder.lb-modern-modal {
  align-items: stretch;
  justify-items: stretch;
  margin: 0 !important;
  gap: 18px !important;
}
.lb-modern-modal > *,
.lb-modern-modal .lb-group,
.lb-modern-modal .lb-group > *,
.lb-modern-modal .lb-row-2col > * {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.lb-modern-modal .lb-header {
  padding-right: 48px; /* room for close button */
}
.lb-modern-modal .lb-badge-shield {
  display: none;
}
.lb-modern-modal .lb-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lb-modern-modal .lb-group-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin: 0;
}
.lb-modern-modal .lb-group-label small {
  font-size: 11px;
  color: #6f6b82;
}

/* Uniform equal-width option rows */
.lb-modern-modal .lb-segmented-pair,
.lb-modern-modal .lb-hwid-segmented,
.lb-modern-modal .lb-duration-grid {
  display: grid;
  width: 100%;
}
.lb-modern-modal .lb-segmented-pair { grid-template-columns: 1fr 1fr; }
.lb-modern-modal .lb-hwid-segmented { grid-template-columns: repeat(3, 1fr); }
.lb-modern-modal .lb-seg-pill,
.lb-modern-modal .lb-hwid-seg-pill,
.lb-modern-modal .lb-choice-pill {
  display: block;
  width: 100%;
  margin: 0;
}
.lb-modern-modal .lb-seg-pill .lb-seg-content,
.lb-modern-modal .lb-hwid-seg-pill .lb-seg-content {
  height: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
}
.lb-modern-modal .lb-choice-pill span {
  padding: 9px 4px;
}

/* Quantity: full row, roomy chips */
.lb-modern-modal .lb-qty-wrap {
  gap: 8px;
  padding: 6px;
}
.lb-modern-modal .lb-qty-input {
  width: 72px;
  flex: none;
  padding: 7px 6px !important;
}
.lb-modern-modal .lb-qty-chips { gap: 6px; }
.lb-modern-modal .lb-qty-chips button {
  padding: 7px 0;
  font-size: 11px;
  border-radius: 6px;
}

/* Inputs */
.lb-modern-modal .lb-input-icon-wrap input {
  height: 38px;
  padding: 0 12px 0 34px;
  margin: 0;
}

/* Preview strip + actions full width */
.lb-modern-modal .lb-preview-banner {
  margin-top: 2px;
  padding: 12px 16px;
}
.lb-modern-modal .lb-preview-banner code { font-size: 13px; }
.lb-modern-modal .lb-modal-actions {
  margin-top: 0;
}

/* ============================================================
   v3.2 — COLOR-CODED SECTIONS (each section has its own accent)
   ============================================================ */
.lb-modern-modal .lb-group { --ac: 239, 68, 68; --ac-hex: #fd888e; }
.lb-modern-modal .lb-group:has(input[name="productId"]) { --ac: 239, 68, 68; --ac-hex: #fd888e; } /* violeta */
.lb-modern-modal .lb-group:has(input[name="durationPreset"]){ --ac: 59, 130, 246; --ac-hex: #60a5fa; } /* azul */
.lb-modern-modal .lb-group:has(input[name="startsOn"]) { --ac: 245, 158, 11; --ac-hex: #fbbf24; } /* ámbar */
.lb-modern-modal .lb-group:has(input[name="hwidMode"]) { --ac: 16, 185, 129; --ac-hex: #34d399; } /* esmeralda */
.lb-modern-modal .lb-group:has(input[name="count"]) { --ac: 236, 72, 153; --ac-hex: #f472b6; } /* rosa */
.lb-modern-modal .lb-group:has(input[name="format"]) { --ac: 6, 182, 212;  --ac-hex: #22d3ee; } /* cian */
.lb-modern-modal .lb-group:has(input[name="note"]) { --ac: 148, 163, 184; --ac-hex: #cbd5e1; } /* gris */

/* Section title icon as a colored chip */
.lb-modern-modal .lb-group-label > span {
  gap: 8px;
  font-size: 12px;
  color: #faf3f3;
}
.lb-modern-modal .lb-group-label > span .svg-icon {
  width: 22px;
  height: 22px;
  padding: 4px;
  box-sizing: border-box;
  border-radius: 6px;
  color: var(--ac-hex);
  background: rgba(var(--ac), 0.14) !important;
  border: 1px solid rgba(var(--ac), 0.35);
}

/* Hover */
.lb-modern-modal .lb-group .lb-prod-pill:hover,
.lb-modern-modal .lb-group .lb-choice-pill:hover span,
.lb-modern-modal .lb-group .lb-seg-pill:hover .lb-seg-content,
.lb-modern-modal .lb-group .lb-hwid-seg-pill:hover .lb-seg-content,
.lb-modern-modal .lb-group .lb-qty-chips button:hover {
  border-color: rgba(var(--ac), 0.55);
  background: rgba(var(--ac), 0.07) !important;
  color: #fff;
}

/* Selected: strong accent fill + border + glow */
.lb-modern-modal .lb-group .lb-prod-pill:has(input:checked),
.lb-modern-modal .lb-group .lb-seg-pill:has(input:checked) .lb-seg-content,
.lb-modern-modal .lb-group .lb-hwid-seg-pill:has(input:checked) .lb-seg-content {
  background: linear-gradient(135deg, rgba(var(--ac), 0.26) 0%, rgba(var(--ac), 0.10) 100%) !important;
  border: 1px solid var(--ac-hex);
  box-shadow: 0 0 0 3px rgba(var(--ac), 0.16), 0 6px 18px rgba(var(--ac), 0.22);
}
.lb-modern-modal .lb-group .lb-choice-pill:has(input:checked) span,
.lb-modern-modal .lb-group .lb-qty-chips button.active {
  background: linear-gradient(135deg, rgba(var(--ac), 1) 0%, rgba(var(--ac), 0.75) 100%) !important;
  border-color: var(--ac-hex) !important;
  color: #fff !important;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(var(--ac), 0.38) !important;
}
.lb-modern-modal .lb-group .lb-seg-pill:has(input:checked) b,
.lb-modern-modal .lb-group .lb-hwid-seg-pill:has(input:checked) b,
.lb-modern-modal .lb-group .lb-prod-pill:has(input:checked) b {
  color: #fff;
}
.lb-modern-modal .lb-group .lb-seg-pill:has(input:checked) small,
.lb-modern-modal .lb-group .lb-hwid-seg-pill:has(input:checked) small {
  color: var(--ac-hex);
}
.lb-modern-modal .lb-hwid-seg-pill i,
.lb-modern-modal .lb-prod-icon {
  color: var(--ac-hex);
  background: rgba(var(--ac), 0.14) !important;
  border-radius: 6px;
  width: 26px;
  height: 26px;
  flex: none;
}

/* Check badge on selected cards */
.lb-modern-modal .lb-seg-pill,
.lb-modern-modal .lb-hwid-seg-pill,
.lb-modern-modal .lb-prod-pill { position: relative; }
.lb-modern-modal .lb-seg-pill .lb-check-dot,
.lb-modern-modal .lb-hwid-seg-pill .lb-check-dot,
.lb-modern-modal .lb-prod-pill .lb-check-dot {
  display: grid;
  place-items: center;
  position: absolute;
  top: 8px;
  right: 8px;
  width: 16px;
  height: 16px;
  margin: 0;
  border-radius: 50%;
  background: var(--ac-hex) !important;
  color: #140d0d;
  opacity: 0 !important;
  transform: scale(0.6) !important;
  transition: all 0.15s ease !important;
}
.lb-modern-modal .lb-prod-pill .lb-check-dot {
  position: static;
  margin-left: 4px;
}
.lb-modern-modal .lb-check-dot .svg-icon { width: 10px !important; height: 10px !important; stroke-width: 3; }
.lb-modern-modal label:has(input:checked) > .lb-check-dot {
  opacity: 1 !important;
  transform: scale(1) !important;
}

/* Focused inputs use section accent */
.lb-modern-modal .lb-group .lb-input-icon-wrap i { color: var(--ac-hex); }
.lb-modern-modal .lb-group .lb-input-icon-wrap input:focus,
.lb-modern-modal .lb-group .lb-qty-input:focus {
  border-color: var(--ac-hex) !important;
  box-shadow: 0 0 0 3px rgba(var(--ac), 0.18) !important;
  outline: none;
}
.lb-modern-modal .lb-group .lb-qty-input {
  color: var(--ac-hex) !important;
  border-color: rgba(var(--ac), 0.4) !important;
}

/* Preview strip: emerald security + violet key */
.lb-modern-modal .lb-preview-banner {
  background: linear-gradient(90deg, rgba(250, 88, 96, 0.12) 0%, rgba(16, 185, 129, 0.08) 100%) !important;
  border: 1px solid rgba(250, 88, 96, 0.35);
}
.lb-modern-modal .lb-pb-tag {
  color: #ffb3b7;
  background: rgba(250, 88, 96, 0.18) !important;
  border-color: rgba(253, 136, 142, 0.4);
}
.lb-modern-modal .lb-preview-banner code { color: #ffd5d7; }
.lb-modern-modal .lb-pb-shield {
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  padding: 4px 9px;
  border-radius: 999px;
}

/* =========================================================
   MI PLAN V2 - EXECUTIVE SUITE REDESIGN
   ========================================================= */
.plan-page-wrap {
  display: grid;
  gap: 20px;
  max-width: 1260px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.plan-hero-banner {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 24px 26px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(250, 88, 96, 0.14) 0%, rgba(20, 19, 30, 0.96) 55%, rgba(16, 185, 129, 0.08) 100%);
  border: 1px solid rgba(250, 88, 96, 0.28);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.plan-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 10px;
}
.plan-hero-kicker .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}
.plan-hero-left h2 {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
}
.plan-hero-left p {
  font-size: 12.5px;
  color: #bea4a6;
  margin: 0 0 14px 0;
  line-height: 1.5;
}
.plan-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.plan-hero-pills span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #f0d8da;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 10px;
  border-radius: 8px;
}
.plan-hero-pills span svg {
  width: 13px;
  height: 13px;
  color: #fd888e;
}

.plan-hero-meters {
  display: grid;
  gap: 12px;
  background: rgba(11, 11, 16, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 16px;
  border-radius: 12px;
}
.plan-meter-item > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-bottom: 6px;
}
.plan-meter-item > div span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d9c0c2;
  font-weight: 500;
}
.plan-meter-item > div span svg {
  width: 13px;
  height: 13px;
}
.plan-meter-item.tone-purple svg { color: #fd888e; }
.plan-meter-item.tone-blue svg { color: #38bdf8; }
.plan-meter-item.tone-green svg { color: #34d399; }
.plan-meter-item > div b {
  color: #ffffff;
  font-weight: 700;
}
.plan-meter-item > i {
  display: block;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.plan-meter-item > i > span {
  display: block;
  height: 100%;
  border-radius: 99px;
}
.plan-meter-item.tone-purple > i > span { background: linear-gradient(90deg, #fa5860, #ff8187); }
.plan-meter-item.tone-blue > i > span { background: linear-gradient(90deg, #3b82f6, #38bdf8); }
.plan-meter-item.tone-green > i > span { background: linear-gradient(90deg, #10b981, #34d399); }

/* Tier Cards Grid */
.plan-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.plan-card-v2 {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, #161620 0%, #101016 100%);
  border: 1px solid #262536;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.plan-card-v2:hover {
  transform: translateY(-3px);
}
.plan-card-v2.tone-blue { --p-ac: 56, 189, 248; --p-hex: #38bdf8; }
.plan-card-v2.tone-purple { --p-ac: 239, 68, 68; --p-hex: #fd888e; }
.plan-card-v2.tone-amber { --p-ac: 245, 158, 11; --p-hex: #fbbf24; }

.plan-card-v2::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, transparent, var(--p-hex), transparent);
  opacity: 0.75;
}
.plan-card-v2.is-popular {
  border-color: rgba(250, 88, 96, 0.65);
  background: linear-gradient(180deg, rgba(250, 88, 96, 0.12) 0%, #111019 45%, #0e0e14 100%);
  box-shadow: 0 0 0 1px rgba(250, 88, 96, 0.25), 0 20px 44px rgba(250, 88, 96, 0.18);
}

.plan-tier-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  padding: 4px 10px;
  border-radius: 99px;
  color: var(--p-hex);
  background: rgba(var(--p-ac), 0.13);
  border: 1px solid rgba(var(--p-ac), 0.32);
  margin-bottom: 12px;
}
.plan-card-v2 h3 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
}
.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}
.plan-price-row strong {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.plan-price-row span {
  font-size: 12.5px;
  color: #a88a8c;
  font-weight: 500;
}
.plan-tier-sub {
  font-size: 12px;
  color: #b4989a;
  line-height: 1.45;
  min-height: 35px;
  margin: 0;
}
.plan-cta-btn {
  width: 100%;
  justify-content: center;
  height: 40px;
  font-weight: 600;
  border-radius: 10px;
}
.plan-card-v2:not(.is-popular) .plan-cta-btn {
  background: rgba(var(--p-ac), 0.1);
  border: 1px solid rgba(var(--p-ac), 0.3);
  color: #ffffff;
}
.plan-card-v2:not(.is-popular) .plan-cta-btn:hover {
  background: rgba(var(--p-ac), 0.22);
  border-color: var(--p-hex);
}

.plan-feat-list {
  list-style: none;
  padding: 12px 0 0 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: grid;
  gap: 10px;
}
.plan-feat-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  color: #e6d3d4;
  line-height: 1.4;
}
.plan-feat-list li i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(var(--p-ac), 0.14);
  color: var(--p-hex);
  flex-shrink: 0;
  margin-top: 1px;
}
.plan-feat-list li i svg {
  width: 11px;
  height: 11px;
}

/* Capabilities bottom row */
.plan-caps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.plan-cap-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 14px;
  background: linear-gradient(180deg, #15151e 0%, #101016 100%);
  border: 1px solid #242333;
}
.plan-cap-card.tone-purple i { color: #fd888e; background: rgba(250, 88, 96, 0.14); border-color: rgba(250, 88, 96, 0.3); }
.plan-cap-card.tone-green i { color: #34d399; background: rgba(16, 185, 129, 0.14); border-color: rgba(16, 185, 129, 0.3); }
.plan-cap-card.tone-blue i { color: #38bdf8; background: rgba(56, 189, 248, 0.14); border-color: rgba(56, 189, 248, 0.3); }
.plan-cap-card.tone-amber i { color: #fbbf24; background: rgba(245, 158, 11, 0.14); border-color: rgba(245, 158, 11, 0.3); }
.plan-cap-card i {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.plan-cap-card i svg {
  width: 18px;
  height: 18px;
}
.plan-cap-card h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
}
.plan-cap-card p {
  font-size: 12px;
  color: #a9898b;
  margin: 0;
  line-height: 1.45;
}

@media (max-width: 960px) {
  .plan-hero-banner { grid-template-columns: 1fr; }
  .plan-grid-v2 { grid-template-columns: 1fr; }
  .plan-caps-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   CRIMSON RED GLOBAL OVERRIDE & LANDING V2
   ========================================================= */
:root {
  --purple: #ef4444 !important;
  --purple2: #f87171 !important;
  --accent: #ef4444 !important;
}

body, .landing, .dashboard {
  background-color: #0b0708 !important;
}

.landing {
  background: radial-gradient(circle at 50% 0%, rgba(239, 68, 68, 0.16) 0%, rgba(16, 8, 10, 0.96) 45%, #090607 100%) !important;
}

.public-nav .nav-pill {
  background: rgba(18, 11, 13, 0.82) !important;
  border: 1px solid rgba(239, 68, 68, 0.25);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  padding: 5px;
}
.public-nav .nav-pill button.active {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
  color: #fff !important;
  border-color: rgba(248, 113, 113, 0.5) !important;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4) !important;
}

/* Auth Card V2 */
.login-card-v2 {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(26, 16, 19, 0.94) 0%, rgba(15, 10, 11, 0.98) 100%) !important;
  border: 1px solid rgba(239, 68, 68, 0.28);
  border-radius: 18px;
  padding: 26px 26px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
}
.login-card-v2::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ef4444, #f87171, transparent);
}
.login-card-header {
  text-align: center;
  margin-bottom: 16px;
}

.login-card-v2 .auth-tabs {
  background: rgba(11, 7, 8, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 4px;
}
.login-card-v2 .auth-tabs button.active {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.24) 0%, rgba(185, 28, 28, 0.2) 100%) !important;
  border: 1px solid rgba(239, 68, 68, 0.45) !important;
  color: #ffffff !important;
  border-radius: 7px;
}
.login-card-v2 .field {
  background: rgba(11, 7, 8, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.login-card-v2 .field:focus-within {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}
.demo-btn-v2 {
  width: 100%;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px;
  background: rgba(239, 68, 68, 0.08) !important;
  border: 1px dashed rgba(239, 68, 68, 0.35) !important;
  border-radius: 10px !important;
  padding: 8px 12px !important;
  cursor: pointer;
  color: #e4d5d8;
  transition: all 0.15s ease;
}
.demo-btn-v2:hover {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: #ef4444 !important;
}
.demo-btn-v2 span { font-size: 11px; color: #fca5a5; font-weight: 600; }
.demo-btn-v2 code { font-size: 11px; color: #ffffff; background: none; padding: 0; }
.demo-btn-v2 em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(239, 68, 68, 0.3);
  padding: 2px 8px;
  border-radius: 6px;
}
.login-card-v2 .login-submit {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
  border: 1px solid rgba(252, 165, 165, 0.35);
  box-shadow: 0 10px 26px rgba(239, 68, 68, 0.38) !important;
  height: 42px;
  font-weight: 700;
  border-radius: 10px;
}
.login-card-v2 .login-submit:hover {
  filter: brightness(1.08);
  box-shadow: 0 12px 32px rgba(239, 68, 68, 0.5) !important;
}

/* Dashboard Crimson Accents */
.sidebar .brand > span {
  background: linear-gradient(135deg, #ef4444 0%, #991b1b 100%) !important;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}
.side-nav button.active {
  background: linear-gradient(90deg, #ef4444 0%, #b91c1c 100%) !important;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.35) !important;
}
.topbar .upgrade, .btn.primary {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
  border-color: rgba(248, 113, 113, 0.4) !important;
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.32) !important;
}
.topbar .upgrade:hover, .btn.primary:hover {
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.48) !important;
}

/* =========================================================
   CLEAN CENTERED HERO (MATCHING REFERENCE)
   ========================================================= */
.hero-shell {
  max-width: 1180px;
  gap: 64px;
  align-items: center;
}
.hero-brand.hero-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}
.hero-logo-clean {
  font-size: 62px;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #ffffff;
  text-shadow: 0 0 32px rgba(239, 68, 68, 0.75), 4px 4px 0 rgba(239, 68, 68, 0.45);
  margin-bottom: 14px;
  user-select: none;
}
.hero-title-clean {
  font-size: clamp(32px, 3.8vw, 44px) !important;
  font-weight: 900;
  font-style: italic !important;
  letter-spacing: -0.02em !important;
  line-height: 1.05;
  margin: 0 0 8px 0 !important;
  text-align: center;
}
.hero-title-clean span {
  color: #ffffff !important;
}
.hero-title-clean .crimson-glow {
  font-style: italic;
  color: #ff3b3b;
  text-shadow: 0 0 26px rgba(239, 68, 68, 0.6);
}
.hero-centered .subtitle {
  font-size: 11px;
  letter-spacing: 0.34em;
  color: #9e8f92;
  text-align: center;
  margin: 0 0 26px 0;
}
.chips-row-4 {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}
.chips-row-4 span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  background: rgba(22, 14, 16, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dcd2d4;
  padding: 6px 11px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 500;
}
.chips-row-4 span svg {
  width: 13px !important;
  height: 13px !important;
  color: #f87171;
}
.hero-benefits-clean {
  display: flex;
  justify-content: center;
  gap: 42px;
  margin: 0;
}
.hero-benefits-clean article {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: none !important;
  border: 0;
  padding: 0;
}
.hero-benefits-clean article i {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid !important;
  place-items: center;
  margin: 0 auto 10px auto;
}
.hero-benefits-clean article i.red {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
  color: #fff;
  box-shadow: 0 8px 22px rgba(239, 68, 68, 0.38);
}
.hero-benefits-clean article i.green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #fff;
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.32);
}
.hero-benefits-clean article i.orange {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #fff;
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.32);
}
.hero-benefits-clean article b {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}
.hero-benefits-clean article small {
  font-size: 11px;
  color: #938588;
  margin-top: 2px;
}

.landing-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.landing-footer div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #8c7f82;
}
.landing-footer b:first-child {
  font-style: italic;
  font-weight: 900;
  color: #ffffff;
  font-size: 14px;
}
.landing-footer em {
  font-style: italic;
  font-weight: 800;
  color: #ffffff;
}
.landing-footer div b:last-child {
  font-style: italic;
  font-weight: 800;
  color: #ff3b3b;
}
.landing-footer a {
  color: #b5a6a9;
  font-size: 12px;
  text-decoration: none;
  transition: color 0.15s ease;
}
.landing-footer a:hover {
  color: #ff3b3b;
}

@media (max-width: 960px) {
  .chips-row-4 { flex-wrap: wrap; }
  .hero-benefits-clean { gap: 24px; }
}

/* =========================================================
   PUBLIC SECTIONS V2 (RECURSOS, DUDAS, PLANES)
   ========================================================= */
.pub-v2 {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 60px !important;
}
.pub-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px !important;
}
.pub-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 5px 12px;
  border-radius: 99px;
  margin-bottom: 14px;
}
.pub-kicker svg { width: 12px; height: 12px; color: #ef4444; }
.pub-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin: 0 0 10px 0;
}
.pub-head h2 em.crimson-glow {
  font-style: normal;
  color: #ff3b3b;
  text-shadow: 0 0 24px rgba(239, 68, 68, 0.55);
}
.pub-head p {
  font-size: 13.5px;
  color: #a6989b;
  line-height: 1.55;
  margin: 0;
}

/* Recursos 6-card grid */
.pub-features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.pf-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(24, 15, 17, 0.92) 0%, rgba(13, 9, 10, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.pf-card:hover { transform: translateY(-3px); border-color: rgba(var(--pf-ac), 0.45); }
.pf-card.tone-red { --pf-ac: 239, 68, 68;  --pf-hex: #f87171; }
.pf-card.tone-green { --pf-ac: 16, 185, 129; --pf-hex: #34d399; }
.pf-card.tone-amber { --pf-ac: 245, 158, 11; --pf-hex: #fbbf24; }
.pf-card.tone-blue { --pf-ac: 56, 189, 248; --pf-hex: #38bdf8; }
.pf-card.tone-crimson { --pf-ac: 244, 63, 94;  --pf-hex: #fb7185; }
.pf-card.tone-cyan { --pf-ac: 6, 182, 212;  --pf-hex: #22d3ee; }

.pf-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--pf-hex), transparent);
  opacity: 0.7;
}
.pf-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.pf-top i {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(var(--pf-ac), 0.14);
  border: 1px solid rgba(var(--pf-ac), 0.35);
  color: var(--pf-hex);
}
.pf-top i svg { width: 18px; height: 18px; }
.pf-top span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--pf-hex);
  background: rgba(var(--pf-ac), 0.1);
  border: 1px solid rgba(var(--pf-ac), 0.22);
  padding: 3px 9px;
  border-radius: 99px;
}
.pf-card h3 { font-size: 16px; font-weight: 700; color: #fff; margin: 0 0 6px 0; }
.pf-card p { font-size: 12.5px; color: #9f9093; line-height: 1.5; margin: 0 0 14px 0; }
.pf-card ul {
  list-style: none;
  padding: 12px 0 0 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 7px;
}
.pf-card ul li {
  position: relative;
  padding-left: 16px;
  font-size: 12px;
  color: #dcd1d4;
}
.pf-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--pf-hex);
  font-weight: 700;
}

.pub-tech-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.pub-tech-bar span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: #cfc3c6;
  background: rgba(20, 13, 15, 0.85);
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 7px 14px;
  border-radius: 99px;
}
.pub-tech-bar span svg { width: 13px; height: 13px; color: #ef4444; }

/* Dudas Steps + FAQ */
.pub-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.ps-card {
  position: relative;
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(24, 15, 17, 0.92) 0%, rgba(13, 9, 10, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ps-card.tone-red { --ps-ac: 239, 68, 68;  --ps-hex: #f87171; }
.ps-card.tone-green { --ps-ac: 16, 185, 129; --ps-hex: #34d399; }
.ps-card.tone-amber { --ps-ac: 245, 158, 11; --ps-hex: #fbbf24; }
.ps-card.tone-blue { --ps-ac: 56, 189, 248; --ps-hex: #38bdf8; }
.ps-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.ps-head i {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(var(--ps-ac), 0.14);
  border: 1px solid rgba(var(--ps-ac), 0.32);
  color: var(--ps-hex);
}
.ps-head i svg { width: 16px; height: 16px; }
.ps-head span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ps-hex);
}
.ps-card h3 { font-size: 14.5px; font-weight: 700; color: #fff; margin: 0 0 5px 0; }
.ps-card p { font-size: 12px; color: #9c8d90; line-height: 1.45; margin: 0; }

.pub-faq-box {
  display: grid;
  gap: 10px;
  max-width: 820px;
  margin: 0 auto 24px;
}
.pub-faq-box details {
  background: rgba(20, 13, 15, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0 18px;
  transition: border-color 0.15s ease;
}
.pub-faq-box details[open] {
  border-color: rgba(239, 68, 68, 0.38);
  background: rgba(26, 15, 18, 0.95);
}
.pub-faq-box summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
}
.pub-faq-box summary::-webkit-details-marker { display: none; }
.pub-faq-box summary i svg {
  width: 15px;
  height: 15px;
  color: #f87171;
  transition: transform 0.2s ease;
}
.pub-faq-box details[open] summary i svg { transform: rotate(180deg); }
.pub-faq-box details p {
  font-size: 12.5px;
  color: #b4a4a7;
  line-height: 1.55;
  margin: 0 0 15px 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pub-cta-strip {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.12), rgba(20, 13, 15, 0.95));
  border: 1px solid rgba(239, 68, 68, 0.28);
}
.pub-cta-strip b { display: block; font-size: 14px; color: #fff; }
.pub-cta-strip small { display: block; font-size: 12px; color: #b4a4a7; margin-top: 2px; }
.pub-cta-strip .btn { white-space: nowrap; text-decoration: none; }

/* Planes Public Grid */
.pub-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.pp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(24, 15, 17, 0.92) 0%, rgba(13, 9, 10, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}
.pp-card.tone-blue { --pp-ac: 56, 189, 248; --pp-hex: #38bdf8; }
.pp-card.tone-red { --pp-ac: 239, 68, 68;  --pp-hex: #ef4444; }
.pp-card.tone-amber { --pp-ac: 245, 158, 11; --pp-hex: #fbbf24; }
.pp-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, transparent, var(--pp-hex), transparent);
}
.pp-card.is-popular {
  border-color: rgba(239, 68, 68, 0.55);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.12) 0%, rgba(18, 11, 13, 0.96) 45%, #0d0809 100%);
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.25), 0 22px 48px rgba(239, 68, 68, 0.2);
}
.pp-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: var(--pp-hex);
  background: rgba(var(--pp-ac), 0.13);
  border: 1px solid rgba(var(--pp-ac), 0.32);
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 12px;
}
.pp-card h3 { font-size: 18px; font-weight: 700; color: #fff; margin: 0 0 6px 0; }
.pp-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.pp-price strong { font-size: 32px; font-weight: 800; color: #fff; }
.pp-price span { font-size: 12.5px; color: #9c8d90; }
.pp-top p { font-size: 12px; color: #a49598; line-height: 1.45; min-height: 34px; margin: 0; }
.pp-btn {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: rgba(var(--pp-ac), 0.12);
  border: 1px solid rgba(var(--pp-ac), 0.35);
  color: #fff;
  transition: all 0.15s ease;
}
.pp-btn:hover { background: rgba(var(--pp-ac), 0.24); border-color: var(--pp-hex); }
.pp-btn.primary {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  border-color: rgba(252, 165, 165, 0.4);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.35);
}
.pp-card ul {
  list-style: none;
  padding: 14px 0 0 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: grid;
  gap: 10px;
}
.pp-card ul li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: #ded4d6;
}
.pp-card ul li i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(var(--pp-ac), 0.15);
  color: var(--pp-hex);
  flex-shrink: 0;
}
.pp-card ul li i svg { width: 11px; height: 11px; }

@media (max-width: 960px) {
  .pub-features-grid, .pub-plans-grid { grid-template-columns: 1fr; }
  .pub-steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pub-cta-strip { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .pub-steps-grid { grid-template-columns: 1fr; }
}

.landing-footer a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cfc4c7 !important;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}
.landing-footer a .discord-svg {
  color: #5865F2;
  flex-shrink: 0;
}
.landing-footer a small {
  font-size: 11px;
  opacity: 0.7;
}
.landing-footer a:hover {
  color: #ffffff !important;
}
.pub-cta-strip .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* SUPPORT V2 PROFESSIONAL REDESIGN */
.support-layout {
  display: grid;
  grid-template-columns: minmax(460px, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  align-items: stretch;
}
.ticket-list {
  padding: 20px;
  border-radius: 16px;
}
.ticket-list .panel-head {
  margin-bottom: 14px;
}
.ticket-list .ticket-filters {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 4px;
  background: #0c090b !important;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  margin-bottom: 16px;
  overflow: visible;
  box-sizing: border-box;
}
.ticket-list .ticket-filters button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0%;
  gap: 5px;
  white-space: nowrap;
  min-width: 0;
  padding: 6px 6px;
  font-size: 11px;
  font-weight: 500;
  color: #9e9194;
  background: transparent !important;
  border: 1px solid transparent;
  border-radius: 8px;
  line-height: 1.2;
  margin: 0 !important;
  transition: all 0.14s ease !important;
}
.ticket-list .ticket-filters button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04) !important;
}
.ticket-list .ticket-filters button.active {
  color: #ffffff !important;
  font-weight: 600;
  background: rgba(239, 68, 68, 0.16) !important;
  border-color: rgba(239, 68, 68, 0.42) !important;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.15) !important;
}
.ticket-list .ticket-filters button i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ticket-list .ticket-filters button b {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #d6cdd0;
  margin: 0;
}
.ticket-list .ticket-filters button.active b {
  background: rgba(239, 68, 68, 0.3) !important;
  color: #ffffff;
}

.ticket-form {
  padding: 22px;
  border-radius: 16px;
}
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.topic-grid button {
  padding: 12px;
  border-radius: 11px;
  background: #110d0f !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: all 0.14s ease !important;
}
.topic-grid button:hover,
.topic-grid button.selected {
  border-color: rgba(239, 68, 68, 0.55) !important;
  background: rgba(239, 68, 68, 0.1) !important;
}
.topic-grid button svg {
  color: #f87171;
}
.ticket-form .dropzone {
  border-radius: 12px;
  background: #0e0a0c !important;
  border: 1px dashed rgba(239, 68, 68, 0.3);
}
.ticket-form .dropzone:hover {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.06) !important;
}
.ticket-form textarea {
  border-radius: 11px !important;
  background: #0e0a0c !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
}
.ticket-form textarea:focus {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}
@media (max-width: 1120px) {
  .support-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ticket-list {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100% !important;
}
.ticket-list .empty.mini {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 240px;
}
.ticket-sla-box {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 10px;
}
.ticket-sla-box > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.ticket-sla-box i {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #f87171;
  flex-shrink: 0;
}
.ticket-sla-box i svg {
  width: 14px;
  height: 14px;
}
.ticket-sla-box b {
  display: block;
  font-size: 12px;
  color: #f3ecee;
}
.ticket-sla-box small {
  display: block;
  font-size: 11px;
  color: #938588;
  margin-top: 1px;
}

/* ================================================================
   SECURITY CENTER v2 + AUTOFILL DARK FIX + APPEARANCE STUDIO
   ================================================================ */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #0f0f15 inset !important;
  box-shadow: 0 0 0 1000px #0f0f15 inset !important;
  -webkit-text-fill-color: #f4f2f7 !important;
  caret-color: #ff444f !important;
  transition: background-color 99999s ease-in-out 0s;
}

.security-profile {
  display: grid;
  grid-template-columns: auto minmax(150px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
}
.avatar.big-avatar.shield-on {
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.45), 0 0 22px rgba(34, 197, 94, 0.16);
}
.sec-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  width: fit-content;
}
.sec-role-badge.is-admin {
  background: rgba(255, 51, 61, 0.14);
  color: #ff8a90;
  border: 1px solid rgba(255, 51, 61, 0.3);
}
.sec-role-badge.is-user {
  background: rgba(41, 197, 223, 0.14);
  color: #7dd3fc;
  border: 1px solid rgba(41, 197, 223, 0.3);
}
.copyable-id {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: color 0.15s;
}
.copyable-id:hover { color: #ff7077; }
.copyable-id svg { width: 12px; height: 12px; opacity: 0.8; }

.sec-score-box {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid #262534;
}
.sec-gauge {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.sec-gauge svg {
  position: absolute;
  inset: 0;
  width: 64px;
  height: 64px;
  transform: rotate(-90deg);
}
.sec-gauge .gauge-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 5;
}
.sec-gauge .gauge-fill {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease;
}
.sec-gauge b {
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.sec-gauge b small { font-size: 11px; font-weight: 600; color: #a19ead; }
.score-copy { display: grid; gap: 2px; }
.score-copy small {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #8c8999;
}
.score-copy b { font-size: 13px; font-weight: 700; }
.score-copy span { font-size: 11px; color: #8c8999; }

.security-page .security-grid {
  display: grid;
  grid-template-columns: 1.32fr 1fr;
  gap: 16px;
  align-items: start;
}
.security-list,
.sec-activity-card,
.security-info { padding: 20px 22px; }
.security-list .security-card-head,
.sec-activity-card .security-card-head,
.security-info .security-card-head,
.security-form .security-card-head,
.twofactor-grid .security-card-head,
.appearance-preview .security-card-head {
  padding: 0;
  margin-bottom: 14px;
}
.sec-progress-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin: 4px 0 16px;
}
.sec-progress-bar > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.sec-events-list { display: grid; gap: 8px; }
.sec-event-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #121218;
  border: 1px solid #22212d;
}
.sec-event-item > i {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.sec-event-item.sec-ev-ok > i { background: rgba(34, 197, 94, 0.14); color: #4ade80; }
.sec-event-item.sec-ev-warning > i { background: rgba(245, 158, 11, 0.14); color: #fbbf24; }
.sec-event-item.sec-ev-danger > i { background: rgba(239, 68, 68, 0.14); color: #f87171; }
.sec-event-item b { display: block; font-size: 12px; color: #f3eff2; }
.sec-event-item small { font-size: 11px; color: #848194; }
.sec-events-empty {
  padding: 18px;
  border: 1px dashed #292836;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #7d7a8c;
  font-size: 12px;
}

/* Credentials Tab */
.sec-cred-banner {
  padding: 14px 20px;
  background: linear-gradient(90deg, rgba(255, 59, 71, 0.06), rgba(18, 18, 24, 0.96));
}
.sec-cred-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.sec-cred-meta small {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.7px;
  color: #858296;
  margin-bottom: 3px;
}
.sec-cred-meta b {
  font-size: 13px;
  color: #f3eff2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sec-cred-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.security-fields-col { display: grid; gap: 12px; }
.password-field {
  position: relative;
  display: flex;
  align-items: center;
}
.password-field input {
  width: 100%;
  padding-right: 40px;
}
.pw-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #8b889a;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.pw-eye:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.pw-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #9c98aa;
  margin-left: auto;
}
.pw-badge.lvl-1 { background: rgba(239, 68, 68, 0.16); color: #f87171; }
.pw-badge.lvl-2 { background: rgba(245, 158, 11, 0.16); color: #fbbf24; }
.pw-badge.lvl-3 { background: rgba(41, 197, 223, 0.16); color: #67e8f9; }
.pw-badge.lvl-4 { background: rgba(34, 197, 94, 0.16); color: #4ade80; }
.pw-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}
.pw-bars i {
  height: 5px;
  border-radius: 999px;
  background: #23222e;
  transition: background 0.25s ease;
}
.pw-bars.lvl-1 i:nth-child(1) { background: #ef4444; }
.pw-bars.lvl-2 i:nth-child(-n+2) { background: #f59e0b; }
.pw-bars.lvl-3 i:nth-child(-n+3) { background: #29c5df; }
.pw-bars.lvl-4 i { background: #22c55e; }
.pw-reqs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 11px;
  color: #7e7b8e;
}
.pw-reqs span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
}
.pw-reqs span::before { content: '○'; font-size: 11px; }
.pw-reqs span.met { color: #4ade80; font-weight: 600; }
.pw-reqs span.met::before { content: '✓'; }

/* 2FA QR & Recovery Codes */
.totp-qr-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px;
  border-radius: 12px;
  background: #111116;
  border: 1px solid #262534;
  margin-top: 12px;
}
.totp-qr-frame {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  background: #ffffff;
  color: #111;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.totp-qr-frame small {
  font-size: 11px;
  font-weight: 700;
  color: #4b5563;
  max-width: 152px;
  line-height: 1.3;
}
.totp-qr-steps { display: grid; gap: 14px; }
.totp-qr-steps small {
  display: block;
  font-size: 11px;
  color: #a29eae;
  margin-bottom: 6px;
}
.secret-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  background: #181820;
  border: 1px solid #292838;
  padding: 8px 10px;
  border-radius: 9px;
}
.secret-code-row code {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #f4f2f7;
}
.totp-confirm-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.totp-code-input {
  width: 148px;
  text-align: center;
  font-size: 18px !important;
  font-weight: 800;
  letter-spacing: 5px;
  font-family: ui-monospace, monospace;
}
.totp-start-box {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #121218;
  border: 1px dashed #2e2c3d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.totp-start-box p { margin: 0; font-size: 12px; color: #9c98aa; }
.totp-active-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 11px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.3);
  margin-top: 12px;
}
.totp-active-banner i {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.totp-active-banner b { display: block; font-size: 14px; color: #fff; }
.totp-active-banner p { margin: 3px 0 0; font-size: 12px; color: #b5b2c2; }
.totp-recovery-box {
  margin-top: 14px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.28);
  display: grid;
  gap: 12px;
}
.totp-rec-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.totp-rec-head b {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #fcd34d;
}
.totp-rec-head p { margin: 4px 0 0; font-size: 11px; color: #c7c3d2; }
.totp-rec-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.totp-rec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.totp-rec-grid code {
  text-align: center;
  padding: 8px 6px;
  border-radius: 8px;
  background: #111116;
  border: 1px solid #2d2a3a;
  font-family: ui-monospace, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fde68a;
}
.totp-manage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
.totp-sub-card {
  padding: 14px 16px;
  border-radius: 11px;
  background: #121218;
  border: 1px solid #252433;
  display: grid;
  gap: 8px;
}
.totp-sub-card.danger-zone {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.04);
}
.totp-sub-card h4 {
  margin: 0;
  font-size: 13px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}
.totp-sub-card p { margin: 0 0 4px; font-size: 11px; color: #8c8999; }
.totp-sub-card .password-field { flex: 1; min-width: 140px; }
.totp-sub-card input {
  background: #0e0e13;
  border: 1px solid #2a2937;
  border-radius: 8px;
  color: #fff;
  padding: 8px 36px 8px 10px;
  font-size: 12px;
  outline: none;
}
.totp-sub-card input:focus { border-color: #ff333d; }

/* Security KPIs, Sessions & Blacklist */
.sec-kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.sec-kpi-strip .panel {
  padding: 14px 18px;
  display: grid;
  gap: 4px;
}
.sec-kpi-strip small {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.7px;
  color: #8c8999;
}
.sec-kpi-strip b { font-size: 22px; font-weight: 800; color: #fff; line-height: 1.15; }
.sec-kpi-strip span { font-size: 11px; color: #8c8999; }

.sessions-list .session-row {
  display: grid;
  grid-template-columns: auto minmax(175px, 1.2fr) minmax(240px, 1.8fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
}
.session-row > i {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #262534;
  display: grid;
  place-items: center;
  color: #d8d4e0;
}
.session-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.session-title em {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
}
.session-main small code { color: #a7a3b4; }
.session-row dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.session-row dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: #848194; }
.session-row dd { margin: 2px 0 0; font-size: 12px; font-weight: 600; color: #e5e2ee; }
.session-lock-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.22);
}

.sec-bl-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.bl-reason-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 59, 71, 0.1);
  color: #fda4af;
  font-size: 11px;
  border: 1px solid rgba(255, 59, 71, 0.22);
}

/* Appearance Studio & Dual Preview */
.appearance-preview,
.appearance-controls-top,
.appearance-picker { padding: 20px 22px; }
.dual-live-preview {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 14px;
}
.appearance-preview .live-preview {
  position: relative;
  isolation: isolate;
  height: 118px;
  border-radius: 12px;
  border: 1px solid #2b2938;
  overflow: hidden;
  cursor: pointer;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.03), #0e0e13 72%);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.appearance-preview .live-preview.is-editing {
  border-color: var(--user-fx, #ff3b47);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--user-fx, #ff3b47) 40%, transparent), 0 10px 28px rgba(0, 0, 0, 0.45);
}
.live-preview .fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}
.live-header-box b {
  position: relative;
  z-index: 2;
  padding: 14px 16px;
  display: block;
  font-size: 13px;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}
.lp-badge {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.7px;
  color: #b7b3c4;
}
.lp-badge span {
  background: var(--user-fx, #ff3b47);
  color: #fff;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
}
.live-profile-box aside {
  position: relative;
  z-index: 2;
  margin: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(14, 14, 19, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}
.live-profile-box aside b { display: block; font-size: 13px; color: #fff; }
.live-profile-box aside small { font-size: 11px; color: #9c98aa; }
.preset-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #22212e;
}
.preset-strip > span {
  font-size: 11px;
  font-weight: 700;
  color: #a39fb0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 4px;
}
.preset-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #14141b;
  border: 1px solid #2a2938;
  color: #e8e5ef;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
.preset-pill i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.preset-pill:hover { border-color: rgba(255, 255, 255, 0.3); transform: translateY(-1px); }

.appearance-controls-top {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr 0.9fr;
  gap: 18px;
  align-items: start;
}
.ctrl-block h3 { margin: 0 0 10px; font-size: 13px; color: #fff; font-weight: 700; }
.ctrl-block h3 small { color: #8c8999; font-weight: 600; font-size: 11px; }
.color-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.color-row button[data-action="appearance-color"] {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}
.color-row button[data-action="appearance-color"].active {
  border-color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
}
.color-custom-btn {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #1b1a24;
  border: 1px dashed #47445a;
  display: grid;
  place-items: center;
  color: #ddd;
  cursor: pointer;
  overflow: hidden;
}
.color-custom-btn input[type="color"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.sliders-block { display: grid; gap: 12px; }
.sliders-block label { display: grid; gap: 6px; font-size: 11px; font-weight: 700; color: #c7c3d2; }
.sliders-block label > span { display: flex; justify-content: space-between; align-items: center; }
.sliders-block label b { color: #fff; font-family: ui-monospace, monospace; }
.sliders-block input[type="range"] { width: 100%; accent-color: var(--user-fx, #ff3b47); cursor: pointer; }
.target-toggle-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  background: #101015;
  border: 1px solid #262534;
  border-radius: 9px;
  margin-bottom: 10px;
}
.target-toggle-row button {
  border: 0;
  background: transparent;
  color: #9c98aa;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 8px;
  border-radius: 6px;
  cursor: pointer;
}
.target-toggle-row button.active { background: #ff333d; color: #fff; }
.toggle-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 9px;
  background: #121218;
  border: 1px solid #262534;
  cursor: pointer;
}
.toggle-line span b { display: block; font-size: 12px; color: #fff; }
.toggle-line span small { font-size: 11px; color: #8c8999; }
.toggle-line input[type="checkbox"] { width: 17px; height: 17px; accent-color: #ff333d; cursor: pointer; }

.picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.picker-head h3 { margin: 0; font-size: 15px; color: #fff; }
.picker-head p { margin: 3px 0 0; font-size: 11px; color: #8c8999; }
.fx-cat-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.fx-cat-tabs button {
  border: 1px solid #272636;
  background: #13131a;
  color: #a5a1b3;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.fx-cat-tabs button.active {
  background: rgba(255, 51, 61, 0.16);
  border-color: rgba(255, 51, 61, 0.5);
  color: #fff;
}
.effect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 12px;
}
.effect-grid button {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #101016;
  border: 1px solid #262534;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.effect-grid button:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}
.effect-grid button.active {
  border-color: var(--user-fx, #ff3b47);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--user-fx, #ff3b47) 45%, transparent), 0 8px 24px rgba(0, 0, 0, 0.45);
}
.effect-grid .fx-canvas {
  width: 100%;
  height: 112px;
  display: block;
  background: radial-gradient(circle at 50% 45%, #171722 0%, #0b0b10 100%);
}
.fx-meta {
  padding: 10px 12px;
  display: grid;
  gap: 2px;
  border-top: 1px solid #1e1d29;
  width: 100%;
}
.fx-meta b { font-size: 12px; color: #fff; font-weight: 700; }
.fx-meta small { font-size: 11px; color: #8c8999; line-height: 1.35; }
.fx-active-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(16, 16, 22, 0.85);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
  backdrop-filter: blur(6px);
}

@media (max-width: 1120px) {
  .security-profile { grid-template-columns: auto 1fr; }
  .security-page .security-grid,
.sec-cred-top-grid,
.dual-live-preview,
.appearance-controls-top,
.totp-manage-grid { grid-template-columns: 1fr; }
  .sessions-list .session-row { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 760px) {
  .sec-kpi-strip,
.sec-cred-meta,
.totp-qr-layout { grid-template-columns: 1fr; }
  .totp-rec-grid { grid-template-columns: repeat(2, 1fr); }
  .session-row dl { grid-template-columns: 1fr; }
}

/* ================================================================
   SECURITY CSS BLEED FIXES + EQUAL HEIGHTS + BRAND DOWNLOAD ICONS
   ================================================================ */
.security-page .btn,
.security-form > .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}
.security-form > .btn {
  justify-self: end;
  width: auto;
  margin: 4px 0 0 auto;
}
.security-page .btn .svg-icon {
  position: static;
  width: 15px !important;
  height: 15px !important;
  flex-shrink: 0;
  display: inline-block;
}
.password-card > label { margin-bottom: 0; }
.password-field .pw-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
}
.password-field .pw-eye svg,
.password-field .pw-eye .svg-icon {
  position: static;
  right: auto;
  top: auto;
  width: 15px !important;
  height: 15px !important;
  color: inherit !important;
}
.password-strength > .pw-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 0 0 10px 0;
}
.password-strength > .pw-reqs {
  display: flex;
  grid-template-columns: none;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
}

.security-page .security-grid {
  align-items: stretch;
}
.security-page .security-list,
.security-page .sec-activity-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px 22px;
}
.security-page .sec-events-list {
  flex: 1;
  align-content: start;
}
.security-page .security-info {
  padding: 20px 22px;
  margin-top: 0;
}
.security-page .security-info ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  line-height: 1.45;
}
.security-page .security-info ol li {
  position: static;
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  background: #131318;
  border: 1px solid #23222e;
  border-radius: 10px;
  font-size: 12px;
  color: #d4c4c4;
}
.security-page .security-info ol li::before,
.security-page .security-info li:before {
  position: static;
  left: auto;
  top: auto;
  flex: none;
  margin-top: 1px;
}

.security-page .auth-app a.auth-dl {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  background: #181822;
  border: 1px solid #2d2c3c;
  color: #f1eef7;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.security-page .auth-app a.auth-dl:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: #222230;
  transform: translateY(-1px);
}
.security-page .auth-dl.android svg { color: #3ddc84; width: 15px; height: 15px; }
.security-page .auth-dl.ios svg { color: #f8fafc; width: 14px; height: 14px; }

.security-page .appearance-preview {
  padding: 20px 22px;
}
.security-page .appearance-preview > div.preset-strip:last-child {
  height: auto;
  border: 0;
  border-top: 1px solid #22212e;
  background: transparent !important;
  border-radius: 0;
  margin-top: 14px;
  padding: 14px 0 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.security-page .appearance-preview .live-profile-box aside {
  width: auto;
  height: auto;
  margin: 14px;
  padding: 10px 12px;
  margin-left: 14px;
}
.security-page .sessions-list .session-row > div { flex: initial; }
.security-page .sessions-list .session-row > i {
  background: rgba(255, 255, 255, 0.04) !important;
}

@media (max-width: 1120px) {
  .security-page .security-info ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .security-page .security-info ol { grid-template-columns: 1fr; }
  .security-page .auth-app { grid-template-columns: 1fr; gap: 8px; }
  .security-page .auth-app a.auth-dl { display: inline-flex; width: fit-content; }
}

/* ================================================================
   SECURITY PROFILE HEADER COMPACT 1-ROW FIX
   ================================================================ */
.security-page .security-profile {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
}
.security-page .security-identity {
  min-width: 0;
  padding-right: 4px;
}
.security-page .security-profile .account-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  justify-content: start;
  align-items: stretch;
  gap: 8px;
  margin-left: 0;
  padding-left: 16px;
  border-left: 1px solid #262534;
}
.security-page .security-profile .account-meta > span {
  padding: 8px 11px;
  min-width: 0;
  white-space: nowrap;
}
.security-page .sec-score-box {
  justify-self: end;
  padding: 9px 13px;
  gap: 11px;
}
.security-page .score-copy {
  min-width: 0;
}
.security-page .sec-gauge {
  width: 56px;
  height: 56px;
}
.security-page .sec-gauge svg {
  width: 56px;
  height: 56px;
}

@media (max-width: 1180px) {
  .security-page .security-profile {
    grid-template-columns: auto 1fr auto;
  }
  .security-page .security-profile .account-meta {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-left: 0;
    border-top: 1px solid #262534;
    padding-left: 0;
    padding-top: 12px;
  }
}
@media (max-width: 720px) {
  .security-page .security-profile .account-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .security-page .sec-score-box {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
}

/* ================================================================
   OVERVIEW CHART CARD BALANCED LAYOUT & METRICS STRIP
   ================================================================ */
.exec-chart-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exec-chart-foot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #22212b;
}
.exec-cf-stat {
  padding: 9px 11px;
  border-radius: 9px;
  background: #101015;
  border: 1px solid #21202b;
  display: grid;
  gap: 3px;
}
.exec-cf-stat small {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #7e7b8d;
}
.exec-cf-stat b {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.exec-cf-stat span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #8c8999;
}
.exec-cf-stat span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
@media (max-width: 720px) {
  .exec-chart-foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ================================================================
   COMPACT PROPORTIONAL OVERVIEW MIDDLE ROW (CHART + DONUT)
   ================================================================ */

.exec-chart-foot {
  padding-top: 10px;
  gap: 8px;
}
.exec-cf-stat {
  padding: 7px 10px;
}
.exec-cf-stat b { font-size: 14px; }
.exec-donut-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.exec-donut-body {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 18px;
  padding: 6px 0;
  margin: auto 0;
}

.exec-donut-body .donut {
  width: 114px;
  height: 114px;
}
.exec-donut-body .donut:before {
  inset: 19px;
}
.exec-donut-body .donut span b { font-size: 21px; }
.exec-donut-body .exec-legend {
  padding-top: 0;
  border-top: 0;
  gap: 7px;
}
.exec-event-row {
  padding: 9px 12px;
}
@media (max-width: 720px) {
  .exec-donut-body { grid-template-columns: 1fr; }
}

.preset-strip { gap: 6px !important; }
.preset-pill { padding: 5px 10px; font-size: 11px; }

/* ================================================================
   UNIFIED STATUS PILLS (TABLE + CARDS + DETAIL MODAL)
   ================================================================ */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25px;
  white-space: nowrap;
  line-height: 1;
}
.status.status-active,
.license-card > header em.active {
  background: rgba(16, 185, 129, 0.14) !important;
  border: 1px solid rgba(52, 211, 153, 0.34) !important;
  color: #34d399 !important;
}
.status.status-pending,
.license-card > header em.pending {
  background: rgba(56, 189, 248, 0.13) !important;
  border: 1px solid rgba(96, 165, 250, 0.34) !important;
  color: #7dd3fc !important;
}
.status.status-paused,
.license-card > header em.paused {
  background: rgba(245, 158, 11, 0.14) !important;
  border: 1px solid rgba(251, 191, 36, 0.34) !important;
  color: #fbbf24 !important;
}
.status.status-banned,
.status.status-expired,
.status.status-revoked,
.license-card > header em.banned,
.license-card > header em.expired,
.license-card > header em.revoked {
  background: rgba(239, 68, 68, 0.14) !important;
  border: 1px solid rgba(248, 113, 113, 0.34) !important;
  color: #fca5a5 !important;
}
.license-card:has(em.pending) { border-left-color: #38bdf8 !important; }

/* ================================================================
   LICENSES EXECUTIVE TABLE VIEW V2
   ================================================================ */
.records-toolbar ~ .lic-table-panel,
.lic-table-panel {
  min-height: auto;
  padding: 0;
  background: linear-gradient(180deg, #15151d 0%, #101016 100%) !important;
  border: 1px solid #262535 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}
.lic-table-scroll {
  width: 100%;
  overflow-x: auto;
}
.lic-data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 960px;
}
.lic-data-table thead th {
  background: #13131b !important;
  border-bottom: 1px solid #252433;
  padding: 13px 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.75px;
  color: #8b879c;
  text-transform: uppercase;
  white-space: nowrap;
}
.lic-data-table tbody td {
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  vertical-align: middle;
  color: #e6e3ee;
}
.lic-data-table tbody tr:last-child td {
  border-bottom: 0;
}
.lic-data-table tbody tr.lic-row {
  transition: background 0.16s ease, box-shadow 0.16s ease;
}
.lic-data-table tbody tr.lic-row.st-active td:first-child { box-shadow: inset 3px 0 0 #10b981; }
.lic-data-table tbody tr.lic-row.st-pending td:first-child { box-shadow: inset 3px 0 0 #38bdf8; }
.lic-data-table tbody tr.lic-row.st-paused td:first-child { box-shadow: inset 3px 0 0 #f59e0b; }
.lic-data-table tbody tr.lic-row.st-banned td:first-child,
.lic-data-table tbody tr.lic-row.st-expired td:first-child,
.lic-data-table tbody tr.lic-row.st-revoked td:first-child { box-shadow: inset 3px 0 0 #ef4444; }
.lic-data-table tbody tr.lic-row:hover {
  background: rgba(255, 255, 255, 0.032) !important;
}
.lic-data-table tbody tr.row-selected {
  background: rgba(240, 41, 51, 0.085) !important;
}
.lic-data-table .col-check {
  width: 42px;
  text-align: center;
  padding-left: 16px;
  padding-right: 8px;
}
.lic-data-table .col-actions {
  text-align: right;
  padding-right: 16px;
  white-space: nowrap;
}
.lic-data-table thead th.col-actions {
  text-align: right;
}

.lic-cell-key {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 230px;
}
.lic-key-ico {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: none;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: #7dd3fc;
}
.lic-key-ico .svg-icon { width: 15px; height: 15px; }
.lic-key-ico.st-active { background: rgba(16, 185, 129, 0.12); border-color: rgba(52, 211, 153, 0.28); color: #34d399; }
.lic-key-ico.st-paused { background: rgba(245, 158, 11, 0.12); border-color: rgba(251, 191, 36, 0.28); color: #fbbf24; }
.lic-key-ico.st-banned,
.lic-key-ico.st-expired,
.lic-key-ico.st-revoked { background: rgba(239, 68, 68, 0.12); border-color: rgba(248, 113, 113, 0.28); color: #f87171; }
.lic-key-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.lic-key-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lic-key-top code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 700;
  color: #fbf7f8;
  background: #1a1924;
  border: 1px solid #2b2a3b;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.45px;
}
.lic-key-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #827e93;
}
.lic-key-sub > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.lic-key-sub .svg-icon { width: 11px; height: 11px; opacity: 0.75; }
.lic-note-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cfc8d4;
  padding: 1px 7px;
  border-radius: 999px;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lic-cell-prod,
.lic-cell-dur {
  display: grid;
  gap: 4px;
}
.lic-prod-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #f4eff2;
}
.lic-prod-chip .svg-icon { width: 13px; height: 13px; color: #fb5a62; }
.lic-policy-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 11px;
  font-weight: 600;
  color: #938fa5;
  background: #181822;
  border: 1px solid #272636;
  border-radius: 5px;
  padding: 2px 6px;
}
.lic-policy-tag.mode-free { color: #7dd3fc; border-color: rgba(56, 189, 248, 0.22); }
.lic-policy-tag.mode-multiple { color: #c4b5fd; border-color: rgba(167, 139, 250, 0.22); }

.lic-cell-dur b { font-size: 12.5px; font-weight: 700; color: #f6f2f4; }
.lic-cell-dur small { font-size: 11px; color: #837f93; }

.lic-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px 4px 5px;
  border-radius: 999px;
  font-size: 11.5px;
}
.lic-user-pill.linked {
  background: rgba(255, 51, 61, 0.1);
  border: 1px solid rgba(255, 88, 96, 0.25);
  color: #f9ecec;
}
.lic-user-pill.linked i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f02933, #8f141a);
  color: #fff;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.lic-user-pill.is-empty {
  padding: 4px 10px;
  background: #171720;
  border: 1px dashed #2b2a3a;
  color: #7d798f;
  font-size: 11px;
  white-space: nowrap;
}
.lic-user-pill.is-empty .svg-icon { width: 12px; height: 12px; opacity: 0.7; }

.lic-cell-dev {
  display: grid;
  gap: 5px;
  min-width: 140px;
}
.lic-dev-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
}
.lic-dev-name {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  max-width: 125px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lic-dev-name .svg-icon { width: 12px; height: 12px; flex: none; }
.lic-dev-name.bound { color: #eef2ff; }
.lic-dev-name.bound .svg-icon { color: #34d399; }
.lic-dev-name.unbound { color: #7e7a8f; font-weight: 500; }
.lic-dev-slot {
  font-style: normal;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  color: #aba6bc;
  background: #191824;
  border: 1px solid #29283a;
  padding: 1px 6px;
  border-radius: 5px;
}
.lic-dev-bar {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: #1f1e2c;
  overflow: hidden;
}
.lic-dev-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #10b981, #38bdf8);
  border-radius: 999px;
}

.lic-tbl-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.lic-act-btn {
  height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #2b2a3c;
  background: #191824;
  color: #e2dfec;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.14s ease;
}
.lic-act-btn .svg-icon { width: 12px; height: 12px; }
.lic-act-btn:hover { background: #242334; border-color: #46435e; color: #fff; }
.lic-act-btn.detail {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(96, 165, 250, 0.28);
  color: #bae6fd;
}
.lic-act-btn.detail:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(125, 211, 252, 0.48);
  color: #fff;
}
.lic-act-btn.days {
  background: rgba(250, 88, 96, 0.12);
  border-color: rgba(253, 136, 142, 0.28);
  color: #ffc5c8;
}
.lic-act-btn.days:hover {
  background: rgba(250, 88, 96, 0.24);
  border-color: rgba(255, 179, 183, 0.5);
  color: #fff;
}
.lic-act-btn.icon-only { width: 31px; padding: 0; }
.lic-act-btn.pause:hover { border-color: rgba(251, 191, 36, 0.4); color: #fbbf24; }
.lic-act-btn.resume { color: #6ee7b7; border-color: rgba(52, 211, 153, 0.28); }
.lic-act-btn.danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(248, 113, 113, 0.26);
  color: #fca5a5;
}
.lic-act-btn.danger:hover {
  background: #ef4444;
  border-color: #f87171;
  color: #fff;
}

.lic-table-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 11px 16px;
  background: #121219;
  border-top: 1px solid #222130;
  font-size: 11px;
  color: #8c889e;
}
.lic-foot-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.lf-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lf-item b { color: #f1edf4; font-weight: 700; }
.lf-item .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.lf-item .dot.green { background: #10b981; }
.lf-item .dot.sky { background: #38bdf8; }
.lf-item .dot.amber { background: #f59e0b; }
.lf-item .dot.muted { background: #7e7a90; }
.lic-foot-count b { color: #f6f2f4; }

/* ================================================================
   LICENSE DETAIL INSPECTOR MODAL V2 (.ld-v2)
   ================================================================ */
.modal-card.license-detail-modal.ld-v2 {
  width: min(1040px, 95vw);
  max-height: 92vh;
  overflow-y: auto;
  padding: 22px;
  background: linear-gradient(180deg, #16161f 0%, #101016 100%) !important;
  border: 1px solid #2b2a3c !important;
}
.modal-card.ld-v2 > .close {
  top: 18px;
  right: 18px;
  z-index: 3;
}
.ld-wrap {
  display: grid;
  gap: 14px;
}
.ld-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 44px 14px 0;
  border-bottom: 1px solid #252433 !important;
  flex-wrap: wrap;
}
.ld-hero-ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.34);
  color: #7dd3fc;
}
.ld-hero-ico .svg-icon { width: 20px; height: 20px; }
.ld-hero-ico.st-active { background: rgba(16, 185, 129, 0.14); border-color: rgba(52, 211, 153, 0.34); color: #34d399; }
.ld-hero-ico.st-paused { background: rgba(245, 158, 11, 0.14); border-color: rgba(251, 191, 36, 0.34); color: #fbbf24; }
.ld-hero-ico.st-banned,
.ld-hero-ico.st-expired,
.ld-hero-ico.st-revoked { background: rgba(239, 68, 68, 0.14); border-color: rgba(248, 113, 113, 0.34); color: #fca5a5; }
.ld-hero-title {
  flex: 1;
  min-width: 220px;
  display: grid !important;
  gap: 6px !important;
}
.ld-key-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ld-key-line h2 {
  margin: 0;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #ffffff;
}
.ld-inline-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #1c1b28;
  border: 1px solid #2e2d40;
  color: #d6d2e0;
  border-radius: 7px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.ld-inline-copy:hover { background: #262536; color: #fff; border-color: #4c4968; }
.ld-inline-copy .svg-icon { width: 12px; height: 12px; }
.ld-hero-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.ld-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #181823;
  border: 1px solid #29283a;
  color: #b8b3c7;
  font-size: 11px;
  font-weight: 600;
}
.ld-chip .svg-icon { width: 11px; height: 11px; color: #fb5a62; }
.ld-chip.note { color: #fde68a; border-color: rgba(251, 191, 36, 0.25); background: rgba(245, 158, 11, 0.08); }
.ld-chip.note .svg-icon { color: #fbbf24; }
.ld-hero-right { margin-left: auto; }

.ld-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.ld-kpi {
  background: #13131b;
  border: 1px solid #242333;
  border-radius: 11px;
  padding: 11px 13px;
  display: grid;
  gap: 4px;
}
.ld-kpi small {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.65px;
  color: #7d7990;
}
.ld-kpi b {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
}
.ld-kpi b small { font-size: 12px; color: #8c889e; font-weight: 700; }
.ld-kpi span { font-size: 11px; color: #8e8a9f; }
.ld-kpi.tone-active b { color: #6ee7b7; }
.ld-kpi.tone-paused b { color: #fcd34d; }
.ld-kpi.tone-danger b { color: #fca5a5; }
.ld-bar {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: #201f2d;
  overflow: hidden;
  margin-top: 2px;
}
.ld-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #10b981);
}

.ld-toolbar {
  background: #12121a;
  border: 1px solid #242333;
  border-radius: 11px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.ld-quick-ops {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ld-op-btn {
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  border-radius: 8px;
  background: #1a1925;
  border: 1px solid #2c2b3e;
  color: #e6e2ef;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.14s ease;
}
.ld-op-btn .svg-icon { width: 12px; height: 12px; }
.ld-op-btn:hover:not(:disabled) { background: #242334; border-color: #494664; color: #fff; }
.ld-op-btn.accent { background: rgba(16, 185, 129, 0.14); border-color: rgba(52, 211, 153, 0.34); color: #6ee7b7; }
.ld-op-btn.danger-soft { color: #fca5a5; border-color: rgba(248, 113, 113, 0.25); background: rgba(239, 68, 68, 0.08); }
.ld-op-btn.danger-soft:hover:not(:disabled) { background: rgba(239, 68, 68, 0.2); border-color: rgba(248, 113, 113, 0.45); color: #fff; }

.ld-note-form {
  display: flex !important;
  align-items: flex-end;
  gap: 8px !important;
  margin: 0 !important;
  flex: 1;
  min-width: 280px;
  justify-content: flex-end;
}
.ld-note-form label {
  display: grid;
  gap: 3px;
  margin: 0;
}
.ld-note-form label span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #827e94;
  text-transform: uppercase;
}
.ld-note-input { flex: 1; max-width: 240px; }
.ld-maxdev-input { width: 76px; }
.ld-note-form input {
  min-height: 32px;
  height: 32px;
  padding: 0 9px;
  font-size: 11.5px;
  background: #191922 !important;
  border: 1px solid #2d2c3d;
  border-radius: 7px;
}
.ld-note-form .btn.compact {
  height: 32px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
}

.ld-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 14px;
  align-items: start;
}
.ld-grid > section,
.ld-aside > section,
.ld-panel {
  min-height: 0;
  max-height: none;
  background: #13131b !important;
  border: 1px solid #242333;
  border-radius: 12px;
  padding: 15px;
}
.ld-aside {
  display: grid !important;
  gap: 14px !important;
}
.ld-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #21202f;
}
.ld-panel-head h4 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.7px;
  color: #a9a4ba;
}
.ld-panel-head h4 .svg-icon { width: 13px; height: 13px; color: #fb5a62; }
.ld-count-pill {
  background: #1b1a27;
  border: 1px solid #2d2c3e;
  color: #dcd8e6;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
}

.ld-timeline {
  display: grid;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}
.ld-tl-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  background: #171722;
  border: 1px solid #252435;
}
.ld-tl-dot {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: none;
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
}
.ld-tl-dot .svg-icon { width: 13px; height: 13px; }
.ld-tl-item.tone-active .ld-tl-dot { background: rgba(16, 185, 129, 0.14); color: #34d399; }
.ld-tl-item.tone-paused .ld-tl-dot { background: rgba(245, 158, 11, 0.14); color: #fbbf24; }
.ld-tl-item.tone-danger .ld-tl-dot { background: rgba(239, 68, 68, 0.14); color: #fca5a5; }
.ld-tl-item.tone-accent .ld-tl-dot { background: rgba(250, 88, 96, 0.14); color: #ffa3a8; }
.ld-tl-body { flex: 1; min-width: 0; display: grid; gap: 5px; }
.ld-tl-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.ld-tl-top b { font-size: 12px; color: #f4f1f7; }
.ld-tl-top time { font-size: 11px; color: #7e7a90; }
.ld-tl-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ld-tl-chips span {
  font-size: 11px;
  color: #bdb8cc;
  background: #12121a;
  border: 1px solid #262536;
  border-radius: 5px;
  padding: 2px 7px;
}

.ld-sessions-box {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #262536;
}
.ld-sessions-box h5 {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.7px;
  color: #827e94;
}
.ld-sessions-list { display: grid; gap: 6px; }
.ld-sess-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 7px;
  background: #161620;
  border: 1px solid #232232;
  font-size: 11px;
}
.ld-sess-row small { margin-left: auto; color: #848096; font-size: 11px; }
.ld-sess-dot { width: 7px; height: 7px; border-radius: 50%; background: #6b7280; }
.ld-sess-dot.on { background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.6); }

.ld-empty-device {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: 10px;
  background: #161621;
  border: 1px dashed #2e2d40;
}
.ld-ed-ico {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #1c1b28;
  border: 1px solid #2c2b3d;
  display: grid;
  place-items: center;
  color: #7dd3fc;
  flex: none;
}
.ld-ed-ico .svg-icon { width: 17px; height: 17px; }
.ld-empty-device b { display: block; font-size: 12.5px; color: #f4f1f7; margin-bottom: 3px; }
.ld-empty-device p { margin: 0; font-size: 11px; color: #8e8a9f; line-height: 1.45; }

.ld-device-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #171722;
  border: 1px solid #262537;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.ld-device-card:last-of-type { margin-bottom: 0; }
.ld-dev-main { display: flex; align-items: flex-start; gap: 10px; }
.ld-dev-ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: #34d399;
  display: grid;
  place-items: center;
  flex: none;
}
.ld-dev-ico .svg-icon { width: 15px; height: 15px; }
.ld-dev-main b { display: block; font-size: 12.5px; color: #fff; }
.ld-dev-main small { display: block; font-size: 11px; color: #8b879c; margin-top: 2px; }
.ld-hwid-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  padding: 2px 7px;
  border-radius: 5px;
  background: #111118;
  border: 1px solid #252434;
}
.ld-hwid-chip code { font-family: ui-monospace, Consolas, monospace; font-size: 11px; color: #a7f3d0; }
.ld-dev-btns { display: flex; gap: 6px; margin-left: auto; }
.ld-revoked-note { display: block; margin-top: 8px; font-size: 11px; color: #7f7b91; }

.ld-specs {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 0 !important;
}
.ld-specs > div {
  background: #171721;
  border: 1px solid #232231;
  border-radius: 8px;
  padding: 8px 10px;
}
.ld-specs dt { font-size: 11px; color: #7e7a90; text-transform: uppercase; letter-spacing: 0.45px; font-weight: 700; }
.ld-specs dd { margin: 4px 0 0; font-size: 12px; font-weight: 700; color: #f3eff4; word-break: break-word; }
.ld-specs dd code { font-family: ui-monospace, Consolas, monospace; font-size: 11px; color: #a9a4ba; }

.ld-empty-mini {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border-radius: 9px;
  background: #161620;
  border: 1px dashed #2b2a3b;
  color: #848096;
  font-size: 11.5px;
}
.ld-empty-mini .svg-icon { width: 15px; height: 15px; }

.ld-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
  padding-top: 14px;
  border-top: 1px solid #232231;
  flex-wrap: wrap;
}
.ld-footer-right { display: flex; align-items: center; gap: 8px; }
.ld-footer .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ld-footer .btn .svg-icon { width: 14px; height: 14px; }

@media (max-width: 880px) {
  .ld-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ld-grid { grid-template-columns: 1fr; }
  .ld-note-form { min-width: 100%; justify-content: flex-start; }
  .ld-note-input { max-width: none; }
}

/* ================================================================
   SOPORTE CHROMATIC CARDS & BALANCED CREATOR RESOLUTION DESK
   ================================================================ */
.sp-card {
  position: relative;
  background: #121217 !important;
  border: 1px solid #23222d !important;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.32) !important;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important;
}
.sp-card::before,
.sp-card::after {
  display: none;
  content: none;
}
.sp-card:hover {
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.42) !important;
}

/* Chromatic Accents */
.sp-red { --sp-color: #ff3b47; --sp-glow: rgba(255, 59, 71, 0.16); --sp-soft: rgba(255, 59, 71, 0.1); --sp-border: rgba(255, 59, 71, 0.32); }
.sp-orange { --sp-color: #f97316; --sp-glow: rgba(249, 115, 22, 0.16); --sp-soft: rgba(249, 115, 22, 0.1); --sp-border: rgba(249, 115, 22, 0.32); }
.sp-yellow { --sp-color: #eab308; --sp-glow: rgba(234, 179, 8, 0.16); --sp-soft: rgba(234, 179, 8, 0.1); --sp-border: rgba(234, 179, 8, 0.32); }
.sp-purple { --sp-color: #d946ef; --sp-glow: rgba(217, 70, 239, 0.16); --sp-soft: rgba(217, 70, 239, 0.1); --sp-border: rgba(217, 70, 239, 0.32); }
.sp-cyan { --sp-color: #06b6d4; --sp-glow: rgba(6, 182, 212, 0.16); --sp-soft: rgba(6, 182, 212, 0.1); --sp-border: rgba(6, 182, 212, 0.32); }
.sp-green { --sp-color: #10b981; --sp-glow: rgba(16, 185, 129, 0.16); --sp-soft: rgba(16, 185, 129, 0.1); --sp-border: rgba(16, 185, 129, 0.32); }

.sp-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--sp-soft, rgba(255, 59, 71, 0.12));
  border: 1px solid var(--sp-border, rgba(255, 59, 71, 0.32));
  color: var(--sp-color, #ff3b47);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 12px var(--sp-glow, rgba(255, 59, 71, 0.18));
}
.sp-icon-box .svg-icon { width: 18px; height: 18px; }

.sp-cat-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--sp-color, #ff3b47);
  background: var(--sp-soft, rgba(255, 59, 71, 0.1));
  border: 1px solid var(--sp-border, rgba(255, 59, 71, 0.28));
  padding: 3px 8px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
}
.sp-num-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  color: #848094;
  background: #1d1c26;
  border: 1px solid #2e2d3b;
  padding: 2px 7px;
  border-radius: 5px;
  margin-left: auto;
}

/* Support Stats Override */
.support-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
@media (max-width: 900px) {
  .support-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Support Benefits Chromatic Override */
.support-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
@media (max-width: 1000px) {
  .support-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.sp-benefit-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-benefit-card h3 {
  margin: 2px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.sp-benefit-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #9e9aad;
}

/* Balanced Support Two-Column Layout (EXACT 1:1 HEIGHT, ZERO WASTED SPACE!) */
.support-layout {
  display: grid;
  grid-template-columns: 460px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 980px) {
  .support-layout { grid-template-columns: 1fr; }
}
.ticket-list {
  border-radius: 12px;
  background: #14131b !important;
  border: 1px solid #262533 !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  box-sizing: border-box;
}
.ticket-items-scroll {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 4px;
  flex: 1;
}
.ticket-items-scroll::-webkit-scrollbar { width: 5px; }
.ticket-items-scroll::-webkit-scrollbar-track { background: transparent; }
.ticket-items-scroll::-webkit-scrollbar-thumb { background: #2c2b3a; border-radius: 4px; }
.ticket-items-scroll .ticket-item {
  margin-bottom: 0;
  padding: 12px 14px;
}
.ticket-desc-clamp {
  margin: 6px 0 !important;
  line-height: 1.4 !important;
  font-size: 12.5px;
  color: #b4b0c2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ticket-sla-box {
  margin-top: auto;
}
.admin-resolution-desk {
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  min-height: 540px;
  box-sizing: border-box;
}
.admin-res-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #242332;
  flex-wrap: wrap;
}
.res-head-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.res-head-meta h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
}
.res-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-client-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 9px;
  background: #100f16;
  border: 1px solid #252433;
  flex-wrap: wrap;
}
.client-avatar {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--sp-color, #ff3b47), #991b1b);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--sp-glow, rgba(255, 59, 71, 0.25));
  flex-shrink: 0;
}
.client-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.client-details b {
  font-size: 13.5px;
  color: #fff;
}
.client-details small {
  font-size: 11px;
  color: #8c899c;
}
.creator-quick-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
.creator-quick-tools .btn {
  background: var(--sp-soft, rgba(255, 59, 71, 0.12));
  border: 1px solid var(--sp-border, rgba(255, 59, 71, 0.3));
  color: var(--sp-color, #ff5e68);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.creator-quick-tools .btn:hover {
  background: var(--sp-color, #ff3b47);
  color: #fff;
}
.admin-inquiry-box {
  background: #100f16;
  border: 1px solid #242331;
  border-radius: 9px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-inquiry-box .box-kicker {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  font-weight: 800;
  color: var(--sp-color, #ff666e);
  letter-spacing: 0.7px;
}
.inquiry-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #e6e3f0;
  white-space: pre-wrap;
  word-break: break-word;
}
.inquiry-attachment {
  margin-top: 6px;
  padding: 9px 11px;
  border-radius: 8px;
  background: #0b0a0f;
  border: 1px solid #22212f;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.inquiry-attachment .att-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}
.inquiry-attachment .att-head small {
  color: #9e9aae;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.inquiry-attachment .att-link {
  color: #ff5e68;
  text-decoration: none;
  font-weight: 700;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.inquiry-attachment .att-link:hover {
  text-decoration: underline;
}
.att-preview-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 190px;
  overflow: hidden;
  border-radius: 6px;
  background: #060609;
  border: 1px solid #1d1c26;
}
.att-preview-img {
  max-width: 100%;
  max-height: 190px;
  object-fit: contain;
  display: block;
}
.admin-thread-box {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-left: 4px solid #10b981;
  border-radius: 9px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-thread-box .thread-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}
.thread-badge {
  color: #10b981;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.admin-thread-box .thread-head small {
  color: #7d7a8d;
}
.thread-text {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #e2e8f0;
  white-space: pre-wrap;
}
.admin-pending-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 9px;
  background: rgba(234, 179, 8, 0.07);
  border: 1px solid rgba(234, 179, 8, 0.28);
  border-left: 4px solid #eab308;
}
.admin-pending-alert i { color: #eab308; font-size: 19px; }
.admin-pending-alert b { display: block; font-size: 12.5px; color: #facc15; }
.admin-pending-alert small { color: #9d99ad; font-size: 11px; }
.admin-reply-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #100f16;
  border: 1px solid #242331;
  border-radius: 9px;
  padding: 14px 16px;
}
.canned-replies {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.canned-replies small {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  font-weight: 800;
  color: #8c889d;
  letter-spacing: 0.6px;
}
.canned-btn {
  background: #1c1b26;
  border: 1px solid #2d2c3c;
  color: #d2cee0;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.canned-btn:hover {
  background: #282736;
  border-color: var(--sp-color, #ff3b47);
  color: #fff;
  transform: translateY(-1px);
}
.admin-reply-form { display: flex; flex-direction: column; gap: 10px; }
.admin-reply-form label b { display: block; font-size: 12px; margin-bottom: 6px; color: #e2dfec; }
.admin-reply-form textarea {
  width: 100%;
  box-sizing: border-box;
  background: #09090e;
  border: 1px solid #262534;
  border-radius: 7px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  padding: 10px 12px;
  resize: vertical;
  min-height: 120px;
}
.admin-reply-form textarea:focus {
  outline: none;
  border-color: var(--sp-color, #ff3b47);
  box-shadow: 0 0 0 2px var(--sp-glow, rgba(255, 59, 71, 0.2));
}
.admin-reply-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.status-select-lbl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #9d99ad;
}
.status-select-lbl select {
  background: #0d0d12;
  border: 1px solid #2e2d3e;
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
}
.ticket-item.selected-ticket {
  border-color: #ff3b47 !important;
  background: rgba(255, 59, 71, 0.08) !important;
  box-shadow: 0 0 0 1px rgba(255, 59, 71, 0.3) !important;
}

/* Creator Telemetry Insight Footer inside Resolution Desk */
.admin-creator-telemetry {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 4px;
}
@media (max-width: 700px) {
  .admin-creator-telemetry { grid-template-columns: 1fr; }
}
.telemetry-mini-card {
  background: #100f16;
  border: 1px solid #232230;
  border-radius: 9px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.telemetry-mini-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.telemetry-mini-head span {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.7px;
  color: #8f8ba0;
}
.telemetry-mini-head button {
  background: transparent;
  border: 0;
  color: #ff5e68;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.telemetry-mini-head button:hover { text-decoration: underline; }
.telemetry-mini-rows {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11.5px;
  color: #c2bece;
}
.telemetry-mini-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.telemetry-mini-row b { color: #fff; font-weight: 700; }
.telemetry-mini-row small { color: #7a7789; font-size: 11px; }

/* TICKET FILTERS LUXURY HUD STYLING */
.ticket-list .ticket-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 12px;
  padding: 0;
  background: transparent !important;
  border: none;
}
.ticket-list .ticket-filters button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 500;
  color: #a09cb0;
  background: #100f16 !important;
  border: 1px solid #232230;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease !important;
}
.ticket-list .ticket-filters button:hover {
  background: #181722 !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}
.ticket-list .ticket-filters button.active {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: rgba(239, 68, 68, 0.45) !important;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.2) !important;
}
.ticket-list .ticket-filters button i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.ticket-list .ticket-filters button i.amber { background: #f59e0b !important; box-shadow: 0 0 6px #f59e0b; }
.ticket-list .ticket-filters button i.blue { background: #3b82f6 !important; box-shadow: 0 0 6px #3b82f6; }
.ticket-list .ticket-filters button i.green { background: #10b981 !important; box-shadow: 0 0 6px #10b981; }
.ticket-list .ticket-filters button i.gray { background: #6b7280 !important; }
.ticket-list .ticket-filters button b {
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #e2dce0;
}
.ticket-list .ticket-filters button.active b {
  background: rgba(239, 68, 68, 0.35) !important;
  color: #ffffff;
}

/* ============================================================================
   NEXO AUTH STUDIO v3.0 - PRECISION EXECUTIVE REDESIGN
   Unified Topbar, Clean Sidebar, Non-Distorted Interactive Hybrid Charts,
   Zero-Clip Desktop Tables, Crisp Security Tabs & Above-the-Fold Support
   ============================================================================ */

/* 1. Unified Single-Row Topbar & Removal of Extra Utilitybar Height */
.utilitybar {
  display: none !important;
}
.topbar {
  height: 58px;
  min-height: 58px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: nowrap;
  background: rgba(12, 12, 16, 0.92) !important;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.topbar .menu {
  flex: none;
}
.topbar-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.09) !important;
  border: 1px solid rgba(52, 211, 153, 0.24);
  white-space: nowrap;
  flex: none;
}
.topbar-status b {
  font-size: 11px;
  letter-spacing: 0.65px;
  color: #34d399;
}
.topbar-status small {
  font-size: 11px;
  color: #86efac;
  opacity: 0.75 !important;
}
.topbar .usage {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 6px;
  white-space: nowrap;
  overflow: hidden;
}
.topbar .usage .tag {
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #e4e4e7;
}
.topbar .usage span:not(.tag) {
  padding: 4px 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  color: #8f8c9d;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.topbar .usage span:not(.tag) b {
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.topbar .usage span:not(.tag):after {
  display: none;
}
.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.topbar-icon-btn {
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #16161d !important;
  color: #e5e2ec;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease !important;
}
.topbar-icon-btn {
  width: 34px;
  padding: 0;
}
.topbar-icon-btn .svg-icon { width: 15px !important; height: 15px !important; }

.topbar-icon-btn:hover {
  background: #1e1e27 !important;
  border-color: rgba(255, 255, 255, 0.18);
}
.topbar .upgrade {
  height: 34px;
  padding: 0 14px;
  white-space: nowrap;
  flex: none;
}
@media (max-width: 1180px) {
  .topbar .usage span:nth-child(4) { display: none; }
  .topbar-status small { display: none; }
}
@media (max-width: 960px) {
  .topbar .usage { display: none; }
}
@media (max-width: 640px) {
  
  .topbar { padding: 0 14px; }
}

/* 2. Crisp Clean Sidebar & User Card (No Noisy Overlays on Text) */
.view {
  padding-top: 20px;
}
.page-head {
  min-height: 76px !important;
  margin-bottom: 20px !important;
  padding: 16px 22px !important;
  border-radius: 14px !important;
}
.side-nav button {
  white-space: nowrap;
  padding: 9px 12px;
}
.profile {
  background: linear-gradient(180deg, #16161e 0%, #111117 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  padding: 10px 12px;
  min-height: 62px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35) !important;
}
.profile-network {
  opacity: 0.2 !important;
}
.profile .avatar {
  width: 38px;
  height: 38px;
  font-size: 13px;
  font-weight: 800;
  background: linear-gradient(135deg, #2b181b 0%, #1c1924 100%) !important;
  border: 1.5px solid rgba(255, 79, 88, 0.55);
  box-shadow: 0 0 14px rgba(255, 59, 71, 0.25) !important;
}
.profile .avatar:before,
.profile .avatar:after {
  display: none;
}
.profile:after {
  left: 42px !important;
  top: 41px !important;
}
.profile > div b {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}
.profile > div small {
  font-size: 11px;
  color: #9e9aad;
}

/* 3. Overview Precision Charts, Tooltips, SVG Donut & KPI Cards */
.exec-dash {
  display: grid;
  gap: 16px;
  font-variant-numeric: tabular-nums;
}

.exec-head-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.exec-chart-series-legend {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  color: #a9a4b8;
}
.exec-chart-series-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.exec-chart-series-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* Hybrid Non-Distorted Chart Stage */
.exec-chart-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}
.exec-chart-stage {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  height: 204px;
  margin: 2px 0;
}
.exec-yaxis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding: 10px 6px 34px 0;
  font-size: 11px;
  font-weight: 600;
  color: #777488;
  user-select: none;
}
.exec-plot-area {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}
.exec-plot-canvas {
  position: relative;
  flex: 1;
  min-height: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015) 0%, transparent 100%);
  border-radius: 8px;
}
.exec-chart-svg-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  pointer-events: none;
}
.exec-chart-col {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30px;
  transform: translateX(-50%);
  z-index: 4;
  cursor: crosshair;
}
.exec-col-guide {
  position: absolute;
  top: 8%;
  bottom: 10%;
  left: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.18);
  opacity: 0;
  transition: opacity 0.14s ease;
  pointer-events: none;
}
.exec-chart-col:hover .exec-col-guide {
  opacity: 1;
}
.exec-pt {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  pointer-events: none;
}
.exec-pt.pt-created.is-active {
  width: 9px;
  height: 9px;
  background: #10b981;
  border: 2px solid #0e1312;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25), 0 0 10px rgba(16, 185, 129, 0.65);
}
.exec-pt.pt-act.is-active {
  width: 8px;
  height: 8px;
  background: #38bdf8;
  border: 2px solid #0f1318;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25), 0 0 10px rgba(56, 189, 248, 0.65);
}
.exec-pt.is-zero {
  width: 5px;
  height: 5px;
  background: #2b2a38;
  border: 1px solid #16151e;
  opacity: 0.7;
}
.exec-chart-col:hover .exec-pt.is-active {
  transform: translate(-50%, -50%) scale(1.35);
}
.exec-chart-col:hover .exec-pt.is-zero {
  opacity: 1;
  background: #525068;
  transform: translate(-50%, -50%) scale(1.25);
}
.exec-col-tip {
  position: absolute;
  top: 6px;
  min-width: 132px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(16, 16, 23, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  display: grid;
  gap: 5px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
  z-index: 20;
}
.exec-chart-col:hover .exec-col-tip {
  opacity: 1;
  transform: translateY(0);
}
.exec-col-tip b {
  font-size: 11px;
  color: #fff;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.exec-col-tip > div {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #9e9aad;
}
.exec-col-tip > div i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.exec-col-tip > div strong {
  margin-left: auto;
  color: #fff;
}
.exec-xaxis {
  position: relative;
  height: 26px;
  margin-top: 2px;
}
.exec-xaxis span {
  position: absolute;
  top: 6px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  color: #7d798f;
}

.exec-chart-foot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
@media (max-width: 720px) {
  .exec-chart-foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.exec-cf-stat {
  background: #101016 !important;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  padding: 9px 11px;
}
.exec-cf-stat b {
  font-size: 17px;
  margin: 2px 0;
}

/* True SVG Donut & Progress Legend */
.exec-donut-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}
.exec-donut-body {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  margin: auto 0;
}
@media (max-width: 640px) {
  .exec-donut-body { grid-template-columns: 1fr; justify-items: center; }
}
.exec-donut-wrap-svg {
  position: relative;
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
}
.exec-donut-svg {
  width: 128px;
  height: 128px;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
}
.exec-donut-center {
  position: absolute;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 1px;
}
.exec-donut-center b {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.exec-donut-center small {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.9px;
  color: #827e94;
}
.legend-row-v2 {
  display: grid;
  gap: 5px;
  padding: 4px 0;
}
.legend-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.legend-row-top > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d6d0dc;
  font-weight: 500;
}
.legend-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  overflow: hidden;
}
.legend-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  transition: width 0.25s ease;
}

.rank-sub-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #848196;
  margin-top: 4px;
}
.rank-sub-meta b {
  color: #d6d2e2;
  font-weight: 700;
}

/* 4. Zero-Clip Responsive Desktop Tables (All 8 Columns Visible Without Cutoff!) */
.lic-table-panel {
  border: 1px solid rgba(255, 255, 255, 0.075) !important;
  border-radius: 14px;
  background: linear-gradient(180deg, #15151d 0%, #101016 100%) !important;
}
.lic-table-scroll {
  width: 100%;
  overflow-x: auto !important;
}
.lic-data-table {
  width: 100%;
  min-width: 0 !important;
  border-collapse: collapse;
}
.lic-data-table thead th {
  background: #12121a !important;
  padding: 11px 10px;
  font-size: 11px;
  letter-spacing: 0.7px;
  white-space: nowrap !important;
}
.lic-data-table tbody td {
  padding: 11px 10px;
  vertical-align: middle;
}
.lic-data-table .col-check {
  width: 34px;
  padding: 11px 6px 11px 12px;
}
.lic-data-table .col-actions {
  padding: 11px 12px 11px 6px;
  white-space: nowrap !important;
}
.lic-cell-key {
  min-width: 0;
  gap: 9px;
}
.lic-key-ico {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.lic-key-ico .svg-icon { width: 13px !important; height: 13px !important; }
.lic-key-top code {
  font-size: 11.5px;
  padding: 2px 7px;
  max-width: 168px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lic-key-sub {
  gap: 6px;
  font-size: 11px;
}
.lic-note-chip {
  max-width: 120px !important;
}
.lic-prod-chip {
  white-space: nowrap;
  font-size: 11.5px;
}
.lic-cell-dur b,
.lic-cell-dur small {
  white-space: nowrap;
}
.lic-cell-dur b { font-size: 12px; }
.lic-cell-dur small { font-size: 11px; }
.lic-cell-dev {
  min-width: 112px;
}
.lic-dev-name {
  max-width: 90px;
  font-size: 11px;
}
.lic-tbl-actions {
  gap: 5px;
}
.lic-act-btn {
  height: 29px;
  padding: 0 8px !important;
  font-size: 11px;
  border-radius: 7px;
}
.lic-act-btn.icon-only {
  width: 29px;
  padding: 0 !important;
}
.lic-table-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 11px 16px;
  background: #111118;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11.5px;
  color: #8b879c;
}
.lic-foot-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.lf-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lf-item b { color: #fff; }
.lf-item .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.lf-item .dot.green { background: #10b981; }
.lf-item .dot.sky { background: #38bdf8; }
.lf-item .dot.amber { background: #f59e0b; }
.lf-item .dot.muted { background: #71717a; }

/* 5. Security Tabs Single-Row Fit & Integration Single-Line URL */
.security-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  background: #121218 !important;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
}
.security-tabs button {
  white-space: nowrap;
  padding: 8px 12px;
  font-size: 11.5px;
  border-radius: 8px !important;
}
.integ-url-box {
  display: flex;
  align-items: center;
  gap: 8px;
}
.integ-url-box code {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  flex: 1;
  min-width: 0;
}

/* 6. Compact Above-the-Fold Support Hero (Inbox & Resolution Desk Stay Immediately Visible) */

.discord-card {
  padding: 14px 16px !important;
  gap: 10px !important;
}
.discord-card ul {
  margin: 0 !important;
  gap: 4px !important;
}
.discord-card li {
  font-size: 11.5px !important;
}
.support-stats {
  gap: 12px;
}

/* 7. v3.1 Precision Fit: Legend Alignment, Ranking Subtitle, Responsive Grid & Zero-Overflow Tables */
.dashboard {
  grid-template-columns: 228px minmax(0, 1fr);
}
@media (max-width: 950px) {
  .dashboard { grid-template-columns: 1fr; }
}

.exec-donut-card .exec-donut-body {
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 16px;
}
.exec-donut-card .exec-donut-wrap-svg,
.exec-donut-card .exec-donut-svg {
  width: 116px;
  height: 116px;
}
.exec-donut-body .exec-legend {
  display: grid;
  gap: 9px;
  width: 100%;
  min-width: 0;
}
.exec-donut-body .exec-legend > div.legend-row-v2 {
  display: grid;
  gap: 5px;
  width: 100%;
  justify-content: stretch;
  align-items: stretch;
}
.legend-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}
.legend-vals {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  white-space: nowrap;
}
.exec-rank-row .rank-name-box small {
  margin-left: 0;
  text-align: left;
  display: block;
}

/* Licenses Table Zero-Overflow Compact Precision Fit (fits inside >= 810px table container) */
.lic-data-table thead th {
  padding: 10px 7px;
  font-size: 11px;
}
.lic-data-table tbody td {
  padding: 9px 7px;
}
.lic-data-table .col-check {
  width: 28px;
  padding: 9px 4px 9px 10px;
}
.lic-data-table .col-actions {
  padding: 9px 10px 9px 4px;
}
.lic-key-ico {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}
.lic-key-ico .svg-icon { width: 12px !important; height: 12px !important; }
.lic-key-top code {
  font-size: 11px;
  padding: 2px 6px;
  max-width: 136px;
}
.lic-note-chip {
  max-width: 96px !important;
  font-size: 11px !important;
}
.lic-user-pill.is-empty {
  padding: 3px 8px;
  font-size: 11px;
}
.lic-cell-dev {
  min-width: 90px;
}
.lic-dev-name {
  max-width: 64px;
  font-size: 11px;
}
.lic-dev-slot {
  font-size: 11px;
  padding: 1px 5px;
}
.lic-act-btn {
  height: 27px;
  padding: 0 7px !important;
  font-size: 11px;
}
.lic-act-btn.icon-only {
  width: 27px;
}
@media (max-width: 1260px) {
  .lic-key-ico { display: none; }
  .lic-act-btn .lic-btn-lbl { display: none; }
  .lic-act-btn.detail { width: 27px; padding: 0 !important; }
}

/* ============================================================================
   v4.0 CYBER-EXECUTIVE HUD CARDS & ZERO-CLIPPING LAYOUT CONTAINMENT
   ============================================================================ */

/* Guarantee zero horizontal overflow/clipping inside CSS grid children */
.app, .view, .exec-dash {
  min-width: 0;
  box-sizing: border-box;
}
.app {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}
@media (max-width: 1260px) {
  .topbar .usage { display: none; }
  
  
}

/* Rich Cyber-Executive HUD Cards Surface & Ambient Glow */
.product-card.sp-card,
.license-card.sp-card,
.credentials-panel.sp-card {
  background:
    radial-gradient(circle at 92% 14%, var(--sp-soft, rgba(255, 59, 71, 0.1)), transparent 52%),
    linear-gradient(180deg, #16161f 0%, #101016 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  transition: transform 0.16s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.product-card.sp-card:hover,
.license-card.sp-card:hover {
  transform: translateY(-2px);
  border-color: var(--sp-border, rgba(255, 59, 71, 0.38)) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 22px var(--sp-glow, rgba(255, 59, 71, 0.14)) !important;
}

/* Upgraded Overview KPI Cards */

/* Telemetry Strip Below Activity Chart */
.exec-cf-stat {
  position: relative;
  border-left: 3px solid #2b2a38;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0%, #0d0d13 100%) !important;
  padding: 10px 12px;
  display: grid;
  gap: 3px;
}
.exec-cf-stat.tone-green { border-left-color: #10b981; }
.exec-cf-stat.tone-blue { border-left-color: #38bdf8; }
.exec-cf-stat.tone-purple { border-left-color: #f43f5e; }
.exec-cf-stat.tone-amber { border-left-color: #f59e0b; }
.cf-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.cf-ico {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  color: #9e9aad;
  display: grid;
  place-items: center;
}
.cf-ico .svg-icon { width: 11px; height: 11px; }
.exec-cf-stat.tone-green .cf-ico { color: #10b981; background: rgba(16, 185, 129, 0.12); }
.exec-cf-stat.tone-blue .cf-ico { color: #38bdf8; background: rgba(56, 189, 248, 0.12); }
.exec-cf-stat.tone-purple .cf-ico { color: #f43f5e; background: rgba(244, 63, 94, 0.12); }
.exec-cf-stat.tone-amber .cf-ico { color: #f59e0b; background: rgba(245, 158, 11, 0.12); }
.exec-cf-stat span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #8f8b9e;
}
.exec-cf-stat span em {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

/* Donut Legend Spacing Fix - Never Clips Percentage */
.exec-donut-card {
  padding: 18px 20px;
}
.exec-donut-card .exec-donut-body {
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 16px;
}
.exec-donut-card .exec-donut-wrap-svg,
.exec-donut-card .exec-donut-svg {
  width: 108px;
  height: 108px;
}
.legend-row-v2 {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 7px 10px;
}
.legend-row-top > span {
  font-size: 11.5px;
}
.legend-vals b {
  font-size: 11.5px;
}
.legend-pct {
  padding: 2px 6px;
  font-size: 11px;
}

/* Upgraded Product Stats Cards */

/* Upgraded Tactical Product Cards */
.product-card.sp-card {
  padding: 16px 18px !important;
  display: grid !important;
  gap: 14px !important;
}
.product-card.sp-card .product-card-stats {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}
.product-card.sp-card .product-card-stats > span {
  background: #0d0d13 !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 8px !important;
  padding: 9px 8px !important;
  display: grid !important;
  place-items: center !important;
  gap: 2px !important;
}
.product-card.sp-card .product-card-stats > span b {
  font-size: 16px !important;
  color: #fff !important;
}
.product-card.sp-card .product-card-stats > span small {
  font-size: 11px !important;
  letter-spacing: 0.7px !important;
  color: #827e94 !important;
}

/* Upgraded Tactical License Vault Cards */
.license-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}
.license-card.sp-card {
  padding: 15px 16px !important;
  display: grid !important;
  gap: 12px !important;
  border-left-width: 1px !important;
}
.license-card.sp-card > header {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
}

.lic-menu-trigger {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #171722 !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #a9a4b8;
  display: grid;
  place-items: center;
  flex: none;
}
.lic-menu-trigger:hover {
  background: #232232 !important;
  color: #fff;
}
.lic-card-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.lic-prod-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 59, 71, 0.1);
  border: 1px solid rgba(255, 59, 71, 0.25);
  font-size: 11px;
  color: #ffb3b7;
}
.lic-prod-tag .svg-icon { width: 12px; height: 12px; color: #ff5761; }
.lic-card-note {
  font-size: 11px;
  color: #9e9aad;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 2px 8px;
  border-radius: 999px;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.license-details-v2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
@media (max-width: 520px) {
  .license-details-v2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.lic-tile {
  background: #0c0c13;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 8px;
  padding: 8px 10px;
  display: grid;
  gap: 4px;
  min-width: 0;
}
.lic-tile small {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.65px;
  color: #777389;
}
.lic-tile b {
  font-size: 11.5px;
  font-weight: 700;
  color: #f3eff4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lic-tile-dev {
  display: flex;
  align-items: center;
  gap: 7px;
}
.lic-tile-dev i {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: #1f1e2c;
  overflow: hidden;
}
.lic-tile-dev i span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #10b981, #38bdf8);
  border-radius: 999px;
}
.license-card.sp-card footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding-top: 10px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}
.license-card.sp-card footer .hwid-tag {
  background: #0e0e16 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #b8b3c7 !important;
  padding: 5px 9px !important;
  border-radius: 7px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}
.lic-card-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}
.license-card.sp-card footer .lic-act {
  background: #1a1925 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #eae6f2 !important;
  padding: 6px 11px !important;
  border-radius: 7px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}
.license-card.sp-card footer .lic-act.accent {
  background: linear-gradient(135deg, #e52630 0%, #ff3b47 100%) !important;
  border-color: rgba(255, 130, 136, 0.35) !important;
  color: #fff !important;
}

/* ============================================================================
   v5.0 CRISP ZERO-BLUR ARCHITECTURAL HUD & SIDEBAR WIDTH PARITY FIX
   - Fixes fixed .sidebar width (255px -> 228px) overlapping .view by 27px
   - Fixes negative margin bleeding on .page-head (0px flush inside .view)
   - Strips blurry radial-gradient clouds, backdrop-filter fog & diffuse neon halos
   - Restores razor-sharp matte surfaces (#121218 / #0b0b10) matching Policy HUD
   ============================================================================ */

.dashboard {
  grid-template-columns: 228px minmax(0, 1fr);
}
.sidebar {
  width: 228px;
  background: #0c0c11 !important;
  border-right: 1px solid #232330;
  backdrop-filter: none;
  -webkit-backdrop-filter: none !important;
  box-shadow: none;
}
@media (max-width: 950px) {
  .dashboard { grid-template-columns: 1fr; }
  .sidebar { width: 255px; }
}

.app {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}
.view {
  padding: 20px 24px 38px 24px;
  min-width: 0;
  box-sizing: border-box;
}
@media (max-width: 950px) {
  .view { padding: 16px 16px 32px 16px; }
}

/* Solid Obsidian Topbar (No Glass Blur Haze) */
.topbar {
  background: #0e0e14 !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid #22222d;
  box-shadow: none;
  padding: 0 24px;
}
@media (max-width: 1260px) {
  .topbar .usage {
    display: inline-flex;
    gap: 10px;
  }
}
@media (max-width: 1020px) {
  .topbar .usage { display: none; }
}

/* Sharp Sidebar Elements (Zero Diffuse Red Cloud Glow) */
.sidebar .brand > span {
  background: #dc2626 !important;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}
.sidebar .brand > div > b {
  text-shadow: none;
}
.side-nav button {
  border: 1px solid transparent;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease !important;
}
.side-nav button.active {
  background: #dc2626 !important;
  border: 1px solid #f87171 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45) !important;
}
.side-nav button.active::before {
  display: none !important;
}
.profile {
  background: #111118 !important;
  border: 1px solid #252532 !important;
  box-shadow: none !important;
}
.profile .avatar {
  background: #1c1317 !important;
  border: 1.5px solid #ff4d57;
  box-shadow: none !important;
}
.online-dot,
.sidebar-status-pill i,
.topbar-status .pulse-dot-green {
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.22);
}

/* Flush Crisp Banner (.page-head zero negative-margin cutoffs) */
.page-head {
  margin: 0 0 20px 0 !important;
  width: 100% !important;
  min-height: 76px !important;
  padding: 16px 22px !important;
  background: #121218 !important;
  border: 1px solid #262634 !important;
  border-top: 2px solid #ff3b47 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.34) !important;
}

.page-head .network-canvas {
  opacity: 0.36 !important;
}

/* Crisp Solid Buttons Without Blur Shadows */
.topbar .upgrade,
.btn.primary,
.license-card.sp-card footer .lic-act.accent {
  background: linear-gradient(180deg, #ef333f 0%, #cf1f2a 100%) !important;
  border: 1px solid rgba(255, 138, 144, 0.45) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.38) !important;
}
.topbar .upgrade:hover,
.btn.primary:hover,
.license-card.sp-card footer .lic-act.accent:hover {
  background: linear-gradient(180deg, #f5424e 0%, #dc2626 100%) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.48) !important;
}

/* Sharp Matte Architectural HUD Surfaces (No Radial Color Fog / No Blur) */
.modal {
  background: rgba(6, 6, 10, 0.78) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none !important;
}
.panel,
.license-card,
.product-card,
.records-toolbar,
.product-card.sp-card,
.license-card.sp-card,
.credentials-panel.sp-card,
.sp-benefit-card.sp-card,
.admin-resolution-desk.sp-card,
.modal-card,
.license-detail-modal {
  background: #121218 !important;
  border: 1px solid #262634 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.32) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.sp-card:hover,
.product-card.sp-card:hover,
.license-card.sp-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.42) !important;
}
.sp-card::before,
.sp-card::after {
  display: none;
  content: none;
}
.sp-icon-box {
  background: #0d0d13 !important;
  border: 1px solid var(--sp-border, rgba(255, 59, 71, 0.45));
  box-shadow: none;
}

/* Sleek Compact Executive Metric Cards (Overview KPIs, Support Stats, Product Stats) */

/* Compact Support Stat Cards */
.support-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
@media (max-width: 980px) {
  .support-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .support-stats { grid-template-columns: 1fr; }
}

/* Compact Product Stats */

.exec-cf-stat {
  background: #0b0b10 !important;
  border: 1px solid #22222f;
  border-left: 3px solid #2b2a38;
  box-shadow: none;
}
.exec-cf-stat.tone-green { border-left-color: #10b981; }
.exec-cf-stat.tone-blue { border-left-color: #38bdf8; }
.exec-cf-stat.tone-purple { border-left-color: #f43f5e; }
.exec-cf-stat.tone-amber { border-left-color: #f59e0b; }
.legend-row-v2 {
  background: #0b0b10 !important;
  border: 1px solid #20202d;
}

/* Clean Licenses Alignment & Key Readability Inside Table */
.license-results-row {
  margin: 0 0 12px 0;
  padding: 0 2px;
}
.lic-key-top code {
  max-width: 158px;
  font-size: 11px;
}
@media (min-width: 1261px) {
  .lic-key-top code { max-width: 185px; }
}
.lic-table-panel {
  overflow: hidden;
}
.lic-table-scroll {
  width: 100%;
  overflow-x: auto !important;
}
.exec-range-tabs button.active {
  background: #231317 !important;
  border-color: #f43f5e !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

/* ============================================================================
   v6.0 MASTER COHESIVE EXECUTIVE DESIGN SYSTEM
   - 100% UNBROKEN SEAMLESS CARD SURFACES (Zero pseudo-element brackets / stubs)
   - UNIFIED PALETTE & ELEVATION: Solid matte obsidian #121217, crisp 1px #23222d
   - PROPORTIONAL METRICS: Compact 72px KPIs, 66px Support stats, 56px Product stats
   - CRISP TYPOGRAPHY & ZERO CLIPPING ON ANY VIEWPORT
   ============================================================================ */

/* 1. Global Reset for Broken Corner Stubs & Floating Bars */
.sp-card::before,
.sp-card::after,
.panel::before,
.panel::after,
.license-card::before,
.license-card::after,
.product-card::before,
.product-card::after,
.admin-resolution-desk::before,
.admin-resolution-desk::after {
  display: none;
  content: none;
  border: none !important;
  width: 0;
  height: 0;
}

/* 2. Unified Architectural Card Surfaces */
.panel,
.sp-card,
.product-card,
.license-card,
.records-toolbar,
.credentials-panel,
.admin-resolution-desk,
.discord-card,
.modal-card,
.license-detail-modal {
  background: #121217 !important;
  border: 1px solid #23222d !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.32) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  position: relative;
}

/* 3. Subtle Cohesive Card Hover */
.sp-card:hover,
.product-card:hover,
.license-card:hover {
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.42) !important;
  transform: translateY(-1px) !important;
}

/* 4. Page Header Banner Coherence */
.page-head {
  margin: 0 0 20px 0 !important;
  width: 100% !important;
  min-height: 74px !important;
  padding: 16px 22px !important;
  background: #121217 !important;
  border: 1px solid #23222d !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.page-head .title h1 {
  font-size: 19px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 0 4px 0 !important;
}
.page-head .title p {
  font-size: 12px !important;
  color: #8b8798 !important;
  margin: 0 !important;
}

/* 5. Clean Monospace Code Pills & Status Tags */
.sp-cat-tag {
  background: #181824 !important;
  border: 1px solid #282738;
  color: #a5a1b3;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 8px !important;
  border-radius: 5px;
}
.sp-num-badge {
  background: #181824 !important;
  border: 1px solid #282738;
  color: #837f92;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
}
.sp-icon-box {
  background: #181824 !important;
  border: 1px solid #2a293c;
  border-radius: 8px !important;
  color: var(--sp-color, #ff3b47);
  box-shadow: none;
}

/* 6. Clean Card Heads & Controls */
.exec-card-head {
  padding: 16px 20px;
  border-bottom: 1px solid #1e1e28;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.exec-card-head h3 {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.exec-card-head p {
  font-size: 11px;
  color: #827e90;
  margin: 3px 0 0 0;
}

/* 7. Clean Support Layout & Tickets */

.discord-card {
  background: #0f0f15 !important;
  border: 1px solid #242436 !important;
  padding: 16px !important;
}
.discord-card ul li {
  font-size: 11.5px !important;
  color: #aba6b7 !important;
}

/* ============================================================================
   TACTICAL CYBER-DARK DESIGN SYSTEM (OFFICIAL ROOSH / NEXO AUTH SPEC)
   ============================================================================ */

/* 1. Tactical Hero Banner */
.tactical-hero {
  position: relative;
  margin: 0 0 22px 0;
  padding: 26px 28px;
  border-radius: 14px;
  background: linear-gradient(180deg, #181822 0%, #111116 100%) !important;
  border: 1px solid #282736;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  overflow: hidden;
}
.tactical-hero::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2.5px;
  width: 100%;
  background: linear-gradient(90deg, transparent 0%, #ff3b47 30%, #ff6b75 50%, #ff3b47 70%, transparent 100%) !important;
  z-index: 2;
}

.tactical-hero h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 0 20px rgba(255, 59, 71, 0.25);
}
.tactical-hero p {
  font-size: 13px;
  color: #9f9baa;
  max-width: 680px;
  margin: 0;
  line-height: 1.5;
}

.tactical-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

/* 2. Tactical Cards & Strict Clean Edge Styling */
.tactical-card {
  position: relative;
  background: linear-gradient(180deg, #181820 0%, #121217 100%) !important;
  border: 1px solid #282736 !important;
  border-radius: 14px !important;
  padding: 20px !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35) !important;
  overflow: hidden !important;
  transition: transform 0.16s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
  display: flex !important;
  flex-direction: column;
}
.tactical-card:hover {
  transform: translateY(-2px) !important;
  border-color: var(--tone-col, rgba(255, 255, 255, 0.25)) !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45) !important;
}
.tactical-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2.5px;
  width: 100%;
  display: block;
  background: linear-gradient(90deg, var(--tone-col, #ff3b47) 0%, rgba(255, 255, 255, 0.2) 65%, transparent 100%) !important;
  z-index: 2;
  border: none !important;
  border-radius: 14px 14px 0 0;
}

/* Hard reset: Eradicate broken corner stubs forever across ALL card types */
.tactical-card::after,
.sp-card::after,
.sp-card::before {
  display: none;
  content: none;
  border: none !important;
}
.tactical-card::before {
  display: block;
}

/* 3. Tactical Chromatic Tone Palettes */
.tone-red, .sp-red {
  --tone-col: #ff3b47;
  --tone-soft: rgba(255, 59, 71, 0.12);
  --tone-border: rgba(255, 59, 71, 0.28);
  --tone-text: #ff8e94;
}
.tone-green, .sp-green {
  --tone-col: #10b981;
  --tone-soft: rgba(16, 185, 129, 0.12);
  --tone-border: rgba(16, 185, 129, 0.28);
  --tone-text: #6ee7b7;
}
.tone-cyan, .sp-cyan, .tone-blue {
  --tone-col: #06b6d4;
  --tone-soft: rgba(6, 182, 212, 0.12);
  --tone-border: rgba(6, 182, 212, 0.28);
  --tone-text: #67e8f9;
}
.tone-orange, .sp-orange, .tone-amber {
  --tone-col: #f59e0b;
  --tone-soft: rgba(245, 158, 11, 0.12);
  --tone-border: rgba(245, 158, 11, 0.28);
  --tone-text: #fcd34d;
}
.tone-purple, .sp-purple {
  --tone-col: #a855f7;
  --tone-soft: rgba(168, 85, 247, 0.12);
  --tone-border: rgba(168, 85, 247, 0.28);
  --tone-text: #d8b4fe;
}

/* 4. Tactical Card Components */
.tactical-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  width: 100%;
}
.tactical-icon-box {
  display: grid;
  place-items: center;
  width: 38px !important;
  height: 38px !important;
  border-radius: 9px;
  background: var(--tone-soft, rgba(255, 59, 71, 0.12)) !important;
  border: 1px solid var(--tone-border, rgba(255, 59, 71, 0.28));
  color: var(--tone-text, #ff8e94);
  flex: none;
}
.tactical-icon-box .svg-icon {
  width: 18px !important;
  height: 18px !important;
}
.tactical-tag {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--tone-soft, rgba(255, 59, 71, 0.14)) !important;
  border: 1px solid var(--tone-border, rgba(255, 59, 71, 0.28));
  color: var(--tone-text, #ffafb3) !important;
  font-size: 11px !important;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.tactical-num {
  margin-left: auto;
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 26px;
  padding: 0 7px;
  border-radius: 6px;
  background: #1e1e27 !important;
  border: 1px solid #302f3e;
  color: #928e9e !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px !important;
  font-weight: 800;
}
.tactical-val-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}
.tactical-val {
  font-size: 32px !important;
  font-weight: 800;
  color: #ffffff !important;
  line-height: 1;
  letter-spacing: -0.5px;
}
.tactical-sub {
  font-size: 12px !important;
  color: #9390a2 !important;
  font-weight: 500;
}
.tactical-list {
  list-style: none;
  margin: auto 0 0 0;
  padding: 12px 0 0 0;
  border-top: 1px solid #242330;
  display: grid;
  gap: 8px;
}
.tactical-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c9c5d5;
  font-size: 11.5px;
  font-weight: 500;
}
.tactical-list li .t-bullet {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--tone-soft, rgba(16, 185, 129, 0.15)) !important;
  color: var(--tone-col, #10b981);
  flex: none;
}
.tactical-list li .t-bullet .svg-icon {
  width: 11px;
  height: 11px;
}

/* 5. Tactical Grids */
.tactical-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.tactical-mid-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(340px, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.tactical-bot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.product-stats-tactical {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
@media (max-width: 1200px) {
  .product-stats-tactical { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .tactical-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tactical-mid-grid { grid-template-columns: 1fr; }
  .tactical-bot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tactical-kpi-grid { grid-template-columns: 1fr; }
  .product-stats-tactical { grid-template-columns: 1fr; }
}

/* 6. Tactical Product & License Cards */
.product-title-row {
  margin-bottom: 14px;
}
.product-title-row h3 {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px 0;
}
.product-title-row small {
  font-size: 11.5px;
  color: #8e8a9d;
  display: flex;
  align-items: center;
  gap: 6px;
}
.lic-key-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0e0e14 !important;
  border: 1px solid #282736;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
}
.lic-key-display code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}
