/* ========== RESET & BASE ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1a1a2e;
  background: #f0f2f5;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: #2563EB;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #1d4ed8;
}

img { max-width: 100%; }

/* ========== HEADER ========== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header .logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2563EB;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-header .logo::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #2563EB, #7c3aed);
  border-radius: 6px;
}

.site-header .header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-header .header-email {
  font-size: 0.875rem;
  color: #64748b;
  padding: 0.375rem 0.75rem;
  background: #f1f5f9;
  border-radius: 6px;
}

.site-header .header-link {
  font-size: 0.875rem;
  color: #64748b;
  transition: color 0.2s;
}
.site-header .header-link:hover {
  color: #dc2626;
}

/* ========== FOOTER ========== */
.site-footer {
  margin-top: auto;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #94a3b8;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

/* ========== PAGE LAYOUTS ========== */
.page-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
  min-height: calc(100vh - 120px);
}

.page-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  flex: 1;
}

/* ========== CARD ========== */
.card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
  padding: 2.5rem;
  width: 100%;
}

.card-auth {
  max-width: 420px;
}

.card-upload {
  max-width: 640px;
  margin: 0 auto;
}

.card-success {
  max-width: 520px;
  text-align: center;
}

.card-share {
  max-width: 800px;
  margin: 0 auto;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.375rem;
  letter-spacing: -0.02em;
}

.card-auth .card-title {
  text-align: center;
}

