:root {
  --bg-color: #0a0a0a;
  --text-color: #ffffff;
  --sakura-pink: #ffb7c5;
  --sakura-dark: #e88fa2;
  --sakura-glow: rgba(255, 183, 197, 0.4);
  --glass-bg: rgba(20, 20, 20, 0.6);
  --glass-border: rgba(255, 183, 197, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

/* Background animated orbs */
body::before, body::after {
  content: '';
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(150px);
  z-index: -1;
  animation: float 20s infinite ease-in-out alternate;
  opacity: 0.4;
}

body::before {
  background: var(--sakura-pink);
  top: -200px;
  left: -200px;
}

body::after {
  background: #7b2cbf; /* Deep purple complement */
  bottom: -200px;
  right: -200px;
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(100px, 50px) scale(1.2); }
}

/* Glassmorphism Container */
.glass-container {
  background: rgba(15, 15, 15, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: fadeUp 0.8s ease-out;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-container:hover {
  border-color: rgba(255, 183, 197, 0.3);
  box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 183, 197, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Typography */
h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--sakura-pink), #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

p {
  color: #a0a0a0;
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  border: none;
  gap: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--sakura-dark), var(--sakura-pink));
  color: #000;
  box-shadow: 0 4px 15px var(--sakura-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 183, 197, 0.6);
  background: linear-gradient(135deg, var(--sakura-pink), #ffffff);
}

.btn-secondary {
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--sakura-pink);
}

/* Specific Layouts */
header {
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.logo-text {
  background: linear-gradient(135deg, #ffffff, var(--sakura-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

main {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Landing Page */
.hero {
  text-align: center;
  max-width: 800px;
  margin-top: 40px;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 40px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  width: 100%;
  margin-top: 80px;
}

.feature-card {
  text-align: center;
  padding: 30px;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--sakura-pink);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

/* Dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  width: 100%;
  margin-top: 40px;
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--sakura-pink);
  margin-bottom: 15px;
  box-shadow: 0 0 20px var(--sakura-glow);
}

.ticket-display {
  margin-top: 30px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  width: 100%;
}

.ticket-count {
  font-size: 3rem;
  font-weight: 800;
  color: var(--sakura-pink);
}

.referral-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.referral-link-box {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 10px 15px;
  margin-top: 15px;
}

.referral-link-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 1rem;
  outline: none;
}

.referral-list {
  margin-top: 30px;
}

.referral-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.referral-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 183, 197, 0.3);
}

.ref-user {
  display: flex;
  align-items: center;
  gap: 15px;
}

.ref-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.status-badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-valid {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
  border: 1px solid #2ecc71;
}

.status-invalid {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
  border: 1px solid #e74c3c;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loader */
.loader {
  display: none;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--sakura-pink);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .dashboard-grid { grid-template-columns: 1fr; }
}
