:root {
  --bg-primary: #0a0a12;
  --bg-secondary: #12121f;
  --bg-tertiary: #1a1a2e;
  --bg-card: #16162a;
  --accent-primary: #8b5cf6;
  --accent-secondary: #a78bfa;
  --accent-tertiary: #c4b5fd;
  --accent-glow: rgba(139, 92, 246, 0.3);
  --text-primary: #f1f1f7;
  --text-secondary: #a0a0b8;
  --text-muted: #6b6b80;
  --border-color: #2a2a45;
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #8b5cf6 100%);
  --gradient-accent: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #c084fc 100%);
  --gradient-card: linear-gradient(145deg, rgba(139, 92, 246, 0.1) 0%, rgba(124, 58, 237, 0.05) 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: 
    radial-gradient(ellipse at top left, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at center, rgba(99, 102, 241, 0.05) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
  position: relative;
  overflow: hidden;
}

.auth-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.03) 0%, transparent 25%),
    radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.03) 0%, transparent 25%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(2%, 2%) rotate(1deg); }
  50% { transform: translate(0, 4%) rotate(0deg); }
  75% { transform: translate(-2%, 2%) rotate(-1deg); }
}

.auth-card {
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(22, 22, 42, 0.95) 100%);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(139, 92, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
}

.logo {
  text-align: center;
  margin-bottom: 32px;
}

.logo h1 {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
  text-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
}

.logo-img {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.logo-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--gradient-accent);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  color: white;
  box-shadow: 
    0 10px 30px rgba(139, 92, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
}

.logo-icon::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background: var(--gradient-accent);
  z-index: -1;
  opacity: 0.5;
  filter: blur(10px);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-control::placeholder {
  color: var(--text-muted);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-accent);
  color: white;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--accent-primary);
}

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

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

.btn-small {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.link {
  color: var(--accent-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.link:hover {
  color: var(--accent-primary);
  text-decoration: underline;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.mt-4 {
  margin-top: 24px;
}

.alert {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 0.875rem;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

/* Main Header */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 18, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.header-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.header-logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.header-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
}

.header-nav-link svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.header-nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.header-nav-link.active {
  color: var(--accent-secondary);
  background: rgba(139, 92, 246, 0.1);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-admin-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.header-admin-link svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.header-admin-link:hover {
  color: var(--accent-secondary);
  background: rgba(139, 92, 246, 0.1);
}

.header-user {
  width: 40px;
  height: 40px;
}

.header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.header-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
}

.header-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--error);
  transition: all 0.2s;
}

.header-logout svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.header-logout:hover {
  background: rgba(239, 68, 68, 0.1);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* App Container */
.app-container {
  min-height: 100vh;
  background: var(--bg-primary);
}

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 24px 40px;
}

/* Toast Notifications */
.toast {
  position: fixed;
  top: 80px;
  right: 24px;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 1000;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--success);
}

.toast-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--error);
}

/* Banner */
.banner-container {
  margin: -90px -24px 0;
  height: 200px;
  overflow: hidden;
  position: relative;
}

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

/* Profile Hero */
.profile-hero {
  position: relative;
  margin-bottom: 32px;
  padding: 40px;
  border-radius: 20px;
  overflow: hidden;
}

.profile-hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at top left, rgba(139, 92, 246, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
    linear-gradient(145deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border-color);
  border-radius: 20px;
}

.profile-hero-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
}

.profile-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar,
.profile-avatar-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent-primary);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
}

.profile-avatar-placeholder {
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  border: 4px solid rgba(255, 255, 255, 0.2);
}

.profile-avatar-ring {
  display: none;
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.profile-uid,
.profile-username {
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-uid svg,
.profile-username svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.profile-bio {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 500px;
}

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

/* Cards */
.card {
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(22, 22, 42, 0.8) 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.card-header svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent-secondary);
  stroke-width: 2;
  fill: none;
}

.card-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
}

.card-body {
  padding: 24px;
}

/* License Card */
.license-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 1.1rem;
}

.license-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.license-active .license-indicator {
  background: var(--success);
  box-shadow: 0 0 12px var(--success);
}

.license-inactive .license-indicator,
.license-none .license-indicator {
  background: var(--error);
}

.license-type-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.license-Lite {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.1));
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.license-Full {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(124, 58, 237, 0.1));
  color: var(--accent-secondary);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.license-info-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.license-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.license-info-item svg {
  stroke: var(--text-muted);
  stroke-width: 2;
  fill: none;
}

