/* OptiCraft Heritage - 3DS Skin Converter Styles */
@font-face {
  font-family: Minecraft;
  src: url("../fonts/Minecraft-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #111;
  color: #fff;
  font-family: Minecraft, Arial, Helvetica, sans-serif;
  image-rendering: pixelated;
  min-height: 100vh;
}

button,
a,
input,
select,
textarea {
  font: inherit;
  font-family: Minecraft, Arial, Helvetica, sans-serif;
}

/* Background Panorama */
.screen {
  min-height: 100vh;
  position: relative;
  background: #111;
  padding-bottom: 70px;
}

.panorama {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background: #111;
}

.panorama-track {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 200%;
  display: flex;
  animation: tu12-panorama 35s linear infinite;
}

.panorama-track img {
  display: block;
  flex: 0 0 50%;
  width: 50%;
  height: 100%;
  min-width: 100vw;
  object-fit: cover;
  object-position: center;
}

.panorama-track img:nth-child(2) {
  transform: scaleX(-1);
}

@keyframes tu12-panorama {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.panorama-shade {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, .75)),
    linear-gradient(90deg, rgba(0, 0, 0, .3), transparent 35%, transparent 65%, rgba(0, 0, 0, .3));
}

/* Header & Top Navigation */
.top-nav {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  max-width: 1050px;
  margin: 0 auto;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-buttons-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  background: #555;
  border: 2px solid #1b1b1b;
  box-shadow: inset 2px 2px #aaa, inset -2px -2px #222, 2px 2px rgba(0, 0, 0, .6);
  padding: 8px 12px;
  font-size: 13px;
  text-shadow: 2px 2px #222;
  transition: background .15s ease, transform .05s ease;
  user-select: none;
}

.nav-back-btn:hover {
  background: #777;
}

.nav-back-btn:active {
  transform: translate(1px, 1px);
}

.nav-back-btn.accent-pak {
  background: #3c5270;
  box-shadow: inset 2px 2px #6284b3, inset -2px -2px #182333, 2px 2px rgba(0, 0, 0, .6);
}

.nav-back-btn.accent-pak:hover {
  background: #4d688e;
}

.nav-back-btn.accent-och {
  background: #5c3d28;
  box-shadow: inset 2px 2px #8d6243, inset -2px -2px #2a1b12, 2px 2px rgba(0, 0, 0, .6);
}

.nav-back-btn.accent-och:hover {
  background: #744e33;
}

.lang-switcher {
  display: flex;
  gap: 8px;
}

.lang-btn {
  background: #4a4a4a;
  color: #fff;
  border: 2px solid #1b1b1b;
  box-shadow: inset 2px 2px #888, inset -2px -2px #222, 2px 2px rgba(0, 0, 0, .6);
  padding: 4px 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: background .15s ease, transform .05s ease;
}

.lang-btn:hover {
  background: #666;
}

.lang-btn.active {
  background: #777;
  outline: 2px solid rgba(255, 255, 255, .8);
  box-shadow: inset 2px 2px #222, inset -2px -2px #aaa;
}

.lang-btn:active {
  transform: translate(1px, 1px);
}

