/* ============================================
   RECEIPTIFIED PROGRAM — PREMIUM DESIGN SYSTEM
   Ultra-modern dark UI with ambient glow effects
   ============================================ */

/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
  --primary-bg: #060606;
  --secondary-bg: #0a0a0a;
  --surface-bg: rgba(10, 10, 10, 0.45);
  --card-bg: rgba(8, 10, 8, 0.40);
  --card-bg-solid: rgba(10, 10, 10, 0.50);
  --accent-color: #CFFD00;
  --accent-hover: #b8e000;
  --accent-glow: rgba(207, 253, 0, 0.12);
  --accent-glow-strong: rgba(207, 253, 0, 0.3);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(207, 253, 0, 0.18);
  --text-primary: #f0f0f5;
  --text-secondary: rgba(255, 255, 255, 0.68);
  --text-muted: rgba(255, 255, 255, 0.38);
  --sidebar-width: 260px;
  --sidebar-mobile-width: 68px;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 18px;
  --border-radius-xl: 24px;
  --transition-fast: 0.15s ease;
  --transition-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --gold: #FFD700;
  --silver: #C0C0C0;
  --bronze: #CD7F32;
  --success-color: #CFFD00;
  --error-color: #f87171;
  --info-color: rgba(207, 253, 0, 0.85);
}

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

body, html, * {
  font-family: 'Poppins', sans-serif !important;
}

body {
  background-color: var(--primary-bg);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Atmospheric background — animated gradient mesh */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 70% 50% at 15% 5%, rgba(207, 253, 0, 0.035) 0%, transparent 55%),
    radial-gradient(ellipse 50% 70% at 85% 85%, rgba(207, 253, 0, 0.02) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(12, 12, 14, 0.3) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: bgPulse 12s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0% { opacity: 1; }
  100% { opacity: 0.7; }
}

body, html {
  background: var(--primary-bg) !important;
}

.page-content-wrapper,
.content-wrapper {
  background: transparent !important;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(207, 253, 0, 0.25); }

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes shimmerBorder {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 15px rgba(207, 253, 0, 0.06); }
  50%      { box-shadow: 0 0 30px rgba(207, 253, 0, 0.14); }
}

@keyframes accentPulse {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

@keyframes modalGlow {
  0%, 100% { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 80px rgba(207, 253, 0, 0.04); }
  50%      { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 140px rgba(207, 253, 0, 0.08); }
}

@keyframes lineShimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

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

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

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

@keyframes borderGlow {
  0%, 100% { border-color: rgba(207, 253, 0, 0.12); }
  50%      { border-color: rgba(207, 253, 0, 0.28); }
}

@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes gentlePulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.03); }
}

@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ============================================
   ANIMATION UTILITY CLASSES
   ============================================ */
.animate-in {
  animation: cardEntrance 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  opacity: 0;
}

.animate-in-fast {
  animation: cardEntrance 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  opacity: 0;
}

.delay-1 { animation-delay: 0.06s; }
.delay-2 { animation-delay: 0.12s; }
.delay-3 { animation-delay: 0.18s; }
.delay-4 { animation-delay: 0.24s; }
.delay-5 { animation-delay: 0.30s; }
.delay-6 { animation-delay: 0.36s; }
.delay-7 { animation-delay: 0.42s; }
.delay-8 { animation-delay: 0.48s; }

.glow-pulse { animation: glowPulse 3s ease-in-out infinite; }

.shimmer-border::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(207, 253, 0, 0.5), rgba(207, 253, 0, 0.8), rgba(207, 253, 0, 0.5), transparent);
  background-size: 200% 100%;
  animation: shimmerBorder 3s linear infinite;
}

/* ============================================
   LOADER OVERLAY — now handled by shooting-star-loader.css
   ============================================ */

/* ============================================
   PAGE WRAPPER
   ============================================ */
.page-content-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

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

/* ============================================
   SIDEBAR — PREMIUM GLASS
   ============================================ */
.sidebar {
  position: fixed;
  left: 0; top: 0;
  height: 100vh;
  width: var(--sidebar-width);
  background: rgba(8, 8, 8, 0.55);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 0;
  z-index: 1000;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  transition: width var(--transition-medium), padding var(--transition-medium);
  overflow-y: auto;
  overflow-x: hidden;
}

/* Subtle accent line at sidebar top */
.sidebar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(207, 253, 0, 0.35), transparent);
  z-index: 1;
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-top: 0.25rem;
}

.sidebar-bottom {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  padding-bottom: 1rem;
}

/* Sidebar Section Labels */
.sidebar-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  padding: 1.25rem 1.25rem 0.5rem;
  margin-top: 0.25rem;
  opacity: 0.5;
  user-select: none;
}

