:root {
  --font-family: 'Poppins', sans-serif;
  --primary-color: #8E78FF;
  --primary-glow: rgba(142, 120, 255, 0.3);
  --text-color: #e0e0e0;
  --text-color-light: rgba(224, 224, 224, 0.6);
  --bg-color: #0B0D17;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.4);
  --radius-l: 22px;
  --radius-m: 10px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.background-animation {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: -1;
  overflow: hidden;
  filter: blur(120px);
}

.orb {
  position: absolute;
  border-radius: 50%;
  animation: move 35s infinite alternate;
}

.orb:nth-child(1) {
  width: 500px;
  height: 500px;
  top: 10%;
  left: -20%;
  background: #4F46E5;
}

.orb:nth-child(2) {
  width: 600px;
  height: 600px;
  top: 50%;
  left: 70%;
  background: var(--primary-color);
  animation-duration: 45s;
}

.orb:nth-child(3) {
  width: 400px;
  height: 400px;
  top: 80%;
  left: 20%;
  background: #d1d5db;
  animation-duration: 40s;
}

@keyframes move {
  from {
    transform: rotate(0deg) scale(1) translateX(-10%);
  }

  to {
    transform: rotate(360deg) scale(1.4) translateX(10%);
  }
}

.upload-container {
  width: 100%;
  max-width: 460px;
  padding: 35px 40px;
  text-align: center;
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-l);
  box-shadow: 0 8px 32px 0 var(--shadow-color);
  transition: all 0.5s ease-out;
  transform-style: preserve-3d;
}

.upload-container:hover {
  box-shadow: 0 12px 40px var(--shadow-color), 0 0 30px var(--primary-glow);
}

.upload-container::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-l);
  padding: 1px;
  background: radial-gradient(circle at center, var(--primary-color), transparent 70%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: pulse-border 5s infinite alternate ease-in-out;
  pointer-events: none;
}

@keyframes pulse-border {
  from {
    opacity: 0.2;
  }

  to {
    opacity: 0.8;
  }
}

header,
footer {
  width: 100%;
  padding: 25px 60px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 2px;
}

footer {
  color: var(--text-color-light);
  font-size: 0.9rem;
  justify-content: center;
}

