:root {
  --wf-bg: #09090b;
  --wf-fg: #fafafa;
  --wf-fg-sec: #a1a1aa;
  --wf-fg-muted: #71717a;
  --wf-card-bg: #18181b;
  --wf-border: #3f3f46;
  --wf-accent: #06b6d4;
  --wf-accent-grad: linear-gradient(135deg, #06b6d4 0%, #8B5CF6 100%);
  --wf-success: #10b981;
  --wf-warning: #f59e0b;
  --wf-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wf-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  --wf-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--wf-font);
  background-color: var(--wf-bg);
  color: var(--wf-fg);
  min-height: 100vh;
  display: flex;
}

/* Layout */
.app-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background-color: var(--wf-card-bg);
  border-right: 1px solid var(--wf-border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: 100;
}

.sidebar-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 40px;
  background: var(--wf-accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: var(--wf-fg-sec);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--wf-fg);
}

.nav-link.active {
  background: var(--wf-accent-grad);
  color: #fff;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.user-status {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--wf-border);
}

.user-name {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}

.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444; /* Red for Not Activated */
}

/* Main Content */
.main-content {
  margin-left: 260px;
  flex: 1;
  padding: 32px 40px;
  width: calc(100% - 260px);
}

/* Typography */
h1, h2, h3 {
  margin: 0;
}

h2 {
  font-size: 20px;
  margin-bottom: 16px;
  font-weight: 600;
  color: var(--wf-fg);
}

.section {
  margin-bottom: 32px;
}

/* Cards */
.card {
  background-color: var(--wf-card-bg);
  border: 1px solid var(--wf-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--wf-shadow);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--wf-shadow-hover);
  border-color: #52525b;
}

/* Top Points Card */
.points-hero-card {
  text-align: center;
  padding: 40px;
  background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.1), transparent 40%), var(--wf-card-bg);
}

.points-big-number {
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  margin: 16px 0;
  background: var(--wf-accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.points-label {
  font-size: 18px;
  color: var(--wf-fg-sec);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.points-value {
  margin-top: 12px;
  font-size: 14px;
  color: var(--wf-accent);
  background: rgba(6, 182, 212, 0.1);
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 500;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Stats Card */
.stat-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.stat-title {
  color: var(--wf-fg-sec);
  font-size: 14px;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--wf-fg);
}

.stat-sub {
  font-size: 13px;
  margin-top: 4px;
}

.text-success { color: var(--wf-success); }
.text-warning { color: var(--wf-warning); }
.text-accent { color: var(--wf-accent); }

/* Invite/Affiliate Section */
.invite-container {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.form-input {
  flex: 1;
  background-color: #000;
  border: 1px solid var(--wf-border);
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--wf-fg);
  font-family: inherit;
  font-size: 14px;
}

.btn {
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.btn-primary {
  background: var(--wf-accent-grad);
  color: white;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.message-box {
  width: 100%;
  background-color: #000;
  border: 1px solid var(--wf-border);
  border-radius: 8px;
  padding: 16px;
  color: var(--wf-fg);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  min-height: 100px;
}

/* Activity List */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.activity-info {
  display: flex;
  flex-direction: column;
}

.activity-desc {
  font-weight: 500;
  margin-bottom: 4px;
}

.activity-date {
  font-size: 12px;
  color: var(--wf-fg-muted);
}

.activity-points {
  font-weight: 700;
  font-size: 16px;
}

.points-plus { color: var(--wf-success); }
.points-minus { color: var(--wf-warning); }

/* Wallet Specific Styles */
.wallet-balance {
  font-size: 32px;
  font-weight: 800;
  margin: 12px 0;
  color: var(--wf-fg);
}

.wallet-balance.accent {
  background: var(--wf-accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.wallet-balance-label {
  color: var(--wf-fg-sec);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.wallet-sub-text {
  font-size: 13px;
  color: var(--wf-fg-muted);
  line-height: 1.4;
}

.top-up-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.payment-methods {
  display: flex;
  gap: 12px;
  align-items: center;
}

.payment-icon {
  width: 50px;
  height: 30px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--wf-fg-sec);
  border: 1px solid var(--wf-border);
}

.info-box {
  background: rgba(6, 182, 212, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 12px;
  padding: 20px;
  color: var(--wf-fg);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 32px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-icon {
  font-size: 24px;
  color: var(--wf-accent);
  flex-shrink: 0;
}

/* Data Table */
.table-container {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--wf-border);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.table th {
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--wf-fg-sec);
  font-weight: 600;
  padding: 16px;
  border-bottom: 1px solid var(--wf-border);
  white-space: nowrap;
}

.table td {
  padding: 16px;
  border-bottom: 1px solid var(--wf-border);
  color: var(--wf-fg);
}

.table tr:last-child td {
  border-bottom: none;
}

.badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-success {
  background-color: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.badge-warning {
  background-color: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.badge-processing {
  background-color: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.card-table-wrapper {
  padding: 0;
  overflow: hidden;
  border: none;
  background: transparent;
  box-shadow: none;
}

.action-link {
  text-decoration: none;
  font-size: 14px;
}

.action-link:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    display: none; /* Hide sidebar on mobile for simplicity in this specific scope, or toggle */
  }
  .main-content {
    margin-left: 0;
    width: 100%;
    padding: 16px;
  }
}