/* Welcome Box — bold accent gradient */
.sidebar-welcome-box {
  background: linear-gradient(135deg, var(--accent-color) 0%, #a8d400 100%);
  color: #000;
  padding: 14px 18px;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  margin: 0.75rem 0.75rem 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  box-shadow: 0 6px 24px rgba(207, 253, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.sidebar-welcome-box::after {
  content: '';
  position: absolute;
  top: -50%; right: -50%;
  width: 100%; height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.12) 50%, transparent 60%);
  transition: all 0.6s ease;
}

.sidebar-welcome-box:hover {
  box-shadow: 0 8px 30px rgba(207, 253, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.sidebar-welcome-box:hover::after { right: -100%; }

.sidebar-welcome-box i { font-size: 1.3rem; }

.sidebar-welcome-box .welcome-text {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Navigation Links */
.sidebar a.nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  padding: 11px 20px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--border-radius-md);
  margin: 2px 0.75rem;
  transition: all var(--transition-medium);
  position: relative;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar a.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.sidebar a.nav-link:hover i { transform: scale(1.15); }

.sidebar a.nav-link.active {
  color: var(--accent-color);
  background: rgba(207, 253, 0, 0.08);
  font-weight: 600;
}

.sidebar a.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 24px;
  background: var(--accent-color);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 12px rgba(207, 253, 0, 0.5);
  animation: accentPulse 2s ease-in-out infinite;
}

.sidebar a.nav-link i {
  font-size: 20px;
  min-width: 24px;
  text-align: center;
  color: rgba(207, 253, 0, 0.5);
  transition: all var(--transition-medium);
}

.sidebar a.nav-link:hover i,
.sidebar a.nav-link.active i {
  color: var(--accent-color);
}

.sidebar a.nav-link span {
  transition: opacity var(--transition-medium), transform var(--transition-medium);
}

/* Sidebar Divider */
.sidebar .divider {
  width: calc(100% - 2rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  margin: 0.5rem 1rem;
}

.sidebar .divider.yellow {
  background: linear-gradient(90deg, transparent, rgba(207, 253, 0, 0.2), transparent);
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.main-content-area {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  min-height: 100vh;
  transition: margin-left var(--transition-medium), width var(--transition-medium);
  padding-bottom: 2rem;
  position: relative;
  z-index: 1;
}

/* Content wrapper inside main-content-area */
.main-content-area > .content {
  padding: 0;
}

/* Header Container — sticky top bar */
.header-container {
  padding: 1.1rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, rgba(5, 5, 8, 0.96) 0%, rgba(5, 5, 8, 0) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container h1 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

/* ============================================
   HERO / WELCOME SECTION
   ============================================ */
.hero-welcome {
  padding: 1.5rem 2rem 0.5rem;
  animation: fadeSlideUp 0.5s ease forwards;
}

.hero-card {
  background: rgba(8, 10, 8, 0.40);
  border: 1px solid var(--border-accent);
  border-radius: var(--border-radius-xl);
  padding: 2.5rem 2.5rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(207, 253, 0, 0.6), rgba(207, 253, 0, 0.9), rgba(207, 253, 0, 0.6), transparent);
  background-size: 200% 100%;
  animation: shimmerBorder 3s linear infinite;
}

.hero-card::after {
  content: '';
  position: absolute;
  top: -60%; right: -15%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(207, 253, 0, 0.06) 0%, transparent 65%);
  pointer-events: none;
  animation: floatUp 8s ease-in-out infinite;
}

.hero-greeting {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 1;
}

.hero-greeting .greeting-accent {
  background: linear-gradient(135deg, var(--accent-color), #e8ff66, var(--accent-color));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerBorder 4s linear infinite;
}

.hero-subtitle,
.hero-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.hero-subtitle strong,
.hero-description strong {
  color: var(--accent-color);
  font-weight: 600;
}

/* ============================================
   CARDS & STAT BOXES
   ============================================ */
.section-grid {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem 2rem;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.section-grid.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  padding: 1.5rem 2rem;
}

.section-grid.loading {
  padding: 1.5rem 2rem;
  text-align: initial;
}

/* Card Base — Premium Glass */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-medium);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Top shimmer line */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 20%, rgba(207, 253, 0, 0.25) 50%, transparent 80%);
  opacity: 0;
  transition: opacity var(--transition-medium);
}

/* Corner glow orb */
.card::after {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 90px; height: 90px;
  background: radial-gradient(circle, rgba(207, 253, 0, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transition: all var(--transition-medium);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 0 40px rgba(207, 253, 0, 0.06);
}

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

.card:hover::after {
  width: 110px; height: 110px;
  background: radial-gradient(circle, rgba(207, 253, 0, 0.08) 0%, transparent 70%);
}

/* Card icon */
.card-icon {
  width: 42px; height: 42px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  background: rgba(207, 253, 0, 0.08);
  color: var(--accent-color);
  border: 1px solid rgba(207, 253, 0, 0.12);
  transition: all var(--transition-medium);
}

.card:hover .card-icon {
  box-shadow: 0 0 16px rgba(207, 253, 0, 0.12);
}

.card-icon.blue {
  background: rgba(207, 253, 0, 0.06);
  color: var(--accent-color);
  border-color: rgba(207, 253, 0, 0.12);
}

.card-icon.green {
  background: rgba(207, 253, 0, 0.08);
  color: var(--accent-color);
  border-color: rgba(207, 253, 0, 0.14);
}

.card-icon.purple {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.08);
}

.card-icon.orange {
  background: rgba(207, 253, 0, 0.06);
  color: var(--accent-color);
  border-color: rgba(207, 253, 0, 0.1);
}

.card-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
}

.card-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
  letter-spacing: -1px;
  line-height: 1.15;
  text-shadow: 0 0 40px rgba(207, 253, 0, 0.2);
}

