:root {
  --primary: #1877F2;
  --primary-dark: #0C63D4;
  --primary-light: #E7F3FF;
  --secondary: #06D755;
  --dark: #050505;
  --light: #F0F2F5;
  --gray: #737373;
  --white: #FFFFFF;
  --card-bg: rgba(255, 255, 255, 0.95);
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
  --transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  --gradient: linear-gradient(135deg, #1877F2 0%, #06D755 100%);
}

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


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

.header {
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  animation: fadeIn 0.5s ease;
}

.logo-icon {
  width: 56px;
  height: 56px;
  background: var(--white);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.logo-icon:hover {
  transform: scale(1.05);
}

.logo-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.logo-text h1 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--white) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.tagline {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.15rem;
  font-weight: 500;
  max-width: 400px;
  margin: 0 auto;
}

.header-facebook {
           /* limits width for readability */
           margin: 40px 10px;      /* centers horizontally and gives vertical spacing */
           padding: 10px;
           text-align: center;
           background: white; /* gradient header */
           border-radius: 12px;
           color: #000000;
           box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.header-facebook .title-header h1 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 1px;
}

.header-facebook .subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: #000000;
    margin-bottom: 20px;  /* center text */
}


.card {
  backdrop-filter: blur(24px);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-align: left;
}

.card:hover {
}

.card-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}

.input-section {
  position: relative;
}

.input-label {
  display: block;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--dark);
  font-size: 1.1rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  margin-bottom: 8px;
}

.url-input {
  flex: 1;
  padding: 18px 20px !important;
  border: 2px solid #E4E6EB !important;
  border-radius: var(--radius-sm) !important;
  font-size: 16px;
  outline: none;
  transition: var(--transition);
  background: var(--white) !important;
  font-weight: 500;
  width: 100%;
}

.url-input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.15) !important;
}

.url-input::placeholder {
  color: var(--gray);
  font-weight: 400;
}

.error-message {
  display: none;
  padding: 14px 16px;
  background: rgba(239, 68, 68, 0.1);
  color: #DC2626;
  border-radius: var(--radius-sm);
  margin-top: 12px;
  font-weight: 500;
  border-left: 4px solid #DC2626;
  font-size: 14px;
}

.loader {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  text-align: center;
}

.loader-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.dot {
  width: 16px;
  height: 16px;
  background: var(--primary);
  border-radius: 50%;
  animation: bounce 0.6s infinite alternate;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  animation-delay: 0.4s;
}

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

.loader p {
  color: var(--gray);
  font-size: 16px;
  font-weight: 500;
}

.result {
  display: none;
  animation: fadeIn 0.5s ease;
}

.video-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid #E4E6EB;
  transition: var(--transition);
}

.video-thumbnail {
  height: 150px;
  border-radius: 12px;
  text-align: center !important;
  margin-top: 20px;
  object-fit: cover;
  display: flex;
  justify-content: center;
}

.video-thumbnail i {
  font-size: 56px;
  color: rgba(255, 255, 255, 0.95);
}

.video-info {
  padding: 10px;
}

.info-grid {
  display: grid;
  gap: 16px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 5px;
  background: linear-gradient(135deg, var(--primary-light) 0%, rgba(6, 215, 85, 0.08) 100%);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary);
}

.info-icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.info-content {
  flex: 1;
}

.info-label {
  font-weight: 600;
  color: var(--dark);
  font-size: 14px;
  margin-bottom: 4px;
}

.info-value {
  color: var(--dark);
  font-size: 15px;
  font-weight: 500;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px;
}

.download-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: var(--white);
  border: 2px solid #E4E6EB;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.download-btn:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.download-btn.video:hover {
  background: var(--primary-light);
}

.download-btn.audio:hover {
  background: rgba(6, 215, 85, 0.1);
}

.btn-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: var(--transition);
}

.audio .btn-icon {
  background: var(--secondary);
}

.btn-text h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--dark);
}

.btn-text p {
  font-size: 16px;
  color: var(--gray);
}

.quality {
  background: rgba(0, 0, 0, 0.06);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
}

.fetch-btn {
  width: 100%;
  background: #483D8B;
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 18px;
  font-size: 22px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(6, 215, 85, 0.4);
  margin-top: 16px;
}

.fetch-btn:hover {
  background: #005795;
  box-shadow: 0 6px 20px rgba(6, 215, 85, 0.5);
}

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

