.bytechips-upload {
  max-width: 960px;
  margin: 0 auto 64px;
  padding: 32px 36px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: rgba(17, 24, 39, 0.78);
  box-shadow: 0 32px 60px rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(18px);
  color: #e2e8f0;
}
.bytechips-upload__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.bytechips-upload__header h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #f8fafc;
}
.bytechips-upload__plan {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: #cbd5f5;
}
.bytechips-upload__plan-label {
  font-weight: 600;
  color: #f1f5f9;
}
.bytechips-upload__plan-limit {
  opacity: 0.85;
}
.bytechips-upload__help {
  margin: 0 0 24px;
  color: #cbd5f5;
  font-size: 15px;
  line-height: 1.6;
}

.bytechips-upload__dropzone {
  position: relative;
  border: 2px dashed rgba(148, 163, 184, 0.45);
  border-radius: 18px;
  padding: 56px 24px;
  text-align: center;
  background: rgba(15, 23, 42, 0.65);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.bytechips-upload__dropzone.is-dragover {
  border-color: rgba(14, 165, 233, 0.85);
  background: rgba(14, 116, 233, 0.25);
  transform: translateY(-2px);
}
.bytechips-upload__dropzone[data-state="uploading"] {
  opacity: 0.55;
  pointer-events: none;
}
.bytechips-upload__dropzone input[type="file"] {
  display: none;
}
.bytechips-upload__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  color: #cbd5f5;
  cursor: pointer;
}
.bytechips-upload__label .dashicons {
  font-size: 42px;
  width: 42px;
  height: 42px;
  color: #60a5fa;
}
.bytechips-upload__label small {
  font-size: 13px;
  color: #94a3b8;
}

.bytechips-upload__queue {
  margin-top: 28px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.55);
  padding: 20px 22px;
  min-height: 120px;
}
.bytechips-upload__empty {
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}
.bytechips-upload__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bytechips-upload__item {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  padding: 14px 18px;
  background: rgba(30, 41, 59, 0.82);
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.35);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
}
.bytechips-upload__item.is-success {
  border-color: rgba(34, 197, 94, 0.45);
}
.bytechips-upload__item.is-error {
  border-color: rgba(248, 113, 113, 0.45);
}
.bytechips-upload__item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.bytechips-upload__item-name {
  font-weight: 600;
  font-size: 15px;
  color: #f8fafc;
  word-break: break-all;
}
.bytechips-upload__item-remove {
  border: none;
  background: rgba(148, 163, 184, 0.15);
  color: #e2e8f0;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.bytechips-upload__item-remove:hover {
  background: rgba(248, 113, 113, 0.35);
  transform: rotate(90deg);
}
.bytechips-upload__item-remove[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.bytechips-upload__item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font-size: 13px;
  color: #cbd5f5;
}
.bytechips-upload__item-size {
  font-weight: 600;
  color: #e2e8f0;
}
.bytechips-upload__item-status {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  color: #cbd5f5;
  font-size: 12px;
}
.bytechips-upload__item.is-success .bytechips-upload__item-status {
  background: rgba(34, 197, 94, 0.18);
  color: #bbf7d0;
}
.bytechips-upload__item.is-error .bytechips-upload__item-status {
  background: rgba(248, 113, 113, 0.18);
  color: #fecaca;
}
.bytechips-upload__item.is-cancelled .bytechips-upload__item-status {
  background: rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
}
.bytechips-upload__item-progress {
  position: relative;
  margin-top: 14px;
  height: 12px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}
