/* ============================================
   DropVault — Design System & Styles
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Design Tokens ---------- */
:root {
  --bg-primary: #06060b;
  --bg-secondary: #0c0c15;
  --bg-card: rgba(255, 255, 255, 0.025);
  --bg-card-hover: rgba(255, 255, 255, 0.045);
  --bg-input: rgba(255, 255, 255, 0.04);
  --bg-input-focus: rgba(255, 255, 255, 0.06);

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-focus: rgba(99, 102, 241, 0.4);

  --text-primary: #e4e6ee;
  --text-secondary: #8b90a8;
  --text-muted: #4a4f66;
  --text-inverse: #fff;

  --accent-indigo: #6366f1;
  --accent-violet: #8b5cf6;
  --accent-light: #a78bfa;
  --accent-cyan: #22d3ee;
  --accent-green: #34d399;
  --accent-orange: #fb923c;
  --accent-red: #f87171;

  --gradient: linear-gradient(135deg, var(--accent-indigo), var(--accent-violet));
  --gradient-soft: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.15));
  --gradient-glow: linear-gradient(135deg, rgba(99,102,241,0.25), rgba(139,92,246,0.12));

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.25);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.35);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.45);
  --shadow-glow: 0 0 60px rgba(99,102,241,0.08);

  --blur: blur(24px);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration: 0.25s;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.14);
}

/* ---------- Ambient Background ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-indigo), transparent 70%);
  top: -10%;
  left: -8%;
  animation: float1 25s ease-in-out infinite;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-violet), transparent 70%);
  bottom: -15%;
  right: -10%;
  animation: float2 30s ease-in-out infinite;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--accent-cyan), transparent 70%);
  bottom: 10%;
  left: 35%;
  opacity: 0.15;
  animation: float3 20s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, 40px) scale(1.1); }
  66% { transform: translate(-30px, 70px) scale(0.95); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-50px, -30px) scale(1.05); }
  66% { transform: translate(40px, -60px) scale(0.9); }
}
@keyframes float3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(80px, -40px); }
}

/* ---------- Glass Effect ---------- */
.glass {
  background: var(--bg-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

/* ---------- Screen Management ---------- */
.screen {
  display: none;
  position: relative;
  z-index: 1;
  min-height: 100vh;
}
.screen.active {
  display: flex;
}

/* ============================================
   LOGIN SCREEN
   ============================================ */
#login-screen {
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-xl);
  padding: 48px 36px;
  text-align: center;
  animation: cardEntrance 0.7s var(--ease-out) forwards;
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.3;
  pointer-events: none;
}

.login-header {
  margin-bottom: 36px;
}

.logo-icon {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(99, 102, 241, 0.18), rgba(168, 85, 247, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 32px -4px rgba(99, 102, 241, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px auto;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  animation: logoPulse 4s ease-in-out infinite;
}

.logo-icon:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 18px 44px -4px rgba(99, 102, 241, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.35);
}

@keyframes logoPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 12px 32px -4px rgba(99, 102, 241, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 16px 40px -2px rgba(56, 189, 248, 0.45), 0 0 20px rgba(168, 85, 247, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.35);
  }
}
  50% { transform: scale(1.05); filter: drop-shadow(0 0 16px rgba(99,102,241,0.5)); }
}

.login-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.login-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 400;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color var(--duration) var(--ease);
}

.input-wrapper:focus-within .input-icon {
  color: var(--accent-indigo);
}

.input-wrapper input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: all var(--duration) var(--ease);
}

.input-wrapper input::placeholder {
  color: var(--text-muted);
}

.input-wrapper input:focus {
  background: var(--bg-input-focus);
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--duration) var(--ease);
}

.btn:hover::after {
  background: rgba(255,255,255,0.06);
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--gradient);
  color: var(--text-inverse);
  box-shadow: 0 4px 16px rgba(99,102,241,0.25);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(99,102,241,0.35);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 16px;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}

.btn-full {
  width: 100%;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-radius: 0;
  border-top: none;
  border-left: none;
  border-right: none;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-brand:hover .nav-logo-badge {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.4);
}

.nav-title {
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
#app-screen {
  flex-direction: column;
}

.main-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
}

.section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================================
   CREATE PANEL
   ============================================ */
.create-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: fit-content;
  position: sticky;
  top: 80px;
}

.create-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Tabs */
.tab-switcher {
  display: flex;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-md);
  padding: 4px;
  position: relative;
}

.tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border: none;
  border-radius: calc(var(--radius-md) - 2px);
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  position: relative;
  z-index: 1;
}

.tab:hover {
  color: var(--text-primary);
}

.tab.active {
  color: var(--text-inverse);
}

.tab-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: var(--gradient);
  border-radius: calc(var(--radius-md) - 2px);
  transition: transform 0.35s var(--ease-spring);
  z-index: 0;
}

.tab-indicator.right {
  transform: translateX(100%);
}

/* Tab Content */
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
  animation: fadeIn 0.25s var(--ease-out);
}

/* Textarea */
#text-input {
  width: 100%;
  min-height: 140px;
  max-height: 400px;
  resize: vertical;
  padding: 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.6;
  outline: none;
  transition: all var(--duration) var(--ease);
}

#text-input::placeholder {
  color: var(--text-muted);
}

#text-input:focus {
  background: var(--bg-input-focus);
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.08);
}

.textarea-hint {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
  justify-content: flex-end;
}

/* Drop Zone */
.drop-zone {
  border: 2px dashed rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  position: relative;
}

.drop-zone:hover {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.015);
}

