* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #060814;
  color: #f8fafc;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

:root {
  --primary: #3b82f6;
  --primary-glow: rgba(59, 130, 246, 0.4);
  --secondary: #a855f7;
  --secondary-glow: rgba(168, 85, 247, 0.4);
  --accent: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.4);
  --background: #060814;
  --card-bg: rgba(15, 23, 42, 0.55);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-glow: rgba(59, 130, 246, 0.15);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Background Gradients */
.app-container {
  min-height: 100vh;
  position: relative;
  background-color: var(--background);
  background-image: 
    radial-gradient(at 10% 20%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
    radial-gradient(at 90% 10%, rgba(168, 85, 247, 0.12) 0px, transparent 50%),
    radial-gradient(at 50% 80%, rgba(16, 185, 129, 0.08) 0px, transparent 50%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content-wrapper {
  width: 100%;
  max-width: 1100px;
  padding: 0 1.5rem;
  margin: 0 auto;
  flex-grow: 1;
  z-index: 2;
}

/* Glassmorphism Panel base */
.glass-panel {
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.glass-panel:hover {
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.08);
}

/* Typography Helpers */
.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #a855f7 50%, #f43f5e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* -------------------------------------
   Navbar Section
------------------------------------- */
.navbar {
  width: 100%;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(6, 8, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.025em;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
}

.nav-brand svg {
  stroke: url(#brand-gradient);
  filter: drop-shadow(0 0 8px var(--primary-glow));
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link:after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  transition: var(--transition);
}

.nav-link:hover:after {
  width: 100%;
}

.btn-nav-action {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  border: none;
  padding: 0.55rem 1.15rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--primary-glow);
  transition: var(--transition);
}

.btn-nav-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--secondary-glow);
}

/* -------------------------------------
   Hero & Form Section
------------------------------------- */
.hero-section {
  text-align: center;
  margin-top: 3.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.hero-tagline {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.1) inset;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-desc {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
  font-size: 1.1rem;
  line-height: 1.6;
}

.downloader-form-panel {
  width: 100%;
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.downloader-form-panel::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(59, 130, 246, 0.1), transparent, rgba(168, 85, 247, 0.1), transparent);
  animation: rotateGlow 15s linear infinite;
  z-index: 1;
  pointer-events: none;
}

.downloader-form-content {
  position: relative;
  z-index: 2;
}

.input-container {
  display: flex;
  background: rgba(10, 15, 30, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 0.4rem;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.input-container:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
}

.input-icon-wrapper {
  padding-left: 0.75rem;
  display: flex;
  align-items: center;
  color: var(--text-muted);
}

.input-icon-wrapper.active {
  color: var(--primary);
  filter: drop-shadow(0 0 5px var(--primary-glow));
}

.downloader-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex-grow: 1;
  width: 100%;
}

.downloader-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 1.05rem;
  padding: 0.75rem 2.5rem 0.75rem 0.5rem;
  width: 50%;
}

.btn-clear-absolute {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
  transition: var(--transition);
}

.btn-clear-absolute:hover {
  color: #fb7185;
  background: rgba(244, 63, 94, 0.1);
}

.downloader-input::placeholder {
  color: #57657a;
}

.action-buttons {
  display: flex;
  gap: 0.4rem;
}

.btn-paste, .btn-clear {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.btn-paste:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-clear:hover {
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.3);
  color: #fb7185;
}

.btn-grab {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--primary-glow);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
}

.btn-grab:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px var(--secondary-glow);
}