.card-trend {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 0.5rem;
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  background: rgba(207, 253, 0, 0.08);
  color: var(--accent-color);
  border: 1px solid rgba(207, 253, 0, 0.15);
}

.card-trend.down {
  background: rgba(248, 113, 113, 0.1);
  color: var(--error-color);
  border-color: rgba(248, 113, 113, 0.15);
}

/* List Card */
.list-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.list-card-header {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.list-card ul {
  list-style: none;
  padding: 0;
}

.list-card li {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background var(--transition-fast);
}

.list-card li:last-child { border-bottom: none; }

.list-card li:hover {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--border-radius-sm);
}

/* ============================================
   TABLE STYLES — PREMIUM
   ============================================ */
.table-container {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  margin: 0 2rem 1.5rem;
  padding: 1.5rem;
  overflow-x: auto;
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.table-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 25%, rgba(207, 253, 0, 0.2) 50%, transparent 75%);
}

/* Section-grid inside table-container */
.table-container.section-grid {
  margin: 0 2rem 1.5rem;
  padding: 1.5rem;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.table-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  border-bottom: none;
}

.table-header input[type="text"] {
  padding: 0.55rem 1rem 0.55rem 2.2rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  background-color: rgba(255, 255, 255, 0.03);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(207,253,0,0.5)' stroke-width='2'%3E%3Cpath d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 10px center;
  background-size: 16px;
  color: var(--text-primary);
  font-size: 0.85rem;
  min-width: 200px;
  transition: all var(--transition-medium);
}

.table-header input[type="text"]:focus {
  outline: none;
  border-color: rgba(207, 253, 0, 0.35);
  background-color: rgba(207, 253, 0, 0.03);
  box-shadow: 0 0 20px rgba(207, 253, 0, 0.08);
}

/* Styled Table */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
  table-layout: fixed;
}

.styled-table th,
.styled-table td {
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.styled-table td {
  padding: 12px 14px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.styled-table thead tr {
  border-bottom: 1px solid rgba(207, 253, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.styled-table th {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 14px;
}

.styled-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: all var(--transition-fast);
}

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

.styled-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.012);
}

.styled-table tbody tr:hover {
  background: rgba(207, 253, 0, 0.03);
}

/* User highlight row */
.styled-table tbody tr.user-highlight {
  background: rgba(207, 253, 0, 0.06) !important;
  border-left: 3px solid var(--accent-color);
}

.styled-table tbody tr.user-highlight td {
  color: var(--text-primary);
}

/* Table Action Buttons */
.table-action-icon {
  color: var(--accent-color);
  text-decoration: none;
  font-size: 1.15rem;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.table-action-icon:hover {
  color: var(--accent-hover);
  transform: scale(1.2);
}

.table-action-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
}

/* Rank Badge */
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px; height: 28px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.78rem;
}

.rank-badge.gold {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 193, 7, 0.1));
  color: var(--gold);
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.15);
}

.rank-badge.silver {
  background: linear-gradient(135deg, rgba(192, 192, 192, 0.15), rgba(192, 192, 192, 0.08));
  color: var(--silver);
  border: 1px solid rgba(192, 192, 192, 0.25);
}

.rank-badge.bronze {
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.15), rgba(205, 127, 50, 0.08));
  color: var(--bronze);
  border: 1px solid rgba(205, 127, 50, 0.25);
}

.rank-badge.default {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.rank-badge.current { transform: scale(1.15); }

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.status-badge.success {
  background: rgba(207, 253, 0, 0.08);
  color: var(--accent-color);
  border: 1px solid rgba(207, 253, 0, 0.18);
}

.status-badge.error {
  background: rgba(248, 113, 113, 0.1);
  color: var(--error-color);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

/* Table Footer / Pagination */
.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.pagination button {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all var(--transition-medium);
  font-size: 0.85rem;
}

.pagination button:hover:not(:disabled) {
  background: rgba(207, 253, 0, 0.08);
  border-color: var(--border-accent);
  color: var(--accent-color);
}

.pagination button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ============================================
   FORM ELEMENTS — PREMIUM
   ============================================ */
.modern-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all var(--transition-medium);
}

.modern-input:focus {
  outline: none;
  border-color: rgba(207, 253, 0, 0.35);
  background: rgba(207, 253, 0, 0.03);
  box-shadow: 0 0 20px rgba(207, 253, 0, 0.08);
}

/* Buttons */
.btn-primary {
  background: var(--accent-color);
  color: var(--primary-bg);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.15) 50%, transparent 60%);
  transition: all 0.5s ease;
  opacity: 0;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(207, 253, 0, 0.3);
}

.btn-primary:hover::after { opacity: 1; left: 100%; }

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-md);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-medium);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
}

/* ============================================
   MODALS — GLASS OVERLAY
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeSlideUp 0.2s ease;
}

/* Generic .modal class — used by setUsernameModal, addItemModal, etc. */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.modal.visible {
  display: flex !important;
  justify-content: center;
  align-items: center;
  opacity: 1;
  visibility: visible;
}

/* For modals opened via JS display:block */
.modal[style*="display: block"],
.modal[style*="display:block"] {
  opacity: 1;
  visibility: visible;
  display: flex !important;
  justify-content: center;
  align-items: center;
}

