/* Affiliate Dashboard Styles */

/* CSS Variables */
:root {
  --purple: #816dea;
  --purple-dark: #6b5bd6;
  --purple-light: #9d8df7;
  --green: #0db360;
  --green-light: #14d46f;
  --green-dark: #0a9b52;
  --orange: #ff6b4a;
  --yellow: #f5a623;
  --black: #000000;
  --dark: #0a0a0b;
  --dark-card: #1c1c1e;
  --dark-card-hover: #252528;
  --gray-dark: #2c2c2e;
  --gray: #848891;
  --gray-light: #a0a1a8;
  --white: #ffffff;
  --off-white: #f5f5f7;
  --red: #ff3b30;
  --font-display: "Outfit", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --sidebar-width: 260px;
}

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

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Dashboard Layout */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

.dashboard {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--black);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px 16px;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 8px 12px;
  margin-bottom: 32px;
}

.sidebar-logo svg {
  width: 36px;
  height: 36px;
}

.sidebar-logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--gray-light);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

.nav-item.active {
  background: rgba(129, 109, 234, 0.15);
  color: var(--purple-light);
}

.nav-item svg {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}

.nav-item.active svg {
  opacity: 1;
}

.nav-section-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 20px 16px 8px;
}

.sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 16px;
  margin-top: 16px;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--purple), var(--green));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-email {
  font-size: 12px;
  color: var(--gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 32px 40px;
}

.main {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 32px 40px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.page-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
}

.page-subtitle {
  font-size: 14px;
  color: var(--gray-light);
  margin-top: 4px;
}

.header-actions {
  display: flex;
  gap: 12px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.stat-icon.purple {
  background: rgba(129, 109, 234, 0.15);
}

.stat-icon.green {
  background: rgba(13, 179, 96, 0.15);
}

.stat-icon.orange {
  background: rgba(255, 107, 74, 0.15);
}

.stat-icon.yellow {
  background: rgba(245, 166, 35, 0.15);
}

.stat-trend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
}

.stat-trend.up {
  background: rgba(13, 179, 96, 0.15);
  color: var(--green);
}

.stat-trend.down {
  background: rgba(255, 59, 48, 0.15);
  color: var(--red);
}

.stat-card {
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.stat-label {
  font-size: 13px;
  color: var(--gray-light);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
}

.stat-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 20px;
}

.stat-change.positive {
  background: rgba(13, 179, 96, 0.15);
  color: var(--green);
}

.stat-change.negative {
  background: rgba(255, 59, 48, 0.15);
  color: var(--red);
}

/* Cards */
.card {
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.card-body {
  padding: 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  text-decoration: none;
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--purple);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(129, 109, 234, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-danger {
  background: rgba(255, 59, 48, 0.15);
  color: var(--red);
  border: 1px solid rgba(255, 59, 48, 0.3);
}

.btn-danger:hover {
  background: rgba(255, 59, 48, 0.25);
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* Form Elements */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-light);
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--white);
  font-family: var(--font-body);
}

.form-input:focus {
  outline: none;
  border-color: var(--purple);
}

.form-input::placeholder {
  color: var(--gray);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  padding: 14px 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.data-table td {
  padding: 16px 20px;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.data-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-badge.completed {
  background: rgba(13, 179, 96, 0.15);
  color: var(--green);
}

.status-badge.pending {
  background: rgba(245, 166, 35, 0.15);
  color: var(--yellow);
}

.status-badge.refunded {
  background: rgba(255, 59, 48, 0.15);
  color: var(--red);
}

/* Referral Link Box */
.referral-link-box {
  background: linear-gradient(
    135deg,
    rgba(129, 109, 234, 0.15) 0%,
    rgba(13, 179, 96, 0.1) 100%
  );
  border: 1px solid rgba(129, 109, 234, 0.2);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
}

.referral-link-label {
  font-size: 13px;
  color: var(--gray-light);
  margin-bottom: 12px;
}

.referral-link-input-group {
  display: flex;
  gap: 12px;
}

.referral-link-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--white);
  font-family: var(--font-body);
}

.copy-btn {
  padding: 14px 24px;
  background: var(--purple);
  border: none;
  border-radius: 10px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-btn:hover {
  background: var(--purple-dark);
}

.copy-btn.copied {
  background: var(--green);
}

.copy-btn svg {
  width: 18px;
  height: 18px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 64px 24px;
}

.empty-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
}

.empty-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.empty-text {
  font-size: 14px;
  color: var(--gray-light);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 200;
  width: 44px;
  height: 44px;
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Toggle Switch */
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.toggle-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.toggle-row:first-child {
  padding-top: 0;
}

.toggle-info h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.toggle-info p {
  font-size: 13px;
  color: var(--gray-light);
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 28px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  transition: all 0.3s ease;
}

.toggle-slider:before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  bottom: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--purple);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pagination-info {
  font-size: 13px;
  color: var(--gray-light);
}

.pagination-btns {
  display: flex;
  gap: 8px;
}

.pagination-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--white);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-btn svg {
  width: 18px;
  height: 18px;
}

