:root {
  --primary: #4a6cf7;
  --success: #2e7d32;
  --error: #e74c3c;
  --text: #333;
  --text-light: #666;
  --border: #e0e0e0;
  --bg: #f5f5f5;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 16px;
  color: var(--text);
}

.card {
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 24px;
  width: 100%;
  max-width: 480px;
}

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

.header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.header p {
  font-size: 0.875rem;
  color: var(--text-light);
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 8px;
  font-weight: 500;
}

.input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  transition: border-color 0.3s;
}

.input-wrapper:focus-within {
  border-color: var(--primary);
}

.input-wrapper span {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-right: 8px;
}

.input-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 0;
  font-size: 1rem;
  font-family: inherit;
}

.generate-btn {
  width: 100%;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s;
  margin-bottom: 24px;
}

.generate-btn:hover {
  background-color: #3a5ce4;
}

.btn-text {
  margin-right: 8px;
}

.btn-icon {
  font-size: 1.125rem;
}

#qr-container {
  display: none;
  text-align: center;
  margin-bottom: 24px;
  flex-direction: column;
  align-items: center;
}

.qr-placeholder {
  background-color: #f9f9f9;
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 16px;
  width: 100%;
  max-width: 240px;
}

.qr-icon {
  font-size: 3rem;
  color: #ccc;
  margin-bottom: 12px;
}

.qr-placeholder p {
  color: #999;
  font-size: 0.875rem;
  margin: 0;
}

#qr-img {
  width: 100%;
  max-width: 240px;
  height: auto;
  margin: 0 auto 16px;
  display: none;
}

#text-qris {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

#download-btn {
  background-color: #f0f0f0;
  color: var(--text);
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

#download-btn:hover {
  background-color: #e0e0e0;
}

#success-text {
  display: none;
  text-align: center;
  margin-top: 16px;
  padding: 12px;
  background-color: #e8f5e9;
  border-radius: 8px;
  color: var(--success);
}

.success-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.platforms {
  margin-top: 32px;
}

.divider {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  color: var(--text-light);
  font-size: 0.875rem;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--border);
  margin: 0 12px;
}

.platform-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.platform-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  color: white;
  transition: transform 0.2s, opacity 0.2s;
  text-align: center;
  min-height: 80px;
}

.platform-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.platform-btn img {
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
}

.sociabuzz {
  background-color: #FF6B6B;
}

.saweria {
  background-color: #4ECDC4;
}

.trakteer {
  background-color: #FF9F1C;
}

@media (max-width: 400px) {
  .card {
    padding: 16px;
  }
  
  .platform-buttons {
    grid-template-columns: 1fr;
  }
}
