@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css");

.fav-premium-viewer,
.fav-premium-viewer * {
  box-sizing: border-box;
}

.fav-premium-viewer {
  --fav-bg: #fff;
  --fav-ink: #172033;
  --fav-muted: #5d6678;
  --fav-line: rgba(48, 86, 152, 0.14);
  --fav-blue: #1877f2;
  --fav-cyan: #14b8d4;
  --fav-violet: #7057ff;
  --fav-warm: #fff7ee;
  --fav-radius: 22px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--fav-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fav-premium-viewer .fav-section {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  padding: 86px 22px;
}

.fav-premium-viewer .fav-section-white {
  background: #fff;
}

.fav-premium-viewer .fav-section-warm {
  background:
    radial-gradient(circle at 15% 10%, rgba(24, 119, 242, 0.09), transparent 34%),
    radial-gradient(circle at 85% 20%, rgba(20, 184, 212, 0.12), transparent 32%),
    linear-gradient(180deg, #fff8ef 0%, #fffdf9 100%);
}

.fav-premium-viewer .fav-container {
  width: min(1280px, 100%);
  max-width: 100%;
  margin: 0 auto;
}

.fav-premium-viewer .fav-section-head {
  max-width: 790px;
  margin: 0 auto 42px;
  text-align: center;
}

.fav-premium-viewer .fav-section-head h2 {
  margin: 0;
  color: var(--fav-ink);
  font-size: clamp(1.2rem, 4vw, 2.2rem) !important;
  line-height: 1.14;
  font-weight: 850;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.fav-premium-viewer .fav-section-head h2 span {
  background: linear-gradient(135deg, var(--fav-blue), var(--fav-cyan) 48%, var(--fav-violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fav-premium-viewer .fav-section-head p {
  margin: 14px auto 0;
  max-width: 680px;
  color: var(--fav-muted);
  font-size: 1.02rem;
  line-height: 1.72;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.fav-premium-viewer .fav-card-grid {
  display: grid;
  width: 100%;
  max-width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.fav-premium-viewer .fav-card {
  --fg-mx: 50%;
  --fg-my: 0%;
  --fg-tilt-x: 0deg;
  --fg-tilt-y: 0deg;
  --fav-accent: #1877f2;
  --fav-accent-2: #14b8d4;
  --fav-soft: rgba(24, 119, 242, 0.09);
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 242px;
  padding: 26px;
  border: 1px solid var(--fav-line);
  border-radius: var(--fav-radius);
  background:
    radial-gradient(circle at var(--fg-mx) var(--fg-my), rgba(255, 255, 255, 0.98), transparent 26%),
    linear-gradient(145deg, rgba(255,255,255,0.98), rgba(255,255,255,0.82)),
    linear-gradient(145deg, var(--fav-soft), transparent);
  box-shadow: 0 16px 45px rgba(24, 42, 78, 0.08);
  transform: translateY(22px) rotateX(var(--fg-tilt-x)) rotateY(var(--fg-tilt-y));
  opacity: 0;
  overflow: hidden;
  transition: transform 280ms ease, opacity 500ms ease, box-shadow 280ms ease, border-color 280ms ease, background 280ms ease;
  transform-style: preserve-3d;
}

.fav-premium-viewer .fav-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.42), transparent 34%),
    radial-gradient(circle at var(--fg-mx) var(--fg-my), color-mix(in srgb, var(--fav-accent) 20%, transparent), transparent 31%);
  opacity: 0;
  transition: opacity 280ms ease;
}

.fav-premium-viewer .fav-card::after {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--fav-accent), var(--fav-accent-2));
  transform: scaleX(0.24);
  transform-origin: left;
  opacity: 0.45;
  transition: transform 280ms ease, opacity 280ms ease;
}

.fav-premium-viewer .fav-card.is-visible {
  opacity: 1;
  transform: translateY(0) rotateX(var(--fg-tilt-x)) rotateY(var(--fg-tilt-y));
}

.fav-premium-viewer .fav-card:hover {
  border-color: color-mix(in srgb, var(--fav-accent) 38%, transparent);
  box-shadow: 0 24px 70px rgba(24, 42, 78, 0.14);
  transform: translateY(-7px) rotateX(var(--fg-tilt-x)) rotateY(var(--fg-tilt-y));
}

.fav-premium-viewer .fav-card:hover::before {
  opacity: 1;
}

.fav-premium-viewer .fav-card:hover::after {
  transform: scaleX(1);
  opacity: 0.95;
}

.fav-premium-viewer .fav-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border-radius: 18px;
  color: var(--fav-accent);
  background: linear-gradient(145deg, #fff, var(--fav-soft));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7), 0 12px 26px rgba(24, 42, 78, 0.08);
  transition: transform 280ms ease, color 280ms ease, background 280ms ease;
}

.fav-premium-viewer .fav-icon i {
  font-size: 1.25rem;
  line-height: 1;
}

.fav-premium-viewer .fav-card:hover .fav-icon {
  color: #fff;
  background: linear-gradient(135deg, var(--fav-accent), var(--fav-accent-2));
  transform: translateY(-3px) scale(1.05) rotate(-3deg);
}

.fav-premium-viewer .fav-card h3 {
  position: relative;
  z-index: 1;
  display: inline;
  margin: 0;
  color: var(--fav-ink);
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0;
  background-image: linear-gradient(90deg, var(--fav-accent), var(--fav-accent-2));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 2px;
  transition: background-size 280ms ease;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.fav-premium-viewer .fav-card:hover h3 {
  background-size: 100% 2px;
}

.fav-premium-viewer .fav-card p {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  color: var(--fav-muted);
  font-size: 0.95rem;
  line-height: 1.68;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.fav-premium-viewer .fav-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  max-width: 100%;
  margin-top: 18px;
  color: var(--fav-accent);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 260ms ease, transform 260ms ease, color 260ms ease;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.fav-premium-viewer .fav-card:hover .fav-cta {
  opacity: 1;
  transform: translateY(0);
  color: color-mix(in srgb, var(--fav-accent) 78%, #111827);
}

.fav-premium-viewer .fav-tilt {
  perspective: 900px;
}

.fav-premium-viewer .fav-process-card {
  min-height: 260px;
  padding-top: 30px;
}

.fav-premium-viewer .fav-step-number {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 0;
  color: color-mix(in srgb, var(--fav-accent) 18%, transparent);
  font-size: 4.4rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  pointer-events: none;
  transition: transform 280ms ease, color 280ms ease;
}

.fav-premium-viewer .fav-process-card:hover .fav-step-number {
  color: color-mix(in srgb, var(--fav-accent) 28%, transparent);
  transform: translateY(-5px) scale(1.04);
}

.fav-premium-viewer .fav-card:nth-child(1) { --fav-accent: #1877f2; --fav-accent-2: #14b8d4; --fav-soft: rgba(24,119,242,0.10); }
.fav-premium-viewer .fav-card:nth-child(2) { --fav-accent: #6d5dfc; --fav-accent-2: #27c0aa; --fav-soft: rgba(109,93,252,0.10); }
.fav-premium-viewer .fav-card:nth-child(3) { --fav-accent: #0f9f8f; --fav-accent-2: #1877f2; --fav-soft: rgba(15,159,143,0.10); }
.fav-premium-viewer .fav-card:nth-child(4) { --fav-accent: #e16b4f; --fav-accent-2: #f4b544; --fav-soft: rgba(225,107,79,0.10); }
.fav-premium-viewer .fav-card:nth-child(5) { --fav-accent: #2368d9; --fav-accent-2: #7c5cff; --fav-soft: rgba(35,104,217,0.10); }
.fav-premium-viewer .fav-card:nth-child(6) { --fav-accent: #c057c9; --fav-accent-2: #3aa6ff; --fav-soft: rgba(192,87,201,0.10); }
.fav-premium-viewer .fav-card:nth-child(7) { --fav-accent: #20835c; --fav-accent-2: #8fbf3d; --fav-soft: rgba(32,131,92,0.10); }
.fav-premium-viewer .fav-card:nth-child(8) { --fav-accent: #d3568b; --fav-accent-2: #ff8f5a; --fav-soft: rgba(211,86,139,0.10); }

@media (min-width: 1200px) {
  .fav-premium-viewer .fav-section {
    padding: 92px 28px;
  }

  .fav-premium-viewer .fav-container {
    width: min(1320px, 100%);
  }

  .fav-premium-viewer .fav-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .fav-premium-viewer .fav-section {
    padding: 78px 24px;
  }

  .fav-premium-viewer .fav-container {
    width: min(1080px, 100%);
  }

  .fav-premium-viewer .fav-section-head h2 {
    font-size: clamp(1.2rem, 4vw, 2.05rem) !important;
  }

  .fav-premium-viewer .fav-section-head p {
    font-size: 0.98rem;
  }

  .fav-premium-viewer .fav-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }

  .fav-premium-viewer .fav-card {
    padding: 24px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .fav-premium-viewer .fav-section {
    padding: 66px 20px;
  }

  .fav-premium-viewer .fav-section-head {
    margin-bottom: 34px;
  }

  .fav-premium-viewer .fav-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .fav-premium-viewer .fav-card {
    padding: 23px;
  }

  .fav-premium-viewer .fav-card h3 {
    font-size: 1.02rem;
  }

  .fav-premium-viewer .fav-card p {
    font-size: 0.92rem;
  }
}

@media (min-width: 430px) and (max-width: 767px) {
  .fav-premium-viewer .fav-section {
    padding: 54px 16px;
  }

  .fav-premium-viewer .fav-section-head {
    margin-bottom: 28px;
  }

  .fav-premium-viewer .fav-section-head h2 {
    font-size: clamp(1.2rem, 4vw, 1.75rem) !important;
  }

  .fav-premium-viewer .fav-section-head p {
    font-size: 0.94rem;
    line-height: 1.62;
  }

  .fav-premium-viewer .fav-card-grid {
    grid-template-columns: 1fr !important;
    gap: 17px;
  }

  .fav-premium-viewer .fav-card {
    min-height: auto;
    padding: 22px;
  }

  .fav-premium-viewer .fav-cta {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 375px) and (max-width: 429px) {
  .fav-premium-viewer .fav-section {
    padding: 48px 14px;
  }

  .fav-premium-viewer .fav-section-head {
    margin-bottom: 24px;
  }

  .fav-premium-viewer .fav-section-head h2 {
    font-size: clamp(1.2rem, 4vw, 1.55rem) !important;
  }

  .fav-premium-viewer .fav-section-head p {
    font-size: 0.9rem;
  }

  .fav-premium-viewer .fav-card-grid {
    grid-template-columns: 1fr !important;
    gap: 15px;
  }

  .fav-premium-viewer .fav-card {
    min-height: auto;
    padding: 20px;
    border-radius: 18px;
  }

  .fav-premium-viewer .fav-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    margin-bottom: 16px;
  }

  .fav-premium-viewer .fav-step-number {
    font-size: 3.6rem;
  }
}

@media (min-width: 320px) and (max-width: 374px) {
  .fav-premium-viewer .fav-section {
    padding: 42px 12px;
  }

  .fav-premium-viewer .fav-section-head {
    margin-bottom: 22px;
  }

  .fav-premium-viewer .fav-section-head h2 {
    font-size: clamp(1.2rem, 4vw, 1.42rem) !important;
  }

  .fav-premium-viewer .fav-section-head p,
  .fav-premium-viewer .fav-card p {
    font-size: 0.88rem;
    line-height: 1.58;
  }

  .fav-premium-viewer .fav-card-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .fav-premium-viewer .fav-card {
    min-height: auto;
    padding: 18px;
    border-radius: 16px;
  }

  .fav-premium-viewer .fav-card h3 {
    font-size: 0.98rem;
  }

  .fav-premium-viewer .fav-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    margin-bottom: 14px;
  }

  .fav-premium-viewer .fav-icon i {
    font-size: 1.06rem;
  }

  .fav-premium-viewer .fav-step-number {
    top: 12px;
    right: 14px;
    font-size: 3.15rem;
  }
}

@media (max-width: 767px) {
  .fav-premium-viewer,
  .fav-premium-viewer .fav-section,
  .fav-premium-viewer .fav-container,
  .fav-premium-viewer .fav-card-grid,
  .fav-premium-viewer .fav-card {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .fav-premium-viewer .fav-card {
    min-width: 0;
  }

  .fav-premium-viewer .fav-card * {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fav-premium-viewer .fav-card,
  .fav-premium-viewer .fav-card::before,
  .fav-premium-viewer .fav-card::after,
  .fav-premium-viewer .fav-icon,
  .fav-premium-viewer .fav-cta,
  .fav-premium-viewer .fav-step-number,
  .fav-premium-viewer .fav-card h3 {
    transition: none !important;
    animation: none !important;
  }

  .fav-premium-viewer .fav-card,
  .fav-premium-viewer .fav-card.is-visible,
  .fav-premium-viewer .fav-card:hover {
    transform: none !important;
    opacity: 1;
  }
}