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

:root {
  --bg-primary: #000000;
  --bg-secondary: #000000;
  --bg-tertiary: #0a0a12;
  --bg-card: rgba(8, 8, 18, 0.92);
  --bg-card-hover: rgba(14, 14, 28, 0.96);
  --border-color: rgba(255, 255, 255, 0.04);
  --border-hover: rgba(255, 255, 255, 0.10);
  --text-primary: #f0f0f5;
  --text-secondary: #8888a0;
  --text-muted: #4a4a60;
  --accent-red: #e02040;
  --accent-red-light: #ff3050;
  --accent-red-dark: #a01830;
  --accent-blue: #1850e0;
  --accent-blue-light: #3070ff;
  --accent-blue-dark: #1038b0;
  --accent-gradient: linear-gradient(135deg, #e02040, #1850e0);
  --accent-gradient-glow: linear-gradient(135deg, rgba(224, 32, 64, 0.3), rgba(24, 80, 224, 0.3));
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.5);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.6);
  --shadow-lg: 0 16px 64px rgba(0,0,0,0.7);
  --glow-red: 0 0 30px rgba(224, 32, 64, 0.15);
  --glow-blue: 0 0 30px rgba(24, 80, 224, 0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --sidebar-width: 260px;
  --navbar-height: 64px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

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

body::before { display: none; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

::selection { background: var(--accent-red); color: white; }

a { color: var(--accent-blue-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-red-light); }

input, select, textarea, button { font-family: inherit; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 16px rgba(224, 48, 80, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(224, 48, 80, 0.4); }

.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: var(--border-hover); }

.btn-danger {
  background: var(--accent-red);
  color: white;
}
.btn-danger:hover { background: var(--accent-red-light); }

.btn-success {
  background: #20a050;
  color: white;
}
.btn-success:hover { background: #28c060; }

.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-xs { padding: 4px 10px; font-size: 11px; border-radius: 4px; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

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

.card-body { padding: 24px; }

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

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

.form-control {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--accent-blue);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 3px rgba(32, 96, 240, 0.1);
}

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

select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }

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

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-active, .badge-paid { background: rgba(32, 160, 80, 0.15); color: #30d070; }
.badge-suspended, .badge-pending { background: rgba(240, 200, 30, 0.15); color: #f0c81e; }
.badge-expired, .badge-unpaid, .badge-danger { background: rgba(224, 48, 80, 0.15); color: var(--accent-red-light); }
.badge-inactive { background: rgba(255,255,255,0.06); color: var(--text-muted); }

.page-title {
  font-size: 28px;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mr-1 { margin-right: 8px; }
.ml-1 { margin-left: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; gap: 12px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 20px; }

@media (max-width: 1200px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }

/* LANDING PAGE */
.landing-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 40px 20px;
}

.landing-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  z-index: 0;
}

.landing-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  animation: orbFloat 20s ease-in-out infinite;
}

.landing-bg .orb:nth-child(1) {
  width: 500px; height: 500px;
  background: var(--accent-red);
  top: -10%; left: -10%;
  animation-delay: 0s;
}

.landing-bg .orb:nth-child(2) {
  width: 400px; height: 400px;
  background: var(--accent-blue);
  bottom: -10%; right: -10%;
  animation-delay: -7s;
}

.landing-bg .orb:nth-child(3) {
  width: 300px; height: 300px;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-blue));
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -50px) scale(1.1); }
  50% { transform: translate(-30px, 30px) scale(0.9); }
  75% { transform: translate(40px, 40px) scale(1.05); }
}

.landing-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.landing-logo {
  font-size: 64px;
  font-weight: 900;
  letter-spacing: -2px;
  color: #fff;
  margin-bottom: 8px;
}

.landing-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.landing-tagline {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.6;
}

.landing-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-landing {
  padding: 16px 40px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

.landing-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
  max-width: 900px;
}

@media (max-width: 768px) {
  .landing-features { grid-template-columns: 1fr; }
  .landing-logo { font-size: 40px; }
}

.feature-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

.feature-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* LOGIN / REGISTER */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 40px;
  position: relative;
  z-index: 1;
}

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

.auth-logo h1 {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}

.auth-logo p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 4px;
}

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
}

.alert-error {
  background: rgba(224, 48, 80, 0.1);
  border: 1px solid rgba(224, 48, 80, 0.2);
  color: var(--accent-red-light);
}

.alert-success {
  background: rgba(32, 160, 80, 0.1);
  border: 1px solid rgba(32, 160, 80, 0.2);
  color: #30d070;
}

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

/* SIDEBAR LAYOUT */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.sidebar-brand {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-brand h2 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.nav-section {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 8px 12px;
  margin-top: 16px;
}

.nav-section:first-child { margin-top: 0; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 2px;
  text-decoration: none;
}

.nav-item:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
}

