:root {
  color-scheme: dark;
  --bg: #030303;
  --panel: rgba(10, 10, 10, 0.97);
  --panel-soft: #101010;
  --line: #342022;
  --line-bright: #8b1219;
  --cyan: #f20d18;
  --cyan-soft: #c10b14;
  --green: #f52a34;
  --console-info: #83d9ad;
  --console-success: #12ee91;
  --amber: #ffb547;
  --red: #ff5f70;
  --text: #eef7ff;
  --muted: #8297ad;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.pricing-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 28px; border: 1px solid var(--line-bright); border-radius: 18px; background: var(--panel-soft); color: var(--text); box-shadow: var(--shadow); overflow-y: auto; }
.pricing-dialog::backdrop { background: rgba(0, 0, 0, .8); backdrop-filter: blur(5px); }
.pricing-dialog h2 { margin: 12px 0; }
.pricing-file { color: var(--muted); overflow-wrap: anywhere; }
.pricing-details { margin: 24px 0; }
.pricing-details > div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pricing-details dt { color: var(--muted); }
.pricing-details dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.pricing-total dd { color: var(--console-success); font-size: 1.15rem; }
.pricing-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; margin-top: 24px; }
@media (max-width: 480px) { .pricing-dialog { padding: 20px; } .pricing-details > div { flex-direction: column; gap: 6px; } .pricing-details dd { text-align: left; } .pricing-actions > * { flex: 1 1 auto; text-align: center; } }

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 5%, rgba(242, 13, 24, 0.14), transparent 30rem),
    radial-gradient(circle at 92% 90%, rgba(130, 0, 8, 0.09), transparent 34rem),
    linear-gradient(145deg, #020202, #090303 54%, #030303);
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, .file-zone:focus-within {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.hidden { display: none !important; }

.shell { min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 58px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(4, 10, 19, 0.9);
  border-bottom: 1px solid rgba(6, 213, 255, 0.2);
  backdrop-filter: blur(18px);
}

.brand { display: flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }
.brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cyan);
  border-radius: 11px;
  color: var(--cyan);
  background: rgba(6, 213, 255, 0.08);
  box-shadow: inset 0 0 20px rgba(6, 213, 255, 0.07), 0 0 22px rgba(6, 213, 255, 0.08);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -1px;
}
.brand-logo { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 6px 16px rgba(242,13,24,.24)); }
.brand strong { display: block; font-size: 15px; letter-spacing: 1.6px; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; letter-spacing: 2px; }