.modal .modal-content {
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-xl);
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  color: var(--text-primary);
  position: relative;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  animation: modalGlow 4s ease-in-out infinite;
  margin: 0;
}

.modal .modal-content h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  font-size: 1.35rem;
  font-weight: 600;
}

.modal .close-button {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-medium);
}

.modal .close-button:hover {
  background: var(--accent-glow);
  border-color: rgba(207, 253, 0, 0.4);
  color: var(--accent-color);
  transform: rotate(90deg);
}

.modal label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal input[type="text"],
.modal input[type="number"],
.modal textarea,
.modal select {
  width: 100%;
  padding: 0.875rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border-radius: var(--border-radius-md);
  font-size: 0.9rem;
  box-sizing: border-box;
  transition: all var(--transition-medium);
}

.modal input:focus,
.modal textarea:focus,
.modal select:focus {
  outline: none;
  border-color: rgba(207, 253, 0, 0.4);
  background: rgba(207, 253, 0, 0.03);
  box-shadow: 0 0 15px rgba(207, 253, 0, 0.1);
}

.modal textarea {
  resize: vertical;
  min-height: 80px;
}

.modal-buttons {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.modal-buttons button.primary {
  background: var(--accent-color);
  color: var(--primary-bg);
  border: none;
  padding: 0.875rem 2rem;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-medium);
}

.modal-buttons button.primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(207, 253, 0, 0.25);
}

.modal-buttons button.secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.875rem 1.5rem;
  border-radius: var(--border-radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-medium);
}

.modal-buttons button.secondary:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.03);
}

#countryRequiredModal.visible { z-index: 9999; }

.modal-content {
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-xl);
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  animation: modalGlow 4s ease-in-out infinite;
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(207, 253, 0, 0.5), rgba(207, 253, 0, 0.9), rgba(207, 253, 0, 0.5), transparent);
  background-size: 200% 100%;
  animation: lineShimmer 3s linear infinite;
  border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
}

.close-button {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-medium);
}

.close-button:hover {
  background: var(--accent-glow);
  border-color: rgba(207, 253, 0, 0.4);
  color: var(--accent-color);
  transform: rotate(90deg);
}

.modal-field label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.modal-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all var(--transition-medium);
  margin-bottom: 1rem;
}

.modal-input:focus {
  outline: none;
  border-color: rgba(207, 253, 0, 0.35);
  background: rgba(207, 253, 0, 0.03);
  box-shadow: 0 0 20px rgba(207, 253, 0, 0.08);
}

/* ============================================
   MOBILE BOTTOM NAV
   ============================================ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(8, 8, 8, 0.60);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-top: 1px solid var(--border-color);
  z-index: 2000;
  justify-content: space-around;
  padding: 0.5rem 0 0.5rem;
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

.mobile-nav-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-medium);
  position: relative;
}

.mobile-nav-button i { font-size: 1.35rem; transition: all var(--transition-medium); }

.mobile-nav-button.active {
  color: var(--accent-color);
}

.mobile-nav-button.active::after {
  content: '';
  position: absolute;
  top: -0.5rem; left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 3px;
  background: var(--accent-color);
  border-radius: 0 0 3px 3px;
  box-shadow: 0 2px 10px rgba(207, 253, 0, 0.4);
}

.mobile-nav-button.active i {
  filter: drop-shadow(0 0 8px rgba(207, 253, 0, 0.4));
}

/* ============================================
   FACTORY CARDS
   ============================================ */
.factory-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 1.25rem;
  transition: all var(--transition-medium);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.factory-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.factory-card h4 {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.factory-card ul {
  list-style: none;
  padding: 0;
}

.factory-card li {
  padding: 0.35rem 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.factory-item-name { flex-grow: 1; }

.factory-link-icon,
.factory-header-link-icon {
  color: var(--accent-color);
  text-decoration: none;
  transition: all var(--transition-fast);
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
}

.factory-link-icon:hover,
.factory-header-link-icon:hover {
  color: var(--accent-hover);
  transform: scale(1.15);
  filter: drop-shadow(0 0 6px rgba(207, 253, 0, 0.4));
}

/* ============================================
   GUIDE CARDS
   ============================================ */
.guide-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-medium);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.guide-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(207, 253, 0, 0.15), transparent);
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.guide-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

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

.guide-card > div { flex-grow: 1; }

.guide-card h4 {
  margin-top: 0;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.guide-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.5;
}

.guide-download-link {
  color: var(--accent-color);
  text-decoration: none;
  font-size: 1.5rem;
  padding: 10px;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 1rem;
  border: 1px solid transparent;
}

.guide-download-link:hover {
  background: var(--accent-glow);
  border-color: var(--border-accent);
  transform: scale(1.1);
}

/* Guide NEW badge */
.guide-badge-new {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(207, 253, 0, 0.15);
  color: var(--accent-color);
  border: 1px solid rgba(207, 253, 0, 0.25);
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* ============================================
   PODIUM — LEADERBOARD TOP 3
   ============================================ */
.podium-section {
  padding: 1.5rem 2rem;
}

.podium-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  align-items: end;
}

.podium-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-xl);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: all var(--transition-medium);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.podium-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  opacity: 0.6;
}

.podium-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

/* 1st Place */
.podium-card.first {
  order: 2;
  padding: 2.5rem 1.25rem;
  border-color: rgba(255, 215, 0, 0.2);
}