/* Filters */
.filters {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--white);
  min-width: 140px;
}

.filter-select:focus {
  outline: none;
  border-color: var(--purple);
}

.search-input {
  flex: 1;
  min-width: 200px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--white);
}

.search-input:focus {
  outline: none;
  border-color: var(--purple);
}

.search-input::placeholder {
  color: var(--gray);
}

/* Alert Messages */
.alert {
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-success {
  background: rgba(13, 179, 96, 0.15);
  border: 1px solid rgba(13, 179, 96, 0.3);
  color: var(--green);
}

.alert-error {
  background: rgba(255, 59, 48, 0.15);
  border: 1px solid rgba(255, 59, 48, 0.3);
  color: var(--red);
}

/* Form Field Errors */
.form-group.has-error .form-input,
.form-group.has-error .form-select {
  border-color: var(--red);
  background: rgba(255, 59, 48, 0.05);
}

.form-group.has-error .form-label {
  color: var(--red);
}

.field-error {
  display: block;
  font-size: 12px;
  color: var(--red);
  margin-top: 4px;
}

.form-checkbox-group.has-error .field-error {
  width: 100%;
  margin-left: 28px;
}

.alert-warning {
  background: rgba(245, 166, 35, 0.15);
  border: 1px solid rgba(245, 166, 35, 0.3);
  color: var(--yellow);
}

/* Referral Section */
.referral-section {
  background: linear-gradient(
    135deg,
    rgba(129, 109, 234, 0.15) 0%,
    rgba(13, 179, 96, 0.1) 100%
  );
  border: 1px solid rgba(129, 109, 234, 0.2);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 32px;
}

.referral-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.referral-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.referral-subtitle {
  font-size: 14px;
  color: var(--gray-light);
  margin-top: 2px;
}

.referral-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--white);
  font-family: var(--font-body);
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

/* Chart Card */
.chart-card {
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.chart-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.chart-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 8px;
}

.chart-tab {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-light);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chart-tab.active {
  background: var(--dark-card);
  color: var(--white);
}

.chart-tab:hover:not(.active) {
  color: var(--white);
}

.chart-placeholder {
  height: 280px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 14px;
}

/* Quick Stats Card */
.quick-stats-card {
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px;
}

.quick-stats-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.quick-stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.quick-stat-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.quick-stat-label {
  font-size: 14px;
  color: var(--gray-light);
}

.quick-stat-value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.quick-stat-value.green {
  color: var(--green);
}

/* Activity Section */
.activity-section {
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px;
}

.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.activity-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.view-all-link {
  font-size: 14px;
  color: var(--purple-light);
  text-decoration: none;
  font-weight: 500;
}

.view-all-link:hover {
  text-decoration: underline;
}

.activity-table {
  width: 100%;
  border-collapse: collapse;
}

