/* PhoneFix theme extracted from `phone-repair-website.html` (scoped). */

.theme-phonefix {
  --y: #ff6000;
  --yd: #e65500;
  --dark: #0a0a0a;
  --d2: #111111;
  --d3: #181818;
  --d4: #202020;
  --muted: #888;
  --border: rgba(255, 255, 255, 0.08);
  --glow: 0 0 40px rgba(255, 96, 0, 0.18);

  background: var(--dark);
  color: #fff;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.theme-phonefix header {
  display: none;
}

.theme-phonefix .phonefix-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  height: 68px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s;
}

.theme-phonefix .phonefix-nav.scrolled {
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.6);
}

.theme-phonefix .phonefix-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.theme-phonefix .phonefix-logo-img {
  height: 34px;
  width: auto;
  display: block;
}

.theme-phonefix .phonefix-nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.theme-phonefix .phonefix-nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

.theme-phonefix .phonefix-nav-links a:hover {
  color: #fff;
}

.theme-phonefix .phonefix-nav-cta {
  background: var(--y);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 18px;
  border-radius: 6px;
  border: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.theme-phonefix .phonefix-nav-cta:hover {
  background: var(--yd);
  transform: translateY(-1px);
  box-shadow: var(--glow);
}

.theme-phonefix .phonefix-nav .lang-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.theme-phonefix #particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* Hero */
.theme-phonefix .phonefix-hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 56px 6% 72px;
  gap: 40px;
  flex-wrap: wrap;
  min-height: 92vh;
  background: radial-gradient(
    ellipse 80% 60% at 65% 50%,
    rgba(255, 96, 0, 0.06) 0%,
    transparent 70%
  );
  overflow: hidden;
  text-align: start;
}

.theme-phonefix .phonefix-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--dark));
  pointer-events: none;
}

.theme-phonefix .phonefix-hero-text {
  flex: 1;
  min-width: 300px;
  position: relative;
  z-index: 2;
}

.theme-phonefix .phonefix-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 96, 0, 0.1);
  border: 1px solid rgba(255, 96, 0, 0.25);
  color: var(--y);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.theme-phonefix .badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--y);
  animation: phonefix-blink 1.8s ease infinite;
}

@keyframes phonefix-blink {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}

.theme-phonefix .phonefix-hero h1 {
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 22px;
  color: var(--y);
}

.theme-phonefix .phonefix-hero .yline {
  color: var(--y);
  position: relative;
  display: inline-block;
}

.theme-phonefix .phonefix-hero .yline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 3px;
  background: var(--y);
  border-radius: 2px;
  transform: scaleX(1);
  transform-origin: left;
}

.theme-phonefix .phonefix-hero p {
  font-size: 16px;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.8;
  text-align: start;
}

.theme-phonefix .phonefix-hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.theme-phonefix .phonefix-btn-primary {
  background: var(--y);
  color: #fff;
  font-weight: 800;
  font-size: 14.5px;
  padding: 14px 32px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.theme-phonefix .phonefix-btn-primary:hover {
  background: var(--yd);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 96, 0, 0.35);
}

.theme-phonefix .btn-primary {
  background: var(--y);
  color: #fff;
}

.theme-phonefix .btn-primary:hover {
  background: var(--yd);
}

.theme-phonefix .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.theme-phonefix .btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.theme-phonefix .phonefix-btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 600;
  font-size: 14.5px;
  padding: 13px 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.theme-phonefix .phonefix-btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.05);
}

.theme-phonefix .play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.theme-phonefix .phonefix-hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 52px;
  flex-wrap: wrap;
}

.theme-phonefix .hero-visual {
  flex: 0 0 auto;
  width: min(620px, 100%);
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.theme-phonefix .phone-wrap {
  position: relative;
  width: min(620px, 94vw);
  margin: 0;
}

.theme-phonefix .phone-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(740px, 120%);
  height: min(740px, 120%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 96, 0, 0.22) 0%, transparent 70%);
  animation: phonefix-glow 3s ease-in-out infinite;
}

@keyframes phonefix-glow {
  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

.theme-phonefix .phonefix-hero-image {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 60px rgba(255, 96, 0, 0.28));
}

.theme-phonefix .phonefix-hero-image-wrap {
  display: grid;
}

.theme-phonefix .phonefix-hero-image-wrap .phonefix-hero-image {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateX(0);
  will-change: opacity, transform;
  transition: opacity 520ms ease, transform 520ms ease;
}

.theme-phonefix .phonefix-hero-image.is-next {
  opacity: 0;
  transform: translateX(28px);
  pointer-events: none;
}