.topbar-actions { display: flex; align-items: center; gap: 12px; }
.privacy-chip, .system-status, .credit-chip, .discord-user {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(9, 18, 32, 0.72);
  font-size: 12px;
  font-weight: 650;
}
.credit-chip { color: #ffe0a3; border-color: rgba(255, 181, 71, 0.35); background: rgba(255, 181, 71, 0.08); }
.credit-chip > span { color: var(--amber); }
.credit-chip strong { color: #fff3d4; font-size: 13px; }
.discord-user { max-width: 190px; color: #dce8ff; border-color: rgba(88, 101, 242, 0.42); background: rgba(88, 101, 242, 0.1); }
.discord-user img { width: 24px; height: 24px; border-radius: 50%; background: #17233a; object-fit: cover; }
.discord-user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shield { color: var(--green); font-size: 10px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.system-status.ready .status-dot { background: var(--green); box-shadow: 0 0 10px var(--green); }
.system-status.running .status-dot { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse 1.2s infinite; }
.system-status.failed .status-dot { background: var(--red); box-shadow: 0 0 10px var(--red); }
.system-status { display: none; }
@keyframes pulse { 50% { opacity: 0.3; } }

.app-frame { min-width: 0; min-height: 0; display: grid; grid-template-columns: 210px minmax(0, 1fr); flex: 1; }
.sidebar {
  padding: 24px 14px;
  border-right: 1px solid rgba(6, 213, 255, 0.16);
  background: rgba(3, 9, 17, 0.82);
}
.tool-nav { display: grid; gap: 8px; position: sticky; top: 24px; }
.nav-button {
  width: 100%;
  min-height: 60px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  text-align: left;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.nav-button > span:first-child { color: var(--cyan); font-size: 19px; text-align: center; }
.nav-button strong, .nav-button small { display: block; letter-spacing: 0; }
.nav-button strong { color: #c9d8e7; font-size: 12px; }
.nav-button small { margin-top: 3px; font-size: 10px; }
.nav-button:hover { border-color: var(--line); background: rgba(6, 213, 255, 0.05); }
.nav-button.active { color: var(--text); border-color: rgba(18, 238, 145, 0.32); background: rgba(18, 238, 145, 0.08); }
.nav-button.active > span:first-child, .nav-button.active strong { color: var(--green); }
.view-stack { min-width: 0; display: flex; }
.tool-view { width: 100%; min-width: 0; }

.workspace {
  width: min(1540px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 38px);
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(520px, 1.42fr);
  gap: 22px;
  flex: 1;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(10, 19, 33, 0.97), rgba(5, 11, 21, 0.98));
  box-shadow: var(--shadow);
}
.control-card { min-width: 0; padding: clamp(22px, 3vw, 34px); }
.activity-card { min-width: 0; padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; min-height: 700px; }

.eyebrow { color: var(--cyan); font-size: 10px; font-weight: 800; letter-spacing: 2.4px; }
.panel-heading h1, .activity-heading h2 { margin: 7px 0 0; font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.7px; }
.panel-heading p { margin: 9px 0 0; max-width: 52ch; color: var(--muted); font-size: 13px; line-height: 1.6; }

.section-block { margin-top: 28px; }
.section-block h2 {
  margin: 0 0 12px;
  padding-left: 11px;
  border-left: 3px solid var(--cyan);
  color: #b9cce0;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.mode-grid { display: grid; gap: 9px; }
.mode-button {
  width: 100%;
  min-height: 65px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  color: var(--text);
  background: rgba(7, 18, 31, 0.8);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: 160ms ease;
}
.mode-button:hover { transform: translateY(-1px); border-color: var(--line-bright); background: #0b1b2d; }
.mode-button.active { border-color: var(--green); background: linear-gradient(90deg, rgba(18, 238, 145, 0.14), rgba(18, 238, 145, 0.03)); box-shadow: inset 3px 0 var(--green); }
.mode-button:nth-child(2).active { border-color: var(--cyan); background: linear-gradient(90deg, rgba(6, 213, 255, 0.14), rgba(6, 213, 255, 0.03)); box-shadow: inset 3px 0 var(--cyan); }
.mode-button:nth-child(3).active { border-color: var(--amber); background: linear-gradient(90deg, rgba(255, 181, 71, 0.14), rgba(255, 181, 71, 0.03)); box-shadow: inset 3px 0 var(--amber); }
.mode-icon { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; font-size: 19px; font-weight: 900; }
.mode-icon.green { color: var(--green); background: rgba(18, 238, 145, 0.1); }
.mode-icon.cyan { color: var(--cyan); background: rgba(6, 213, 255, 0.1); }
.mode-icon.amber { color: var(--amber); background: rgba(255, 181, 71, 0.1); }
.mode-button > span:last-child { min-width: 0; }
.mode-button strong, .mode-button small { display: block; overflow-wrap: anywhere; }
.mode-button strong { font-size: 13px; }
.mode-button small { margin-top: 4px; color: var(--muted); font-size: 11px; }

.files-block { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.files-block h2 { grid-column: 1 / -1; }
.file-zone {
  width: 100%;
  min-width: 0;
  min-height: 142px;
  padding: 17px 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  border: 1px dashed #23607b;
  border-radius: 13px;
  background: rgba(4, 10, 18, 0.52);
  cursor: pointer;
  transition: 160ms ease;
}
.file-zone:hover, .file-zone.dragging { border-color: var(--cyan); background: rgba(6, 213, 255, 0.06); transform: translateY(-1px); }
.file-zone.selected { border-style: solid; border-color: var(--green); background: rgba(18, 238, 145, 0.055); }
.file-zone.disabled { display: none; }
.file-symbol { color: var(--cyan); font-size: 27px; line-height: 1; }
.file-symbol.key { color: var(--amber); }
.file-copy { width: 100%; min-width: 0; }
.file-copy strong { display: block; width: 100%; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.file-copy small { display: block; min-width: 0; margin-top: 4px; overflow-wrap: anywhere; color: var(--muted); font-size: 10px; line-height: 1.35; }
.file-action { margin-top: 3px; color: var(--cyan); font-size: 10px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; }

.legal-note { margin-top: 17px; padding: 13px 15px; display: flex; align-items: center; gap: 10px; color: #fff; background: rgba(242, 13, 24, 0.12); border: 1px solid rgba(242, 13, 24, 0.55); border-radius: 10px; }
.legal-note > span { display: none; }
.legal-note p { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 11px; font-weight: 900; line-height: 1.5; letter-spacing: .25px; }
.legal-note p::first-letter { animation: siren 700ms steps(2, end) infinite; }
.legal-note::before { content: "🚨"; font-size: 18px; animation: siren 700ms steps(2, end) infinite; }
.legal-note::after { content: "🚨"; font-size: 18px; animation: siren 700ms steps(2, end) infinite reverse; }
@keyframes siren { 50% { opacity: .25; filter: drop-shadow(0 0 8px #ff1522); } }

.action-row { min-width: 0; margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.primary-button, .danger-button, .download-button, .ghost-button {
  /* inline-flex centraliza igual em <button> e em <a>: sem isto o link
     "Adquirir Mr. Coins" ficava com o texto colado no topo da caixa. */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  min-height: 43px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  cursor: pointer;
  transition: 160ms ease;
}
.primary-button { flex: 1; color: #00130b; background: linear-gradient(115deg, #19f29a, #05c77a); box-shadow: 0 10px 28px rgba(18, 238, 145, 0.13); }
.primary-button:hover:not(:disabled), .download-button:hover { transform: translateY(-2px); filter: brightness(1.08); }
.primary-button:disabled { cursor: not-allowed; opacity: 0.32; box-shadow: none; }
.danger-button { padding: 0 18px; color: var(--red); background: rgba(255, 95, 112, 0.08); border-color: rgba(255, 95, 112, 0.3); }
.ghost-button { min-height: 34px; padding: 0 13px; color: var(--cyan); background: rgba(6, 213, 255, 0.04); border-color: rgba(6, 213, 255, 0.24); }
.ghost-button:hover { background: rgba(6, 213, 255, 0.1); }
.form-hint { margin: 9px 0 0; text-align: center; color: var(--muted); font-size: 10px; }

.secondary-button {
  min-height: 43px;
  padding: 0 16px;
  color: var(--cyan);
  border: 1px solid rgba(6, 213, 255, 0.35);
  border-radius: 8px;
  background: rgba(6, 213, 255, 0.07);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0;
  cursor: pointer;
}
.secondary-button:hover:not(:disabled) { background: rgba(6, 213, 255, 0.13); }
.secondary-button:disabled { cursor: not-allowed; opacity: 0.35; }

.field-stack { display: grid; gap: 9px; }
.field-stack h2 { margin-bottom: 3px; }
.field-label { margin-top: 4px; color: #aec0d2; font-size: 11px; font-weight: 700; }
.text-input {
  width: 100%;
  height: 43px;
  padding: 0 12px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #030a13;
}
.text-input::placeholder { color: #52677d; }
.text-input:focus { border-color: var(--cyan); }
.toggle-row, .select-all-row {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
}
.toggle-row input, .select-all-row input, .resource-option input { accent-color: var(--green); }
.resource-section { min-width: 0; }
.resource-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.resource-heading h2 { margin-bottom: 0; }
.resource-heading span { color: var(--green); font-size: 10px; }
.resource-section > .text-input { margin-top: 12px; }
.resource-list {
  height: 250px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 9, 17, 0.65);
  scrollbar-color: #16425d #030811;
}
.resource-option {
  min-height: 42px;
  padding: 7px 10px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(23, 50, 74, 0.65);
  cursor: pointer;
}
.resource-option:last-child { border-bottom: 0; }
.resource-option:hover { background: rgba(6, 213, 255, 0.05); }
.resource-option strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.resource-option small { color: var(--muted); font-size: 9px; }
.resource-empty { min-height: 100%; display: grid; place-items: center; color: var(--muted); font-size: 11px; }

.activity-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.progress-card { margin-top: 26px; padding: 19px; border: 1px solid var(--line); border-radius: 13px; background: rgba(4, 10, 19, 0.54); }
.progress-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.progress-meta strong { color: var(--cyan); font-size: 13px; }
.progress-track { height: 11px; margin-top: 12px; overflow: hidden; border: 1px solid #173b54; border-radius: 999px; background: #030811; }
.progress-fill { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--cyan)); box-shadow: 0 0 14px rgba(6, 213, 255, 0.42); transition: width 250ms ease; }
.pipeline-steps { margin-top: 10px; display: grid; grid-template-columns: repeat(4, 1fr); color: #52677d; font-size: 9px; text-align: center; text-transform: uppercase; letter-spacing: 0.7px; }
.pipeline-steps span.done { color: var(--green); }
.pipeline-steps span.active { color: var(--cyan); }

.result-card { margin-top: 14px; padding: 14px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; border: 1px solid rgba(18, 238, 145, 0.35); border-radius: 12px; background: rgba(18, 238, 145, 0.06); }
.result-icon { width: 37px; height: 37px; display: grid; place-items: center; color: #00180e; background: var(--green); border-radius: 50%; font-weight: 900; }
.result-card strong, .result-card small { display: block; }
.result-card strong { color: var(--green); font-size: 12px; }
.result-card small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.download-button { min-height: 38px; padding: 0 15px; display: flex; align-items: center; gap: 8px; color: #00141a; background: var(--cyan); text-decoration: none; }
.download-button.pending { pointer-events: none; cursor: wait; opacity: .55; filter: grayscale(.25); }

.console-wrap { min-height: 350px; margin-top: 15px; display: flex; flex: 1; flex-direction: column; overflow: hidden; border: 1px solid #122d43; border-radius: 13px; background: #02060d; }
.console-bar { min-height: 38px; padding: 0 13px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid #10283c; background: #07111e; color: #587087; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; }
.console-bar > span:first-child { display: flex; gap: 5px; }
.console-bar i { width: 7px; height: 7px; display: block; border-radius: 50%; background: #244157; }
.console-bar i:first-child { background: #ff5f70; }
.console-bar i:nth-child(2) { background: #ffb547; }
.console-bar i:nth-child(3) { background: #12ee91; }
.job-code { justify-self: end; color: #3d586f; }
.console { max-height: 470px; padding: 17px; overflow: auto; flex: 1; font: 11px/1.65 Consolas, "Cascadia Mono", monospace; scrollbar-color: #16425d #030811; }
.log-line { display: grid; grid-template-columns: 76px 1fr; gap: 9px; overflow-wrap: anywhere; }
.log-line time { color: #41596e; }
.log-line.info span { color: var(--console-info); }
.log-line.success span { color: var(--console-success); }
.log-line.warn span { color: var(--amber); }
.log-line.error span { color: var(--red); }

footer { min-height: 48px; padding: 0 clamp(18px, 4vw, 58px); display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(6, 213, 255, 0.12); color: #4d6479; font-size: 10px; }
footer b { color: var(--green); }

.login-overlay { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 22px; background: rgba(1, 5, 10, 0.86); backdrop-filter: blur(12px); }
.login-card { width: min(420px, 100%); padding: 34px; display: flex; flex-direction: column; border: 1px solid var(--line-bright); border-radius: 18px; background: #081321; box-shadow: var(--shadow); }
.login-symbol { width: 46px; height: 46px; margin-bottom: 18px; display: grid; place-items: center; border: 1px solid var(--cyan); border-radius: 13px; color: var(--cyan); font-size: 24px; }
.login-logo { width: 104px; height: 104px; object-fit: contain; margin-bottom: 15px; filter: drop-shadow(0 12px 26px rgba(242,13,24,.25)); }
.login-card h2 { margin: 6px 0 0; }
.login-card p { margin: 8px 0 20px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.login-card label { margin-bottom: 7px; color: #aec0d2; font-size: 11px; font-weight: 700; }
.login-card input { height: 44px; padding: 0 13px; color: var(--text); background: #030a13; border: 1px solid var(--line); border-radius: 9px; }
.login-card .primary-button { margin-top: 13px; flex: none; }
.login-card .login-error { min-height: 18px; margin: 10px 0 0; color: var(--red); text-align: center; }
.discord-symbol { border-color: #5865f2; color: #aeb7ff; background: rgba(88, 101, 242, 0.12); font-size: 13px; font-weight: 900; }
.discord-login-button {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  color: #fff;
  text-decoration: none;
  border: 1px solid #7180ff;
  border-radius: 10px;
  background: #5865f2;
  box-shadow: 0 12px 28px rgba(88, 101, 242, 0.22);
  font-size: 13px;
  font-weight: 800;
  transition: 160ms ease;
}
.discord-login-button:hover { transform: translateY(-1px); background: #6572f5; }
.discord-login-button.disabled { opacity: 0.5; pointer-events: none; }

@media (max-width: 980px) {
  .app-frame { grid-template-columns: 1fr; }
  .sidebar { padding: 10px 12px; border-right: 0; border-bottom: 1px solid rgba(6, 213, 255, 0.16); }
  .tool-nav { grid-template-columns: 1fr 1fr; position: static; }
  .nav-button { min-height: 52px; }
  .workspace { grid-template-columns: 1fr; }
  .activity-card { min-height: 620px; }
}

@media (max-width: 620px) {
  .topbar { padding-inline: 12px; align-items: center; gap: 12px; }
  .privacy-chip { display: none; }
  .topbar-actions { min-width: 0; flex-wrap: wrap; justify-content: flex-end; }
  .discord-user { max-width: 130px; }
  .credit-chip { padding-inline: 9px; }
  .system-status { padding-inline: 9px; }
  .system-status span:last-child { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .brand small { display: none; }
  .brand { min-width: 0; }
  .brand strong { font-size: 13px; }
  .tool-view, .workspace, .panel { min-width: 0; max-width: 100%; }
  .workspace { width: 100%; padding: 12px; }
  .sidebar { padding: 8px; }
  .nav-button { min-height: 48px; padding: 7px; grid-template-columns: 25px 1fr; }
  .nav-button small { display: none; }
  .control-card, .activity-card { padding: 19px; border-radius: 14px; }
  .files-block { grid-template-columns: 1fr; }
  .files-block h2 { grid-column: auto; }
  .file-zone { min-height: 118px; }
  .result-card { grid-template-columns: auto 1fr; }
  .download-button { grid-column: 1 / -1; justify-content: center; }
  .activity-heading { align-items: flex-start; flex-wrap: wrap; }
  .progress-card { padding: 14px; }
  .pipeline-steps { font-size: 8px; }
  .console-bar { grid-template-columns: auto 1fr; }
  .console-bar > strong { display: none; }
  .log-line { grid-template-columns: 1fr; gap: 0; margin-bottom: 5px; }
  footer { justify-content: center; }
  footer span:last-child { display: none; }
}

/* --- Meus downloads --- */
.downloads-list { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.download-row { padding: 13px 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; border: 1px solid #122d43; border-radius: 12px; background: rgba(6, 213, 255, 0.04); }
.download-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.download-info strong { color: var(--cyan); font-size: 12px; overflow-wrap: anywhere; }
.download-info small { color: var(--muted); font-size: 10px; }
.download-actions { display: flex; align-items: center; gap: 8px; }
.download-expiry { color: var(--amber, #ffb547) !important; font-size: 10px; }
.download-expiry.expired { color: #ff5f70 !important; }

/* Chip de creditos clicavel + atalho para adquirir Mr. Coins no Discord. */
.credit-wrap { position: relative; display: inline-flex; }
.credit-wrap.hidden { display: none; }
.credit-chip { cursor: pointer; font: inherit; }
.credit-chip:hover { border-color: rgba(255, 181, 71, 0.6); }
.credit-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  min-width: 240px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 181, 71, 0.28);
  background: #14161c;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  display: grid;
  gap: 10px;
  text-align: left;
}
.credit-popover.hidden { display: none; }
.credit-popover p { margin: 0; font-size: 13px; color: #e6e8ef; }
.credit-popover small { color: #9aa0ad; font-size: 11px; line-height: 1.4; }
.credit-popover .primary-button { flex: none; width: 100%; text-decoration: none; }
.local-device-card { border-left: 2px solid #f01824; padding-left: 16px; }
.local-device-card .secondary-button { text-align: center; text-decoration: none; }
.local-pair-code { font-family: Consolas, monospace; font-size: 24px; letter-spacing: 2px; color: #ff626b; overflow-wrap: anywhere; }
#local-device-status { font-size: 13px; overflow-wrap: anywhere; }