.podium-card.first::before {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.9;
  height: 3px;
}

.podium-card.first::after {
  content: '';
  position: absolute;
  top: -30%; left: 10%;
  width: 80%; height: 80%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.06) 0%, transparent 60%);
  pointer-events: none;
  animation: floatUp 6s ease-in-out infinite;
}

.podium-card.first .podium-rank {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 193, 7, 0.12));
  color: var(--gold);
  border-color: rgba(255, 215, 0, 0.35);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
  width: 52px; height: 52px;
  font-size: 1.3rem;
}

/* 2nd Place */
.podium-card.second { order: 1; }
.podium-card.second::before {
  background: linear-gradient(90deg, transparent, var(--silver), transparent);
}

.podium-card.second .podium-rank {
  background: linear-gradient(135deg, rgba(192, 192, 192, 0.18), rgba(192, 192, 192, 0.08));
  color: var(--silver);
  border-color: rgba(192, 192, 192, 0.28);
}

/* 3rd Place */
.podium-card.third { order: 3; }
.podium-card.third::before {
  background: linear-gradient(90deg, transparent, var(--bronze), transparent);
}

.podium-card.third .podium-rank {
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.18), rgba(205, 127, 50, 0.08));
  color: var(--bronze);
  border-color: rgba(205, 127, 50, 0.28);
}

.podium-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  border: 1px solid;
}

.podium-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(207, 253, 0, 0.15), rgba(207, 253, 0, 0.05));
  color: var(--accent-color);
  border: 1px solid rgba(207, 253, 0, 0.22);
}

.podium-card.first .podium-avatar {
  width: 60px; height: 60px;
  font-size: 1.35rem;
  border-color: rgba(255, 215, 0, 0.3);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(255, 215, 0, 0.04));
  color: var(--gold);
}

.podium-username {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.podium-revenue {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-color);
  text-shadow: 0 0 20px rgba(207, 253, 0, 0.2);
}

.podium-card.first .podium-revenue {
  font-size: 1.4rem;
  text-shadow: 0 0 30px rgba(207, 253, 0, 0.3);
}

.podium-crown {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.25rem;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
  animation: gentlePulse 3s ease-in-out infinite;
}

/* ============================================
   NOTIFICATIONS — PREMIUM
   ============================================ */
.notification-container {
  position: fixed;
  top: 1.5rem; right: 1.5rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.notification {
  background: rgba(10, 10, 10, 0.50);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 1rem 1.25rem;
  color: var(--text-primary);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.3s ease-out;
  max-width: 350px;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}

.notification.success { border-left: 3px solid var(--accent-color); }
.notification.error   { border-left: 3px solid var(--error-color); }
.notification.removing { animation: slideOut 0.3s ease-out forwards; }

/* Custom Notification (from program_auth.js) */
.custom-notification {
  background: rgba(10, 10, 10, 0.50);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 0.85rem 1.1rem;
  color: var(--text-primary);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin-bottom: 0.5rem;
  max-width: 360px;
}

.custom-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.custom-notification.removing {
  transform: translateY(-20px);
  opacity: 0;
}

.custom-notification.success { border-left: 3px solid var(--accent-color); }
.custom-notification.error   { border-left: 3px solid var(--error-color); }

.custom-notification-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.custom-notification.success .custom-notification-icon { color: var(--accent-color); }
.custom-notification.error .custom-notification-icon   { color: var(--error-color); }

.custom-notification-close {
  margin-left: auto;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

#notificationContainer {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 5000;
  display: flex;
  flex-direction: column;
}

/* ============================================
   PROFILE SPECIFIC
   ============================================ */
.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.profile-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(207, 253, 0, 0.18), rgba(207, 253, 0, 0.06));
  border: 2px solid rgba(207, 253, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-color);
  flex-shrink: 0;
  box-shadow: 0 0 25px rgba(207, 253, 0, 0.12);
}

.profile-info h2 {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.profile-info p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(207, 253, 0, 0.08);
  border: 1px solid rgba(207, 253, 0, 0.2);
  border-radius: 20px;
  padding: 0.3rem 0.75rem;
  font-size: 0.72rem;
  color: var(--accent-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Achievement badges */
.achievement-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.achievement-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border: 1px solid;
}

.achievement-badge.gold {
  background: rgba(255, 215, 0, 0.08);
  color: var(--gold);
  border-color: rgba(255, 215, 0, 0.2);
}

.achievement-badge.green {
  background: rgba(207, 253, 0, 0.08);
  color: var(--accent-color);
  border-color: rgba(207, 253, 0, 0.2);
}

.achievement-badge.blue {
  background: rgba(207, 253, 0, 0.06);
  color: var(--accent-color);
  border-color: rgba(207, 253, 0, 0.15);
}

.achievement-badge.purple {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Profile meta items */
.profile-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Circular Progress Ring */
.progress-ring-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.progress-ring-container .progress-value {
  position: absolute;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-color);
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 50px; height: 26px;
}

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

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  transition: all var(--transition-medium);
}

.toggle-slider::before {
  position: absolute;
  content: '';
  height: 20px; width: 20px;
  left: 3px; bottom: 3px;
  background: var(--text-primary);
  border-radius: 50%;
  transition: all var(--transition-medium);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--accent-color);
  box-shadow: 0 0 15px rgba(207, 253, 0, 0.3);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(24px);
  background: var(--primary-bg);
}

