:root {
  --bg-1: #06070a;
  --bg-2: #0b0d12;
  --bg-3: #11141b;

  --panel: rgba(15, 18, 25, 0.92);
  --panel-2: rgba(20, 24, 33, 0.88);
  --panel-border: rgba(255, 138, 41, 0.14);

  --text: #f5f7fb;
  --text-soft: #d8deea;
  --muted: #97a0b2;
  --muted-2: #748095;

  --orange: #ff7a1a;
  --orange-2: #ff9a4a;
  --orange-soft: rgba(255, 122, 26, 0.14);

  --green: #19d68d;
  --danger: #ff5d73;
  --danger-2: #ff6b5e;

  --input-bg: rgba(7, 10, 15, 0.92);
  --input-border: rgba(255, 138, 41, 0.18);
  --white-border: rgba(255, 255, 255, 0.07);

  --shadow-main: 0 18px 50px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.22);

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 122, 26, 0.10), transparent 26%),
    radial-gradient(circle at top right, rgba(255, 122, 26, 0.08), transparent 20%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 45%, #080a0e 100%);
  padding: 18px 14px 24px;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.30;
  background-image:
    linear-gradient(rgba(255, 122, 26, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 122, 26, 0.03) 1px, transparent 1px);
  background-size: 110px 110px;
  mask-image: radial-gradient(circle at center, black, transparent 82%);
}

.app-wrap {
  min-height: calc(100vh - 42px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-card {
  position: relative;
  width: 100%;
  max-width: 540px;
  padding: 20px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(24, 29, 39, 0.95), rgba(12, 15, 22, 0.94));
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-main);
  backdrop-filter: blur(12px);
}

.card-glow {
  position: absolute;
  width: 240px;
  height: 240px;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.18), transparent 70%);
}

.card-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-start;
  margin-bottom: 14px;
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--white-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  transition: 0.2s ease;
}

.mini-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.brand-area {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 22px;
}

.brand-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 12px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--orange-2), var(--orange));
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
  box-shadow:
    0 12px 28px rgba(255, 122, 26, 0.22),
    0 0 24px rgba(255, 122, 26, 0.10);
}

.brand-area h1 {
  margin: 0 0 6px;
  font-size: 1.65rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-area p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

.section {
  position: relative;
  z-index: 1;
  margin-bottom: 15px;
}

.section-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.10em;
}

