:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --accent: #a855f7;
  --accent-glow: rgba(168, 85, 247, 0.4);
  --primary-glow: rgba(99, 102, 241, 0.4);
  --bg-dark: #020617;
  --card-bg: rgba(15, 23, 42, 0.6);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.04);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Enhanced Mesh Gradient with Animated Blobs */
.mesh-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.2) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(168, 85, 247, 0.2) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(99, 102, 241, 0.1) 0px, transparent 50%);
  filter: blur(100px);
}

.glow-blob {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
  animation: float 20s infinite alternate;
}

.blob-1 {
  background: var(--primary);
  top: -100px;
  right: -100px;
}

.blob-2 {
  background: var(--accent);
  bottom: -100px;
  left: -100px;
  animation-delay: -5s;
}

@keyframes float {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(100px, 100px) scale(1.2); }
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  color: var(--primary);
  width: 2rem;
  height: 2rem;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo h1 span {
  color: var(--primary);
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  cursor: pointer;
  padding: 0.6rem;
  border-radius: 0.75rem;
  z-index: 10;
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
}

/* Hero */
.hero {
  text-align: center;
  padding: 2.5rem 0 4rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

/* Search Box */
.search-box-wrapper {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.search-box {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--primary-glow);
  transition:
    border-color 0.3s,
    transform 0.3s,
    box-shadow 0.3s;
}

.search-box:focus-within {
  border-color: rgba(99, 102, 241, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 0 0 30px var(--primary-glow);
}

.search-icon {
  color: var(--text-muted);
  width: 1.25rem;
}

.search-box input {
  background: none;
  border: none;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1.1rem;
  flex: 1;
  outline: none;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.premium-btn {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition:
    opacity 0.3s,
    transform 0.2s;
  box-shadow: 0 0 15px var(--accent-glow);
}

.premium-btn:hover {
  opacity: 0.9;
  transform: scale(1.02);
  box-shadow: 0 0 25px var(--accent-glow);
}

.premium-btn:active {
  transform: scale(0.98);
}

.clear-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0.5rem;
  cursor: pointer;
  margin-right: 0.5rem;
}

/* Results Section */
.results-section {
  padding-top: 1rem;
  position: relative;
  z-index: 50;
}

.result-card {
  background: var(--card-bg);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--glass-border);
  border-radius: 2rem;
  padding: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(15, 23, 42, 0.5);
}

.result-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
}

.loader-spinner {
  width: 3rem;
  height: 3rem;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: rotate 1s linear infinite;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

.video-details {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 2.5rem;
}

.video-preview {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.video-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-icon {
  width: 3rem;
  height: 3rem;
  color: white;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.video-info {
  display: flex;
  flex-direction: column;
}

.platform-badge {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  width: fit-content;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.video-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.video-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.video-meta i {
  width: 1rem;
  height: 1rem;
}

/* Custom Select */
.options-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.custom-select {
  position: relative;
}

.select-trigger {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.3s;
}

.select-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
}

.select-trigger i {
  width: 1rem;
  height: 1rem;
  color: var(--text-muted);
}

.select-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: #1e293b;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  max-height: 250px;
  overflow-y: auto;
  z-index: 10;
  display: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.select-options div {
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
}

.select-options div:hover {
  background: rgba(255, 255, 255, 0.05);
}

.show-options {
  display: block;
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Download Footer */
.result-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
}

.file-size {
  font-weight: 600;
  color: var(--text-muted);
}

.download-btn-v2 {
  background: var(--primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition:
    transform 0.2s,
    background 0.3s;
  box-shadow: 0 0 15px var(--primary-glow);
}

.download-btn-v2:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 25px var(--primary-glow);
}

/* Content Sections */
.info-section {
  padding: 3rem 0;
  text-align: center;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step-card {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 1.5rem;
  border: 1px solid var(--glass-border);
  transition: transform 0.3s, border-color 0.3s;
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.step-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  margin: 0 auto 1.5rem;
}

.step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.step-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

.platforms-flex {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  opacity: 0.6;
}

.platform-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s, transform 0.3s, color 0.3s;
  cursor: pointer;
}

.platform-item:hover {
  opacity: 1;
  transform: translateY(-5px);
  color: var(--primary);
}

.platform-item i, .platform-item svg {
  width: 2rem;
  height: 2rem;
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.footer {
  margin-top: auto;
  padding: 2rem 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
}

.brand-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  color: var(--text-muted);
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--text-main);
}

/* Responsive */
@media (max-width: 900px) {
  .video-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 850px) {
  .header {
    padding-bottom: 2rem;
    position: relative;
    z-index: 6000;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 5000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s;
  }

  .nav-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 7001;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    flex-direction: column;
    padding: 6rem 1.5rem 2rem;
    gap: 0.75rem;
    visibility: hidden;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
    z-index: 7000;
    border-left: 1px solid var(--glass-border);
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.6);
  }

  .nav.open {
    right: 0;
    visibility: visible;
  }

  .nav-link {
    font-size: 1.1rem;
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
  }

  .nav-link.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
  }

  .nav-link.active::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .options-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .search-box {
    flex-direction: column;
    padding: 1rem;
    border-radius: 24px;
    gap: 0.5rem;
  }

  .search-box input {
    width: 100%;
    padding: 0.5rem 0;
    text-align: center;
  }

  .premium-btn {
    width: 100%;
    justify-content: center;
    border-radius: 16px;
  }

  .search-icon {
    display: none;
  }

  .clear-btn {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
  }
}

