/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  min-height: 100vh;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #fff;
  overflow-x: hidden;
}

/* ===== Animated Cosmic Background ===== */
.cosmic-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: linear-gradient(135deg, #0a0015, #1a0030, #0d1b2a, #1b2838, #0a0015);
  background-size: 400% 400%;
  animation: cosmicShift 20s ease infinite;
}

@keyframes cosmicShift {
  0%   { background-position: 0% 50%; }
  25%  { background-position: 100% 0%; }
  50%  { background-position: 100% 100%; }
  75%  { background-position: 0% 100%; }
  100% { background-position: 0% 50%; }
}

/* Stars */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: twinkle var(--duration) ease-in-out infinite;
  opacity: 0;
}

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50%      { opacity: var(--brightness); transform: scale(1); }
}

/* Nebula glow */
.nebula {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  z-index: -1;
  animation: nebulaFloat 30s ease-in-out infinite;
}

.nebula-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #7b2ff7, transparent);
  top: -10%;
  right: -5%;
}

.nebula-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #2196f3, transparent);
  bottom: -10%;
  left: -5%;
  animation-delay: -15s;
}

.nebula-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #e040fb, transparent);
  top: 40%;
  left: 50%;
  animation-delay: -8s;
}

@keyframes nebulaFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -20px) scale(1.1); }
  66%      { transform: translate(-20px, 30px) scale(0.9); }
}

/* ===== Layout ===== */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

/* ===== Landing Page ===== */
.landing-title {
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff, #c9a0ff, #fff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s ease infinite;
}

@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.landing-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 40px;
  letter-spacing: 0.05em;
}

.landing-description {
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin-bottom: 50px;
}

.landing-contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.contact-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
  letter-spacing: 0.02em;
}

.contact-link:hover {
  color: #c9a0ff;
}

.divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  margin: 30px auto;
}

/* ===== Payment Page ===== */
.pay-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px 30px;
  width: 100%;
  max-width: 440px;
}

.pay-title {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 8px;
}

.pay-amount {
  font-size: 2.2rem;
  font-weight: 600;
  background: linear-gradient(135deg, #c9a0ff, #7b68ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
}

.form-group input:focus {
  border-color: rgba(201, 160, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.btn-pay {
  width: 100%;
  padding: 14px;
  margin-top: 10px;
  background: linear-gradient(135deg, #7b2ff7, #5b5ef7);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
  letter-spacing: 0.03em;
}

.btn-pay:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(123, 47, 247, 0.4);
}

.btn-pay:active {
  transform: translateY(0);
}

.btn-pay:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-error {
  color: #ff6b6b;
  font-size: 0.85rem;
  margin-top: 10px;
  display: none;
}

/* ===== Success / Fail Pages ===== */
.result-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.result-title {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.result-text {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  max-width: 400px;
  margin-bottom: 30px;
}

.btn-home {
  display: inline-block;
  padding: 12px 30px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.3s;
}

.btn-home:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ===== Admin Page ===== */
.admin-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  width: 100%;
  max-width: 600px;
}

.admin-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.admin-login {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.admin-login input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
}

.btn-admin {
  padding: 10px 20px;
  background: linear-gradient(135deg, #7b2ff7, #5b5ef7);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.3s;
}

.btn-admin:hover {
  opacity: 0.85;
}

.product-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  text-align: left;
}

.product-item .amount-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
}

.product-item input {
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
}

.product-item .btn-save {
  padding: 6px 14px;
  background: rgba(123, 47, 247, 0.4);
  border: 1px solid rgba(123, 47, 247, 0.5);
  border-radius: 6px;
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.3s;
}

.product-item .btn-save:hover {
  background: rgba(123, 47, 247, 0.6);
}

.status-msg {
  font-size: 0.85rem;
  margin-top: 6px;
  min-height: 20px;
}

.status-msg.success { color: #4caf50; }
.status-msg.error { color: #ff6b6b; }

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .landing-title {
    font-size: 2rem;
  }
  .landing-description {
    font-size: 1rem;
  }
  .pay-card, .admin-card {
    padding: 28px 20px;
  }
  .pay-amount {
    font-size: 1.8rem;
  }
  .container {
    padding: 20px 16px;
  }
}
