/* ========== CSS RESET & VARIABLES ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Primary Palette */
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --blue-900: #1e3a8a;

  /* Neutrals */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Accents */
  --green-500: #22c55e;
  --red-500: #ef4444;
  --amber-500: #f59e0b;
  --pink-500: #ec4899;

  /* Semantic */
  --bg-primary: #ffffff;
  --bg-secondary: var(--gray-50);
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-muted: var(--gray-400);
  --border-color: var(--gray-200);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* Gradient */
  --gradient-primary: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  --gradient-hero: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
  --gradient-text: linear-gradient(135deg, var(--blue-400), var(--blue-600));
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
  font-size: 0.95rem;
  padding: 10px 24px;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
}

.btn-xl {
  padding: 20px 48px;
  font-size: 1.25rem;
  font-weight: 800;
  border-radius: var(--radius-md);
  letter-spacing: 0.01em;
}

.hero-sell-cta {
  background: linear-gradient(135deg, #f59e0b, #ef4444) !important;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.45), 0 0 40px rgba(245, 158, 11, 0.2) !important;
  animation: fadeInUp 0.6s ease-out 0.3s both, ctaPulse 2.5s ease-in-out infinite 1.5s;
}

.hero-sell-cta:hover {
  transform: translateY(-3px) scale(1.03) !important;
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.55), 0 0 60px rgba(245, 158, 11, 0.3) !important;
}

@keyframes ctaPulse {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.45), 0 0 40px rgba(245, 158, 11, 0.2);
  }

  50% {
    box-shadow: 0 4px 30px rgba(239, 68, 68, 0.6), 0 0 60px rgba(245, 158, 11, 0.35);
  }
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

.btn-outline {
  border: 1.5px solid var(--blue-500);
  color: var(--blue-600);
  background: transparent;
}

.btn-outline:hover {
  background: var(--blue-50);
}

.btn-ghost {
  color: var(--gray-600);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--gray-100);
  color: var(--gray-800);
}

.btn-white {
  background: #fff;
  color: var(--blue-600);
  font-weight: 700;
  box-shadow: var(--shadow-lg);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  transition: all var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: 800;
}

.logo-icon {
  font-size: 1.6rem;
}

.logo-text {
  color: var(--gray-800);
}

.logo-accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  gap: 4px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--gray-600);
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue-600);
  background: var(--blue-50);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* User menu */
.user-menu {
  position: relative;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
}

.user-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 3px var(--blue-100);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  min-width: 220px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
}

.user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  padding: 10px 12px;
}

.dropdown-name {
  display: block;
  font-weight: 600;
  color: var(--gray-800);
}

.dropdown-email {
  display: block;
  font-size: 0.8rem;
  color: var(--gray-400);
}

.dropdown-divider {
  height: 1px;
  background: var(--gray-100);
  margin: 4px 0;
}

.dropdown-item {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--gray-600);
  transition: all var(--transition);
}

.dropdown-item:hover {
  background: var(--gray-50);
  color: var(--gray-800);
}

.dropdown-logout {
  color: var(--red-500);
}

.dropdown-logout:hover {
  background: #fef2f2;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  padding: 16px 24px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 999;
  box-shadow: var(--shadow-lg);
}

.mobile-menu.open {
  display: flex;
}

.mobile-link {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--gray-600);
  transition: all var(--transition);
}

.mobile-link:hover {
  background: var(--blue-50);
  color: var(--blue-600);
}

.mobile-menu-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--gray-100);
}

.mobile-menu-actions .btn {
  flex: 1;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding-top: 72px;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  background: #fff;
}

.shape-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.shape-2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -100px;
  animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
  width: 200px;
  height: 200px;
  top: 40%;
  left: 30%;
  animation: float 6s ease-in-out infinite 2s;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(20px, -20px);
  }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 2;
  padding: 60px 0;
}

/* Keep headline + CTAs above the phone column: floating cards use negative
   offsets and would otherwise capture clicks meant for "Sell My Phone". */