main {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.upload-icon {
  font-size: 3rem;
  color: var(--text-color);
  margin-bottom: 15px;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  transition: color 0.3s ease;
}

.upload-container:hover .upload-icon {
  color: var(--primary-color);
}

.upload-container h1 {
  font-size: 1.7rem;
  margin-bottom: 8px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.upload-container p {
  font-size: 1rem;
  color: var(--text-color-light);
  margin-bottom: 20px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.upload-button {
  background: rgba(142, 120, 255, 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(142, 120, 255, 0.5);
  padding: 12px 28px;
  border-radius: var(--radius-m);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.upload-button:hover {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 0 25px var(--primary-glow);
  border-color: var(--primary-color);
}

.upload-container.drag-over {
  transform: scale(1.03);
  border-color: var(--primary-color);
  box-shadow: 0 12px 40px var(--shadow-color), 0 0 40px var(--primary-glow);
}

.upload-container.drag-over .upload-icon {
  animation: pulse-fast 1.5s infinite ease-in-out;
}

@keyframes pulse-fast {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }
}

.upload-container.fade-out {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

.upload-progress-section {
  width: 100%;
  max-width: 600px;
  padding: 30px 35px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-l);
  box-shadow: 0 8px 32px 0 var(--shadow-color);
  animation: fade-in 0.5s ease-out;
   max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.upload-progress-section.drag-over {
  border-color: var(--primary-color);
  box-shadow: 0 8px 32px 0 var(--shadow-color), 0 0 30px var(--primary-glow);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.progress-header h2 {
  margin-bottom: 0;
  text-align: left;
  font-weight: 600;
  font-size: 1.5rem;
}

.total-size-info {
  font-size: 0.9rem;
  color: var(--text-color-light);
  background: rgba(0, 0, 0, 0.2);
  padding: 5px 12px;
  border-radius: var(--radius-m);
}

#totalSize {
  color: var(--text-color);
  font-weight: 500;
}

.progress-list {
  /* max-height: 250px;
  overflow-y: auto;
  padding-right: 10px; */
  flex-shrink: 1;
}

.progress-list::-webkit-scrollbar {
  width: 8px;
}

.progress-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.progress-list::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: content-box;
}

.progress-list::-webkit-scrollbar-thumb:hover {
  background-color: #a18eff;
}

.progress-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  background: rgba(0, 0, 0, 0.2);
  padding: 12px;
  border-radius: var(--radius-m);
  animation: slide-in-item 0.5s ease-out forwards;
  opacity: 0;
   gap: 1rem;
}

@keyframes slide-in-item {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.progress-item-icon {
  font-size: 1.8rem;
  margin-right: 15px;
  color: var(--text-color-light);
  width: 30px;
  text-align: center;
}

.progress-item-details {
  flex-grow: 1;
  overflow: hidden;
}

.progress-item-filename {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.progress-item-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-color-light);
  margin-top: 5px;
}

.remove-file-btn {
  background: none;
  border: none;
  color: var(--text-color-light);
  font-size: 1rem;
  cursor: pointer;
  padding: 5px;
  margin-left: 15px;
  opacity: 0.5;
  transition: all 0.2s ease;
}

.remove-file-btn:hover {
  color: #e74c3c;
  opacity: 1;
  transform: scale(1.2);
}

.pre-upload-controls {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
  animation: fade-in 0.5s ease-out;
}

.password-label {
  display: block;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 10px;
  text-align: left;
}

#passwordInput {
  width: 100%;
  padding: 12px 15px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-m);
  color: var(--text-color);
  font-size: 1rem;
  font-family: var(--font-family);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#passwordInput:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 15px var(--primary-glow);
}

#passwordInput.is-invalid {
  border-color: #e74c3c;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

.progress-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  margin-bottom: 25px;
}

.add-more-btn {
  background: transparent;
  color: var(--text-color-light);
  border: 1px dashed rgba(255, 255, 255, 0.3);
  padding: 12px 25px;
  border-radius: var(--radius-m);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.add-more-btn:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: rgba(142, 120, 255, 0.1);
}

.action-button {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 13px 35px;
  border-radius: var(--radius-m);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  perspective: 1000px;
}

.action-button:hover {
  box-shadow: 0 0 25px var(--primary-glow);
}

.action-button:disabled {
  background: #555;
  cursor: not-allowed;
  opacity: 0.6;
}