.btn-grab:disabled {
  background: #1e293b;
  color: #64748b;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Floating social indicators */
.supported-platforms {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.platform-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.platform-badge:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.platform-badge.active-detect {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.35);
  color: var(--text-main);
  box-shadow: 0 0 15px var(--primary-glow);
}

/* -------------------------------------
   Ads Slots CSS
------------------------------------- */
.ad-slot-container {
  width: 100%;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ad-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.ad-box {
  background: rgba(10, 15, 30, 0.5);
  border: 1px dashed rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  width: 100%;
  max-width: 728px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.ad-box.admin-placeholder {
  color: #475569;
  font-size: 0.8rem;
}

/* Ad Slot Placeholder Mode Styles */
.ad-slot-container.placeholder-mode {
  opacity: 0.75;
  transition: var(--transition);
}

.ad-slot-container.placeholder-mode:hover {
  opacity: 1;
}

.placeholder-ad-box {
  border: 2px dashed rgba(59, 130, 246, 0.25) !important;
  background: rgba(15, 23, 42, 0.45) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.75rem;
  min-height: 110px;
  cursor: default;
  box-sizing: border-box;
}

.placeholder-ad-icon {
  color: #60a5fa;
  filter: drop-shadow(0 0 5px var(--primary-glow));
  margin-bottom: 0.2rem;
  opacity: 0.8;
  animation: pulseOpacity 3s infinite ease-in-out;
}

.placeholder-ad-text {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.placeholder-ad-subtext {
  font-size: 0.72rem;
  color: var(--text-muted);
  max-width: 90%;
}

/* -------------------------------------
   Preview Card Section
------------------------------------- */
.media-preview-container {
  width: 100%;
  margin-bottom: 2.5rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: slideUp 0.4s ease-out;
}

.preview-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
}

.thumbnail-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 450px;
}

.preview-thumbnail {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: contain;
  display: block;
}

.duration-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

.preview-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

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

.preview-platform-badge {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  letter-spacing: 0.05em;
}

.platform-youtube { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.platform-instagram { background: rgba(236, 72, 153, 0.15); color: #ec4899; border: 1px solid rgba(236, 72, 153, 0.3); }
.platform-tiktok { background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); }
.platform-facebook { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }
.platform-twitter { background: rgba(29, 155, 240, 0.15); color: #1d9bf0; border: 1px solid rgba(29, 155, 240, 0.3); }

.preview-title {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
}

.download-options-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.download-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.download-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  transition: var(--transition);
}

.download-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.quality-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.file-type-badge {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  text-transform: uppercase;
}

.file-type-badge.audio-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.quality-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-download-media {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-download-media:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

/* Loading state */
.loader-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem;
  gap: 1rem;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(59, 130, 246, 0.1);
  border-top-color: var(--primary);
  border-bottom-color: var(--secondary);
  border-radius: 50%;
  animation: spinnerRotate 1s linear infinite;
  filter: drop-shadow(0 0 10px var(--primary-glow));
}

.loader-text {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 1.1rem;
  animation: pulseOpacity 1.5s infinite ease-in-out;
}

/* Error banner */
.error-panel {
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.2);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  color: #fda4af;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  font-weight: 500;
}

.error-panel svg {
  flex-shrink: 0;
  color: #f43f5e;
}

/* -------------------------------------
   Features Grid
------------------------------------- */
.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 0.5rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.feature-card {
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
}

.feature-icon-wrapper {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  flex-shrink: 0;
}

.feature-card:nth-child(2) .feature-icon-wrapper {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.2);
  color: #c084fc;
}

.feature-card:nth-child(3) .feature-icon-wrapper {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.feature-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* -------------------------------------
   Download History Dashboard
------------------------------------- */
.history-section {
  margin-bottom: 4rem;
}

.history-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.history-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.history-thumb-wrapper {
  position: relative;
  aspect-ratio: 16/10;
  background: #0f172a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.history-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.history-card:hover .history-thumb {
  transform: scale(1.05);
}

.history-platform-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.history-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.history-title {
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8em;
}

.history-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-history-redownload {
  background: transparent;
  border: none;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-history-redownload:hover {
  color: var(--secondary);
}

.no-history {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  font-weight: 500;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

/* -------------------------------------
   Feedback & Support Form
------------------------------------- */
.feedback-panel {
  padding: 2.5rem;
  margin-bottom: 4rem;
  position: relative;
}

.feedback-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 3rem;
}

.feedback-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.feedback-intro-title {
  font-size: 1.65rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  line-height: 1.3;
}

.feedback-intro-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.feedback-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-input, .form-textarea {
  background: rgba(10, 15, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  outline: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.rating-selector {
  display: flex;
  gap: 0.5rem;
  padding: 0.25rem 0;
}

.star-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #334155;
  transition: var(--transition);
}

.star-btn.active {
  color: #fbbf24;
  filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.3));
}

.btn-submit-feedback {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  border: none;
  padding: 0.85rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-submit-feedback:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--secondary-glow);
}

.feedback-success-msg {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
}

/* -------------------------------------
   Admin Panel Dashboard CSS
------------------------------------- */
.admin-login-wrapper {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-login-card {
  width: 100%;
  max-width: 420px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: slideUp 0.3s ease-out;
}

.admin-login-title {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  text-align: center;
  margin-bottom: 0.5rem;
}

.admin-dashboard-container {
  width: 100%;
  margin-top: 2rem;
  margin-bottom: 4rem;
  padding: 2rem;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
}

.admin-title-area {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-title {
  font-size: 2rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
}

.admin-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.admin-actions {
  display: flex;
  gap: 1rem;
}

.btn-admin-logout {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.2);
  color: #fb7185;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-admin-logout:hover {
  background: #f43f5e;
  color: #fff;
  border-color: #f43f5e;
}

.admin-tabs {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.admin-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-size: 0.95rem;
}

.admin-tab.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

.admin-tab:hover:not(.active) {
  color: var(--text-main);
}

.admin-content-section {
  animation: slideUp 0.3s ease-out;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
}

.admin-helper-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  line-height: 1.4;
}

/* Feedback/Downloads Logs Table style */
.admin-table-container {
  overflow-x: auto;
  width: 100%;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.admin-table th {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-weight: 700;
}

.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.admin-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* -------------------------------------
   Footer Section
------------------------------------- */
.footer {
  width: 100%;
  padding: 3rem 2rem 2rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(4, 5, 11, 0.95);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: auto;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.25rem;
  font-family: 'Outfit', sans-serif;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-nav-link:hover {
  color: var(--text-main);
}

.footer-disclaimer {
  max-width: 700px;
  margin: 0 auto;
  font-size: 0.75rem;
  color: #57657a;
  line-height: 1.6;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* -------------------------------------
   Keyframe Animations
------------------------------------- */
@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spinnerRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

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

/* -------------------------------------
   Mobile Responsive Styles (Optimized & Clean)
------------------------------------- */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem 1.25rem;
  }

  .nav-brand {
    font-size: 1.25rem;
  }

  .nav-links .nav-link {
    display: none;
  }

  .btn-nav-action {
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
  }

  .hero-section {
    margin-top: 2rem;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-desc {
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
  }

  .downloader-form-panel {
    padding: 1.5rem;
  }

  .input-container {
    flex-direction: column;
    padding: 0.6rem;
    gap: 0.6rem;
    border-radius: 12px;
  }

  .downloader-input {
    width: 100%;
    padding: 0.5rem 2.5rem 0.5rem 0.5rem;
    font-size: 0.95rem;
    text-align: left;
  }

  .action-buttons {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0.5rem;
  }

  .btn-paste {
    justify-content: center;
    padding: 0.55rem 0.75rem;
    font-size: 0.85rem;
  }

  .btn-grab {
    grid-column: span 1;
    justify-content: center;
    padding: 0.55rem 0.75rem;
    font-size: 0.85rem;
  }


  .preview-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .thumbnail-wrapper {
    max-width: 100%;
  }

  .preview-title {
    font-size: 1.1rem;
    text-align: center;
  }

  .preview-platform-badge {
    align-self: center;
  }

  .download-row {
    padding: 0.6rem 0.85rem;
  }

  .quality-label {
    font-size: 0.85rem;
  }

  .btn-download-media {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .history-list {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .history-title {
    font-size: 0.8rem;
  }

  .feedback-panel {
    padding: 1.5rem;
  }

  .feedback-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    text-align: center;
  }

  .feedback-stats {
    justify-content: center;
  }

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

  .admin-login-card {
    padding: 1.5rem 1.25rem;
  }

  .admin-dashboard-container {
    padding: 1.25rem;
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .admin-actions {
    width: 100%;
    justify-content: space-between;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .download-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    text-align: center;
  }
  .quality-info {
    justify-content: center;
  }
  .btn-download-media {
    justify-content: center;
    width: 100%;
  }
}

/* -------------------------------------
   Admin Panel Extra Controls
------------------------------------- */
.btn-admin-clear-all {
  display: flex;
  align-items: center;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-admin-clear-all:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fff;
  transform: translateY(-1px);
}
.btn-admin-row-delete {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
  padding: 0.35rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.btn-admin-row-delete:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fff;
}

/* -------------------------------------
   Legal Document & Informational Pages
------------------------------------- */
.doc-page-container {
  max-width: 850px;
  margin: 0 auto 4rem auto;
  padding: 3rem 2.5rem;
  line-height: 1.8;
  font-size: 1.05rem;
  animation: slideUp 0.3s ease-out;
}
.doc-page-title {
  font-size: 2.25rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.doc-page-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  font-weight: 500;
}
.doc-page-container h2 {
  font-size: 1.4rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.5rem;
}
.doc-page-container p {
  margin-bottom: 1.25rem;
  color: #94a3b8;
}
.doc-page-container ul, .doc-page-container ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: #94a3b8;
}
.doc-page-container li {
  margin-bottom: 0.5rem;
}
.doc-page-container a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}
.doc-page-container a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

/* -------------------------------------
   Blog Directory & Cards
------------------------------------- */
.blog-directory-container {
  max-width: 1050px;
  margin: 0 auto 4rem auto;
  animation: slideUp 0.3s ease-out;
}
.blog-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.blog-card {
  padding: 1.75rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
}
.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.blog-card-category {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(59, 130, 246, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}
.blog-card-readtime {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}
.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
}
.blog-card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  font-size: 0.8rem;
}
.blog-card-date {
  color: var(--text-muted);
  font-weight: 500;
}
.blog-card-link {
  color: var(--primary);
  font-weight: 700;
  transition: var(--transition);
}
.blog-card:hover .blog-card-link {
  color: var(--secondary);
}

/* -------------------------------------
   Blog Detail View
------------------------------------- */
.blog-detail-container {
  max-width: 850px;
  margin: 0 auto 4rem auto;
  padding: 3rem;
  animation: slideUp 0.3s ease-out;
}
.blog-detail-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.blog-detail-category {
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 800;
}
.blog-detail-dot {
  color: rgba(255, 255, 255, 0.15);
}
.blog-detail-title {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  line-height: 1.3;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.blog-detail-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}
.blog-detail-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 2.5rem;
}
.blog-detail-body {
  line-height: 1.8;
  font-size: 1.05rem;
}
.blog-detail-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  border-left: 3px solid var(--primary);
  padding-left: 0.75rem;
}
.blog-detail-body p {
  margin-bottom: 1.5rem;
  color: #94a3b8;
}
.blog-detail-body ol, .blog-detail-body ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: #94a3b8;
}
.blog-detail-body li {
  margin-bottom: 0.75rem;
}
.blog-detail-body a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}
.blog-detail-body a:hover {
  color: var(--secondary);
}
.blog-detail-footer {
  margin-top: 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
}