.input-shell {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 0 0 1px rgba(255, 255, 255, 0.015);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.input-shell:focus-within {
  border-color: rgba(255, 138, 41, 0.45);
  box-shadow:
    0 0 0 4px rgba(255, 122, 26, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.input-shell input, .input-shell select {
    width: 100%;
    min-height: 50px;
    border: 0;
    outline: 0;
    background: #000000e0;
    color: var(--text);
    padding: 0 15px;
    font-size: 0.95rem;
    border-radius: 16px;
    appearance: none;
}

.input-shell input::placeholder {
  color: var(--muted-2);
}

.input-shell select {
  cursor: pointer;
}

.select-shell::after {
  content: "⌄";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-53%);
  font-size: 1.15rem;
  color: var(--muted);
  pointer-events: none;
}

.input-with-button {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border-radius: 16px;
}

.small-action-button {
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;

  transition: all 0.25s ease;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}

.small-action-button:hover {
  background: linear-gradient(135deg, #3a3a3a, #222);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.small-action-button:active {
  transform: scale(0.98);
}

.action-button {
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #c66720, #a95418);
  color: #fff;
  font-size: 0.96rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow:
    0 10px 24px rgba(255, 122, 26, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.action-button:hover,
.small-action-button:hover,
.delete-btn:hover {
  filter: brightness(1.05);
}

.action-button:active,
.small-action-button:active,
.delete-btn:active {
  transform: translateY(1px);
}

.action-button:disabled,
.small-action-button:disabled,
.delete-btn:disabled {
  opacity: 0.60;
  cursor: not-allowed;
}

.helper-text {
  margin: 4px 2px 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.empty-state {
  padding: 16px;
  border-radius: 16px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
}

.results-list {
  display: grid;
  gap: 12px;
}

.result-card {
  background: linear-gradient(180deg, rgba(12, 15, 22, 0.96), rgba(10, 12, 18, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.result-id {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.9rem;
}

.id-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.13);
  color: #ffe5d1;
  font-size: 0.82rem;
  word-break: break-word;
}

.result-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.info-row {
  display: grid;
  gap: 3px;
}

.info-label {
  color: var(--muted-2);
  font-size: 0.70rem;
  font-weight: 800;
  letter-spacing: 0.10em;
}

.info-value {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.42;
  word-break: break-word;
}

.delete-btn {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--danger), var(--danger-2));
  color: #fff;
  font-size: 0.90rem;
  font-weight: 800;
  transition: 0.2s ease;
}

.alert,
.local-feedback {
  margin-top: 12px;
  padding: 13px 14px;
  border-radius: 14px;
  font-size: 0.90rem;
  line-height: 1.45;
  border: 1px solid transparent;
}

.alert.success,
.local-feedback.success {
  background: rgba(22, 211, 138, 0.12);
  border-color: rgba(22, 211, 138, 0.22);
  color: #d8fff1;
}

.alert.error,
.local-feedback.error {
  background: rgba(255, 93, 115, 0.12);
  border-color: rgba(255, 93, 115, 0.22);
  color: #ffe1e7;
}

.alert.info,
.local-feedback.info {
  background: rgba(255, 122, 26, 0.12);
  border-color: rgba(255, 122, 26, 0.22);
  color: #fff0e4;
}

.hidden {
  display: none !important;
}

@media (min-width: 700px) {
  body {
    padding: 28px;
  }

  .portal-card {
    max-width: 760px;
    padding: 26px;
  }

  .brand-area {
    margin-bottom: 24px;
  }

  .brand-icon {
    width: 70px;
    height: 70px;
    font-size: 1.2rem;
  }

  .brand-area h1 {
    font-size: 2rem;
  }

  .brand-area p {
    font-size: 1rem;
  }

  .input-shell input,
  .input-shell select {
    min-height: 54px;
    font-size: 0.96rem;
    padding: 0 16px;
  }

  .input-with-button {
    grid-template-columns: 1fr 150px;
  }

  .small-action-button {
    min-height: 54px;
    border-top: 0;
    border-left: 1px solid rgba(255, 138, 41, 0.12);
  }

  .action-button {
    min-height: 56px;
    font-size: 0.98rem;
  }

  .results-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .portal-card {
    max-width: 880px;
    padding: 28px;
  }

  .results-list {
    grid-template-columns: 1fr 1fr;
  }
}


.brand-logo{
  width:100px;
  height:100px;
  margin:0 auto 14px;
  display:block;
  border-radius:50%;
  object-fit:cover;
  border:2px solid rgba(255,122,26,.35);
  box-shadow:0 8px 20px rgba(255,122,26,.25);
}


.copy-box{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.copy-text{
  background:rgba(0,0,0,.25);
  border-radius:12px;
  padding:14px;
  font-family:monospace;
  white-space:pre-wrap;
  cursor:pointer;
  border:1px solid rgba(255,255,255,.08);
}

.copy-text:hover{
  background:rgba(0,0,0,.35);
}

.copy-button{
  border:0;
  border-radius:10px;
  padding:10px;
  font-weight:700;
  background:linear-gradient(180deg,#ff7a1a,#cc5c12);
  color:white;
  cursor:pointer;
}

.result-actions{
  display:flex;
  gap:8px;
}

.edit-btn{
  flex:1;
  min-height:46px;
  border:0;
  border-radius:14px;
  background:linear-gradient(180deg,#19d68d,#0fb879);
  color:white;
  font-size:0.90rem;
  font-weight:800;
  cursor:pointer;
}

.edit-form{
  margin-top:12px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.painel-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: contain;
}



.result-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.edit-btn {
  flex: 1;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #19d68d, #0fb879);
  color: white;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s;
}

.edit-btn:hover {
  filter: brightness(1.1);
}

.delete-btn {
  flex: 1;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #ff5d73, #ff6b5e);
  color: white;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s;
}

.delete-btn:hover {
  filter: brightness(1.1);
}

#editUser {
  color: #19d68d;
  font-weight: 700;
}

#editMac {
  opacity: 0.7;
  font-size: 12px;
}



.painel-scroll {
  position: relative;
  width: 100%;
  height: 220px; /* ajusta conforme quiser */
}

.painel {
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;

  transition: all 0.3s ease;
}

.painel.ativo {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 2;
}

.section-label {
  text-align: center;
}

.painel-scroll {
  display: flex;
  justify-content: center;
  align-items: center;
}

.painel-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  margin-top: 10px;
}

.painel-footer span {
  min-width: 90px;
  text-align: center;
  font-weight: 700;
}