.lang-flag {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* Main Container */
.tool-container {
  position: relative;
  z-index: 2;
  width: min(1000px, 94vw);
  margin: 6px auto 40px;
}

.tool-header {
  text-align: center;
  margin-bottom: 22px;
}

.ctr-badge-header {
  display: inline-block;
  background: #c62828;
  color: #fff;
  padding: 4px 14px;
  font-size: 13px;
  letter-spacing: 1.5px;
  border: 2px solid #000;
  box-shadow: inset 2px 2px #ef5350, inset -2px -2px #5f0909;
  text-shadow: 2px 2px #000;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.tool-title {
  margin: 4px 0 6px;
  font-size: clamp(20px, 4vw, 32px);
  text-shadow: 3px 3px 0 #000;
  letter-spacing: 1px;
  color: #fff;
}

.tool-subtitle {
  margin: 0 auto;
  max-width: 780px;
  font-size: 14px;
  color: #ccc;
  text-shadow: 2px 2px #000;
  line-height: 1.5;
}

/* Legacy Minecraft Panel Frame */
.legacy-panel {
  background: rgba(16, 16, 16, 0.92);
  border: 4px solid #000;
  box-shadow: inset 3px 3px #555, inset -3px -3px #222, 0 10px 30px rgba(0, 0, 0, 0.8);
  padding: 24px;
  position: relative;
}

@media (max-width: 600px) {
  .legacy-panel {
    padding: 16px 12px;
  }
}

/* Step Wizard Progress Bar */
.wizard-steps-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  position: relative;
  background: #1e1e1e;
  border: 2px solid #000;
  padding: 8px 12px;
  box-shadow: inset 2px 2px #111, inset -2px -2px #333;
  gap: 8px;
  overflow-x: auto;
}

.step-indicator {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #2a2a2a;
  border: 2px solid #111;
  color: #888;
  cursor: pointer;
  user-select: none;
  transition: all .2s ease;
  min-width: 170px;
}

.step-indicator .step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #444;
  color: #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  border: 1px solid #000;
  flex-shrink: 0;
}

.step-indicator .step-label {
  font-size: 13px;
  line-height: 1.2;
}

.step-indicator .step-title {
  display: block;
  font-size: 12px;
  color: #bbb;
}

.step-indicator .step-desc {
  display: block;
  font-size: 10px;
  color: #777;
}

.step-indicator.active {
  background: #39523c;
  border-color: #5bb36b;
  color: #fff;
  box-shadow: inset 2px 2px #5bb36b, inset -2px -2px #1c2e1f;
}

.step-indicator.active .step-num {
  background: #4caf50;
  color: #fff;
  border-color: #2e7d32;
}

.step-indicator.active .step-title {
  color: #fff;
  text-shadow: 1px 1px #000;
}

.step-indicator.completed {
  background: #2b392d;
  border-color: #3e5e41;
  color: #a5d6a7;
}

.step-indicator.completed .step-num {
  background: #2e7d32;
  color: #fff;
}

.step-indicator.completed .step-title {
  color: #c8e6c9;
}

.step-arrow {
  color: #555;
  font-size: 14px;
}

/* Wizard Panes */
.wizard-pane {
  display: none;
}