.action-button:not(:disabled) {
  background: linear-gradient(90deg, #B5A5FF 0%, #7A53E6 40%, #4C2AA8 100%);
  border: 1px solid rgba(181, 165, 255, 0.5);
  box-shadow: 0 0 25px rgba(122, 83, 230, 0.4);
  background-size: 100% 100%;
  transition: all 0.4s ease-in-out;
  text-decoration: none;
}

.action-button:not(:disabled):hover {
  background-size: 160% 160%;
  transform: translateY(-2px);
  box-shadow: 0 4px 35px rgba(122, 83, 230, 0.6);
  border-color: rgba(181, 165, 255, 0.8);
}

.in-upload-controls,
.post-upload-controls {
  margin-top: 20px;
  animation: fade-in 0.5s;
  width: 100%;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.password-strength-meter {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.strength-bar {
  width: 100%;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
}

.strength-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background-color: #555;
  transition: width 0.4s ease-out, background-color 0.4s ease-out;
}

.strength-bar.score-0::after { width: 20%; background-color: #e74c3c; }

.strength-bar.score-1::after { width: 40%; background-color: #e67e22; }

.strength-bar.score-2::after { width: 60%; background-color: #f1c40f; }

.strength-bar.score-3::after { width: 80%; background-color: #2ecc71; }

.strength-bar.score-4::after { width: 100%; background-color: #4DFFBF; }


.strength-bar.weak {
  background-color: #FF5B5B;
  width: 33%;
}

.strength-bar.good {
  background-color: #F8D347;
  width: 66%;
}

.strength-bar.strong {
  background-color: #4DFFBF;
  width: 100%;
}

.strength-text {
  font-size: 0.85rem;
  color: var(--text-color-light);
  width: 100%;
  text-align: left;
  font-weight: 500;
  transition: color 0.3s ease-in-out;
}

.strength-bar.weak+.strength-text {
  color: #FF5B5B;
  font-weight: 700;
}

.strength-bar.good+.strength-text {
  color: #F8D347;
  font-weight: 700;
}

.strength-bar.strong+.strength-text {
  color: #4DFFBF;
  font-weight: 700;
}

@keyframes fade-out-and-collapse {
  to {
    opacity: 0;
    transform: scale(0.9);
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    overflow: hidden;
    border-width: 0;
  }
}

.upload-progress-section.is-uploading .pre-upload-controls,
.upload-progress-section.is-uploading .remove-file-btn {
  animation: fade-out-and-collapse 0.5s forwards ease-in-out;
}

.upload-progress-section.is-uploading .progress-actions {
  justify-content: center;
}

.progress-bar-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-top: 8px;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background-color: #4DFFBF;
  border-radius: 3px;
  transition: width 0.3s ease-out;
}

.progress-item.is-cancelled .progress-bar {
  background-color: #FF5B5B;
}

.progress-item.is-cancelled .progress-item-status {
  color: #FF5B5B;
  font-weight: 500;
}

.post-upload-controls {
  animation: fade-in 0.5s ease-out;
}

.share-link-area {
  margin-bottom: 25px;
  text-align: center;
}

.share-link-area h3 {
  font-weight: 500;
  margin-bottom: 15px;
  color: var(--text-color);
}

.share-link-input-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

#shareLinkInput {
  flex-grow: 1;
  padding: 12px 15px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-m);
  color: var(--text-color-light);
  font-size: 0.95rem;
  font-family: var(--font-family);
  cursor: text;
}

.final-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

#copyLinkBtn .fa-solid {
  transition: transform 0.4s ease;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#copyLinkBtn .fa-check {
  transform: translate(-50%, -50%) rotateY(180deg);
}


#copyLinkBtn.is-copied {
  background: #2ecc71;
}

#copyLinkBtn.is-copied .fa-copy {
  transform: translate(-50%, -50%) rotateY(-180deg);
}

#copyLinkBtn.is-copied .fa-check {
  transform: translate(-50%, -50%) rotateY(0deg);
}

@keyframes fade-in-and-expand {
  from {
    opacity: 0;
    transform: scale(0.9);
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    overflow: hidden;
    border-width: 0;
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}


.is-rolling-back .pre-upload-controls,
.is-rolling-back .remove-file-btn {
  animation: fade-in-and-expand 0.5s forwards ease-in-out;
}

#password-form .password-input-container {
    display: flex;
    gap: 10px;
    height: 50px;
    position: relative;
}

#password-input {
    flex-grow: 1;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    border-radius: var(--radius-m);
    padding: 0 20px;
    color: var(--text-color);
    font-size: 1rem;
    font-family: var(--font-family);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}


#password-input:focus {
    outline: none;
    border-color: rgba(142, 120, 255, 0.5);
}


#password-input:focus::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius-m) + 2px);
    background: radial-gradient(circle at center, var(--primary-color), transparent 60%);
    filter: blur(15px);
    opacity: 0.6;
    z-index: -1;
    animation: pulse-glow 3s infinite alternate;
}

@keyframes pulse-glow {
    from { opacity: 0.3; }
    to { opacity: 0.7; }
}

#unlock-btn {
    height: 100%;
}


#password-input.is-invalid {
    border-color: #FF5B5B;
    animation: shake 0.5s ease-in-out;
}

.upload-progress-section[hidden] {
    display: none;
}