.theme-phonefix .phonefix-hero-image.is-active {
  opacity: 1;
  transform: translateX(0);
}

.theme-phonefix .phonefix-hero-image.is-exit {
  opacity: 0;
  transform: translateX(-28px);
}

.theme-phonefix .phonefix-hero-image.is-enter {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .theme-phonefix .phonefix-hero-image-wrap .phonefix-hero-image {
    transition: none;
  }
  .theme-phonefix .phonefix-hero-image.is-next,
  .theme-phonefix .phonefix-hero-image.is-exit,
  .theme-phonefix .phonefix-hero-image.is-enter {
    transform: none;
  }
}

.theme-phonefix .phonefix-stat {
  border-left: 2px solid rgba(255, 96, 0, 0.35);
  padding-left: 16px;
}

[dir="rtl"] .theme-phonefix .phonefix-stat {
  border-left: 0;
  padding-left: 0;
  border-right: 2px solid rgba(255, 96, 0, 0.35);
  padding-right: 16px;
}

.theme-phonefix .phonefix-stat-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--y);
  letter-spacing: -1px;
  line-height: 1;
}

.theme-phonefix .phonefix-stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

.theme-phonefix .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.theme-phonefix .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Existing site sections: dark mode + yellow accents */
.theme-phonefix .container,
.theme-phonefix .track-section,
.theme-phonefix .brands-section {
  background: transparent;
  color: #fff;
}

.theme-phonefix .section-title {
  color: #fff;
}

.theme-phonefix .card,
.theme-phonefix .brand-card {
  background: var(--d2);
  border-color: var(--border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.theme-phonefix .card:hover,
.theme-phonefix .brand-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 96, 0, 0.35);
}

.theme-phonefix .card h3,
.theme-phonefix .brand-name {
  color: #fff;
}

.theme-phonefix .card p,
.theme-phonefix .track-help,
.theme-phonefix .stat-label {
  color: var(--muted);
}

.theme-phonefix .stat-value {
  color: var(--y);
}

.theme-phonefix footer {
  background: var(--d2);
  border-top: 1px solid var(--border);
}

.theme-phonefix .footer-section a:hover {
  color: var(--y);
}

.theme-phonefix .modal {
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(10px);
}

.theme-phonefix .modal-content {
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.96), rgba(17, 17, 17, 0.9));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  max-width: 760px;
}

.theme-phonefix .modal-title {
  color: #fff;
}

.theme-phonefix .modal-close {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.theme-phonefix .modal-close:hover {
  background: rgba(255, 96, 0, 0.18);
}

.theme-phonefix .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.theme-phonefix .form-group.full {
  grid-column: 1 / -1;
}

.theme-phonefix .form-group label {
  color: rgba(255, 255, 255, 0.86);
}

.theme-phonefix .form-group input,
.theme-phonefix .form-group select,
.theme-phonefix .form-group textarea {
  background: rgba(24, 24, 24, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.theme-phonefix .form-group input:focus,
.theme-phonefix .form-group select:focus,
.theme-phonefix .form-group textarea:focus {
  outline: none;
  border-color: rgba(255, 96, 0, 0.75);
  box-shadow: 0 0 0 3px rgba(255, 96, 0, 0.18);
}

.theme-phonefix .feedback {
  color: rgba(255, 255, 255, 0.75);
}

.theme-phonefix .step-dot {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
}

.theme-phonefix .step-label {
  color: rgba(255, 255, 255, 0.7);
}

.theme-phonefix .timeline-line {
  background: rgba(255, 255, 255, 0.12);
}

.theme-phonefix .device-info {
  background: rgba(24, 24, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.theme-phonefix .info-item strong {
  color: rgba(255, 255, 255, 0.65);
}

/* Track modal: keep it light (white) for readability */
.theme-phonefix #trackModal .modal-content {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(2, 6, 23, 0.08);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.theme-phonefix #trackModal .modal-header {
  margin-bottom: 1rem;
}

.theme-phonefix #trackModal .modal-title {
  color: #0f172a;
}

.theme-phonefix #trackModal .modal-close {
  background: #f1f5f9;
  color: #0f172a;
}

.theme-phonefix #trackModal .modal-close:hover {
  background: #e2e8f0;
}

.theme-phonefix #trackModal .device-info {
  background: #f8fafc;
  border: 1px solid rgba(2, 6, 23, 0.08);
  padding: 1rem;
  margin: 0.25rem 0 1.25rem;
}

.theme-phonefix #trackModal .info-item strong {
  color: #64748b;
}

.theme-phonefix #trackModal .timeline {
  margin: 0;
}

.theme-phonefix #trackModal .timeline-steps {
  gap: 0.5rem;
}

