/* ========================================================
   TOKSAVE - TIKTOK VIDEO DOWNLOADER STYLESHEET
   Dark Modern Theme with TikTok Neon Accents
   ======================================================== */

:root {
  --bg-main: #0c0e14;
  --bg-card: #151824;
  --bg-card-hover: #1c2030;
  --bg-input: #0e1017;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #25f4ee;

  /* TikTok Signature Colors */
  --neon-cyan: #25f4ee;
  --neon-pink: #fe2c55;
  --neon-gradient: linear-gradient(135deg, #25f4ee 0%, #fe2c55 100%);
  --cyan-glow: rgba(37, 244, 238, 0.25);
  --pink-glow: rgba(254, 44, 85, 0.25);

  --text-main: #ffffff;
  --text-muted: #9ba3af;
  --text-dim: #64748b;

  --ad-bg: rgba(255, 255, 255, 0.02);
  --ad-border: rgba(255, 255, 255, 0.06);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

input, textarea {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  user-select: text !important;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Background Ambient Glows */
.bg-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.15;
}

.glow-cyan {
  top: -100px;
  left: -150px;
  background: var(--neon-cyan);
}

.glow-pink {
  top: 15%;
  right: -150px;
  background: var(--neon-pink);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 14, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--neon-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px var(--pink-glow);
}

.logo-text span {
  color: var(--neon-pink);
}

.logo-img {
  height: 38px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a:hover {
  color: var(--neon-cyan);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* PWA Install Button */
.pwa-install-btn {
  background: rgba(37, 244, 238, 0.1);
  border: 1px solid rgba(37, 244, 238, 0.3);
  color: var(--neon-cyan);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.pwa-install-btn:hover {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 4px 15px var(--cyan-glow);
}

/* Multi-Language Dropdown */
.lang-selector {
  position: relative;
}

.lang-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.lang-btn:hover {
  border-color: var(--neon-cyan);
}

.lang-btn i {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  padding: 6px;
  min-width: 130px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: fadeIn 0.2s ease;
}

.lang-option {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  font-family: inherit;
  width: 100%;
}

.lang-option:hover,
.lang-option.active {
  background: rgba(37, 244, 238, 0.1);
  color: var(--neon-cyan);
}

/* Platform Tabs */
.platform-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 740px;
  margin: 0 auto 16px;
  flex-wrap: wrap;
}

.platform-tab {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  font-family: inherit;
}

.platform-tab:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.platform-tab.active {
  background: var(--neon-gradient);
  color: #000;
  border-color: transparent;
  box-shadow: 0 4px 15px var(--pink-glow);
}

.tab-badge {
  background: rgba(254, 44, 85, 0.2);
  color: #ff6b87;
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 99px;
  text-transform: uppercase;
  font-weight: 800;
}

.platform-tab.active .tab-badge {
  background: rgba(0, 0, 0, 0.25);
  color: #000;
}

/* ========================================================
   REKLAM ALANLARI STİLİ (GOOGLE ADSENSE UYUMLU)
   AdSense politika ihlallerini önleyen ve tıklanmayı artıran tasarım
   ======================================================== */
.ad-placement {
  margin: 22px auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.ad-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 6px;
  font-weight: 600;
}

.ad-slot-box {
  width: 100%;
  max-width: 728px;
  min-height: 90px;
  background: var(--ad-bg);
  border: 1px dashed var(--ad-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: var(--transition);
}

.ad-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.85rem;
  padding: 18px 20px;
}

.ad-placeholder i {
  font-size: 1.4rem;
  color: #3b4252;
}

.ad-highlighted {
  background: rgba(37, 244, 238, 0.04);
  border: 1px solid rgba(37, 244, 238, 0.15);
  color: var(--neon-cyan);
}

.ad-highlighted i {
  color: var(--neon-pink);
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 24px 0 16px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 244, 238, 0.08);
  border: 1px solid rgba(37, 244, 238, 0.2);
  color: var(--neon-cyan);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 14px;
}

.gradient-text {
  background: var(--neon-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto 30px;
}

/* Downloader Form Card */
.downloader-card {
  max-width: 740px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.downloader-form {
  display: flex;
  gap: 10px;
}

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

.input-icon {
  position: absolute;
  left: 18px;
  color: var(--text-dim);
  font-size: 1.15rem;
}

#tiktok-url {
  width: 100%;
  padding: 16px 85px 16px 48px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}

#tiktok-url:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}

#tiktok-url::placeholder {
  color: var(--text-dim);
}

.action-mini-btn {
  position: absolute;
  right: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.action-mini-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--text-main);
}

#clear-btn {
  right: 12px;
  padding: 8px 10px;
}

.download-submit-btn {
  padding: 0 32px;
  background: var(--neon-gradient);
  border: none;
  border-radius: var(--radius-md);
  color: #000;
  font-weight: 700;
  font-size: 1.05rem;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: 0 6px 20px var(--pink-glow);
}

.download-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--pink-glow), 0 0 15px var(--cyan-glow);
}

