* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #2c3e50;
  height: 100%;
  overflow-x: hidden;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
}

/* Flow Band Animation */
.p1-flow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.p1-flow-band, .p1-flow-band2, .p1-flow-band3 {
  position: absolute;
  width: 200%;
  height: 4px;
  background: linear-gradient(90deg, transparent, #4A90E2, #87CEEB, transparent);
  animation: flowMove 8s linear infinite;
}

.p1-flow-band {
  top: 20%;
  animation-delay: 0s;
}

.p1-flow-band2 {
  top: 50%;
  animation-delay: -2.5s;
  opacity: 0.7;
}

.p1-flow-band3 {
  top: 80%;
  animation-delay: -5s;
  opacity: 0.5;
}

@keyframes flowMove {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(50%); }
}

#p1-bg-image {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100vw;
  height: 100vh;
  background: url('../images/bg-a1b2c3.svg') no-repeat center center;
  background-size: cover;
  opacity: 0.1;
}

.p1-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(74, 144, 226, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Header Styles */
.p1-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding: 20px 0;
}

.p1-logo-container {
  display: flex;
  align-items: center;
}

.p1-logo {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 4px 8px rgba(74, 144, 226, 0.3));
}

.p1-lang-switch {
  display: flex;
  gap: 8px;
}

.p1-lang-switch button {
  background: rgba(74, 144, 226, 0.1);
  color: #4A90E2;
  border: 2px solid rgba(74, 144, 226, 0.3);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.p1-lang-switch button:hover,
.p1-lang-switch button.p1-active {
  background: linear-gradient(135deg, #4A90E2, #87CEEB);
  border-color: #4A90E2;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

/* Main Content */
.p1-main {
  padding: 40px 0;
}

.p1-hero-section {
  margin-bottom: 50px;
}

.p1-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #4A90E2, #1976D2, #87CEEB);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  text-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
  animation: p1-glow 2s ease-in-out infinite alternate;
}

@keyframes p1-glow {
  from { filter: drop-shadow(0 0 5px rgba(74, 144, 226, 0.5)); }
  to { filter: drop-shadow(0 0 20px rgba(74, 144, 226, 0.8)); }
}

.p1-subtitle {
  font-size: 1.3rem;
  margin-bottom: 40px;
  color: #546e7a;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Input Section */
.p1-input-section {
  margin-bottom: 50px;
}

.p1-input-box {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.p1-input-wrapper {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.p1-search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #4A90E2;
  z-index: 2;
}

.p1-input-box input {
  width: 100%;
  padding: 15px 15px 15px 45px;
  border-radius: 25px;
  border: 2px solid rgba(74, 144, 226, 0.3);
  background: rgba(255, 255, 255, 0.8);
  color: #2c3e50;
  font-size: 1rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.p1-input-box input::placeholder {
  color: #90a4ae;
}

.p1-input-box input:focus {
  outline: none;
  border-color: #4A90E2;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 20px rgba(74, 144, 226, 0.3);
}

.p1-input-box button {
  padding: 15px 30px;
  border: none;
  background: linear-gradient(135deg, #4A90E2, #87CEEB);
  color: white;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.p1-input-box button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.5);
  background: linear-gradient(135deg, #1976D2, #42A5F5);
}

/* Stats Section */
.p1-stats-section {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.p1-stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 25px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(74, 144, 226, 0.2);
  transition: all 0.3s ease;
}

.p1-stat-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.2);
}

.p1-stat-icon {
  width: 24px;
  height: 24px;
  color: #4A90E2;
}

.p1-users-count,
.p1-online-count {
  font-size: 1rem;
  color: #546e7a;
  font-weight: 500;
}

/* Footer */
.p1-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px;
  z-index: 100;
  border-top: 1px solid rgba(74, 144, 226, 0.2);
}

.p1-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.p1-footer-content p {
  font-size: 0.9rem;
  color: #546e7a;
}

.p1-footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.p1-footer-links a {
  color: #4A90E2;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.p1-footer-links a:hover {
  color: #1976D2;
  text-decoration: underline;
}

/* Modal Styles */
.p1-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
}

.p1-modal-content {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  padding: 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 450px;
  text-align: center;
  position: relative;
  border: 1px solid rgba(74, 144, 226, 0.3);
  box-shadow: 0 20px 40px rgba(74, 144, 226, 0.3);
  animation: p1-modalSlideIn 0.3s ease-out;
}

@keyframes p1-modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.p1-modal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
}

.p1-modal-icon {
  width: 32px;
  height: 32px;
  color: #4A90E2;
  animation: p1-spin 2s linear infinite;
}

.p1-modal-icon.p1-success {
  color: #4caf50;
  animation: none;
}

@keyframes p1-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.p1-modal-content p {
  font-size: 1.2rem;
  color: #2c3e50;
  font-weight: 500;
}

.p1-close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: #90a4ae;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.p1-close-btn:hover {
  color: #4A90E2;
  transform: scale(1.1);
}

.p1-progress {
  background: rgba(255, 255, 255, 0.3);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 20px;
}

.p1-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #4A90E2, #87CEEB);
  transition: width 3s ease-in-out;
  border-radius: 4px;
}

.p1-cta {
  display: inline-block;
  margin-top: 25px;
  padding: 15px 30px;
  background: linear-gradient(135deg, #4A90E2, #87CEEB);
  color: #fff;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.p1-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.5);
  background: linear-gradient(135deg, #1976D2, #42A5F5);
}

/* Cookie Banner */
#p1-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  color: #2c3e50;
  padding: 15px 20px;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 99999;
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(74, 144, 226, 0.2);
}

#p1-cookie-banner a {
  color: #4A90E2;
  text-decoration: underline;
  margin-left: 5px;
}

#p1-cookie-banner button {
  background: linear-gradient(135deg, #4A90E2, #87CEEB);
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  color: #fff;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

#p1-cookie-banner button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .p1-container {
    padding: 15px;
  }
  
  .p1-title {
    font-size: 2.5rem;
  }
  
  .p1-subtitle {
    font-size: 1.1rem;
  }
  
  .p1-input-box {
    flex-direction: column;
    gap: 15px;
  }
  
  .p1-input-wrapper {
    max-width: 100%;
  }
  
  .p1-stats-section {
    flex-direction: column;
    gap: 20px;
  }
  
  .p1-footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .p1-lang-switch {
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .p1-title {
    font-size: 2rem;
  }
  
  .p1-modal-content {
    padding: 30px 20px;
  }
  
  #p1-cookie-banner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