/* Report Section */
.report-section {
  padding: 2.5rem 0;
}

.report-card {
  background: var(--card-bg);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  padding: 2rem;
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.report-subtitle {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  margin-top: -2.5rem;
  font-size: 0.95rem;
}

.report-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input-group {
  position: relative;
  width: 100%;
  display: block;
}




.input-group input,
.input-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.input-group textarea {
  min-height: 100px;
  resize: vertical;
}

.input-group input:focus,
.input-group textarea:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.report-form .premium-btn {
  width: 100%;
  justify-content: center;
  padding: 0.85rem;
  border-radius: 0.75rem;
}

/* ═══════════════════════════════════════════════════
   History Page
═══════════════════════════════════════════════════ */

/* Section layout */
.history-section {
  flex: 1;
  padding: 2rem 0 3rem;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.history-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.history-heading-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--primary);
  flex-shrink: 0;
}

.history-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.1rem;
}

/* Clear History button */
.clear-history-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(239,68,68,0.1);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,0.25);
  padding: 0.65rem 1.25rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.clear-history-btn:hover {
  background: rgba(239,68,68,0.2);
  border-color: rgba(239,68,68,0.5);
  transform: translateY(-1px);
}
.clear-history-btn i {
  width: 1rem;
  height: 1rem;
}

/* Empty state */
.history-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 5rem 2rem;
  text-align: center;
}

.history-empty-icon {
  width: 5rem;
  height: 5rem;
  background: rgba(99,102,241,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.history-empty-icon i {
  width: 2.25rem;
  height: 2.25rem;
}

.history-empty h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
}

.history-empty p {
  color: var(--text-muted);
  max-width: 340px;
  line-height: 1.6;
}

.go-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  font-weight: 600;
  margin-top: 0.5rem;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 0 15px var(--accent-glow);
}
.go-download-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}
.go-download-btn i {
  width: 1rem;
  height: 1rem;
}

/* History list */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* History item card */
.history-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: 1.25rem;
  animation: historyFadeIn 0.4s ease both;
  transition: transform 0.25s, border-color 0.25s;
}
.history-item:hover {
  transform: translateY(-2px);
  border-color: rgba(99,102,241,0.35);
}

@keyframes historyFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Thumbnail */
.history-thumb-wrap {
  position: relative;
  flex-shrink: 0;
  width: 140px;
  aspect-ratio: 16/9;
  border-radius: 0.75rem;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}
.history-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.history-item:hover .thumb-overlay { opacity: 1; }
.thumb-play {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}
.thumb-broken {
  background: rgba(255,255,255,0.06);
}

/* Info */
.history-info {
  flex: 1;
  min-width: 0;
}
.history-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.6rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.history-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.history-badge i {
  width: 0.8rem;
  height: 0.8rem;
}
.platform-badge-sm {
  background: rgba(99,102,241,0.12);
  color: var(--primary);
}
.format-badge {
  background: rgba(168,85,247,0.12);
  color: var(--accent);
}
.time-badge {
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
}

/* Actions */
.history-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.h-dl-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 10px var(--primary-glow);
}
.h-dl-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 0 18px var(--primary-glow);
}
.h-dl-btn i {
  width: 0.9rem;
  height: 0.9rem;
}

.h-del-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239,68,68,0.1);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,0.2);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.h-del-btn:hover {
  background: rgba(239,68,68,0.2);
  border-color: rgba(239,68,68,0.45);
  transform: translateY(-1px);
}
.h-del-btn i {
  width: 1rem;
  height: 1rem;
}

/* ── Confirmation Modal ───────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.modal-visible {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  width: 100%;
  max-width: 420px;
  padding: 2.5rem;
  border-radius: 1.5rem;
  text-align: center;
  transform: scale(0.95);
  transition: transform 0.25s;
}
.modal-overlay.modal-visible .modal-box {
  transform: scale(1);
}

.modal-icon {
  width: 4rem;
  height: 4rem;
  background: rgba(239,68,68,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: #ef4444;
}
.modal-icon i {
  width: 1.75rem;
  height: 1.75rem;
}
.modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.modal-body {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}
.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.modal-cancel-btn {
  flex: 1;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.05);
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.modal-cancel-btn:hover { background: rgba(255,255,255,0.1); }

.modal-confirm-btn {
  flex: 1;
  padding: 0.75rem;
  border-radius: 10px;
  border: none;
  background: #ef4444;
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 0 15px rgba(239,68,68,0.3);
}
.modal-confirm-btn:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

/* Responsive history items */
@media (max-width: 700px) {
  .history-item {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .history-thumb-wrap {
    width: 100%;
    max-width: 100%;
  }
  .history-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .h-dl-btn span { display: none; }
  .h-dl-btn { padding: 0.6rem; }
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #22c55e;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 9999;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
