@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Sarabun:wght@300;400;600;700&display=swap');

:root {
  --bg-primary: #050806;
  --bg-card: rgba(13, 22, 17, 0.65);
  --bg-card-hover: rgba(18, 30, 23, 0.8);
  --border-color: rgba(0, 230, 118, 0.12);
  --border-glow: rgba(0, 230, 118, 0.35);
  
  --primary-gradient: linear-gradient(135deg, #00ff66 0%, #00e676 100%);
  --secondary-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --success-gradient: linear-gradient(135deg, #00ff66 0%, #00e676 100%);
  --accent-color: #00ff66;
  
  --text-main: #ffffff;
  --text-muted: #7b9987;
  
  --font-en: 'Outfit', sans-serif;
  --font-th: 'Sarabun', sans-serif;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-en), var(--font-th);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  padding: 20px;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 255, 102, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 40%);
}

/* Glassmorphism Panel with Gradient Glow */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 40px 35px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
}

.glass-panel:hover {
  border-color: var(--border-glow);
  box-shadow: 0 25px 60px rgba(0, 255, 102, 0.15);
  transform: translateY(-2px);
}

/* Streamer Banner Container (Bleeds edge-to-edge inside glass card) */
.streamer-banner-container {
  margin-top: -40px;
  margin-left: -35px;
  margin-right: -35px;
  height: 125px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.streamer-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Streamer Branded Profile Header */
.streamer-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 24px;
}

.streamer-avatar-wrapper {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  padding: 3.5px;
  background: var(--primary-gradient);
  margin-bottom: 14px;
  position: relative;
  animation: glowPulse 2.5s infinite alternate ease-in-out;
}

.streamer-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #0d0724;
}

@keyframes glowPulse {
  from {
    box-shadow: 0 0 12px rgba(0, 255, 102, 0.35);
    transform: scale(1);
  }
  to {
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.55);
    transform: scale(1.03);
  }
}

.streamer-name {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  text-shadow: 0 0 10px rgba(255,255,255,0.1);
}

.streamer-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 380px;
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Modern Input Styling */
input, textarea, select {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 15px;
  transition: all 0.25s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #8a2be2;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 12px rgba(138, 43, 226, 0.35);
}

textarea {
  resize: none;
}

.textarea-wrapper {
  position: relative;
}

.char-counter {
  position: absolute;
  bottom: 8px;
  right: 14px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Quick Presets Amount Chips */
.amount-presets {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.preset-chip {
  flex: 1;
  min-width: 75px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  color: var(--text-main);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.preset-chip:hover {
  background: rgba(138, 43, 226, 0.12);
  border-color: #8a2be2;
  transform: translateY(-1px);
}

.preset-chip.active {
  background: var(--primary-gradient);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(255, 0, 127, 0.3);
  color: #fff;
}

/* Buttons */
button {
  width: 100%;
  padding: 16px;
  background: var(--primary-gradient);
  border: none;
  border-radius: 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(255, 0, 127, 0.3);
  font-family: inherit;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 0, 127, 0.55);
  filter: brightness(1.1);
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Spinner Animation */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 16px;
}

.mb-4 {
  margin-bottom: 16px;
}