/* ============================================
   EMPTY STATES
   ============================================ */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
}

.empty-state-icon {
  font-size: 3.5rem;
  color: rgba(255, 255, 255, 0.06);
  margin-bottom: 1rem;
  display: block;
}

.empty-state h3 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

.empty-state .btn-primary { margin-top: 1.25rem; }

/* ============================================
   READING PROGRESS BAR (Reports)
   ============================================ */
.reading-progress {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  height: 3px;
  z-index: 200;
  background: transparent;
}

.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-color), #e8ff66);
  transition: width 0.1s linear;
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 10px rgba(207, 253, 0, 0.35);
}

/* ============================================
   ONBOARDING OVERLAY
   ============================================ */
.onboarding-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 8000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.onboarding-overlay.active {
  opacity: 1;
  visibility: visible;
}

.onboarding-card {
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid rgba(207, 253, 0, 0.15);
  border-radius: var(--border-radius-xl);
  padding: 3rem 2.5rem;
  max-width: 520px;
  width: 90%;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: cardEntrance 0.5s ease forwards;
}

.onboarding-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(207, 253, 0, 0.6), rgba(207, 253, 0, 1), rgba(207, 253, 0, 0.6), transparent);
  background-size: 200% 100%;
  animation: shimmerBorder 2.5s linear infinite;
}

.onboarding-card::after {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(207, 253, 0, 0.06) 0%, transparent 55%);
  pointer-events: none;
}

.onboarding-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: block;
  filter: drop-shadow(0 0 20px rgba(207, 253, 0, 0.3));
}

.onboarding-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.onboarding-title .accent {
  background: linear-gradient(135deg, var(--accent-color), #e8ff66);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.onboarding-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.onboarding-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
  text-align: left;
}

.onboarding-feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: all var(--transition-medium);
}

.onboarding-feature:hover {
  border-color: var(--border-accent);
  background: rgba(207, 253, 0, 0.03);
}

.onboarding-feature i {
  color: var(--accent-color);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.onboarding-steps {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.onboarding-step-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: all var(--transition-medium);
}

.onboarding-step-dot.active {
  background: var(--accent-color);
  box-shadow: 0 0 10px rgba(207, 253, 0, 0.4);
  width: 24px;
  border-radius: 4px;
}

.onboarding-btn {
  background: var(--accent-color);
  color: var(--primary-bg);
  border: none;
  padding: 0.875rem 2.5rem;
  border-radius: var(--border-radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-medium);
  position: relative;
  z-index: 1;
}

.onboarding-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 35px rgba(207, 253, 0, 0.35);
}

.onboarding-skip {
  display: block;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: color var(--transition-fast);
  background: none;
  border: none;
}

.onboarding-skip:hover { color: var(--text-secondary); }

/* Onboarding Step Content Transitions */
.onboarding-step-content {
  display: none;
  animation: fadeSlideUp 0.4s ease forwards;
}

.onboarding-step-content.active {
  display: block;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-accent { color: var(--accent-color); }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }

.text-gradient {
  background: linear-gradient(135deg, var(--accent-color), #e8ff66);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.hidden  { display: none !important; }
.visible { display: block !important; }

/* ============================================
   SIDEBAR LOGO
   ============================================ */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 0.25rem;
  text-decoration: none;
  position: relative;
}

.sidebar-logo img {
  width: 32px;
  height: 32px;
  filter: brightness(0) saturate(100%) invert(85%) sepia(80%) saturate(600%) hue-rotate(12deg);
}

.sidebar-logo span {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

/* ============================================
   SECTION HEADER COMPONENT
   ============================================ */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 2rem 0;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.section-header h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-header h2::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1.15em;
  background: var(--accent-color);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(207, 253, 0, 0.3);
}

.section-header.sub-header {
  padding-top: 0.25rem;
  margin-bottom: 0.35rem;
}

.section-header.sub-header h2 {
  font-size: 0.92rem;
}

.section-header .section-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 400;
}

.section-header .section-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ============================================
   QUICK ACTIONS BAR
   ============================================ */
.quick-actions-bar {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 2rem 0;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.quick-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-medium);
  white-space: nowrap;
  flex-shrink: 0;
}

.quick-action-btn i {
  font-size: 1.1rem;
  color: var(--accent-color);
  transition: all var(--transition-medium);
}

.quick-action-btn:hover {
  background: rgba(207, 253, 0, 0.06);
  border-color: var(--border-accent);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.quick-action-btn:hover i {
  transform: scale(1.15);
}

/* ============================================
   ACCORDION COMPONENT
   ============================================ */
.accordion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 0.75rem;
  padding: 0 2rem;
  margin-bottom: 1.5rem;
  align-items: start;
}

.accordion {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: all var(--transition-medium);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.accordion:hover {
  border-color: var(--border-accent);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.15rem;
  cursor: pointer;
  user-select: none;
  transition: background var(--transition-fast);
  gap: 0.75rem;
}

.accordion-header:hover {
  background: rgba(255, 255, 255, 0.02);
}

.accordion-header h4 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.accordion-header .accordion-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.accordion-header .accordion-chevron {
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: transform var(--transition-medium);
  flex-shrink: 0;
}

.accordion.open .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
  padding: 0 1.15rem;
}