.hero-text {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease-out;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.gradient-text {
  background: linear-gradient(135deg, #93c5fd, #60a5fa, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 520px;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-bottom: 48px;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-cta .btn-ghost {
  color: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.hero-cta .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.hero-stats {
  display: flex;
  gap: 40px;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

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

.stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* Phone mockup */
.hero-visual {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.phone-mockup {
  width: 280px;
  height: 480px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 36px;
  padding: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.phone-amount {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--blue-600);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03);
  }
}

.phone-label {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-bottom: 24px;
  font-weight: 500;
}

.phone-bar-container {
  width: 100%;
  height: 8px;
  background: var(--gray-100);
  border-radius: 4px;
  margin-bottom: 12px;
  overflow: hidden;
}

.phone-bar {
  height: 100%;
  width: 75%;
  background: var(--gradient-primary);
  border-radius: 4px;
  animation: barGrow 2s ease-out;
}

@keyframes barGrow {
  from {
    width: 0;
  }

  to {
    width: 75%;
  }
}

.phone-model {
  font-size: 0.8rem;
  color: var(--gray-500);
  font-weight: 600;
}

/* Floating cards */
.floating-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-xl);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  animation: floatCard 3s ease-in-out infinite;
}

.fc-icon {
  font-size: 1.2rem;
}

.card-1 {
  top: 60px;
  right: -30px;
  animation-delay: 0s;
}

.card-2 {
  bottom: 100px;
  left: -40px;
  animation-delay: 1s;
}

.card-3 {
  bottom: 30px;
  right: -20px;
  animation-delay: 2s;
}

@keyframes floatCard {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== BRAND MARQUEE ========== */
.brand-marquee {
  background: var(--gray-50);
  padding: 20px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--gray-100);
}

.marquee-track {
  display: flex;
  overflow: hidden;
}

.marquee-content {
  display: flex;
  gap: 16px;
  animation: marquee 30s linear infinite;
}

.brand-tag {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: #fff;
  border: 1px solid var(--gray-200);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-500);
  white-space: nowrap;
  flex-shrink: 0;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ========== SECTIONS ========== */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}

/* ========== HOW IT WORKS ========== */
.how-it-works {
  background: var(--gray-50);
}

.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.step-card {
  text-align: center;
  padding: 32px 24px;
  flex: 1;
  min-width: 200px;
  max-width: 260px;
}

.step-number {
  font-size: 3rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 16px;
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 60px;
  color: var(--blue-300);
}

/* ========== FEATURES ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}

.feature-card:hover {
  background: #fff;
  border-color: var(--blue-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ========== ABOUT ========== */
.about {
  background: var(--gray-50);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-image-wrapper {
  position: relative;
}

.about-pattern {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(45deg,
      var(--blue-100),
      var(--blue-100) 2px,
      transparent 2px,
      transparent 12px);
  border-radius: var(--radius-lg);
  opacity: 0.5;
}

.about-card-inner {
  position: relative;
  z-index: 2;
  background: var(--gradient-hero);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  box-shadow: var(--shadow-xl);
}

.about-illustration {
  text-align: center;
  color: #fff;
}

.ai-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 24px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.about-illustration h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.about-illustration p {
  font-size: 0.95rem;
  opacity: 0.8;
}

.about-text .section-tag {
  margin-bottom: 12px;
}

.about-text h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.about-text p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.highlight {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--gray-200);
}

.highlight-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.highlight strong {
  display: block;
  font-size: 0.95rem;
  color: var(--gray-800);
  margin-bottom: 2px;
}

.highlight span {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ========== TESTIMONIALS ========== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-card.featured {
  background: var(--gradient-hero);
  border-color: transparent;
  color: #fff;
}

.testimonial-stars {
  color: var(--amber-500);
  font-size: 1.1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-card.featured .testimonial-stars {
  color: #fbbf24;
}

.testimonial-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.testimonial-card.featured p {
  color: rgba(255, 255, 255, 0.9);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue-500);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.testimonial-card.featured .author-avatar {
  background: rgba(255, 255, 255, 0.2);
}

.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--gray-400);
}

.testimonial-card.featured .testimonial-author span {
  color: rgba(255, 255, 255, 0.6);
}

/* ========== CTA ========== */
.cta-section {
  padding: 80px 0;
}

.cta-card {
  position: relative;
  background: var(--gradient-hero);
  border-radius: var(--radius-xl);
  padding: 80px 60px;
  text-align: center;
  overflow: hidden;
}

.cta-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.cta-shape-1 {
  width: 400px;
  height: 400px;
  top: -200px;
  right: -100px;
}

.cta-shape-2 {
  width: 300px;
  height: 300px;
  bottom: -150px;
  left: -50px;
}

.cta-card h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
}

.cta-card p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  position: relative;
}