.theme-phonefix #trackModal .step-dot {
  background: #e2e8f0;
  color: #0f172a;
}

.theme-phonefix #trackModal .step-dot.active,
.theme-phonefix #trackModal .step-dot.waiting {
  background: #ff6000;
  color: #ffffff;
}

.theme-phonefix #trackModal .step-dot.done {
  background: #16a34a;
  color: #ffffff;
}

.theme-phonefix #trackModal .step-label {
  color: #64748b;
}

.theme-phonefix #trackModal .timeline-line {
  background: #e2e8f0;
}

.theme-phonefix .phonefix-hero .cta-group {
  justify-content: flex-start;
}

.theme-phonefix .phonefix-hero-stats {
  margin-top: 2.25rem;
}

@media (max-width: 900px) {
  .theme-phonefix .phonefix-nav-links {
    display: none;
  }

  .theme-phonefix .phonefix-hero {
    padding: 40px 5% 56px;
    min-height: auto;
    text-align: center;
  }

  .theme-phonefix .hero-visual {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .theme-phonefix .phone-wrap {
    width: min(460px, 94vw);
  }

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

  .theme-phonefix .phonefix-hero p {
    margin-inline: auto;
    text-align: center;
  }

  .theme-phonefix .phonefix-hero-btns {
    justify-content: center;
  }

  .theme-phonefix .phonefix-hero .cta-group {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .theme-phonefix .phonefix-nav {
    padding: 0 4%;
    height: 60px;
  }

  .theme-phonefix .phonefix-nav-cta {
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 8px;
  }

  .theme-phonefix .phonefix-nav .lang-btn {
    padding: 0.45rem 0.6rem;
    font-size: 0.85rem;
  }

  /* Mobile hero: show visual first, partially, with fade-out */
  .theme-phonefix .phonefix-hero {
    padding: 18px 5% 44px;
  }

  .theme-phonefix .hero-visual {
    order: 1;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    width: min(460px, 94vw);
    margin-left: auto;
    margin-right: auto;
  }

  .theme-phonefix .phonefix-hero-text {
    order: 2;
    margin-top: -56px; /* overlap ~25% of the clipped phone image */
    z-index: 2;
  }

  .theme-phonefix .phone-wrap {
    max-height: 280px;
    overflow: hidden;
  }

  .theme-phonefix .phone-glow {
    display: none;
  }

  .theme-phonefix .hero-visual::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 38%;
    transform: translate(-50%, -50%);
    width: 640px;
    height: 640px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 96, 0, 0.26) 0%, transparent 68%);
    filter: blur(10px);
    pointer-events: none;
    z-index: 0;
  }

  .theme-phonefix .phone-wrap {
    z-index: 1;
  }

  .theme-phonefix .phone-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 58%;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0), var(--dark));
    pointer-events: none;
  }

  @supports (-webkit-mask-image: linear-gradient(#000, transparent)) {
    .theme-phonefix .phone-wrap {
      -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 56%, transparent 100%);
      mask-image: linear-gradient(to bottom, #000 0%, #000 56%, transparent 100%);
    }

    .theme-phonefix .phone-wrap::after {
      display: none;
    }
  }

  /* Mobile hero CTAs: compact + single row */
  .theme-phonefix .phonefix-hero .cta-group {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.5rem;
    width: min(420px, calc(100% - 24px));
    margin-left: auto;
    margin-right: auto;
    align-items: stretch;
  }

  .theme-phonefix .phonefix-hero .cta-group .btn {
    width: auto; /* override global `.btn { width:100%; }` at small screens */
    min-width: 0;
    flex: 1 1 0;
    padding: 0.65rem 0.7rem;
    font-size: 0.85rem;
    border-radius: 12px;
    white-space: nowrap;
    text-align: center;
  }

  .theme-phonefix .phonefix-hero .cta-group .btn-call {
    justify-content: center; /* `.btn-call` is already inline-flex in base styles */
  }

  .theme-phonefix .phonefix-hero .cta-group .btn-call-icon .ui-icon {
    width: 16px;
    height: 16px;
  }

  .theme-phonefix .phonefix-hero .cta-group .btn-call-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }

  /* Keep hero stats in a single row on mobile */
  .theme-phonefix .phonefix-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    justify-items: center;
    text-align: center;
    width: min(420px, 100%);
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    padding-inline: 0;
  }

  .theme-phonefix .phonefix-hero-stats .stat-value {
    font-size: 1.55rem;
    line-height: 1.1;
  }

  .theme-phonefix .phonefix-hero-stats .stat-label {
    font-size: 0.75rem;
  }
}