.wizard-pane.active {
  display: block;
  animation: fadeIn .2s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Info Banner Cards */
.info-card {
  background: #222;
  border: 2px solid #000;
  box-shadow: inset 2px 2px #333, inset -2px -2px #111;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.5;
  color: #ddd;
}

.info-card strong {
  color: #ffeb3b;
}

.info-card p {
  margin: 4px 0;
}

/* STEP 1: Upload / Dropzone */
.dropzone-box {
  border: 3px dashed #666;
  background: rgba(30, 30, 30, 0.85);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
  position: relative;
  user-select: none;
  margin-bottom: 20px;
}

.dropzone-box:hover,
.dropzone-box.dragover {
  border-color: #4caf50;
  background: rgba(45, 65, 45, 0.9);
  box-shadow: inset 0 0 25px rgba(76, 175, 80, 0.3);
}

.dropzone-icon {
  font-size: 48px;
  color: #81c784;
  margin-bottom: 12px;
  text-shadow: 2px 2px 0 #000;
}

.dropzone-title {
  font-size: 17px;
  color: #fff;
  text-shadow: 2px 2px 0 #000;
  margin-bottom: 6px;
}

.dropzone-sub {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 16px;
}

.dropzone-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Minecraft Button Style */
.legacy-btn {
  background: #555;
  color: #fff;
  border: 2px solid #1b1b1b;
  box-shadow: inset 2px 2px #aaa, inset -2px -2px #222, 2px 2px rgba(0, 0, 0, .6);
  padding: 10px 18px;
  font-size: 13px;
  text-shadow: 2px 2px #222;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  user-select: none;
  transition: background .15s ease, transform .05s ease;
}

.legacy-btn:hover {
  background: #777;
}

.legacy-btn:active {
  transform: translate(1px, 1px);
}

.legacy-btn.primary {
  background: #2e7d32;
  box-shadow: inset 2px 2px #81c784, inset -2px -2px #1b5e20, 2px 2px rgba(0, 0, 0, .6);
}

.legacy-btn.primary:hover {
  background: #388e3c;
}

.legacy-btn.warning {
  background: #c62828;
  box-shadow: inset 2px 2px #ef5350, inset -2px -2px #5f0909, 2px 2px rgba(0, 0, 0, .6);
}

.legacy-btn.warning:hover {
  background: #d32f2f;
}

.legacy-btn.secondary {
  background: #3c5270;
  box-shadow: inset 2px 2px #6284b3, inset -2px -2px #182333, 2px 2px rgba(0, 0, 0, .6);
}

.legacy-btn.secondary:hover {
  background: #4d688e;
}

.legacy-btn.large {
  padding: 14px 24px;
  font-size: 15px;
}

/* Sample skins chips */
.sample-skins-section {
  background: #1a1a1a;
  border: 2px solid #000;
  padding: 14px;
  margin-bottom: 20px;
  text-align: center;
}

.sample-title {
  font-size: 12px;
  color: #bbb;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sample-chips {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.sample-chip {
  background: #333;
  border: 2px solid #111;
  box-shadow: inset 1px 1px #555, inset -1px -1px #111;
  padding: 6px 12px;
  font-size: 12px;
  color: #eee;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .15s;
}

.sample-chip:hover {
  background: #444;
  color: #fff;
  border-color: #81c784;
}

/* Loaded skin card in Step 1 */
.loaded-skin-card {
  display: none;
  background: #1d2b1f;
  border: 2px solid #4caf50;
  box-shadow: inset 2px 2px #81c784, inset -2px -2px #1b5e20;
  padding: 16px;
  margin-bottom: 20px;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.loaded-skin-card.visible {
  display: flex;
}

.skin-thumbnail-box {
  width: 64px;
  height: 64px;
  background: #111;
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.skin-thumbnail-box canvas,
.skin-thumbnail-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.skin-meta-details {
  flex: 1;
  min-width: 220px;
}

.skin-meta-name {
  font-size: 16px;
  color: #fff;
  text-shadow: 2px 2px #000;
  margin-bottom: 4px;
  word-break: break-all;
}

.skin-meta-specs {
  font-size: 12px;
  color: #c8e6c9;
  line-height: 1.4;
}

.badge-tag {
  display: inline-block;
  background: #2e7d32;
  color: #fff;
  padding: 2px 8px;
  font-size: 11px;
  border: 1px solid #000;
  margin-top: 4px;
}

.badge-tag.badge-retro {
  background: #f57c00;
}

.loaded-skin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 8px;
  justify-content: flex-end;
}

/* STEP 2: Presets & Settings */
.presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.preset-card {
  background: #262626;
  border: 2px solid #111;
  box-shadow: inset 2px 2px #444, inset -2px -2px #111;
  padding: 14px;
  cursor: pointer;
  position: relative;
  transition: all .15s ease;
  user-select: none;
}

.preset-card:hover {
  background: #333;
}

.preset-card.active {
  background: #1c3621;
  border-color: #4caf50;
  box-shadow: inset 2px 2px #66bb6a, inset -2px -2px #142918;
}

.preset-card .preset-badge {
  position: absolute;
  top: -8px;
  right: 10px;
  background: #fbc02d;
  color: #000;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border: 1px solid #000;
}

.preset-title {
  font-size: 14px;
  color: #fff;
  text-shadow: 1px 1px #000;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.preset-desc {
  font-size: 11px;
  color: #bbb;
  line-height: 1.4;
}

/* Settings Checkboxes Card */
.settings-list-card {
  background: #1b1b1b;
  border: 2px solid #000;
  padding: 16px;
  margin-bottom: 20px;
}

.settings-list-title {
  font-size: 13px;
  color: #ffeb3b;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.setting-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #292929;
}

.setting-row:last-child {
  border-bottom: none;
}

.setting-checkbox {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: #4caf50;
  cursor: pointer;
}

.setting-info {
  flex: 1;
}

.setting-label {
  font-size: 13px;
  color: #fff;
  display: block;
  cursor: pointer;
  margin-bottom: 2px;
}

.setting-help {
  font-size: 11px;
  color: #999;
  line-height: 1.4;
}

/* Filename row */
.filename-card {
  background: #1b1b1b;
  border: 2px solid #000;
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filename-label {
  font-size: 13px;
  color: #eee;
  min-width: 140px;
}

.filename-input-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 220px;
}

.filename-input {
  flex: 1;
  background: #111;
  border: 2px solid #444;
  padding: 8px 12px;
  color: #fff;
  font-size: 14px;
  outline: none;
}

.filename-input:focus {
  border-color: #81c784;
}

.filename-ext {
  background: #333;
  border: 2px solid #444;
  border-left: none;
  padding: 8px 10px;
  color: #aaa;
  font-size: 14px;
}

/* Wizard Nav Buttons (Back / Next) */
.wizard-nav-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* STEP 3: Preview, Texture & Download */
.preview-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .preview-grid {
    grid-template-columns: 1fr;
  }
}

/* 2D Character Front Preview */
.avatar-preview-card {
  background: #1a1a1a;
  border: 2px solid #000;
  box-shadow: inset 2px 2px #333, inset -2px -2px #111;
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.avatar-preview-title {
  font-size: 13px;
  color: #81c784;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.avatar-stage {
  width: 160px;
  height: 320px;
  background: #111;
  border: 2px solid #333;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  position: relative;
  background-image: 
    linear-gradient(45deg, #181818 25%, transparent 25%), 
    linear-gradient(-45deg, #181818 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, #181818 75%), 
    linear-gradient(-45deg, transparent 75%, #181818 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
}

.avatar-canvas {
  width: 128px;
  height: 256px;
  image-rendering: pixelated;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.7));
}

.avatar-controls {
  display: flex;
  gap: 8px;
  flex-direction: column;
  width: 100%;
}

.avatar-control-btn {
  background: #2a2a2a;
  border: 1px solid #444;
  color: #ccc;
  padding: 6px 8px;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  user-select: none;
}

.avatar-control-btn:hover {
  background: #3a3a3a;
  color: #fff;
}

.avatar-control-btn.active {
  background: #2e5932;
  border-color: #81c784;
  color: #fff;
}

/* Texture Sheet Comparison */
.texture-sheets-card {
  background: #1a1a1a;
  border: 2px solid #000;
  box-shadow: inset 2px 2px #333, inset -2px -2px #111;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.texture-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.texture-card-title {
  font-size: 13px;
  color: #ffeb3b;
  text-transform: uppercase;
}

.texture-toggle-view {
  background: #333;
  border: 1px solid #555;
  color: #eee;
  padding: 4px 8px;
  font-size: 11px;
  cursor: pointer;
}

.texture-toggle-view:hover {
  background: #444;
}

.texture-comparison-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 550px) {
  .texture-comparison-wrap {
    grid-template-columns: 1fr;
  }
}

.texture-box {
  background: #111;
  border: 2px solid #333;
  padding: 10px;
  text-align: center;
}

.texture-box-label {
  font-size: 11px;
  color: #aaa;
  margin-bottom: 8px;
  display: block;
}

.texture-canvas-frame {
  width: 100%;
  aspect-ratio: 2 / 1;
  background: #161616;
  border: 1px solid #222;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background-image: 
    linear-gradient(45deg, #202020 25%, transparent 25%), 
    linear-gradient(-45deg, #202020 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, #202020 75%), 
    linear-gradient(-45deg, transparent 75%, #202020 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0px;
}

.texture-canvas-frame canvas {
  max-width: 95%;
  max-height: 95%;
  image-rendering: pixelated;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.texture-specs-pill {
  font-size: 10px;
  color: #81c784;
  margin-top: 6px;
  display: block;
}

/* Download Section */
.download-action-card {
  background: #1c2b1e;
  border: 3px solid #4caf50;
  box-shadow: inset 2px 2px #81c784, inset -2px -2px #1b5e20, 0 6px 20px rgba(0, 0, 0, 0.7);
  padding: 20px;
  text-align: center;
  margin-bottom: 24px;
}

.download-action-title {
  font-size: 16px;
  color: #fff;
  text-shadow: 2px 2px #000;
  margin-bottom: 6px;
}

.download-action-sub {
  font-size: 12px;
  color: #c8e6c9;
  margin-bottom: 16px;
}

/* SD Card Instructions Card */
.sd-guide-card {
  background: #1c232e;
  border: 2px solid #28547a;
  box-shadow: inset 2px 2px #3c77a8, inset -2px -2px #102538;
  padding: 20px;
  margin-bottom: 24px;
}

.sd-guide-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.sd-guide-header i {
  font-size: 24px;
  color: #64b5f6;
}

.sd-guide-title {
  font-size: 15px;
  color: #fff;
  text-shadow: 1px 1px #000;
}

.sd-path-box {
  background: #111;
  border: 2px solid #000;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.sd-path-text {
  font-family: monospace;
  font-size: 14px;
  color: #81d4fa;
  letter-spacing: 0.5px;
  word-break: break-all;
}

.copy-btn {
  background: #37474f;
  border: 1px solid #263238;
  color: #fff;
  padding: 6px 12px;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.copy-btn:hover {
  background: #455a64;
}

.copy-btn:active {
  transform: translate(1px, 1px);
}

.sd-steps-list {
  padding-left: 20px;
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #ddd;
}

.sd-steps-list li {
  margin-bottom: 6px;
}

.sd-steps-list strong {
  color: #90caf9;
}

/* 3DS QR Scanner Section */
.qr-card-section {
  background: #231c26;
  border: 2px solid #5d3570;
  box-shadow: inset 2px 2px #7e4b96, inset -2px -2px #200f28;
  padding: 20px;
  margin-bottom: 24px;
}

.qr-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.qr-header i {
  font-size: 24px;
  color: #ce93d8;
}

.qr-title {
  font-size: 15px;
  color: #fff;
}

.qr-desc {
  font-size: 12px;
  color: #ccc;
  line-height: 1.5;
  margin-bottom: 14px;
}

.qr-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.qr-input {
  flex: 1;
  min-width: 240px;
  background: #111;
  border: 2px solid #555;
  padding: 8px 12px;
  color: #fff;
  font-size: 13px;
}

.qr-input:focus {
  border-color: #ce93d8;
  outline: none;
}

.qr-display-box {
  display: none;
  background: #fff;
  padding: 16px;
  border: 4px solid #000;
  margin: 16px auto;
  max-width: 220px;
  text-align: center;
}

.qr-display-box.visible {
  display: block;
}

.qr-display-box canvas {
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

.qr-tip-text {
  font-size: 11px;
  color: #aaa;
  text-align: center;
  margin-top: 8px;
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #2e7d32;
  color: #fff;
  border: 2px solid #000;
  box-shadow: inset 2px 2px #81c784, inset -2px -2px #1b5e20, 0 4px 15px rgba(0, 0, 0, 0.8);
  padding: 10px 20px;
  font-size: 13px;
  z-index: 9999;
  opacity: 0;
  transition: all .25s ease;
  pointer-events: none;
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