.card-subtitle {
  color: #64748b;
  font-size: 0.925rem;
  text-align: center;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.card-email {
  text-align: center;
  font-weight: 600;
  color: #2563EB;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* ========== FLASH MESSAGES ========== */
.flash {
  max-width: 520px;
  margin: 1rem auto;
  padding: 0.875rem 1.125rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  animation: flashIn 0.3s ease;
}

@keyframes flashIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.flash.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.flash.success::before { content: '\2713'; font-weight: 700; }

.flash.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.flash.error::before { content: '\2717'; font-weight: 700; }

.flash.info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}
.flash.info::before { content: '\2139'; font-weight: 700; }

/* ========== FORMS ========== */
.form {
  margin-top: 0.5rem;
}

.form-group {
  margin-bottom: 1.125rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: #374151;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #1a1a2e;
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-input::placeholder {
  color: #9ca3af;
}

select.form-input {
  appearance: auto;
  cursor: pointer;
}

textarea.form-input {
  resize: vertical;
  min-height: 80px;
}

.form-hint {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 0.375rem;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  line-height: 1.4;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, #2563EB, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
  color: #ffffff;
}

.btn-success {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(22, 163, 74, 0.25);
}
.btn-success:hover {
  background: linear-gradient(135deg, #15803d, #166534);
  color: #ffffff;
}

.btn-danger {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.25);
}
.btn-danger:hover {
  background: linear-gradient(135deg, #b91c1c, #991b1b);
  color: #ffffff;
}

.btn-outline {
  background: #ffffff;
  border: 1.5px solid #d1d5db;
  color: #374151;
}
.btn-outline:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #374151;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.825rem;
  border-radius: 8px;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.btn-link {
  background: none;
  border: none;
  color: #2563EB;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.5rem;
  font-family: inherit;
}
.btn-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* ========== OTP INPUTS ========== */
.otp-container {
  display: flex;
  gap: 0.625rem;
  justify-content: center;
  margin: 1.75rem 0;
}

.otp-input {
  width: 3.25rem;
  height: 3.75rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
  border: 2px solid #d1d5db;
  border-radius: 12px;
  outline: none;
  background: #f9fafb;
  transition: all 0.2s;
  caret-color: #2563EB;
}

.otp-input:focus {
  border-color: #2563EB;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.resend-form {
  text-align: center;
  margin-top: 1rem;
}

/* ========== UPLOAD AREA ========== */
.upload-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.upload-header h1 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #1a1a2e;
}

.drop-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  background: #f8fafc;
  position: relative;
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: #2563EB;
  background: #eff6ff;
}

.drop-zone-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.drop-zone-text {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.25rem;
}

.drop-zone-hint {
  font-size: 0.85rem;
  color: #94a3b8;
}

.drop-zone-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-list {
  margin: 1rem 0;
}

.file-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.875rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.file-list-item .file-name {
  font-weight: 500;
  color: #374151;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 70%;
}

.file-list-item .file-size {
  color: #94a3b8;
  font-size: 0.8rem;
}

/* ========== PROGRESS BAR ========== */
.progress-container {
  margin: 1rem 0;
}

.progress-bar-wrapper {
  background: #e2e8f0;
  border-radius: 100px;
  height: 10px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #2563EB, #7c3aed);
  border-radius: 100px;
  transition: width 0.3s ease;
  width: 0%;
}

.progress-text {
  text-align: right;
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.375rem;
  font-weight: 600;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.25rem;
}

/* ========== SUCCESS PAGE ========== */
.success-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: #ffffff;
  font-size: 1.75rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.card-success .card-title {
  text-align: center;
  margin-bottom: 1.25rem;
}

.card-success .file-info {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  text-align: left;
  font-size: 0.9rem;
}

.card-success .file-info p {
  margin-bottom: 0.25rem;
  color: #475569;
}

.card-success .file-info strong {
  color: #1a1a2e;
}

/* ========== SHARE LINK BOX ========== */
.share-link-box {
  margin-bottom: 1.5rem;
}

.share-link-box .form-label {
  text-align: center;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.copy-group {
  display: flex;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid #d1d5db;
}

.copy-group .form-input {
  border: none;
  border-radius: 0;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.85rem;
  background: #f8fafc;
  color: #1a1a2e;
  padding: 0.875rem 1rem;
}

.copy-group .form-input:focus {
  box-shadow: none;
}

.copy-group .btn {
  border-radius: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ========== SHARE / PREVIEW ========== */
.share-file-info {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.share-file-info .card-title {
  word-break: break-word;
  margin-bottom: 0.75rem;
}

.file-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: #64748b;
}

.file-meta strong {
  color: #374151;
}

.preview-area {
  margin: 1.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.preview-image {
  display: flex;
  justify-content: center;
  padding: 1rem;
  background: repeating-conic-gradient(#e2e8f0 0% 25%, transparent 0% 50%) 50% / 20px 20px;
}

.preview-image img {
  max-height: 500px;
  object-fit: contain;
  border-radius: 4px;
}

.preview-pdf iframe {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
}

.preview-placeholder {
  padding: 3rem 2rem;
  text-align: center;
}

.preview-icon {
  font-size: 3.5rem;
  margin-bottom: 0.75rem;
  line-height: 1;
  opacity: 0.6;
}

.preview-placeholder p {
  color: #64748b;
  font-size: 0.95rem;
}

.preview-hint {
  font-size: 0.85rem !important;
  color: #94a3b8 !important;
  margin-top: 0.25rem;
}

/* ========== LOCK ICON ========== */
.lock-icon {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1;
}

/* ========== ERROR PAGE ========== */
.error-message {
  text-align: center;
  color: #64748b;
  font-size: 1rem;
  margin: 1rem 0 1.5rem;
  line-height: 1.6;
}

/* ========== TABLES ========== */
.table-wrapper {
  overflow-x: auto;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead th {
  background: #f8fafc;
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

tbody td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  color: #374151;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: #f8fafc;
}

/* ========== BADGES ========== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-success { background: #ecfdf5; color: #065f46; }
.badge-danger  { background: #fef2f2; color: #991b1b; }
.badge-info    { background: #eff6ff; color: #1e40af; }
.badge-gray    { background: #f1f5f9; color: #475569; }
.badge-warning { background: #fffbeb; color: #92400e; }

/* ========== PAGINATION ========== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.375rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
  background: #ffffff;
  transition: all 0.15s;
}

.pagination a:hover {
  background: #f1f5f9;
  text-decoration: none;
  border-color: #cbd5e1;
}

.pagination .active {
  background: #2563EB;
  color: #ffffff;
  border-color: #2563EB;
}

/* ========== ADMIN LAYOUT ========== */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 250px;
  background: linear-gradient(180deg, #0f172a, #1e293b);
  color: #ffffff;
  padding: 0;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-sidebar .sidebar-logo {
  padding: 1.25rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #60a5fa;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  letter-spacing: -0.02em;
}

.admin-sidebar nav {
  padding: 0.5rem 0;
}

.admin-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}

.admin-sidebar nav a:hover {
  background: rgba(255,255,255,0.05);
  color: #e2e8f0;
  text-decoration: none;
}

.admin-sidebar nav a.active {
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  border-left-color: #2563EB;
}

.admin-sidebar nav .nav-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 0.5rem 1.5rem;
}

.admin-content {
  flex: 1;
  padding: 2rem 2.5rem;
  overflow-x: auto;
  background: #f0f2f5;
  min-width: 0;
}

.admin-content h1 {
  margin-bottom: 1.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: -0.02em;
}

/* ========== STAT CARDS ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
}

.stat-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.stat-card .stat-label {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.stat-card .stat-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-top: 0.375rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.stat-card:nth-child(1) .stat-value { color: #2563EB; }
.stat-card:nth-child(2) .stat-value { color: #7c3aed; }
.stat-card:nth-child(3) .stat-value { color: #16a34a; }
.stat-card:nth-child(4) .stat-value { color: #ea580c; }

/* ========== FILTER BAR ========== */
.filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 1.25rem;
  padding: 1.25rem;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.filter-bar .form-group {
  margin-bottom: 0;
  min-width: 150px;
  flex: 1;
}

.filter-bar .form-input {
  padding: 0.625rem 0.875rem;
  font-size: 0.85rem;
}

.filter-bar .btn {
  flex-shrink: 0;
}

/* ========== EDIT ROW ========== */
.edit-row {
  display: none;
}

.edit-row.visible {
  display: table-row;
}

.edit-row td {
  padding: 1.25rem;
  background: #f8fafc;
}

.edit-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

/* ========== API KEY DISPLAY ========== */
.api-key-display {
  background: #fffbeb;
  border: 2px solid #fbbf24;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.api-key-display p {
  font-size: 0.875rem;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 0.5rem;
}

.api-key-display .key-value {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.85rem;
  word-break: break-all;
  background: #ffffff;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #fde68a;
  color: #1a1a2e;
}

/* ========== CHECKBOX / INLINE ========== */
.checkbox-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  font-size: 0.9rem;
}

/* ========== UTILITIES ========== */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-muted   { color: #94a3b8; }
.text-sm      { font-size: 0.875rem; }
.text-xs      { font-size: 0.75rem; }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }

  .admin-sidebar nav {
    display: flex;
    overflow-x: auto;
    padding: 0;
  }

  .admin-sidebar nav a {
    white-space: nowrap;
    padding: 0.75rem 1rem;
    border-left: none;
    border-bottom: 3px solid transparent;
    font-size: 0.825rem;
  }

  .admin-sidebar nav a.active {
    border-left-color: transparent;
    border-bottom-color: #2563EB;
  }

  .admin-sidebar nav .nav-divider {
    display: none;
  }

  .admin-content {
    padding: 1.25rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card {
    padding: 1.75rem;
  }

  .card-auth {
    max-width: 100%;
  }

  .otp-input {
    width: 2.75rem;
    height: 3.25rem;
    font-size: 1.25rem;
  }

  .filter-bar {
    flex-direction: column;
  }

  .edit-form {
    grid-template-columns: 1fr;
  }

  .site-header .header-inner {
    padding: 0 1rem;
  }

  .page-container {
    padding: 1.25rem 1rem;
  }

  .upload-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .copy-group {
    flex-direction: column;
  }

  .copy-group .btn {
    border-radius: 0 0 10px 10px;
  }

  .file-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

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

  .drop-zone {
    padding: 2rem 1rem;
  }

  .otp-container {
    gap: 0.375rem;
  }

  .otp-input {
    width: 2.5rem;
    height: 3rem;
    font-size: 1.1rem;
  }
}
