/* FastSaveTik.com - SSSTik-styled Stylesheet */
:root {
  --primary: #5940f1;
  --secondary: #ce00ff;
  --accent: #00f2fe;
  --dark: #22252a;
  --text-main: #333333;
  --text-muted: #666666;
  --bg-light: #f5f7fb;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --success: #10b981;
  --radius: 10px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(89, 64, 241, 0.18);
  --splash-gradient: linear-gradient(89.86deg, #5940f1 8.6%, #ce00ff 99.86%);
  --btn-gradient: linear-gradient(-45deg, #5940f1, #ce00ff, #338aff, #2200ff);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

/* Header & Menu */
header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.menu-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--dark);
}

.logo-link img {
  width: 36px;
  height: 36px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--splash-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary);
  background: rgba(89, 64, 241, 0.05);
}

.btn-install-app {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  background: var(--btn-gradient);
  background-size: 600%;
  animation: animeGradient 10s linear infinite;
  box-shadow: 0 4px 15px rgba(89, 64, 241, 0.35);
  text-decoration: none !important;
}

.btn-install-app:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

@keyframes animeGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--dark);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* Hero Splash Section */
.splash-container {
  background: var(--splash-gradient);
  padding: 4rem 1.25rem 5rem;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.splash-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: var(--bg-light);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}

.splash-wrapper {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.splash-title {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 1.75rem;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

/* Main Form Input */
.download-form {
  position: relative;
  margin: 0 auto 1.5rem;
}

.input-container {
  position: relative;
  display: flex;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  padding: 6px;
  height: 64px;
  align-items: center;
}

.form-input {
  flex: 1;
  height: 100%;
  border: none;
  outline: none;
  font-size: 1.05rem;
  padding: 0 1rem;
  border-radius: 8px;
  color: #333;
  background: transparent;
  min-width: 0;
}

.form-input::placeholder {
  color: #999;
}

.input-action-btn {
  background: #f1f3f5;
  border: 1px solid #e0e4e8;
  border-radius: 6px;
  height: 38px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #495057;
  cursor: pointer;
  margin-right: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.input-action-btn:hover {
  background: #e4e7eb;
}

.input-action-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.btn-submit {
  background: var(--primary);
  color: #fff;
  border: none;
  height: 52px;
  padding: 0 1.75rem;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(89, 64, 241, 0.4);
}

.btn-submit:hover {
  background: #472de2;
  transform: translateY(-1px);
}

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

/* Spinner Loader */
.spinner {
  display: none;
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s ease-in-out infinite;
}

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

/* Error Message Alert */
.error-alert {
  display: none;
  background: #fee2e2;
  border: 1px solid #f87171;
  color: #b91c1c;
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  animation: fadeIn 0.3s ease;
}

/* Result Section */
#result-container {
  display: none;
  margin-top: 2rem;
  animation: slideUp 0.4s ease forwards;
}

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

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

.result-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  color: var(--text-main);
  text-align: left;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.result-media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #000;
}

.result-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.result-author-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 1rem 0.8rem 0.6rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
}

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #ffffff;
}

.author-info {
  line-height: 1.2;
  overflow: hidden;
}

.author-name {
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.author-handle {
  font-size: 0.78rem;
  opacity: 0.8;
}

.result-details {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.result-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 1rem;
  line-height: 1.4;
  word-break: break-word;
}

.result-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.stat-badge {
  background: #f1f4f9;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 1.25rem;
}

.dl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none !important;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: center;
  border: none;
}

.dl-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.dl-btn-nowm {
  background: #10b981;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.dl-btn-nowm:hover {
  background: #059669;
}

.dl-btn-hd {
  background: var(--primary);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(89, 64, 241, 0.3);
}

.dl-btn-hd:hover {
  background: #462de0;
}

.dl-btn-mp3 {
  background: #3b82f6;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.dl-btn-mp3:hover {
  background: #2563eb;
}

.dl-btn-reset {
  background: #f3f4f6;
  color: #4b5563 !important;
  border: 1px solid #e5e7eb;
}