.cta-card .btn {
  position: relative;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand .logo-text {
  color: #fff;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-links h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 0.9rem;
  padding: 4px 0;
  color: var(--gray-400);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--blue-400);
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
}

/* ========== MODAL OVERLAY ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-2xl);
  animation: modalIn 0.3s ease-out;
  scroll-behavior: smooth;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-500);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--gray-200);
  color: var(--gray-700);
}

/* Auth Modal */
.auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 28px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-500);
  transition: all var(--transition);
}

.auth-tab.active {
  background: #fff;
  color: var(--blue-600);
  box-shadow: var(--shadow-sm);
}

.auth-form h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.auth-desc {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--gray-800);
  background: var(--gray-50);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background: #fff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

.auth-switch {
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 20px;
}

.auth-switch a {
  color: var(--blue-600);
  font-weight: 600;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* ========== SELL MODAL ========== */
.sell-modal {
  max-width: 580px;
  padding: 30px;
}

.sell-step {
  display: flex;
  flex-direction: column;
}

.sell-step .form-group {
  margin-bottom: 14px;
}

.sell-step .form-group textarea {
  resize: vertical;
}

.progress-bar-wrapper {
  margin-bottom: 20px;
}

.progress-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all var(--transition);
}

.progress-step.active .step-dot,
.progress-step.completed .step-dot {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.progress-step.completed .step-dot {
  background: var(--green-500);
}

.progress-step span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.progress-step.active span {
  color: var(--blue-600);
}

.progress-step.completed span {
  color: var(--green-500);
}

.progress-line {
  flex: 1;
  height: 3px;
  background: var(--gray-200);
  border-radius: 2px;
  margin: 0 8px;
  margin-bottom: 18px;
  overflow: hidden;
}

.progress-line-fill {
  height: 100%;
  width: 0;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width 0.5s ease;
}

/* Sell steps */
.sell-step h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.step-desc {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.step-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
}

/* Storage grid */
.storage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.storage-option input {
  display: none;
}

.storage-card {
  padding: 24px 16px;
  text-align: center;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
}

.storage-card:hover {
  border-color: var(--blue-300);
  background: var(--blue-50);
}

.storage-option input:checked+.storage-card {
  border-color: var(--blue-500);
  background: var(--blue-50);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.storage-val {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gray-800);
  line-height: 1;
}

.storage-unit {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
}

/* Upload area */
.upload-area {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-md);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--gray-50);
}

.upload-area:hover,
.upload-area.drag-over {
  border-color: var(--blue-400);
  background: var(--blue-50);
}

.upload-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.upload-area p {
  font-size: 0.95rem;
  color: var(--gray-600);
}

.upload-link {
  color: var(--blue-600);
  font-weight: 600;
  cursor: pointer;
}

.upload-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 8px;
}

.upload-previews {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.upload-preview {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--gray-200);
}

.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
}

/* ========== WAIT SCREEN ========== */
.wait-screen {
  text-align: center;
  padding: 20px 0;
}

.wait-spinner {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
}

.spinner-ring {
  position: absolute;
  inset: 0;
  border: 3px solid var(--gray-200);
  border-top-color: var(--blue-500);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.spinner-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.timer-display {
  margin: 32px 0;
}

.timer-circle {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto;
}

.timer-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.timer-bg {
  fill: none;
  stroke: var(--gray-200);
  stroke-width: 6;
}

.timer-progress {
  fill: none;
  stroke: var(--blue-500);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}

.timer-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue-600);
}

.wait-note {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-top: 16px;
}

/* ========== RESULT SCREEN ========== */
.result-screen {
  text-align: center;
  padding: 10px 0;
}

.result-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.result-screen h2 {
  margin-bottom: 24px;
}

.result-price-card {
  background: var(--gradient-hero);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 28px;
  color: #fff;
}

.result-label {
  display: block;
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 8px;
}

.result-amount {
  display: block;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}

.result-for {
  font-size: 0.9rem;
  opacity: 0.8;
}

.result-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.result-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  padding: 14px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
}

.rd-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.result-detail strong {
  display: block;
  font-size: 0.8rem;
  color: var(--gray-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.result-detail span {
  font-size: 0.95rem;
  color: var(--gray-800);
}

.result-note {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ========== PROFILE SECTION ========== */
.profile-section {
  padding-top: 120px;
}

.profile-header-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 32px;
  background: var(--gradient-hero);
  border-radius: var(--radius-xl);
  margin-bottom: 32px;
  color: #fff;
}

.profile-avatar-large {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  flex-shrink: 0;
}

.profile-info {
  flex: 1;
}

.profile-info h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.profile-info p {
  opacity: 0.8;
  font-size: 0.9rem;
}

.profile-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--gray-800);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--gray-200);
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.empty-state h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* Request Card */
.request-card {
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition);
  flex-wrap: wrap;
  gap: 12px;
}