.download-submit-btn:active {
  transform: translateY(0);
}

.error-box {
  margin-top: 14px;
  background: rgba(254, 44, 85, 0.1);
  border: 1px solid rgba(254, 44, 85, 0.3);
  color: #ff6b87;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

/* ========================================================
   3 SANİYE BEKLEME / İŞLEME AŞAMASI (PROCESSING)
   ======================================================== */
.processing-section {
  max-width: 680px;
  margin: 25px auto;
  animation: fadeIn 0.4s ease;
}

.processing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.spinner-pulse {
  width: 50px;
  height: 50px;
  margin: 0 auto 16px;
  border: 4px solid rgba(37, 244, 238, 0.15);
  border-top-color: var(--neon-cyan);
  border-bottom-color: var(--neon-pink);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.processing-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.processing-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.progress-bar-container {
  width: 100%;
  height: 10px;
  background: var(--bg-input);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid var(--border-color);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--neon-gradient);
  border-radius: var(--radius-full);
  transition: width 0.15s linear;
}

.progress-status {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.progress-status strong {
  color: var(--neon-cyan);
}

.ad-in-processing {
  margin-top: 15px;
  border-top: 1px solid var(--border-color);
  padding-top: 18px;
}

/* ========================================================
   VİDEO SONUÇ ALANI (RESULT CARD)
   ======================================================== */
.result-section {
  max-width: 900px;
  margin: 30px auto;
  animation: slideUp 0.4s ease;
}

.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.result-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: start;
}

.video-preview-col {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
}

.cover-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 9/12;
  background: #000;
  margin-bottom: 14px;
}

#video-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.author-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--neon-cyan);
}