.fetch-btn:disabled {
  background: var(--gray);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.more-btn {
  width: 100%;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.more-btn:hover {
  background: var(--primary);
  color: white;
  /* transform: translateY(-2px); */
}

.features {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  flex-wrap: wrap;
}

.feature {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  padding: 10px 20px;
  border-radius: 24px;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.feature:hover {
  transform: scale(1.05);
}

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

@media (max-width: 600px) {
  .container {
    max-width: 100%;
  }

  .card {
  padding: 0;
  }

  .header {
    margin-bottom: 32px;
  }

  .logo-text h1 {
    font-size: 2.25rem;
  }

  .url-input {
    border-radius: var(--radius-sm);
  }

  .features {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .feature {
    width: fit-content;
  }
}

.content {
  padding: 10px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  margin: 10px;
}

h2 {
  color: #1877f2;
  font-size: 2.2em;
  margin: 50px 0 25px 0;
  padding-bottom: 15px;
  border-bottom: 4px solid #1877f2;
  font-weight: 700;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100px;
  height: 4px;
  background: #764ba2;
}

h3 {
  color: #2c3e50;
  font-size: 1.6em;
  margin: 35px 0 18px 0;
  font-weight: 600;
}

p {
  margin-bottom: 0px;
  font-size: 1.1em;
  color: #34495e;
  line-height: 1.9;
}

ul {
  margin: 25px 0 25px 35px;
}

li {
  margin-bottom: 5px;
  font-size: 1.1em;
  color: #34495e;
  line-height: 1.8;
}

strong {
  color: #0000FF;
  font-weight: 600;
}

.intro {
  background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
  padding: 10px;
  border-radius: 15px;
  border-left: 6px solid #1877f2;
  margin-bottom: 50px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.intro p {
  margin-bottom: 18px;
  font-size: 1.15em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.feature-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 35px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(102,126,234,0.3);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
  transition: all 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 35px rgba(102,126,234,0.5);
}

.feature-card:hover::before {
  top: -60%;
  right: -60%;
}

.feature-card h3 {
  color: white;
  font-size: 1.4em;
  margin: 0 0 15px 0;
  position: relative;
  z-index: 1;
}

.feature-card p {
  color: rgba(255,255,255,0.95);
  font-size: 1em;
  margin: 0;
  position: relative;
  z-index: 1;
  line-height: 1.7;
}

.steps {
  background: #f8f9fa;
  border: 3px solid #e9ecef;
  border-radius: 15px;
  padding: 40px;
  margin: 40px 0;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.step {
  display: flex;
  align-items: start;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 2px dashed #dee2e6;
  transition: all 0.3s ease;
}

.step:hover {
  transform: translateX(10px);
}

.step:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.step-number {
  background: linear-gradient(135deg, #1877f2 0%, #0a4d9e 100%);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.4em;
  flex-shrink: 0;
  margin-right: 25px;
  box-shadow: 0 5px 15px rgba(24,119,242,0.4);
}

.step-content h3 {
  margin: 0 0 10px 0;
  color: #0000FF;
  font-size: 1.3em;
}

.step-content p {
  margin: 0;
  color: #495057;
}

.faq-section {
  margin: 50px 0;
}

.faq-item {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 20px;
  border-left: 5px solid #1877f2;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transform: translateX(5px);
}

.faq-item h3 {
  color: #1877f2;
  margin: 0 0 15px 0;
  font-size: 1.25em;
  font-weight: 600;
}

.faq-item p {
  margin: 0;
  color: #495057;
}

.cta-box {
  background: linear-gradient(135deg, #1877f2 0%, #0a4d9e 100%);
  color: white;
  padding: 50px 40px;
  border-radius: 15px;
  text-align: center;
  margin: 50px 0;
  box-shadow: 0 15px 35px rgba(24,119,242,0.4);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  to { left: 100%; }
}

.cta-box h2 {
  color: white;
  border: none;
  margin: 0 0 25px 0;
  font-size: 2.3em;
}

.cta-box h2::after {
  display: none;
}

.cta-box p {
  color: rgba(255,255,255,0.95);
  font-size: 1.2em;
  margin-bottom: 30px;
}

.cta-button {
  display: inline-block;
  background: white;
  color: #1877f2;
  padding: 18px 50px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  position: relative;
  z-index: 1;
}

.cta-button:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  background: #f0f8ff;
}

.tips-box {
  background: linear-gradient(135deg, #fff9e6 0%, #ffe6cc 100%);
  border: 3px solid #ffc107;
  border-radius: 15px;
  padding: 35px;
  margin: 40px 0;
  box-shadow: 0 5px 15px rgba(255,193,7,0.2);
}

.tips-box h3 {
  color: #856404;
  margin-top: 0;
  font-size: 1.5em;
}

.tips-box ul {
  margin-top: 20px;
}

.tips-box li {
  color: #856404;
}

footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  padding: 40px;
  text-align: center;
  color: #ecf0f1;
}

footer p {
  margin: 8px 0;
  color: #bdc3c7;
}

footer p:first-child {
  font-weight: 600;
  color: white;
  font-size: 1.1em;
}

@media (max-width: 768px) {
  .header h1 {
    font-size: 2em;
  }

  .header {
    padding: 50px 25px;
  }

  .content {
    padding: 10px;
  }

  h2 {
    font-size: 1.8em;
  }

  h3 {
    font-size: 1.4em;
  }

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

  .step {
    flex-direction: column;
    align-items: start;
  }

  .step-number {
    margin-bottom: 15px;
  }

  .cta-button {
    padding: 15px 35px;
    font-size: 1em;
  }
}

@media (max-width: 640px) {
button:hover,button:focus,button:active,.button:hover,.button:focus,.button:active,.wp-block-button__link:hover,.wp-block-button__link:focus,.wp-block-button__link:active,.wp-element-button:hover,.wp-element-button:focus,.wp-element-button:active,input[type=button]:hover,input[type=button]:focus,input[type=button]:active,input[type=reset]:hover,input[type=reset]:focus,input[type=reset]:active,input[type=submit]:hover,input[type=submit]:focus,input[type=submit]:active {
    color: white;
    background: none;
    box-shadow: 0px 15px 25px -7px rgba(0,0,0,.1)
}

  