/* =========================================================
   Hoppo Transfer - Premium WeTransfer-Style Design System
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-main: #080b11;
  --bg-card: rgba(16, 22, 35, 0.82);
  --bg-card-hover: rgba(22, 30, 48, 0.9);
  --bg-input: rgba(10, 14, 24, 0.65);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.5);
  --border-glow: rgba(99, 102, 241, 0.3);
  
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.45);
  --accent-cyan: #06b6d4;
  --accent-purple: #a855f7;
  --success: #10b981;
  --danger: #ef4444;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --shadow-card: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 40px -10px rgba(99, 102, 241, 0.15);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Background Ambient Glows */
.ambient-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(140px);
  opacity: 0.18;
  z-index: 0;
}
.glow-1 {
  top: -150px;
  left: -150px;
  background: radial-gradient(circle, #6366f1, #a855f7);
}
.glow-2 {
  bottom: -150px;
  right: -150px;
  background: radial-gradient(circle, #06b6d4, #3b82f6);
}

/* Header */
.app-header {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}
.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -4px var(--primary-glow);
}
.logo-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.2;
}
.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.brand-name span {
  color: var(--primary);
  font-weight: 500;
}
.badge-unlimited {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
}

/* Main Layout Grid */
.main-wrapper {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 40px 60px;
  max-width: 1360px;
  margin: 0 auto;
  width: 100%;
}
.transfer-container {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

/* WeTransfer Glass Card */
.transfer-card {
  background: var(--bg-card);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.transfer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.6), transparent);
}

/* Drop Zone */
.dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  transition: var(--transition);
  position: relative;
}
.dropzone:hover, .dropzone.drag-active {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.2);
}
.dropzone.drag-active {
  transform: scale(1.02);
}
.drop-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: var(--transition);
}
.dropzone:hover .drop-icon {
  transform: translateY(-3px) scale(1.06);
  background: var(--primary);
  color: #fff;
}
.drop-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.drop-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}
.file-input-hidden {
  display: none;
}

/* File List in Card */
.file-list-wrapper {
  margin-top: 18px;
  max-height: 210px;
  overflow-y: auto;
  padding-right: 4px;
}
.file-list-wrapper::-webkit-scrollbar {
  width: 5px;
}
.file-list-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}
.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  animation: fadeIn 0.25s ease;
}
.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.file-type-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.file-meta {
  min-width: 0;
}
.file-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}
.file-size {
  font-size: 11px;
  color: var(--text-dim);
}
.file-remove-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.file-remove-btn:hover {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.12);
}

/* Card Inputs */
.card-inputs {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.input-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.custom-input {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 12px 14px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}
.custom-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 15px var(--border-glow);
}
textarea.custom-input {
  resize: none;
  height: 64px;
}

/* Expiry Selector */
.expiry-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.expiry-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}
.expiry-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-main);
}
.expiry-btn.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--primary);
  color: #a5b4fc;
}

/* Main Action Button */
.btn-primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  margin-top: 20px;
  box-shadow: 0 8px 24px -4px var(--primary-glow);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px var(--primary-glow);
  background: linear-gradient(135deg, #4f46e5, #4338ca);
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Progress View Screen */
.progress-screen {
  display: none;
  text-align: center;
  padding: 20px 0;
}
.progress-ring-container {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 24px;
}
.progress-ring {
  transform: rotate(-90deg);
}
.progress-ring-circle-bg {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 8;
  fill: transparent;
}
.progress-ring-circle {
  stroke: url(#progressGradient);
  stroke-width: 8;
  stroke-linecap: round;
  fill: transparent;
  stroke-dasharray: 377;
  stroke-dashoffset: 377;
  transition: stroke-dashoffset 0.3s ease;
}
.progress-percent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
}
.progress-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.progress-speed {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-cyan);
}
.progress-meta {
  font-size: 13px;
  color: var(--text-muted);
}
.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
}
.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6366f1, #06b6d4);
  border-radius: 10px;
  transition: width 0.25s linear;
}

/* Success View Screen */
.success-screen {
  display: none;
  text-align: center;
  padding: 10px 0;
}
.success-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.25);
}
.success-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}
.success-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.link-box {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px;
  margin-bottom: 14px;
}
.link-box input {
  background: none;
  border: none;
  color: #a5b4fc;
  font-family: monospace;
  font-size: 13px;
  padding: 8px 10px;
  width: 100%;
  outline: none;
}
.copy-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}
.copy-btn:hover {
  background: var(--primary-hover);
}
.copy-btn.copied {
  background: var(--success);
}

.share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.share-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}
.share-action-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
}

.qr-preview-box {
  background: #ffffff;
  padding: 12px;
  border-radius: 12px;
  width: 140px;
  height: 140px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}
.qr-preview-box canvas {
  width: 100% !important;
  height: 100% !important;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: var(--transition);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Right Side - Brand Showcase */
.brand-showcase {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.showcase-eyebrow {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}
.showcase-title {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.showcase-title span {
  background: linear-gradient(135deg, #a5b4fc, #818cf8, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.showcase-desc {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 36px;
}
.showcase-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 540px;
}
.feature-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition);
}
.feature-box:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
  background: rgba(99, 102, 241, 0.05);
}
.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.feature-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.feature-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.4;
}

/* Recipient Download Page */
.download-page-card {
  max-width: 540px;
  margin: 40px auto;
  width: 100%;
}
.dl-header {
  text-align: center;
  margin-bottom: 24px;
}
.dl-icon-badge {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 10px 25px -5px var(--primary-glow);
}
.dl-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}
.dl-note {
  font-size: 14px;
  color: var(--text-muted);
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin: 12px 0 16px;
  border-left: 3px solid var(--primary);
  text-align: left;
}
.dl-meta-strip {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.dl-meta-strip span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.dl-file-table {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  max-height: 280px;
  overflow-y: auto;
}
.dl-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.dl-file-row:last-child {
  border-bottom: none;
}
.btn-dl-item {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}
.btn-dl-item:hover {
  background: var(--primary);
  color: #fff;
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(16, 22, 35, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 12px 24px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Footer */
.app-footer {
  text-align: center;
  padding: 24px;
  font-size: 13px;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  z-index: 10;
}
.app-footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}
.app-footer a:hover {
  color: var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
  .transfer-container {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
  .brand-showcase {
    text-align: center;
    align-items: center;
  }
  .showcase-features {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .app-header {
    padding: 18px 20px;
  }
  .main-wrapper {
    padding: 10px 16px 40px;
  }
  .transfer-card {
    padding: 22px 18px;
  }
  .showcase-title {
    font-size: 32px;
  }
}

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