.author-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.author-info span {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.video-description {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-stats {
  display: flex;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.video-stats span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Download Actions Column */
.download-action-col {
  display: flex;
  flex-direction: column;
}

.action-heading {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
}

.action-subtext {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.download-buttons-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.btn-dl {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: #fff;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-dl .btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-right: 14px;
  flex-shrink: 0;
}

.btn-text-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.btn-main-text {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.btn-sub-text {
  font-size: 0.78rem;
  opacity: 0.8;
}

.arrow-icon {
  font-size: 0.85rem;
  opacity: 0.6;
  transition: var(--transition);
}

.btn-dl:hover .arrow-icon {
  transform: translateX(4px);
  opacity: 1;
}

/* Primary DL Button */
.btn-dl-primary {
  background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
  box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
}

.btn-dl-primary .btn-icon {
  background: rgba(255, 255, 255, 0.2);
}

.btn-dl-primary:hover {
  background: linear-gradient(135deg, #05c2e6 0%, #0088cc 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 180, 216, 0.45);
}

/* Secondary DL Button */
.btn-dl-secondary {
  background: #1e2433;
  border: 1px solid var(--border-color);
}

.btn-dl-secondary .btn-icon {
  background: rgba(255, 255, 255, 0.08);
}

.btn-dl-secondary:hover {
  background: #272f42;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Audio DL Button */
.btn-dl-audio {
  background: linear-gradient(135deg, #e63946 0%, #d62828 100%);
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.25);
}

.btn-dl-audio .btn-icon {
  background: rgba(255, 255, 255, 0.2);
}

.btn-dl-audio:hover {
  background: linear-gradient(135deg, #f24552 0%, #e02f2f 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

/* Another Video Button */
.btn-dl-another {
  background: transparent;
  border: 1px dashed var(--border-color);
  color: var(--text-muted);
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  font-family: inherit;
}

.btn-dl-another:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  background: rgba(37, 244, 238, 0.05);
}

/* QR Button & Box (Özellik 3) */
.btn-dl-qr {
  background: #19202f;
  border: 1px solid rgba(37, 244, 238, 0.3);
  cursor: pointer;
}

.btn-dl-qr .btn-icon {
  background: rgba(37, 244, 238, 0.15);
  color: var(--neon-cyan);
}

.btn-dl-qr:hover {
  background: #202b3f;
  border-color: var(--neon-cyan);
  box-shadow: 0 4px 15px var(--cyan-glow);
}

.qr-box {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  margin-top: -4px;
  margin-bottom: 8px;
  animation: fadeIn 0.3s ease;
}

.qr-code-wrapper {
  width: 160px;
  height: 160px;
  background: #fff;
  padding: 8px;
  border-radius: var(--radius-sm);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code-wrapper img {
  width: 100%;
  height: 100%;
  display: block;
}

.qr-instruction {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 260px;
  margin: 0 auto;
}

.qr-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
  flex-wrap: wrap;
}

.qr-copy-btn, .qr-open-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  font-family: inherit;
}

.qr-copy-btn:hover, .qr-open-btn:hover {
  background: rgba(37, 244, 238, 0.15);
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
}

/* TikTok Slayt / Fotoğraf Albümü (Özellik 4) */
.slideshow-container {
  margin-top: 30px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  animation: fadeIn 0.4s ease;
}

.slideshow-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.slideshow-header p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.slideshow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.slide-item {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.slide-item:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 244, 238, 0.4);
}

.slide-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.slide-item-actions {
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slide-item-actions span {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 600;
}

.btn-slide-dl {
  background: var(--neon-gradient);
  color: #000;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  transition: var(--transition);
}

.btn-slide-dl:hover {
  box-shadow: 0 2px 10px var(--pink-glow);
}

/* Result Side Ad Placement */
.ad-download-side {
  margin-top: 10px;
}

.ad-download-side .ad-slot-box {
  max-width: 300px;
  min-height: 250px;
  margin: 0 auto;
}

/* ========================================================
   BİLGİ & NASIL KULLANILIR (HOW TO USE)
   ======================================================== */
.info-section {
  padding: 60px 0 20px;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 40px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  text-align: left;
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 244, 238, 0.3);
}

.step-number {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 2.2rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
}

.step-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(37, 244, 238, 0.1);
  color: var(--neon-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px;
  text-align: left;
  transition: var(--transition);
}

.feature-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.feat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.feat-cyan { background: rgba(37, 244, 238, 0.12); color: var(--neon-cyan); }
.feat-pink { background: rgba(254, 44, 85, 0.12); color: var(--neon-pink); }
.feat-purple { background: rgba(168, 85, 247, 0.12); color: #a855f7; }
.feat-blue { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.feat-green { background: rgba(34, 197, 94, 0.12); color: #22c55e; }
.feat-yellow { background: rgba(234, 179, 8, 0.12); color: #eab308; }

.feature-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ========================================================
   SSS (FAQ ACCORDION)
   ======================================================== */
.faq-accordion {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  padding: 18px 22px;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.02rem;
  font-weight: 600;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--neon-cyan);
}

.faq-question i {
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: var(--neon-cyan);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 22px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 20px;
}

/* ========================================================
   FOOTER
   ======================================================== */
.site-footer {
  margin-top: auto;
  background: #090a0f;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-desc {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-top: 14px;
  max-width: 440px;
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-col h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--neon-cyan);
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 25px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.disclaimer {
  font-size: 0.75rem;
  color: #555e6d;
  line-height: 1.5;
}

/* ========================================================
   HELPER UTILITY CLASSES & ANIMATIONS
   ======================================================== */
.hide {
  display: none !important;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ========================================================
   RESPONSIVE MEDIA QUERIES (MOBILE OPTIMIZATION)
   ======================================================== */
@media (max-width: 900px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .result-grid {
    grid-template-columns: 1fr;
  }
  .video-preview-col {
    max-width: 360px;
    margin: 0 auto;
  }
  .steps-grid,
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none; /* Mobile view cleaner */
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .downloader-form {
    flex-direction: column;
  }
  .download-submit-btn {
    padding: 16px;
    width: 100%;
  }
  .steps-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
  .ad-slot-box {
    min-height: 60px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 20px;
  }
}

/* ========================================================
   ANTİ-ADBLOCK (REKLAM ENGELLEYİCİ) MODAL STİLLERİ
   ======================================================== */
.adblock-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 12, 18, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.adblock-card {
  max-width: 480px;
  width: 100%;
  background: #141722;
  border: 1px solid rgba(254, 44, 85, 0.4);
  box-shadow: 0 0 50px rgba(254, 44, 85, 0.25), 0 20px 40px rgba(0, 0, 0, 0.8);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  text-align: center;
  position: relative;
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.adblock-icon-wrapper {
  width: 68px;
  height: 68px;
  background: rgba(254, 44, 85, 0.12);
  border: 2px solid var(--neon-pink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--neon-pink);
  font-size: 2rem;
  box-shadow: 0 0 20px var(--pink-glow);
}

.adblock-card h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.adblock-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
}

.adblock-text strong {
  color: var(--neon-cyan);
}

.adblock-instructions {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.adblock-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.step-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--neon-gradient);
  color: #000;
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.adblock-btn {
  width: 100%;
  padding: 15px;
  background: var(--neon-gradient);
  border: none;
  border-radius: var(--radius-md);
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 6px 25px var(--pink-glow);
}

.adblock-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--pink-glow), 0 0 20px var(--cyan-glow);
}

.adblock-footer-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 16px;
}

/* ========================================================
   CANLI DESTEK & HATA BİLDİRİMİ WIDGET (FLOATING CHAT)
   ======================================================== */
.support-floating-wrapper {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}

.support-float-btn {
  background: var(--neon-gradient);
  color: #000;
  border: none;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.92rem;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 25px var(--pink-glow);
  transition: var(--transition);
}

.support-float-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px var(--pink-glow), 0 0 20px var(--cyan-glow);
}

.support-popover {
  position: absolute;
  bottom: calc(100% + 14px);
  right: 0;
  width: 360px;
  max-width: calc(100vw - 40px);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

.support-popover-header {
  background: #0f121b;
  border-bottom: 1px solid var(--border-color);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.support-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
}

.support-close-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

.support-close-btn:hover {
  color: var(--neon-pink);
}

.support-popover-body {
  padding: 18px;
}

.support-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 14px;
}

.form-group {
  margin-bottom: 10px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background: var(--bg-card);
  color: #fff;
}

.form-group textarea {
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--neon-cyan);
}

/* Google reCAPTCHA Box */
.google-captcha-box {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.captcha-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-muted);
  user-select: none;
}

.captcha-checkbox-label input[type="checkbox"] {
  accent-color: var(--neon-cyan);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.captcha-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.62rem;
  color: var(--text-dim);
}

.support-send-btn {
  width: 100%;
  padding: 12px;
  background: var(--neon-gradient);
  border: none;
  border-radius: var(--radius-sm);
  color: #000;
  font-weight: 800;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.support-send-btn:hover {
  box-shadow: 0 4px 15px var(--pink-glow);
}

.support-success {
  text-align: center;
  padding: 20px 10px;
}

.support-success i {
  font-size: 2.5rem;
  color: #22c55e;
  margin-bottom: 10px;
}

.support-success h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.support-success p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ========================================================
   GMAIL İLE DOĞRULAMA & KAYIT ADIMLARI
   ======================================================== */
.sup-step-box {
  animation: fadeIn 0.25s ease;
}

.sup-google-badge {
  background: rgba(66, 133, 244, 0.08);
  border: 1px solid rgba(66, 133, 244, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.sup-google-badge div {
  display: flex;
  flex-direction: column;
}

.sup-google-badge strong {
  font-size: 0.88rem;
  color: #fff;
  font-weight: 700;
}

.sup-google-badge span {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.sup-auth-err {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.sup-otp-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.sup-otp-header div {
  display: flex;
  flex-direction: column;
}

.sup-otp-header strong {
  font-size: 0.9rem;
  color: #fff;
}

.sup-otp-target {
  font-size: 0.78rem;
  color: var(--neon-cyan);
  font-weight: 600;
  word-break: break-all;
}

/* Canlı Güvenlik Kodu Bildirim Kartı */
.sup-code-alert-card {
  background: rgba(234, 179, 8, 0.08);
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  margin-bottom: 12px;
  animation: pulse 2s infinite ease-in-out;
}

.sup-code-alert-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #eab308;
  margin-bottom: 6px;
}

.sup-code-display-box {
  font-family: monospace;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 8px;
  color: var(--neon-cyan);
  text-shadow: 0 0 15px var(--cyan-glow);
  padding: 4px 0;
  user-select: all;
  cursor: pointer;
}

.sup-code-hint {
  font-size: 0.7rem;
  color: var(--text-dim);
  display: block;
  margin-top: 4px;
}

.sup-otp-digit-field {
  text-align: center !important;
  font-family: monospace !important;
  font-size: 1.4rem !important;
  font-weight: 800 !important;
  letter-spacing: 6px !important;
  color: var(--neon-cyan) !important;
  border-color: rgba(37, 244, 238, 0.4) !important;
}

.sup-otp-resend-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.sup-link-btn {
  background: transparent;
  border: none;
  color: var(--neon-cyan);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: var(--transition);
}

.sup-link-btn:hover {
  color: var(--neon-pink);
}

.sup-dot-sep {
  opacity: 0.4;
}

/* Doğrulanmış Kullanıcı Başlık Çubuğu */
.sup-verified-user-bar {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sup-verified-user-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sup-verified-badge {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.4);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 99px;
  margin-left: 4px;
}

.sup-logout-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px;
  transition: var(--transition);
}

.sup-logout-btn:hover {
  color: var(--neon-pink);
}

/* ========================================================
   1. CANLI VİDEO ÖNİZLEME OYNATICI
   ======================================================== */
.live-video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
  border-radius: var(--radius-sm);
}

.cover-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  background: rgba(8, 10, 15, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid var(--neon-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-cyan);
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 0 25px var(--cyan-glow);
  transition: var(--transition);
  z-index: 5;
  padding-left: 4px;
}

.cover-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.12);
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 35px var(--cyan-glow);
}

/* ========================================================
   4. HD PROFİL RESMİ BÜYÜTÜCÜ & MODAL
   ======================================================== */
.author-avatar-wrap {
  position: relative;
  cursor: pointer;
  display: inline-block;
}

.author-avatar-wrap:hover .avatar-zoom-badge {
  opacity: 1;
  transform: scale(1.1);
}

.avatar-zoom-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: var(--neon-pink);
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  border: 1px solid #000;
  opacity: 0.9;
  transition: var(--transition);
}

.btn-avatar-hd {
  background: rgba(37, 244, 238, 0.1);
  border: 1px solid rgba(37, 244, 238, 0.3);
  color: var(--neon-cyan);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  cursor: pointer;
  margin-top: 5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.btn-avatar-hd:hover {
  background: var(--neon-cyan);
  color: #000;
}

.avatar-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}

.avatar-modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(37, 244, 238, 0.15);
  animation: slideUp 0.3s ease;
  position: relative;
}

.avatar-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
}

.avatar-modal-close:hover {
  color: var(--neon-pink);
}

.avatar-modal-img-wrap {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 3px solid var(--neon-cyan);
  box-shadow: 0 0 30px var(--cyan-glow);
  margin: 12px auto 16px;
  overflow: hidden;
  background: #000;
}

.avatar-modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-modal-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}