.upload-progress-section::-webkit-scrollbar { width: 10px; }
.upload-progress-section::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); border-radius: 5px; }
.upload-progress-section::-webkit-scrollbar-thumb { background-color: var(--primary-color); border-radius: 5px; border: 2px solid transparent; background-clip: content-box; }
.upload-progress-section::-webkit-scrollbar-thumb:hover { background-color: #a18eff; }


.fylex-input, .fylex-select {
    width: 100%;
    height: 45px;
    padding: 0 15px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-m);
    color: var(--text-color);
    font-size: 0.95rem;
    font-family: var(--font-family);
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.fylex-input:focus, .fylex-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-glow);
}

.fylex-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23e0e0e0' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 1em;
    padding-right: 40px;
}

.fylex-checkbox {
    appearance: none; -webkit-appearance: none; height: 20px; width: 20px;
    background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border);
    border-radius: 6px; cursor: pointer; margin-right: 12px;
    display: grid; place-content: center; transition: background 0.2s ease;
}
.fylex-checkbox::before { content: ''; width: 10px; height: 10px; transform: scale(0); transition: transform 0.2s ease-in-out; background-color: var(--primary-color); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); }
.fylex-checkbox:checked { background: var(--primary-glow); }
.fylex-checkbox:checked::before { transform: scale(1); }

.transfer-options .option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#expiration {
    max-width: 100px;
}

#ajax-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 13, 23, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

#ajax-modal-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

#ajax-modal-content {
    max-height: 90vh;
    animation: fade-in 0.3s ease-out forwards;
}

.monetization-options {
    margin-top: 15px;
    display: grid;
    gap: 10px;
    width: 100%;
    animation: fade-in 0.3s ease-out;
}

.action-button-secondary {
  background-color: transparent;
  border: 2px solid var(--primary-accent);
  color: var(--primary-accent);
}

.action-button-secondary:hover {
  background-color: var(--primary-accent);
  color: #fff;
  transform: translateY(-2px);
}

.not-found-container {
    max-width: 520px;
}