.activity-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.activity-table td {
  padding: 16px;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.activity-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.earnings-value {
  font-weight: 600;
  color: var(--green);
}

/* Auth Page Styles */
.auth-page {
  min-height: 100vh;
  display: flex;
}

.brand-panel {
  width: 45%;
  background: linear-gradient(135deg, var(--dark-card) 0%, var(--dark) 100%);
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.brand-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.brand-gradient {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
}

.brand-gradient-1 {
  background: var(--purple);
  width: 500px;
  height: 500px;
  top: -150px;
  left: -150px;
}

.brand-gradient-2 {
  background: var(--green);
  width: 350px;
  height: 350px;
  bottom: -100px;
  right: -100px;
}

.brand-content {
  position: relative;
  z-index: 2;
  max-width: 420px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
  text-decoration: none;
}

.brand-logo svg {
  width: 48px;
  height: 48px;
}

.brand-logo-text {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
}

.brand-tagline {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.brand-tagline .highlight {
  background: linear-gradient(135deg, var(--purple), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-description {
  font-size: 16px;
  color: var(--gray-light);
  line-height: 1.7;
}

.form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.auth-form-wrapper {
  width: 100%;
  max-width: 400px;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--gray-light);
  margin-bottom: 32px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.password-toggle {
  position: absolute;
  right: 14px;
  bottom: 6px;
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  padding: 4px;
}

.password-toggle:hover {
  color: var(--white);
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-light);
}

.remember-me input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--purple);
}

.forgot-link {
  font-size: 13px;
  color: var(--purple-light);
  text-decoration: none;
}

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

.auth-link {
  text-align: center;
  font-size: 14px;
  color: var(--gray-light);
  margin-top: 24px;
}

.auth-link a {
  color: var(--purple-light);
  text-decoration: none;
  font-weight: 500;
}

.auth-link a:hover {
  text-decoration: underline;
}

/* Pending Approval Page */
.pending-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.pending-card {
  text-align: center;
  max-width: 500px;
}

.pending-icon {
  width: 80px;
  height: 80px;
  background: rgba(245, 166, 35, 0.15);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 40px;
}

.pending-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.pending-text {
  font-size: 16px;
  color: var(--gray-light);
  line-height: 1.6;
  margin-bottom: 24px;
}

.pending-info {
  background: var(--dark-card);
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  margin-bottom: 24px;
}

.pending-info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}

.pending-info-row:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pending-info-label {
  font-size: 14px;
  color: var(--gray-light);
}

.pending-info-value {
  font-size: 14px;
  font-weight: 500;
}

/* Balance Cards (Payouts Page) */
.balance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.balance-card {
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px;
}

.balance-card.highlight {
  background: linear-gradient(
    135deg,
    rgba(129, 109, 234, 0.15) 0%,
    rgba(13, 179, 96, 0.1) 100%
  );
  border-color: rgba(129, 109, 234, 0.2);
}

.balance-label {
  font-size: 14px;
  color: var(--gray-light);
  margin-bottom: 8px;
}

.balance-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
}

.balance-value.green {
  color: var(--green);
}

.balance-note {
  font-size: 12px;
  color: var(--gray);
  margin-top: 8px;
}

/* Payout Section */
.payout-section {
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
}

.payout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.payout-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.payout-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.payout-field {
  flex: 1;
  min-width: 180px;
}

.payout-field label {
  display: block;
  font-size: 13px;
  color: var(--gray-light);
  margin-bottom: 6px;
}

.payout-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--white);
  font-family: var(--font-body);
}

.payout-input:focus {
  outline: none;
  border-color: var(--purple);
}

.min-amount {
  font-size: 12px;
  color: var(--gray);
  margin-top: 4px;
}

.btn-green {
  background: var(--green);
  color: var(--white);
}

.btn-green:hover {
  background: var(--green-dark);
}

/* Table Card */
.table-card {
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
}

.table-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.table-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

/* Marketing Page Tabs */
.tabs {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 32px;
  width: fit-content;
}

.tab {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-light);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab.active {
  background: var(--dark-card);
  color: var(--white);
}

.tab:hover:not(.active) {
  color: var(--white);
}

/* Asset Grid */
.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.asset-card {
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.asset-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.asset-preview {
  aspect-ratio: 16/9;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.asset-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asset-placeholder {
  font-size: 48px;
  opacity: 0.5;
}

.asset-info {
  padding: 20px;
}

.asset-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.asset-meta {
  font-size: 13px;
  color: var(--gray-light);
  margin-bottom: 16px;
}

.asset-actions {
  display: flex;
  gap: 8px;
}

.asset-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
  font-family: var(--font-body);
}

.asset-btn-primary {
  background: var(--purple);
  color: var(--white);
}

.asset-btn-primary:hover {
  background: var(--purple-dark);
}

.asset-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.asset-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.asset-btn svg {
  width: 16px;
  height: 16px;
}

/* Copy Templates Section */
.copy-section {
  margin-top: 48px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
}

.copy-grid {
  display: grid;
  gap: 16px;
}

.copy-card {
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px;
}

.copy-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--purple-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.copy-text {
  font-size: 14px;
  color: var(--gray-light);
  line-height: 1.6;
  margin-bottom: 12px;
}

/* Custom Links Page */
.default-link-card {
  background: linear-gradient(
    135deg,
    rgba(129, 109, 234, 0.15) 0%,
    rgba(13, 179, 96, 0.1) 100%
  );
  border: 1px solid rgba(129, 109, 234, 0.2);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
}

.default-link-label {
  font-size: 13px;
  color: var(--gray-light);
  margin-bottom: 8px;
}

.default-link-url {
  display: flex;
  gap: 12px;
  align-items: center;
}

.link-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--white);
  font-family: var(--font-body);
}