.license-hint {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Download Card */
.download-desc {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  background: var(--gradient-accent);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
}

.download-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.download-info {
  margin-top: 16px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.profile-top {
  background: 
    radial-gradient(ellipse at top, rgba(139, 92, 246, 0.25) 0%, transparent 60%),
    linear-gradient(180deg, rgba(139, 92, 246, 0.15) 0%, rgba(124, 58, 237, 0.05) 100%);
  padding: 50px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.profile-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 50%, rgba(168, 85, 247, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

.avatar-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent-primary);
  box-shadow: 0 0 30px var(--accent-glow);
}

.avatar-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
  color: white;
  border: 4px solid var(--accent-primary);
  box-shadow: 
    0 0 30px rgba(139, 92, 246, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
}

.avatar-upload {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 36px;
  height: 36px;
  background: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.avatar-upload:hover {
  transform: scale(1.1);
}

.avatar-upload input {
  display: none;
}

.profile-name {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-uid {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.profile-body {
  padding: 32px 40px;
}

.profile-section {
  margin-bottom: 32px;
}

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

.profile-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.license-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
}

.license-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.status-active {
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
}

.status-inactive {
  background: var(--error);
}

.license-info {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.license-type-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-left: 10px;
  background: var(--gradient-accent);
  color: white;
}

.hwid-bound {
  color: var(--success);
}

.hwid-unbound {
  color: var(--warning);
}

.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px;
  background: var(--gradient-accent);
  border: none;
  border-radius: 14px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.download-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s;
}

.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 15px 35px rgba(139, 92, 246, 0.4),
    0 0 20px rgba(139, 92, 246, 0.2);
}

.download-btn:hover::before {
  left: 100%;
}

.download-btn svg {
  width: 22px;
  height: 22px;
}

/* Admin Styles */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(18, 18, 31, 0.95) 100%);
  border-right: 1px solid var(--border-color);
  padding: 24px 16px;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.3s ease;
}

.admin-sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.admin-mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 98;
  background: rgba(10, 10, 18, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 20px;
  align-items: center;
  justify-content: space-between;
}

.admin-mobile-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-mobile-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: white;
}

.admin-mobile-logo span {
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.admin-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
}

.admin-menu-btn span {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

.admin-logo {
  padding: 0 12px 24px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.admin-logo h2 {
  font-size: 1.25rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.admin-logo span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.admin-nav {
  list-style: none;
}

.admin-nav li {
  margin-bottom: 4px;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s;
}

.admin-nav a:hover,
.admin-nav a.active {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.admin-nav a.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(124, 58, 237, 0.1));
  color: var(--accent-secondary);
}

.admin-main {
  flex: 1;
  margin-left: 260px;
  padding: 32px;
  background: var(--bg-primary);
  min-height: 100vh;
}

.admin-header {
  margin-bottom: 32px;
}

.admin-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(22, 22, 42, 0.8) 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
}

.stat-card h3 {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.stat-card .value {
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
}

.data-table th,
.data-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  background: var(--bg-secondary);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.data-table tr:hover {
  background: var(--bg-secondary);
}

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

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.badge-error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.badge-info {
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-secondary);
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
  .auth-card {
    margin: 20px;
    padding: 24px;
  }

  .main-content {
    padding: 80px 16px 24px;
  }

  .header-content {
    padding: 12px 16px;
  }

  .header-logo-text {
    display: none;
  }

  .header-center {
    gap: 4px;
  }

  .header-nav-link {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .header-nav-link svg {
    width: 16px;
    height: 16px;
  }

  .header-right {
    gap: 8px;
  }

  .header-admin-link,
  .header-logout,
  .header-user {
    width: 36px;
    height: 36px;
  }

  .header-avatar,
  .header-avatar-placeholder {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .profile-hero {
    padding: 24px 20px;
  }

  .profile-hero-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .profile-avatar,
  .profile-avatar-placeholder {
    width: 100px;
    height: 100px;
    font-size: 40px;
  }

  .profile-avatar-ring {
    inset: -3px;
  }

  .profile-name {
    font-size: 1.5rem;
  }

  .profile-meta {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .profile-bio {
    max-width: 100%;
  }

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

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

  .edit-card-wide {
    grid-column: span 1;
  }

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

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

  /* Admin Mobile */
  .admin-mobile-header {
    display: flex;
  }

  .admin-sidebar {
    transform: translateX(-100%);
  }

  .admin-sidebar.active {
    transform: translateX(0);
  }

  .admin-sidebar-overlay.active {
    display: block;
  }

  .admin-main {
    margin-left: 0;
    padding: 80px 16px 24px;
  }

  .admin-header h1 {
    font-size: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-card .value {
    font-size: 1.5rem;
  }

  .data-table {
    display: block;
    overflow-x: auto;
    font-size: 0.85rem;
  }

  .data-table th,
  .data-table td {
    padding: 12px 10px;
    white-space: nowrap;
  }

  .btn-small {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

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

  .profile-name {
    font-size: 1.4rem;
  }

  .avatar, .avatar-placeholder {
    width: 100px;
    height: 100px;
    font-size: 40px;
  }

  .avatar-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
  }

  .avatar-upload {
    width: 32px;
    height: 32px;
    bottom: 0;
    right: 0;
  }
}

/* Edit Profile Page */
.edit-container {
  max-width: 900px;
  margin: 0 auto;
}

.edit-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  margin-bottom: 32px;
}

.edit-title svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent-secondary);
  stroke-width: 2;
  fill: none;
}

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

.edit-card-wide {
  grid-column: span 2;
}

/* Avatar/Banner Forms */
.avatar-form,
.banner-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.avatar-preview {
  width: 120px;
  height: 120px;
}

.avatar-preview-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-primary);
}

.avatar-preview-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
}

.banner-preview {
  width: 100%;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
}

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

.banner-preview-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-tertiary);
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
}

.banner-preview-placeholder svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.avatar-upload-area,
.banner-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.upload-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.upload-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.upload-btn:hover {
  background: var(--bg-card);
  border-color: var(--accent-primary);
}

.upload-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Forms */
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.form-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.profile-form .btn,
.password-form .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.profile-form .btn svg,
.password-form .btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Icon sizes */
.icon-sm {
  width: 16px;
  height: 16px;
}