.drop-zone.dragover {
  border-color: var(--accent-indigo);
  border-style: solid;
  background: rgba(99,102,241,0.06);
  transform: scale(1.01);
  box-shadow: 0 0 40px rgba(99,102,241,0.08);
}

.drop-zone.dragover .drop-zone-icon {
  transform: translateY(-4px);
  color: var(--accent-indigo);
}

.drop-zone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.drop-zone-icon {
  color: var(--text-muted);
  transition: all 0.3s var(--ease);
  margin-bottom: 4px;
}

.drop-zone-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.drop-zone-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Options Bar */
.create-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.expiry-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.expiry-wrapper select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.82rem;
  padding: 8px 12px;
  outline: none;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238b90a8' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.expiry-wrapper select:focus {
  border-color: var(--border-focus);
}

/* ============================================
   DROPS FEED
   ============================================ */
.drops-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}

.feed-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  background: var(--gradient-soft);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-light);
}

.drops-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
  gap: 8px;
}

.empty-state p {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 8px;
}

.empty-state span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================
   DROP CARDS
   ============================================ */
.drop-card {
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: slideUp 0.45s var(--ease-out) forwards;
  opacity: 0;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.drop-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.drop-card.removing {
  animation: slideOut 0.3s var(--ease) forwards;
}

.drop-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drop-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.text-badge {
  background: rgba(99,102,241,0.1);
  color: var(--accent-light);
}

.file-badge {
  background: rgba(34,211,238,0.1);
  color: var(--accent-cyan);
}

.time-badge {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.time-badge.green {
  background: rgba(52,211,153,0.1);
  color: var(--accent-green);
}

.time-badge.orange {
  background: rgba(251,146,60,0.1);
  color: var(--accent-orange);
}

.time-badge.red {
  background: rgba(248,113,113,0.1);
  color: var(--accent-red);
  animation: urgentPulse 2s ease-in-out infinite;
}

@keyframes urgentPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Drop Content */
.drop-content {
  padding: 0;
}

.text-content {
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  transition: background var(--duration) var(--ease);
  position: relative;
}

.text-content:hover {
  background: var(--bg-input-focus);
}

.text-content::after {
  content: 'Click to copy';
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 0.65rem;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.text-content:hover::after {
  opacity: 1;
}

.text-content p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 150px;
  overflow-y: auto;
}

/* Image Preview */
.image-preview {
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  max-height: 200px;
  background: var(--bg-input);
}

.image-preview img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s var(--ease);
}

.image-preview:hover img {
  transform: scale(1.03);
}

/* Video Preview */
.video-preview {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-input);
}

.video-preview video {
  width: 100%;
  max-height: 250px;
  display: block;
  border-radius: var(--radius-sm);
}

/* Preview Loading */
.preview-loading {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}

.preview-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 25%, rgba(255,255,255,0.04) 50%, transparent 75%);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* File Info */
.file-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0 0;
}

.file-name {
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.file-size {
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Drop Actions */
.drop-actions {
  display: flex;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.btn-action:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
}

.btn-action.danger:hover {
  background: rgba(248,113,113,0.1);
  color: var(--accent-red);
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.active {
  display: flex;
  animation: fadeIn 0.25s var(--ease-out);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 1;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-body {
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-body img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  object-fit: contain;
}

/* ============================================
   TOASTS
   ============================================ */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(15, 15, 25, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  color: var(--text-primary);
  pointer-events: auto;
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.35s var(--ease-spring);
  max-width: 380px;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.hiding {
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.3s var(--ease);
}

.toast-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.toast-success .toast-icon {
  background: rgba(52,211,153,0.15);
  color: var(--accent-green);
}

.toast-error .toast-icon {
  background: rgba(248,113,113,0.15);
  color: var(--accent-red);
}

.toast-info .toast-icon {
  background: rgba(99,102,241,0.15);
  color: var(--accent-indigo);
}

.toast-message {
  flex: 1;
  line-height: 1.4;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@keyframes slideOut {
  to {
    opacity: 0;
    transform: translateX(40px) scale(0.95);
  }
}

/* ============================================
   UPLOAD PROGRESS OVERLAY
   ============================================ */
.upload-progress {
  position: absolute;
  inset: 0;
  background: rgba(6,6,11,0.8);
  backdrop-filter: blur(4px);
  border-radius: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 10;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent-indigo);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.upload-progress-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .main-content {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 20px;
  }

  .create-card {
    position: static;
  }

  .login-card {
    padding: 36px 24px;
  }

  .login-title {
    font-size: 1.75rem;
  }

  .navbar {
    padding: 10px 16px;
  }

  .btn-ghost span {
    display: none;
  }

  .drop-zone {
    padding: 36px 16px;
  }

  .toast-container {
    top: auto;
    bottom: 20px;
    right: 16px;
    left: 16px;
  }

  .toast {
    max-width: 100%;
  }

  .create-options {
    flex-direction: column;
    gap: 12px;
  }

  .create-options .btn-primary {
    width: 100%;
  }

  .expiry-wrapper {
    width: 100%;
    justify-content: space-between;
  }

  .expiry-wrapper select {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .drop-card {
    padding: 14px;
  }

  .image-preview img {
    max-height: 150px;
  }
}

/* ---------- Selection ---------- */
::selection {
  background: rgba(99,102,241,0.3);
  color: var(--text-primary);
}

/* ---------- Focus Visible ---------- */
:focus-visible {
  outline: 2px solid var(--accent-indigo);
  outline-offset: 2px;
}

button:focus-visible {
  outline: 2px solid var(--accent-indigo);
  outline-offset: 2px;
}