.request-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue-200);
}

.request-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 4px;
}

.request-info p {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.request-status {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.status-waiting {
  background: #fef3c7;
  color: #b45309;
}

.status-completed {
  background: #dcfce7;
  color: #15803d;
}

.status-pending {
  background: #fef3c7;
  color: #b45309;
}

.status-evaluated {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-approved {
  background: #dcfce7;
  color: #15803d;
}

.status-rejected {
  background: #fee2e2;
  color: #dc2626;
}

.request-message {
  margin-top: 8px;
  padding: 8px 12px;
  background: #eff6ff;
  border-left: 3px solid var(--blue-500);
  border-radius: 0 8px 8px 0;
  font-size: 0.85rem;
  color: var(--gray-700);
}

.msg-badge {
  font-weight: 700;
  color: var(--blue-600);
}

.request-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--blue-600);
}

/* ========== PHOTO ACTION BUTTONS ========== */
.photo-action-btns {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}

.btn-photo-action {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  border: 2px solid var(--blue-200);
  border-radius: var(--radius-md);
  background: var(--blue-50);
  color: var(--blue-700);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  cursor: pointer;
}

.btn-photo-action:hover {
  background: var(--blue-100);
  border-color: var(--blue-400);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.photo-btn-icon {
  font-size: 1.8rem;
  line-height: 1;
}

/* ========== PRICE LOADING OVERLAY ========== */
.price-loading-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 2px solid var(--blue-200);
  border-radius: var(--radius-md);
  margin-top: 16px;
  animation: fadeInUp 0.4s ease-out;
}

.price-loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: center;
}

.price-loading-inner h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-700);
}

.price-loading-inner p {
  font-size: 0.85rem;
  color: var(--blue-500);
}

.price-loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--blue-100);
  border-top-color: var(--blue-500);
  border-radius: 50%;
  animation: spinLoader 0.9s linear infinite;
}

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

.price-loading-bar-wrap {
  width: 100%;
  max-width: 260px;
  height: 6px;
  background: var(--blue-100);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 4px;
}

.price-loading-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

/* Instant price card on upload step */
.instant-price-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  border: 2px solid #22c55e;
  border-radius: var(--radius-md);
  margin-top: 16px;
  animation: priceSlideIn 0.4s ease-out;
}

.ipc-icon {
  font-size: 2rem;
}

.ipc-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #15803d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ipc-amount {
  font-size: 2rem;
  font-weight: 900;
  color: #15803d;
}

@keyframes priceSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-subtitle {
    margin: 0 auto 32px;
  }

  .hero-cta {
    justify-content: center;
  }

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

  .hero-visual {
    max-width: 320px;
    margin: 0 auto;
  }

  .card-1 {
    right: -10px;
  }

  .card-2 {
    left: -10px;
  }

  .card-3 {
    right: 0;
  }

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

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

  .about-visual {
    max-width: 400px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .header-actions .btn {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-badge {
    font-size: 0.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

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

  .stat {
    align-items: center;
  }

  .step-connector {
    display: none;
  }

  .steps-grid {
    flex-direction: column;
    align-items: center;
  }

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

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

  .section-header h2 {
    font-size: 1.8rem;
  }

  .section {
    padding: 60px 0;
  }

  .cta-card {
    padding: 50px 24px;
  }

  .cta-card h2 {
    font-size: 1.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    margin: 0 auto;
  }

  .modal {
    padding: 28px;
    border-radius: var(--radius-lg);
  }

  .storage-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .progress-step span {
    display: none;
  }

  .profile-header-card {
    flex-direction: column;
    text-align: center;
  }

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

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .phone-mockup {
    width: 220px;
    height: 380px;
  }

  .phone-amount {
    font-size: 2.2rem;
  }

  .floating-card {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
    padding-bottom: 40px;
  }
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* ========== TOAST ========== */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--gray-900);
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  z-index: 3000;
  animation: slideInRight 0.3s ease-out;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.success {
  background: var(--green-500);
}

.toast.error {
  background: var(--red-500);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}