.create-link-card {
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
}

.create-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.create-form .form-group {
  flex: 1;
  min-width: 150px;
}

.create-form .form-hint {
  font-size: 11px;
  color: var(--gray);
  margin-top: 4px;
}

.create-form .btn {
  margin-top: 19px;
}

.link-name {
  font-weight: 600;
  margin-bottom: 2px;
}

.link-url {
  font-size: 12px;
  color: var(--gray-light);
  font-family: monospace;
}

.action-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--gray-light);
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.action-btn.delete:hover {
  background: rgba(255, 59, 48, 0.2);
  color: var(--red);
  border-color: rgba(255, 59, 48, 0.3);
}

.action-btn svg {
  width: 16px;
  height: 16px;
}

.actions-cell {
  display: flex;
  gap: 8px;
}

/* Settings Page */
.settings-section {
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-desc {
  font-size: 13px;
  color: var(--gray-light);
  margin-top: 4px;
}

.payment-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.payment-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.payment-info {
  flex: 1;
}

.payment-name {
  font-weight: 600;
  font-size: 14px;
}

.payment-detail {
  font-size: 13px;
  color: var(--gray-light);
}

.payment-badge {
  background: rgba(13, 179, 96, 0.15);
  color: var(--green);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.danger-zone {
  border-color: rgba(255, 59, 48, 0.2);
}

.danger-zone .section-title {
  color: var(--red);
}

/* Info Grid (Settings Account Info) */
.info-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-row:first-child {
  padding-top: 0;
}

.info-label {
  font-size: 14px;
  color: var(--gray-light);
}

.info-value {
  font-size: 14px;
  font-weight: 500;
  text-align: right;
}

/* Payout Details Form */
.payout-method-fields {
  margin-bottom: 16px;
}

.payout-info {
  margin-bottom: 16px;
}

.payout-info-text {
  font-size: 14px;
  color: var(--gray-light);
  margin-bottom: 8px;
}

.payout-info-text a {
  color: var(--purple-light);
  text-decoration: none;
}

.payout-info-text a:hover {
  text-decoration: underline;
}

/* Messages Container */
.messages-container {
  margin-bottom: 24px;
}

/* Filters Bar */
.filters-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Social/Email Template Sections */
.template-section {
  margin-bottom: 32px;
}

.template-section:last-child {
  margin-bottom: 0;
}

.template-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.template-card {
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px;
}

.template-text {
  font-size: 14px;
  color: var(--gray-light);
  line-height: 1.6;
  margin-bottom: 16px;
  white-space: pre-wrap;
}

.template-actions {
  display: flex;
  gap: 8px;
}

/* Disabled button state */
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Amount styling */
.amount {
  font-weight: 600;
}

.amount.positive {
  color: var(--green);
}

/* Page Button */
.page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--white);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page-btn.active {
  background: var(--purple);
  border-color: var(--purple);
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .balance-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content,
  .main {
    margin-left: 0;
    padding: 80px 24px 32px;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    display: none;
  }

  .form-panel {
    padding: 24px;
  }

  .referral-link-box {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .referral-link-input-group {
    flex-direction: column;
  }

  .copy-btn {
    width: 100%;
    justify-content: center;
  }

  .filters {
    flex-direction: column;
  }

  .filter-select,
  .search-input {
    width: 100%;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .header-actions {
    width: 100%;
  }

  .header-actions .btn {
    flex: 1;
    justify-content: center;
  }

  .activity-table {
    display: block;
    overflow-x: auto;
  }
}