.avatar-modal-user {
  font-size: 0.85rem;
  color: var(--neon-cyan);
  font-weight: 600;
  margin-bottom: 18px;
  display: block;
}

.avatar-modal-dl-btn {
  background: var(--neon-gradient);
  color: #000;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px var(--pink-glow);
  transition: var(--transition);
}

.avatar-modal-dl-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--pink-glow);
}

/* ========================================================
   3. SON İNDİRİLENLER (GEÇMİŞ ÇEKMECESİ)
   ======================================================== */
.history-section {
  margin-top: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.history-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
}

.history-count-badge {
  background: rgba(37, 244, 238, 0.15);
  border: 1px solid rgba(37, 244, 238, 0.3);
  color: var(--neon-cyan);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
}

.btn-clear-history {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-clear-history:hover {
  color: var(--neon-pink);
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}

.history-card {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.history-card:hover {
  border-color: rgba(37, 244, 238, 0.4);
  transform: translateY(-2px);
}

.history-thumb-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}

.history-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-info {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.history-author {
  font-size: 0.75rem;
  color: var(--neon-cyan);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-video-title {
  font-size: 0.75rem;
  color: #cbd5e1;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7em;
}

.history-btn-dl {
  background: var(--neon-gradient);
  color: #000;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
  padding: 6px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
  transition: var(--transition);
}

.history-btn-dl:hover {
  box-shadow: 0 2px 10px var(--pink-glow);
}


