:root {
  --primary-color: #4facfe;
  --secondary-color: #00f2fe;
  --bg-dark: #0f172a;
  --bg-card: rgba(255, 255, 255, 0.1);
  --text-color: #ffffff;
  --text-muted: #94a3b8;
  --glow-color: rgba(79, 172, 254, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-color);
  overflow-x: hidden;
}

/* Background Animation */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.background-animation span {
  position: absolute;
  display: block;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  animation: move 25s linear infinite;
  bottom: -150px;
  border-radius: 50%;
}

.background-animation span:nth-child(1) {
  left: 25%;
  width: 80px;
  height: 80px;
  animation-delay: 0s;
  background: rgba(79, 172, 254, 0.2);
  filter: blur(10px);
}

.background-animation span:nth-child(2) {
  left: 10%;
  width: 20px;
  height: 20px;
  animation-delay: 2s;
  animation-duration: 12s;
  background: rgba(0, 242, 254, 0.2);
}

.background-animation span:nth-child(3) {
  left: 70%;
  width: 20px;
  height: 20px;
  animation-delay: 4s;
  background: rgba(255, 255, 255, 0.1);
}

.background-animation span:nth-child(4) {
  left: 40%;
  width: 60px;
  height: 60px;
  animation-delay: 0s;
  animation-duration: 18s;
  background: rgba(79, 172, 254, 0.15);
  filter: blur(5px);
}

.background-animation span:nth-child(5) {
  left: 65%;
  width: 20px;
  height: 20px;
  animation-delay: 0s;
  background: rgba(0, 242, 254, 0.2);
}

.background-animation span:nth-child(6) {
  left: 75%;
  width: 110px;
  height: 110px;
  animation-delay: 3s;
  background: rgba(255, 255, 255, 0.05);
  filter: blur(20px);
}

.background-animation span:nth-child(7) {
  left: 35%;
  width: 150px;
  height: 150px;
  animation-delay: 7s;
  background: rgba(79, 172, 254, 0.1);
  filter: blur(15px);
}

.background-animation span:nth-child(8) {
  left: 50%;
  width: 25px;
  height: 25px;
  animation-delay: 15s;
  animation-duration: 45s;
  background: rgba(255, 255, 255, 0.1);
}

.background-animation span:nth-child(9) {
  left: 20%;
  width: 15px;
  height: 15px;
  animation-delay: 2s;
  animation-duration: 35s;
  background: rgba(0, 242, 254, 0.2);
}

.background-animation span:nth-child(10) {
  left: 85%;
  width: 150px;
  height: 150px;
  animation-delay: 0s;
  animation-duration: 11s;
  background: rgba(79, 172, 254, 0.1);
  filter: blur(10px);
}

@keyframes move {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
    border-radius: 0;
  }
  100% {
    transform: translateY(-1000px) rotate(720deg);
    opacity: 0;
    border-radius: 50%;
  }
}

.container {
  width: 100%;
  max-width: 420px;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: max-width 0.5s ease-in-out;
  animation: fadeInUp 0.8s ease-out;

  /* Phone/Card Style */
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  margin: 2rem;
}

.container.wide {
  max-width: 800px;
}

.profile-img-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
}

.profile-img {
  width: 100%;
  height: 100%;
  border-radius: 25px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px var(--glow-color);
  transition: transform 0.3s ease;
}

.profile-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px var(--primary-color);
}

.verified-badge {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.profile-section {
  margin-bottom: 3.5rem;
}

h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

#main-menu {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.menu-item {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 20px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.menu-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transform: translateX(-100%);
  transition: 0.5s;
}

.menu-item:hover::before {
  transform: translateX(100%);
}

.menu-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-color);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.menu-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.arrow {
  opacity: 0.5;
  transition: transform 0.3s ease;
}

.menu-item:hover .arrow {
  opacity: 1;
  transform: translateX(5px);
}

footer {
  margin-top: 3rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.container.wide {
  max-width: 800px;
}

.profile-img-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
}

.profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px var(--glow-color);
  transition: transform 0.3s ease;
}

.profile-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px var(--primary-color);
}

.verified-badge {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.menu-section {
  animation: fadeInUp 1s ease-out 0.3s backwards;
}

#main-menu {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.menu-item {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 20px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.menu-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transform: translateX(-100%);
  transition: 0.5s;
}

.menu-item:hover::before {
  transform: translateX(100%);
}

.menu-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-color);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.menu-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.arrow {
  opacity: 0.5;
  transition: transform 0.3s ease;
}

.menu-item:hover .arrow {
  opacity: 1;
  transform: translateX(5px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .container {
    padding: 2rem 1.5rem;
    margin: 1rem;
    border-radius: 30px;
  }

  h1 {
    font-size: 1.5rem;
  }
}

/* Order View Styles */
.section-title {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: #fff;
  text-shadow: 0 2px 10px rgba(79, 172, 254, 0.5);
}

.highlight-btn {
  background: linear-gradient(
    90deg,
    rgba(79, 172, 254, 0.2),
    rgba(0, 242, 254, 0.2)
  );
  border: 1px solid var(--primary-color);
  justify-content: center;
  margin-bottom: 1.5rem;
}

.instruction-box {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: left;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.instruction-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 600;
}

.instruction-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.instruction-list li {
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.5;
}

.instruction-list li::before {
  content: "→";
  color: var(--primary-color);
  position: absolute;
  left: 0;
  top: 0;
}

.badge {
  background: rgba(79, 172, 254, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--primary-color);
  font-size: 0.8rem;
}

.btn-video {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(220, 38, 38, 0.2);
  color: #ef4444;
  padding: 0.8rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.btn-video:hover {
  background: rgba(220, 38, 38, 0.3);
  transform: translateY(-2px);
}

.btn-back {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.btn-back:hover {
  color: #fff;
}

/* Warranty View Styles */
.subtitle-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.select-container {
  position: relative;
  margin-bottom: 1.5rem;
}

select {
  width: 100%;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 0.95rem;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(79, 172, 254, 0.2);
}

.select-container::after {
  content: "▼";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 0.8rem;
}

#terms-content {
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(10px);
}

/* Warranty View Specific Styles */
#warranty-view .instruction-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

#warranty-view .instruction-list li {
  padding-left: 1.2rem;
}

#warranty-view .instruction-list li::before {
  content: "•";
  font-size: 1.2rem;
  line-height: 1.2rem;
  top: -2px;
}

/* Reseller View Styles */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.steps-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
}

.step-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.5rem 1rem;
  width: 220px;
  height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  background: rgba(30, 41, 59, 0.8);
}

.step-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  background: rgba(79, 172, 254, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.step-card h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.step-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.step-arrow {
  color: var(--primary-color);
  font-size: 1.5rem;
  opacity: 0.5;
}

.example-box {
  background: rgba(79, 172, 254, 0.1);
  border: 1px solid var(--primary-color);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.example-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: #fff;
  padding: 0.3rem 1rem;
  border-radius: 0 0 10px 10px;
  font-size: 0.85rem;
  font-weight: 600;
}

.example-content {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.profit-highlight {
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.advantages-box {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.advantages-box h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  text-align: left;
}

.advantage-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.advantage-item i {
  color: var(--primary-color);
}

.cta-box {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.8) 0%,
    rgba(30, 41, 59, 0.8) 100%
  );
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-box h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.cta-box p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .container.wide {
    max-width: 95%;
    padding: 2rem 1rem;
  }

  .steps-row {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
    margin: 0.5rem 0;
    /* display: none; Removed to show arrows on mobile */
  }

  .step-card {
    width: 100%;
    height: auto;
    min-height: 180px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 2rem 1rem;
    margin: 1rem;
    width: auto;
  }

  .profile-img-container {
    width: 100px;
    height: 100px;
  }

  h1 {
    font-size: 1.5rem;
  }

  .menu-item {
    padding: 1rem;
  }
}