.dl-btn-reset:hover {
  background: #e5e7eb;
}

/* Photo Slideshow Gallery */
.slideshow-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin: 1rem 0;
  max-height: 320px;
  overflow-y: auto;
  padding: 5px;
}

.photo-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #eee;
}

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

.photo-dl-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.7);
  padding: 6px;
  text-align: center;
}

.photo-dl-link {
  color: #fff !important;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}

/* Ad Placements */
.ad-container {
  margin: 1.5rem auto;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
}

.ad-placeholder {
  background: #eef2f6;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 1rem;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  min-width: 300px;
  min-height: 90px;
  line-height: 70px;
}

/* Section Highlights */
.section-highlights {
  max-width: 1000px;
  margin: 2.5rem auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.highlight-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.highlight-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.highlight-title {
  color: var(--primary);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

/* How to section */
.section-howto {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1.25rem;
}

.howto-header {
  text-align: center;
  margin-bottom: 2rem;
}

.howto-header h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.howto-header p {
  color: var(--text-muted);
  max-width: 750px;
  margin: 0 auto;
}

.howto-block {
  background: #ffffff;
  border-radius: 14px;
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.howto-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.howto-steps {
  list-style: none;
  counter-reset: step-counter;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.howto-step {
  position: relative;
  padding-left: 45px;
}

.howto-step::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  background: rgba(89, 64, 241, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.howto-step b {
  color: var(--dark);
  font-size: 1.05rem;
}

/* 6 Items Grid */
.section-features {
  background: #ffffff;
  padding: 4rem 1.25rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.features-container {
  max-width: 1050px;
  margin: 0 auto;
}

.features-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
}

.feature-icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  background: rgba(89, 64, 241, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
}

.feature-icon-wrapper svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.feature-text {
  font-weight: 500;
  color: var(--dark);
  font-size: 0.98rem;
}

/* Device Guides */
.section-devices {
  max-width: 960px;
  margin: 4rem auto;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.device-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.device-row.reverse {
  direction: rtl;
}

.device-row.reverse .device-content {
  direction: ltr;
}

.device-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}

.device-content p {
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.device-illustration {
  background: #ffffff;
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.device-illustration svg {
  width: 140px;
  height: 140px;
  fill: currentColor;
  opacity: 0.85;
}

/* FAQ Accordion */
.section-faq {
  max-width: 850px;
  margin: 3rem auto;
  padding: 0 1.25rem;
}

.faq-title {
  text-align: center;
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: var(--dark);
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item:hover {
  border-color: #cbd5e1;
}

.faq-question {
  padding: 1.15rem 1.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform 0.2s ease;
}

details[open] .faq-question::after {
  content: '−';
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Footer */
footer {
  background: #1a1d20;
  color: #a0aec0;
  padding: 3.5rem 1.25rem 2rem;
  margin-top: 5rem;
  font-size: 0.92rem;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-nav a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-disclaimer {
  text-align: center;
  margin: 1.5rem 0;
  color: #718096;
  font-size: 0.85rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #2d3748;
  padding-top: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-select {
  background: #2d3748;
  color: #e2e8f0;
  border: 1px solid #4a5568;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.88rem;
  cursor: pointer;
  outline: none;
}

.lang-select:focus {
  border-color: var(--primary);
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .section-highlights {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .device-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .device-row.reverse {
    direction: ltr;
  }
  .result-card {
    grid-template-columns: 1fr;
  }
  .result-cover {
    max-height: 360px;
  }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .splash-title {
    font-size: 1.65rem;
  }
  .input-container {
    height: 56px;
    padding: 4px;
  }
  .form-input {
    font-size: 0.95rem;
    padding: 0 0.5rem;
  }
  .input-action-btn {
    height: 32px;
    padding: 0 8px;
    font-size: 0.8rem;
  }
  .btn-submit {
    height: 46px;
    padding: 0 1.1rem;
    font-size: 0.95rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