.nav-item.active {
  background: rgba(224, 48, 80, 0.1);
  color: var(--accent-red-light);
}

.nav-item .nav-icon { font-size: 18px; width: 24px; text-align: center; }

.nav-item .nav-badge {
  margin-left: auto;
  background: var(--accent-red);
  color: white;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--border-color);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
}

.user-details .user-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.user-details .user-role { font-size: 12px; color: var(--text-muted); text-transform: capitalize; }

.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* NAVBAR */
.navbar {
  height: var(--navbar-height);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 12, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 1px 0 rgba(0,0,0,0.2);
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-box {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  transition: var(--transition);
}

.search-box:focus-within {
  border-color: var(--accent-blue);
  background: rgba(255,255,255,0.06);
}

.search-box input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 13px;
  padding: 10px 8px;
  width: 200px;
}

.search-box input::placeholder { color: var(--text-muted); }

.search-box .search-icon { color: var(--text-muted); font-size: 16px; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .mobile-toggle { display: block; }
  .navbar { padding: 0 16px; }
  .search-box input { width: 120px; }
}

.content-area {
  padding: 24px 32px;
}

@media (max-width: 768px) {
  .content-area { padding: 16px; }
}

/* STATS CARDS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
}

.stat-card .stat-icon {
  font-size: 28px;
  margin-bottom: 12px;
  display: block;
}

.stat-card .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-card .stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.stat-card .stat-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: 0 2px 2px 0;
}

.stat-accent.red { background: var(--accent-red); }
.stat-accent.blue { background: var(--accent-blue); }
.stat-accent.green { background: #20a050; }
.stat-accent.yellow { background: #f0c81e; }

/* TABLES */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

thead {
  background: rgba(255,255,255,0.03);
}

th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  color: var(--text-primary);
  vertical-align: middle;
}

tbody tr {
  transition: var(--transition);
}

tbody tr:hover {
  background: rgba(255,255,255,0.02);
}

.table-actions {
  display: flex;
  gap: 6px;
}

/* MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

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

.modal-header h2 { font-size: 20px; font-weight: 700; }

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  transition: var(--transition);
}

.modal-close:hover { color: var(--text-primary); }

/* TOAST */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(20px);
  font-size: 14px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.3s ease;
  box-shadow: var(--shadow-md);
  min-width: 280px;
  max-width: 400px;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.toast.toast-out { animation: toastOut 0.3s ease forwards; }

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(20px); }
}

.toast-success { border-left: 3px solid #30d070; }
.toast-error { border-left: 3px solid var(--accent-red-light); }
.toast-info { border-left: 3px solid var(--accent-blue-light); }

/* CONFIRM POPUP */
.confirm-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.confirm-overlay.active { display: flex; }

.confirm-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  animation: modalIn 0.3s ease;
}

.confirm-box h3 { font-size: 18px; margin-bottom: 8px; }
.confirm-box p { color: var(--text-secondary); font-size: 14px; margin-bottom: 24px; }
.confirm-buttons { display: flex; gap: 12px; justify-content: center; }

/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* FILTER BAR */
.filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filter-bar .form-control {
  width: auto;
  min-width: 180px;
}

/* PROFILE HEADER */
.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px;
  margin-bottom: 24px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.profile-info h1 { font-size: 24px; font-weight: 700; }
.profile-info p { color: var(--text-secondary); font-size: 14px; }

.profile-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.profile-meta span { font-size: 13px; color: var(--text-muted); }
.profile-meta strong { color: var(--text-primary); }

/* DETAILS GRID */
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.detail-item {
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-sm);
}

.detail-item .detail-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.detail-item .detail-value {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  word-break: break-all;
}

/* RENEWAL TIMELINE */
.timeline { position: relative; }
.timeline-item {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-left: 2px solid var(--border-color);
  padding-left: 20px;
  margin-left: 8px;
  position: relative;
}

.timeline-item::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: absolute;
  left: -6px;
  top: 16px;
}

.timeline-item.danger::before { background: var(--accent-red); }
.timeline-item.warning::before { background: #f0c81e; }
.timeline-item.success::before { background: #30d070; }

.timeline-item .timeline-content { flex: 1; }
.timeline-item .timeline-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.timeline-item .timeline-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* TABS */
.tabs {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 24px;
  overflow-x: auto;
}

.tab {
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border: none;
  background: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.tab.active {
  background: var(--bg-card);
  color: var(--text-primary);
}

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

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

/* SETTINGS */
.settings-section {
  margin-bottom: 32px;
}

.settings-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

/* ACTIVITY LOG */
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-blue);
  margin-top: 6px;
  flex-shrink: 0;
}

.activity-content { flex: 1; }
.activity-action { font-size: 14px; color: var(--text-primary); }
.activity-details { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.activity-time { font-size: 11px; color: var(--text-muted); }

/* COPY BUTTON */
.copy-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  transition: var(--transition);
}

.copy-btn:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}

/* ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

.fade-in-1 { animation-delay: 0.05s; }
.fade-in-2 { animation-delay: 0.1s; }
.fade-in-3 { animation-delay: 0.15s; }
.fade-in-4 { animation-delay: 0.2s; }

/* CLIENT DASHBOARD */
.client-dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

/* === WALLPAPER BACKGROUND === */
.has-wallpaper {
  background: transparent !important;
}

.wallpaper-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  overflow: hidden;
}

.wallpaper-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.wallpaper-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.45) 50%,
    rgba(0,0,0,0.70) 100%
  );
  z-index: 1;
}

/* === LANDING PAGE V2 === */
.landing-wrapper {
  min-height: 100vh;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.landing-wrapper .landing-bg .orb:nth-child(4) {
  width: 600px; height: 600px;
  background: var(--accent-blue);
  top: 60%; left: 60%;
  opacity: 0.15;
  animation-delay: -5s;
}

.landing-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.landing-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.landing-nav-links a:not(.btn) {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}
.landing-nav-links a:not(.btn):hover { color: var(--text-primary); }

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  position: relative;
  z-index: 1;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  animation: fadeInDown 0.6s ease;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-size: 64px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.gradient-text {
  color: #fff;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero {
  padding: 16px 40px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 64px;
  flex-wrap: wrap;
}

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

.hero-stat-value {
  display: block;
  font-size: 40px;
  font-weight: 900;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

.section {
  padding: 100px 24px;
  position: relative;
  z-index: 1;
}

.section-decoration {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224, 32, 64, 0.3), rgba(24, 80, 224, 0.3), transparent);
}

.section-label {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-red-light);
  margin-bottom: 12px;
  position: relative;
}

.section-heading {
  text-align: center;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-desc {
  text-align: center;
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  background: rgba(255,255,255,0.03);
}

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.06);
}

.feature-card:hover .feature-icon-wrap {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.1);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224, 32, 64, 0.2), transparent);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: rgba(224, 32, 64, 0.15);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(224, 32, 64, 0.04);
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
}

.feature-card:hover::before { opacity: 1; }

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(224, 32, 64, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
  border: 1px solid rgba(224, 32, 64, 0.08);
}

.feature-card:hover .feature-icon-wrap {
  background: rgba(224, 32, 64, 0.12);
  border-color: rgba(224, 32, 64, 0.15);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.how-it-works {
  background: rgba(255,255,255,0.02);
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  max-width: 1000px;
  margin: 48px auto 0;
}

.step {
  text-align: center;
  padding: 40px 32px;
  flex: 1;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: rgba(255,255,255,0.02);
  transition: var(--transition);
  position: relative;
}

.step:hover {
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.step-icon {
  margin-bottom: 16px;
}

.step-number {
  font-size: 48px;
  font-weight: 900;
  color: #fff;
}

.step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(24, 80, 224, 0.2), transparent);
  opacity: 0;
  transition: var(--transition);
}

.step:hover {
  border-color: rgba(24, 80, 224, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(24, 80, 224, 0.04);
}

.step:hover::before { opacity: 1; }

.step-icon {
  margin-bottom: 16px;
}

.step-number {
  font-size: 48px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1;
}

.step h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-arrow {
  font-size: 32px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.cta-section {
  padding: 80px 24px;
}

.cta-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 48px;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  position: relative;
}

.cta-glow { display: none; }

.cta-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(224,32,64,0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 50%, rgba(24,80,224,0.06) 0%, transparent 50%);
  animation: ctaGlow 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ctaGlow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, -2%) rotate(1deg); }
  66% { transform: translate(-2%, 2%) rotate(-1deg); }
}

.cta-card h2 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.cta-card p {
  font-size: 16px;
  color: var(--text-secondary);
}

.landing-footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border-color);
  position: relative;
  z-index: 1;
}

.landing-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.landing-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-footer-links {
  display: flex;
  gap: 24px;
}

.landing-footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
}
.landing-footer-links a:hover { color: var(--text-primary); }

.landing-footer-copy {
  color: var(--text-muted);
  font-size: 13px;
}

@media (max-width: 768px) {
  .hero-title { font-size: 36px; }
  .hero-stats { gap: 24px; }
  .hero-stat-value { font-size: 28px; }
  .section-heading { font-size: 28px; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .cta-card { padding: 40px 24px; }
  .cta-card h2 { font-size: 28px; }
  .landing-footer-inner { flex-direction: column; text-align: center; }
  .landing-nav-links a:not(.btn) { display: none; }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