.bytechips-upload__item-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, #60a5fa, #8b5cf6, #f472b6);
  transition: width 0.2s ease;
}
.bytechips-upload__item-link {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.bytechips-upload__item-url {
  font-family: Menlo, Consolas, monospace;
  font-size: 13px;
  color: #cbd5f5;
  word-break: break-all;
  flex: 1 1 auto;
}
.bytechips-upload__item-copy {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.bytechips-upload__item-copy:hover {
  background: rgba(148, 163, 184, 0.32);
}

.bytechips-upload__summary {
  margin: 24px 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
  color: #cbd5f5;
}
.bytechips-upload__summary-count,
.bytechips-upload__summary-size {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(148, 163, 184, 0.18);
  padding: 6px 12px;
  border-radius: 999px;
}

.bytechips-upload__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}
.bytechips-upload__start {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  background: linear-gradient(135deg, #a855f7, #6366f1, #38bdf8);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 24px 48px rgba(56, 189, 248, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bytechips-upload__start .icon {
  font-size: 18px;
  line-height: 1;
}
.bytechips-upload__start:hover:not([disabled]) {
  transform: translateY(-2px);
  box-shadow: 0 32px 60px rgba(56, 189, 248, 0.55);
}
.bytechips-upload__start:active:not([disabled]) {
  transform: translateY(0);
  box-shadow: 0 16px 32px rgba(56, 189, 248, 0.45);
}
.bytechips-upload__start[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.bytechips-upload__actions .button {
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.25);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #e2e8f0;
  padding: 14px 26px;
  font-weight: 600;
  box-shadow: 0 16px 32px rgba(2, 6, 23, 0.45);
  cursor: pointer;
}
.bytechips-upload__actions .button:hover:not([disabled]) {
  background: rgba(148, 163, 184, 0.35);
}
.bytechips-upload__actions .button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.bytechips-upload__actions .button-link {
  background: none;
  border: none;
  color: #93c5fd;
  text-decoration: underline;
  box-shadow: none;
  padding: 14px 0;
}
.bytechips-upload__actions .button-link:hover:not([disabled]) {
  color: #bfdbfe;
}

.bytechips-upload__message {
  min-height: 22px;
  margin: 12px 0 18px;
  font-size: 14px;
  color: #cbd5f5;
}
.bytechips-upload__message.is-success {
  color: #bbf7d0;
}
.bytechips-upload__message.is-error {
  color: #fecaca;
}
.bytechips-upload__message.is-info {
  color: #bae6fd;
}

.bytechips-upload__share {
  margin-top: 28px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.6);
  color: #e2e8f0;
}
.bytechips-upload__share h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: #f8fafc;
}
.bytechips-upload__share p {
  margin: 0 0 16px;
  font-size: 14px;
  color: #cbd5f5;
}
.bytechips-upload__share-field {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.bytechips-upload__share-input {
  flex: 1 1 320px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
  font-size: 14px;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  word-break: break-all;
}
.bytechips-upload__share-input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.55);
}
.bytechips-upload__share-field .button {
  flex: 0 0 auto;
}

.bytechips-upload__meta {
  margin-top: 20px;
  padding: 18px 20px;
  background: rgba(30, 41, 59, 0.85);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 14px;
  display: grid;
  gap: 4px;
  color: #e2e8f0;
}
.bytechips-upload__filename {
  font-weight: 600;
  word-break: break-all;
}
.bytechips-upload__progress {
  position: relative;
  margin: 24px 0;
  height: 16px;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}
.bytechips-upload__bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #60a5fa, #8b5cf6, #f472b6);
  transition: width 0.2s ease;
}
.bytechips-upload__percent {
  position: absolute;
  top: -28px;
  right: 0;
  font-size: 13px;
  color: #f1f5f9;
}
.bytechips-upload__result {
  padding: 20px;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.15);
  margin-top: 16px;
}
.bytechips-upload__result h3 {
  margin-top: 0;
  margin-bottom: 12px;
  color: #f8fafc;
}
.bytechips-upload__result-url {
  font-family: Menlo, Consolas, monospace;
  font-size: 14px;
  word-break: break-all;
  margin-bottom: 8px;
  color: #cbd5f5;
}
.bytechips-upload__result-url a {
  color: inherit;
  text-decoration: none;
  word-break: break-all;
}
.bytechips-upload__result-url a:hover,
.bytechips-upload__result-url a:focus {
  text-decoration: underline;
  color: #f8fafc;
}
.bytechips-upload__result button.is-copied {
  animation: bytechips-copy-pulse 1s ease;
}
@keyframes bytechips-copy-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 124, 186, 0.45);
  }
  100% {
    box-shadow: 0 0 0 12px rgba(0, 124, 186, 0);
  }
}

@media (max-width: 768px) {
  .bytechips-upload {
    padding: 24px;
  }
  .bytechips-upload__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .bytechips-upload__actions .button,
  .bytechips-upload__start {
    width: 100%;
  }
  .bytechips-upload__plan {
    flex-direction: column;
  }
}

