* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: #000;
  color: #fff;
  font-family: 'Cairo', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-x: hidden;
  position: relative;
}

/* Animated background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(249, 115, 22, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.03) 0%, transparent 60%);
  pointer-events: none;
  animation: bgPulse 8s ease-in-out infinite;
}

@keyframes bgPulse {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

/* Main container */
.agreement-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  background: linear-gradient(145deg, rgba(20, 25, 35, 0.95), rgba(10, 12, 18, 0.98));
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow:
    0 0 100px rgba(249, 115, 22, 0.15),
    0 25px 80px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
  animation: containerAppear 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.agreement-container::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.3), transparent 30%, transparent 70%, rgba(249, 115, 22, 0.3));
  border-radius: 1.5rem;
  z-index: -1;
  opacity: 0.4;
  animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.7;
  }
}

@keyframes containerAppear {
  from {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Header */
.agreement-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(249, 115, 22, 0.2);
}

.agreement-header h1 {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.agreement-header h1 span {
  color: #f97316;
}

.agreement-header h2 {
  font-size: 1.5rem;
  color: #f97316;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.agreement-header p {
  font-size: 0.9rem;
  color: #9ca3af;
  font-weight: 400;
}

/* Content area */
.agreement-content {
  position: relative;
  max-height: 300px;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-bottom: 2rem;
}

.agreement-content.expanded {
  max-height: 5000px;
}

.agreement-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #d1d5db;
}

.agreement-text h3 {
  color: #f97316;
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.agreement-text h3:first-child {
  margin-top: 0;
}

.agreement-text p {
  margin-bottom: 1rem;
}

.agreement-text strong {
  color: #fff;
  font-weight: 700;
}

/* Fade overlay */
.fade-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(10, 12, 18, 0.98));
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.agreement-content.expanded .fade-overlay {
  opacity: 0;
}

/* Expand button */
.expand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 0.75rem;
  color: #f97316;
  font-family: 'Cairo', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.expand-btn:hover {
  background: rgba(249, 115, 22, 0.2);
  transform: translateY(-2px);
}

.expand-btn .arrow {
  transition: transform 0.3s ease;
  font-size: 1.2rem;
}

.expand-btn.expanded .arrow {
  transform: rotate(180deg);
}

/* Agree button */
.agree-btn {
  width: 100%;
  padding: 1.1rem;
  background: linear-gradient(135deg, #f97316, #ea580c);
  border: none;
  border-radius: 0.75rem;
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.3);
  position: relative;
  overflow: hidden;
}

.agree-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.agree-btn:hover::before {
  width: 300px;
  height: 300px;
}

.agree-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(249, 115, 22, 0.5);
}

.agree-btn:active {
  transform: translateY(0);
}

/* Success notification */
.success-notification {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(22, 163, 74, 0.95));
  border: 1px solid rgba(34, 197, 94, 0.5);
  border-radius: 1rem;
  padding: 1rem 2rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 10px 40px rgba(34, 197, 94, 0.3);
  z-index: 10000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-notification.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #f97316;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 1.5rem;
  transition: all 0.2s ease;
}

.back-link:hover {
  transform: translateX(-5px);
  color: #fb923c;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 1rem;
  }

  .agreement-container {
    padding: 1.5rem;
  }

  .agreement-header h1 {
    font-size: 1.8rem;
  }

  .agreement-header h2 {
    font-size: 1.2rem;
  }

  .agreement-content {
    max-height: 250px;
  }

  .agreement-text {
    font-size: 0.9rem;
  }
}