.accordion.open .accordion-body {
  max-height: 500px;
  padding: 0 1.15rem 1rem;
}

.accordion-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.accordion-body li {
  padding: 0.4rem 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.accordion-body li:last-child { border-bottom: none; }

/* ============================================
   FLOATING ACTION BUTTON
   ============================================ */
.fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-color);
  color: var(--primary-bg);
  border: none;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 500;
  box-shadow: 0 8px 30px rgba(207, 253, 0, 0.3), 0 0 60px rgba(207, 253, 0, 0.1);
  transition: all var(--transition-medium);
  animation: floatUp 4s ease-in-out infinite;
}

.fab:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 40px rgba(207, 253, 0, 0.4), 0 0 80px rgba(207, 253, 0, 0.15);
}

.fab:active {
  transform: translateY(-2px) scale(0.98);
}

/* ============================================
   BADGE & PILL
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.4;
}

.badge.accent {
  background: rgba(207, 253, 0, 0.12);
  color: var(--accent-color);
  border: 1px solid rgba(207, 253, 0, 0.2);
}

.badge.success {
  background: rgba(207, 253, 0, 0.08);
  color: var(--accent-color);
  border: 1px solid rgba(207, 253, 0, 0.18);
}

.badge.error {
  background: rgba(248, 113, 113, 0.1);
  color: var(--error-color);
  border: 1px solid rgba(248, 113, 113, 0.18);
}

.badge.info {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge.new {
  background: rgba(207, 253, 0, 0.15);
  color: var(--accent-color);
  border: 1px solid rgba(207, 253, 0, 0.25);
  animation: gentlePulse 3s ease-in-out infinite;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  transition: all var(--transition-medium);
}

.pill:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-hover);
}

.pill.active {
  background: rgba(207, 253, 0, 0.1);
  color: var(--accent-color);
  border-color: rgba(207, 253, 0, 0.25);
}

/* ============================================
   SEGMENTED CONTROL (Period Tabs)
   ============================================ */
.segmented-control {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 3px;
  gap: 2px;
}

.segmented-control button {
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: calc(var(--border-radius-md) - 2px);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-medium);
}

.segmented-control button:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.segmented-control button.active {
  background: rgba(207, 253, 0, 0.12);
  color: var(--accent-color);
  font-weight: 600;
  box-shadow: 0 0 12px rgba(207, 253, 0, 0.1);
}

/* ============================================
   REPORT CARD
   ============================================ */
.report-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  transition: all var(--transition-medium);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

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

.report-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), 0 0 30px rgba(207, 253, 0, 0.04);
}

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

.report-card.active {
  border-color: var(--border-accent);
  background: linear-gradient(160deg, rgba(207, 253, 0, 0.04) 0%, rgba(10, 10, 10, 0.50) 100%);
}

.report-card .report-card-type {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.report-card .report-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.report-card .report-card-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ============================================
   REPORT NAVIGATION
   ============================================ */
.report-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.report-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  color: var(--text-secondary);
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-medium);
}

.report-nav-btn:hover {
  background: rgba(207, 253, 0, 0.06);
  border-color: var(--border-accent);
  color: var(--accent-color);
}

.report-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ============================================
   CARD NOISE TEXTURE OVERLAY
   ============================================ */
.card-noise::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   ACTIVITY FEED
   ============================================ */
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.activity-feed-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background var(--transition-fast);
}

.activity-feed-item:last-child { border-bottom: none; }

.activity-feed-item:hover {
  background: rgba(255, 255, 255, 0.015);
  border-radius: var(--border-radius-sm);
}

.activity-feed-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  background: rgba(207, 253, 0, 0.08);
  color: var(--accent-color);
  border: 1px solid rgba(207, 253, 0, 0.12);
}

.activity-feed-content {
  flex: 1;
  min-width: 0;
}

.activity-feed-content .feed-title {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.activity-feed-content .feed-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ============================================
   PROGRESS BAR (Horizontal)
   ============================================ */
.progress-bar-wrapper {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-color), #e8ff66);
  border-radius: 3px;
  transition: width 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 0 8px rgba(207, 253, 0, 0.25);
}

/* ============================================
   SETTINGS TABS
   ============================================ */
.settings-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
  gap: 0;
}

.settings-tab {
  padding: 0.6rem 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-medium);
}

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

.settings-tab.active {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

/* ============================================
   IMAGE UPLOAD AREA
   ============================================ */
.upload-area {
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 1.75rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-medium);
  background: rgba(255, 255, 255, 0.01);
}

.upload-area:hover {
  border-color: var(--border-accent);
  background: rgba(207, 253, 0, 0.02);
}

.upload-area.has-file {
  border-color: var(--accent-color);
  border-style: solid;
}

.upload-area i {
  font-size: 2rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.5rem;
}

.upload-area p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.upload-preview {
  max-width: 100%;
  max-height: 180px;
  border-radius: var(--border-radius-sm);
  margin-top: 0.75rem;
  object-fit: contain;
}

/* ============================================
   USER MINI-CARD (Bottom of sidebar)
   ============================================ */
.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  margin: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-medium);
  text-decoration: none;
}