.not-found-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.not-found-icon::before,
.not-found-icon::after {
    content: '\f1b2';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.not-found-icon::before {
    left: 2px;
    text-shadow: -2px 0 #FF5B5B;
    animation: glitch-anim-1 3s infinite linear alternate-reverse;
}

.not-found-icon::after {
    left: -2px;
    text-shadow: -2px 0 #4DFFBF, 2px 2px #FF5B5B;
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes float {
	0% { transform: translateY(0px); }
	50% { transform: translateY(-10px); }
	100% { transform: translateY(0px); }
}

@keyframes glitch-anim-1 {
    0% { clip-path: polygon(0 2%, 100% 2%, 100% 5%, 0 5%); }
    10% { clip-path: polygon(0 78%, 100% 78%, 100% 82%, 0 82%); }
    20% { clip-path: polygon(0 50%, 100% 50%, 100% 20%, 0 20%); }
    30% { clip-path: polygon(0 95%, 100% 95%, 100% 96%, 0 96%); }
    40% { clip-path: polygon(0 15%, 100% 15%, 100% 18%, 0 18%); }
    50% { clip-path: polygon(0 60%, 100% 60%, 100% 65%, 0 65%); }
    60% { clip-path: polygon(0 30%, 100% 30%, 100% 33%, 0 33%); }
    70% { clip-path: polygon(0 85%, 100% 85%, 100% 82%, 0 82%); }
    80% { clip-path: polygon(0 40%, 100% 40%, 100% 42%, 0 42%); }
    90% { clip-path: polygon(0 55%, 100% 55%, 100% 58%, 0 58%); }
    100% { clip-path: polygon(0 3%, 100% 3%, 100% 8%, 0 8%); }
}

@keyframes glitch-anim-2 {
    0% { clip-path: polygon(0 5%, 100% 5%, 100% 7%, 0 7%); }
    10% { clip-path: polygon(0 80%, 100% 80%, 100% 85%, 0 85%); }
    20% { clip-path: polygon(0 55%, 100% 55%, 100% 25%, 0 25%); }
    30% { clip-path: polygon(0 98%, 100% 98%, 100% 99%, 0 99%); }
    40% { clip-path: polygon(0 18%, 100% 18%, 100% 21%, 0 21%); }
    50% { clip-path: polygon(0 63%, 100% 63%, 100% 68%, 0 68%); }
    60% { clip-path: polygon(0 33%, 100% 33%, 100% 36%, 0 36%); }
    70% { clip-path: polygon(0 88%, 100% 88%, 100% 85%, 0 85%); }
    80% { clip-path: polygon(0 43%, 100% 43%, 100% 45%, 0 45%); }
    90% { clip-path: polygon(0 58%, 100% 58%, 100% 61%, 0 61%); }
    100% { clip-path: polygon(0 6%, 100% 6%, 100% 11%, 0 11%); }
}


.transfer-options-container {
    margin-top: 20px;
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}

.option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.option-row-layout {
    margin-bottom: 20px;
}

.option-row-column {
    flex-direction: column;
    align-items: flex-start;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}
.checkbox-label span {
    margin-left: 10px;
}

.commission-note, .tier-limit-note {
    font-size: 0.85rem;
    color: #F8D347;
    margin-top: 5px;
    font-weight: 500;
}
.tier-limit-note {
    width: 100%;
    margin-top: 10px;
}

.cancel-btn {
    background: #555;
}
.cancel-btn:not(:disabled):hover {
    background: #e74c3c;
    box-shadow: 0 0 25px rgba(231, 76, 60, 0.6);
}

.total-size-info.is-invalid {
    color: #FF5B5B;
    background-color: rgba(255, 91, 91, 0.2);
    font-weight: 700;
    border: 1px solid #FF5B5B;
}

.progress-actions .action-button {
    margin-left: 10px;
}

.is-hidden {
    display: none !important;
}

.action-button.is-failed {
    background-color: #e74c3c;
    cursor: not-allowed;
}

.error-message-detail {
    margin-top: 15px;
    padding: 10px;
    background-color: rgba(255, 91, 91, 0.1);
    border: 1px solid rgba(255, 91, 91, 0.3);
    color: #f0f0f0;
    font-size: 0.9rem;
    font-family: monospace;
    border-radius: var(--radius-m);
    word-break: break-all;
    text-align: left;
}


.fade-in {
    animation: fade-in 0.5s forwards ease-out;
}

.fade-out-and-collapse {
    animation: fade-out-and-collapse 0.5s forwards ease-in-out;
}


@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-out-and-collapse {
  to {
    opacity: 0;
    transform: scale(0.95);
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    overflow: hidden;
    border-width: 0;
  }
}

#payment-status.payment-confirmed {
    color: #4DFFBF;
}

@keyframes slide-in-item {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.progress-item.slide-in-item {
    opacity: 0;
    animation: slide-in-item 0.5s ease-out forwards;
    animation-delay: calc(var(--item-index, 0) * 0.05s);
}


.download-instructions,
.payment-instructions {
    color: var(--text-color-light);
    margin-bottom: 25px;
}

.payment-instructions {
    margin-bottom: 20px;
}

.download-error {
    margin-top: 15px;
}

.payment-view-container {
    text-align: center;
}

.qr-code-wrapper {
    background: white;
    padding: 15px;
    border-radius: var(--radius-m);
    display: inline-block;
    line-height: 0; 
}

.payment-status-text {
    margin-top: 20px;
    font-weight: 500;
}

@keyframes fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.fade-out-error {
    animation-name: fade-out;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
}

.modal-loader-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
}

.modal-loader-icon {
  font-size: 2.5rem;
  color: #fff;
}

#ajax-modal-content .upload-progress-section {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
}

.file-list-view-container {
    width: 100%;
}

#download-file-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 45vh;
    overflow-y: auto;
    padding-right: 10px;
}

#download-file-list::-webkit-scrollbar {
    width: 8px;
}

#download-file-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

#download-file-list::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: content-box;
}

#download-file-list::-webkit-scrollbar-thumb:hover {
    background-color: #a18eff;
}

#download-file-list .file-item {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: var(--radius-m);
    gap: 15px;
}

#download-file-list .file-info {
    display: flex;
    align-items: center;
    flex-grow: 1;
    overflow: hidden;
    gap: 15px;
}

