/* Member theme - clean & modern */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #ccfbf1;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-lg: 16px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Navbar */
.elegance-nav {
  background: var(--card) !important;
  box-shadow: var(--shadow);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.elegance-nav .navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary) !important;
}

.elegance-nav .nav-link {
  color: var(--text) !important;
  font-weight: 500;
  padding: 0.5rem 0.75rem !important;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  font-size: 0.95rem;
}

.elegance-nav .nav-link:hover {
  background: var(--primary-light);
  color: var(--primary-dark) !important;
}

/* Cards */
.elegance-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.elegance-card:hover {
  box-shadow: var(--shadow-md);
}

.elegance-card .card-header {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  padding: 1rem 1.25rem;
}

.elegance-card .card-body {
  padding: 1.35rem 1.25rem;
}

/* Stat cards */
.elegance-stat {
  border-radius: var(--radius-lg);
  border: none;
  padding: 1.25rem 1.2rem;
  color: #fff !important;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.elegance-stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.elegance-stat h5, .elegance-stat small {
  color: rgba(255,255,255,0.95) !important;
  font-weight: 500;
  font-size: 0.85rem;
}

.elegance-stat h2, .elegance-stat h4 {
  color: #fff !important;
  font-weight: 700;
  font-size: 1.5rem;
}

.elegance-stat-wallet { background: #0d9488; }
.elegance-stat-earnings { background: #059669; }
.elegance-stat-refs { background: #2563eb; }
.elegance-stat-referral { background: #7c3aed; }

/* Headings */
.elegance-heading {
  font-weight: 700;
  color: var(--text);
}

.elegance-heading-lg { font-size: 2rem; margin-bottom: 0.5rem; }

/* Buttons */
.elegance-btn {
  background: var(--primary);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.65rem 1.35rem;
  border-radius: 10px;
  transition: background 0.2s, transform 0.2s;
}

.elegance-btn:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

.elegance-btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.elegance-btn-outline:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: var(--primary);
}

/* Forms */
.elegance-form .form-control,
.elegance-form .form-select {
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 0.65rem 1rem;
  font-family: var(--font);
}

.elegance-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
  outline: none;
}

.elegance-form .form-label {
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.35rem;
}

/* Tables */
.elegance-table {
  border-radius: var(--radius);
  overflow: hidden;
}

.elegance-table thead th {
  background: #f1f5f9;
  color: var(--text);
  font-weight: 600;
  border: none;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.elegance-table tbody td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
}

.elegance-table tbody tr:hover {
  background: #f8fafc;
}

/* Auth pages */
.elegance-auth-wrap {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.elegance-auth-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 2rem 2rem;
  max-width: 420px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.elegance-auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--primary);
}

.elegance-auth-card .card-title {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.elegance-auth-card .subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.elegance-auth-card a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}

.elegance-auth-card a:hover { color: var(--primary-dark); text-decoration: underline; }

/* Home / landing */
.elegance-hero {
  background: var(--primary);
  color: #fff;
  padding: 3rem 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow);
}

.elegance-hero h1 {
  font-weight: 700;
  font-size: 2rem;
  color: #fff;
}

.elegance-hero .lead {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
}

/* Page title */
.elegance-page-title {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

/* Welcome banner */
.elegance-welcome-banner {
  background: var(--primary);
  color: #fff;
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.elegance-welcome-text {
  font-weight: 700;
  font-size: 1.2rem;
}

.elegance-welcome-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
}

/* Badges */
.elegance-badge {
  border-radius: 8px;
  font-weight: 500;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
}

/* Alerts */
.alert-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: var(--radius);
  font-weight: 500;
}

.alert-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: var(--radius);
  font-weight: 500;
}

@media (max-width: 768px) {
  .elegance-hero { padding: 2rem 0; }
  .elegance-hero h1 { font-size: 1.6rem; }
  .elegance-auth-card { padding: 1.5rem 1.25rem; }
  .elegance-stat h2 { font-size: 1.35rem; }
}
