:root {
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --accent-1: #10b981;
  --accent-2: #06b6d4;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  background: #0d0d0d;
  color: #e6eef8;
  min-height: 100vh;
}

.glass-card {
  background: #1a1a1a;
  border: 1px solid rgba(48, 54, 61, 0.6) !important;
  border-radius: 1rem;
  box-shadow: 0 8px 30px rgba(2, 6, 23, .6);
  position: relative;
  z-index: 1;
}

.btn-primary {
  padding: .7rem 1.5rem;
  border-radius: .9rem;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
  box-shadow: 0 18px 40px rgba(234, 88, 12, 0.12);
}

.btn-secondary {
  padding: .65rem 1.25rem;
  border-radius: .75rem;
  background: rgba(13, 17, 23, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e6eef8;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.input-field {
  width: 100%;
  padding: .65rem .9rem;
  border-radius: .75rem;
  background: rgba(255, 255, 255, .03);
  color: #e6eef8;
  border: 1px solid rgba(255, 255, 255, .06);
  outline: none;
  font-size: 1rem;
}

.input-field:focus {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.muted {
  color: rgba(230, 238, 248, .7);
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: #0d0d0d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.back-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(13, 17, 23, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.header-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
}

.header-spacer {
  width: 40px;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1rem;
}

.stat-card {
  background: #1a1a1a;
  border: 1px solid rgba(48, 54, 61, 0.6);
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-card.level .stat-value {
  color: #10b981;
}

.stat-card.commission .stat-value {
  color: #06b6d4;
}

/* Invite Code Card */
.invite-card {
  margin: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #1a1a1a 0%, #262626 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 1rem;
}

.invite-card h3 {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.75rem;
}

.invite-code-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.invite-code {
  flex: 1;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  color: #10b981;
  letter-spacing: 0.1em;
}

.copy-btn {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  color: #10b981;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: rgba(16, 185, 129, 0.3);
}

.invite-link-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.invite-link {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  word-break: break-all;
}

.share-buttons {
  display: flex;
  gap: 0.75rem;
}

.share-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.share-btn.copy {
  background: linear-gradient(90deg, #10b981, #06b6d4);
  color: #fff;
}

.share-btn.share {
  background: rgba(13, 17, 23, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e6eef8;
}

.share-btn:hover {
  transform: translateY(-1px);
}

/* Level Progress */
.level-card {
  margin: 1rem;
  padding: 1.25rem;
  background: #1a1a1a;
  border: 1px solid rgba(48, 54, 61, 0.6);
  border-radius: 1rem;
}

.level-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.level-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.current-level {
  font-size: 0.875rem;
  color: #10b981;
  font-weight: 600;
}

.level-progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.level-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #06b6d4);
  border-radius: 999px;
  transition: width 0.5s ease;
}

.level-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.levels-breakdown {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.level-tier {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.8rem;
}

.level-tier.active {
  color: #10b981;
}

.level-tier .tier-name {
  font-weight: 500;
}

.level-tier .tier-req {
  color: rgba(255, 255, 255, 0.5);
}

/* Referrals Section */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1rem 0.5rem;
}

.section-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
}

.filter-tab {
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 999px;
  background: rgba(13, 17, 23, 0.9) !important;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tab.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #10b981;
}

.referrals-list {
  padding: 0 1rem 1rem;
}

.referral-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #1a1a1a;
  border: 1px solid rgba(48, 54, 61, 0.6);
  border-radius: 1rem;
  margin-bottom: 0.75rem;
}

.referral-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}

.referral-info {
  flex: 1;
}

.referral-email {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.referral-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.referral-level-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.referral-level-badge.second {
  background: rgba(6, 182, 212, 0.15);
  color: #06b6d4;
  border-color: rgba(6, 182, 212, 0.3);
}

.referral-commission {
  text-align: right;
}

.referral-commission-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #10b981;
}

.referral-commission-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: rgba(255, 255, 255, 0.4);
}

.empty-state svg {
  margin-bottom: 1rem;
  opacity: 0.3;
}

.empty-state p {
  font-size: 0.9rem;
}

/* Commission History */
.commission-list {
  padding: 0 1rem 2rem;
}

.commission-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1rem;
  background: #1a1a1a;
  border: 1px solid rgba(48, 54, 61, 0.6);
  border-radius: 0.75rem;
  margin-bottom: 0.5rem;
}

.commission-item-info h4 {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.commission-item-info span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.commission-item-value {
  font-weight: 600;
  color: #10b981;
}

/* Tabs */
.view-tabs {
  display: flex;
  margin: 1rem;
  background: #1a1a1a;
  border-radius: 0.75rem;
  padding: 0.25rem;
}

.view-tab {
  flex: 1;
  padding: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  color: rgba(255, 255, 255, 0.6);
}

.view-tab.active {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(16, 185, 129, 0.95);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Bottom nav spacer */
.bottom-spacer {
  height: 100px;
}

.inline-style-034359d7a8 {
  width: 0%;
}

.inline-style-6b99de8b69 {
  display: none;
}