#download-file-list .file-icon {
    font-size: 1.8rem;
    color: var(--text-color-light);
    width: 30px;
    text-align: center;
    flex-shrink: 0;
}

#download-file-list .file-details {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#download-file-list .file-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#download-file-list .file-size {
    font-size: 0.8rem;
    color: var(--text-color-light);
}

#download-file-list .progress-container {
    flex-grow: 1;
    max-width: 200px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

#download-file-list .progress-bar {
    width: 0%;
    height: 100%;
    background-color: #4DFFBF;
    border-radius: 3px;
    transition: width 0.3s ease-out;
}

#download-file-list .download-btn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

#download-file-list .download-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}

#download-file-list .download-btn:disabled {
    border-color: #555;
    color: #555;
    cursor: not-allowed;
}

.download-actions {
    margin-top: 25px;
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}


main {
  position: relative;
}

.upload-container.fade-out {
  position: absolute;
  z-index: -1; 
}

@media (max-width: 768px) {
  body {
    overflow-y: auto;
  }

  main {
    
    align-items: stretch;
    padding: 0 15px;
    flex-grow: 1;
  }

  .upload-container {
    margin-block: auto;
    margin-inline: 0;
  }
  
  .upload-progress-section {
    margin-block: 5vh 40px;
    margin-inline: 0;
  }

    .upload-button {
    color: #000000;
  }

 
  .add-more-btn {
    background: transparent;
  }

  header,
  footer {
    padding: 20px 25px;
  }

  header .logo {
    font-size: 1.6rem;
  }
  
  .upload-container h1,
  .progress-header h2 {
    font-size: 1.5rem;
  }
  
  .upload-container,
  .upload-progress-section {
    width: 100%;
    max-width: none;
    padding: 30px 25px;
    max-height: none;
  }

  .progress-actions,
  .final-actions,
  .download-actions {
    flex-direction: column-reverse;
    gap: 15px;
    align-items: stretch;
  }

  .action-button {
    padding: 14px 20px;
    justify-content: center;
  }

  .progress-actions .action-button,
  .add-more-btn {
    width: 100%;
    margin: 0;
    justify-content: center;
  }

  .share-link-input-group {
    flex-direction: column;
    gap: 12px;
  }

  #shareLinkInput,
  #copyLinkBtn {
    width: 100%;
    justify-content: center;
  }

  #password-form .password-input-container {
    flex-direction: column;
    height: auto;
    gap: 15px;
  }

  #password-form .password-input-container > input,
  #password-form .password-input-container > button {
      width: 100%;
      height: 50px;
  }
  
  .option-row-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  #expiration {
      width: 100%;
      max-width: none;
  }

  #download-file-list {
      max-height: none;
      padding-right: 0;
  }

  #download-file-list .file-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    grid-template-areas: 
      "icon details button"
      "progress progress progress";
    align-items: center;
    gap: 10px 15px;
    padding: 15px;
  }

  #download-file-list .file-info { grid-area: details; padding-right: 5px; }
  #download-file-list .file-icon { grid-area: icon; font-size: 1.8rem; margin: 0; }
  #download-file-list .download-btn { grid-area: button; width: 44px; height: 44px; }
  #download-file-list .progress-container { grid-area: progress; width: 100%; max-width: none; }

  .background-animation {
    filter: blur(90px);
  }

  .orb:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 5%;
    left: -40%;
  }

  .orb:nth-child(2) {
    width: 400px;
    height: 400px;
    top: 40%;
    left: 45%;
  }

  .orb:nth-child(3) {
    width: 250px;
    height: 250px;
    top: 75%;
    left: 10%;
  }
}


@media (max-width: 480px) {
  main {
    padding: 0 10px;
  }

  .upload-container,
  .upload-progress-section {
    padding: 25px 20px;
  }

  .progress-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .qr-code-wrapper {
    padding: 10px;
    width: 100%;
    max-width: 260px;
    box-sizing: border-box;
  }

  .qr-code-wrapper canvas {
    width: 100% !important;
    height: auto !important;
  }
}