.sidebar-user-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-hover);
}

.sidebar-user-card .user-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(207, 253, 0, 0.15), rgba(207, 253, 0, 0.05));
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

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

.sidebar-user-card .user-info-sm .user-name-sm {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-card .user-info-sm .user-role-sm {
  font-size: 0.65rem;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}


/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --sidebar-width: 72px;
  }

  .sidebar {
    width: 72px;
    padding: 0;
  }

  .sidebar::before { display: none; }
  .sidebar-label { display: none; }

  .sidebar-logo span { display: none; }
  .sidebar-logo { justify-content: center; padding: 0.75rem; }

  .sidebar-welcome-box {
    width: 44px; height: 44px;
    padding: 0;
    margin: 0.5rem auto;
    justify-content: center;
    border-radius: var(--border-radius-md);
  }
  .sidebar-welcome-box::after { display: none; }
  .sidebar-welcome-box .welcome-text,
  .sidebar-welcome-box span { display: none; }
  .sidebar-welcome-box i { font-size: 1.2rem; }

  .sidebar a.nav-link {
    width: 44px; height: 44px;
    padding: 0;
    margin: 3px auto;
    justify-content: center;
    border-radius: var(--border-radius-md);
    position: relative;
  }
  .sidebar a.nav-link span { display: none; }
  .sidebar a.nav-link i { margin: 0; }

  /* Tooltip on hover for collapsed sidebar */
  .sidebar a.nav-link::after {
    content: attr(title);
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 10, 10, 0.55);
    color: var(--text-primary);
    padding: 0.4rem 0.75rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.78rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    border: 1px solid var(--border-color);
    z-index: 1001;
  }
  .sidebar a.nav-link:hover::after {
    opacity: 1;
  }

  .sidebar a.nav-link.active::before {
    left: 0;
    height: 20px;
  }

  .sidebar .divider {
    width: 28px;
    margin: 0.5rem auto;
  }

  .main-content-area {
    margin-left: 72px;
    width: calc(100% - 72px);
  }

  .stats-grid,
  .section-grid.stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .podium-grid { gap: 0.75rem; }
  .podium-card { padding: 1.25rem 0.75rem; }

  .reading-progress {
    left: 72px;
    width: calc(100% - 72px);
  }

  .quick-actions-bar {
    flex-wrap: wrap;
  }

  /* Sidebar user card - collapsed */
  .sidebar-user-card {
    padding: 0.5rem;
    margin: 0.5rem auto;
    width: 44px;
    justify-content: center;
    border-radius: var(--border-radius-md);
  }
  .sidebar-user-card .user-info-sm { display: none; }
  .sidebar-user-card .user-avatar-sm { width: 28px; height: 28px; font-size: 0.65rem; }
}

@media (max-width: 768px) {
  /* Sidebar fully hidden on mobile */
  .sidebar {
    display: none;
  }

  /* Main content takes full width */
  .main-content-area {
    margin-left: 0;
    width: 100%;
  }

  .header-container { display: none; }

  .section-grid { padding: 1rem; }

  .stats-grid,
  .section-grid.stats-grid {
    grid-template-columns: 1fr;
  }

  .table-container {
    margin: 0 0.75rem 1rem;
    padding: 1rem;
    border-radius: var(--border-radius-md);
  }

  .styled-table { min-width: 600px; table-layout: auto; }

  .styled-table th,
  .styled-table td {
    padding: 10px 8px;
    font-size: 0.8rem;
  }

  /* Podium responsive */
  .podium-section { padding: 1rem; }

  .podium-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .podium-card.first,
  .podium-card.second,
  .podium-card.third {
    order: unset;
    padding: 1.25rem 1rem;
  }

  .podium-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
  }

  .podium-rank { margin-bottom: 0; }
  .podium-avatar { margin: 0; }
  .podium-crown { display: none; }

  /* Mobile bottom nav shows */
  .mobile-bottom-nav { display: flex; }
  .main-content-area { padding-bottom: 90px; }

  /* Hero */
  .hero-welcome { padding: 1rem; }
  .hero-card { padding: 1.5rem; }
  .hero-greeting { font-size: 1.3rem; }

  /* Reading progress — full width on mobile */
  .reading-progress {
    left: 0;
    width: 100%;
  }

  /* Quick actions */
  .quick-actions-bar {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .quick-action-btn { font-size: 0.78rem; padding: 0.5rem 0.75rem; }

  /* Accordion */
  .accordion-grid { grid-template-columns: 1fr !important; }

  /* FAB */
  .fab { bottom: 80px; right: 1rem; }

  /* Onboarding responsive */
  .onboarding-card { padding: 2rem 1.5rem; }
  .onboarding-features { grid-template-columns: 1fr; }
  .onboarding-title { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .card { padding: 1.25rem; }
  .card-value { font-size: 1.75rem; }

  .modal-content {
    padding: 1.5rem;
    margin: 1rem;
    max-height: calc(100vh - 2rem);
  }

  .notification-container { left: 1rem; right: 1rem; }
  .notification { max-width: 100%; }

  .onboarding-card { padding: 1.75rem 1.25rem; }
  .onboarding-icon { font-size: 2.5rem; }
  .onboarding-title { font-size: 1.15rem; }
  .onboarding-desc { font-size: 0.85rem; }
}
