@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

/* ========================================
   COLOR SYSTEM - OzonicDigital inspired
======================================== */
:root {
  /* Primary Colors */
  --primary: #00d4ff;
  --primary-dark: #00a8cc;
  --primary-light: #5ce1ff;
  
  /* Background Colors */
  --bg-dark: #0a0e27;
  --bg-darker: #060919;
  --bg-card: #131832;
  --bg-card-hover: #1a2141;
  
  /* Accent Colors */
  --accent: #00d4ff;
  --accent-secondary: #7b2cbf;
  --success: #00ff88;
  --warning: #ffb800;
  --danger: #ff3366;
  --info: #00d4ff;
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #a0aec0;
  --text-muted: #718096;
  --text-dark: #2d3748;
  
  /* Border & Divider */
  --border: #1e2847;
  --border-light: #2a3a5c;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 212, 255, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 212, 255, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 212, 255, 0.2);
  --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
  
  /* Fonts */
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Orbitron', 'Poppins', sans-serif;
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   BASE STYLES
======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(123, 44, 191, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   TYPOGRAPHY
======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  letter-spacing: 0.5px;
}

h1 {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 2rem;
  color: var(--text-primary);
}

h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
}

h4 {
  font-size: 1.25rem;
  color: var(--text-primary);
}

p {
  margin-bottom: var(--space-md);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-light);
  text-decoration: none;
}

/* ========================================
   LAYOUT
======================================== */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-lg);
}

.container-fluid {
  width: 100%;
  padding: var(--space-lg);
}

/* ========================================
   HEADER
======================================== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0;
  margin-bottom: var(--space-xl);
  border-bottom: 2px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.logo {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-secondary) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: white;
  box-shadow: 
    0 0 20px rgba(0, 212, 255, 0.6),
    0 0 40px rgba(0, 212, 255, 0.4),
    inset 0 0 20px rgba(255, 255, 255, 0.2);
  animation: glow-logo 3s ease-in-out infinite;
}

@keyframes glow-logo {
  0%, 100% {
    box-shadow: 
      0 0 20px rgba(0, 212, 255, 0.6),
      0 0 40px rgba(0, 212, 255, 0.4),
      inset 0 0 20px rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 
      0 0 30px rgba(0, 212, 255, 0.8),
      0 0 60px rgba(0, 212, 255, 0.6),
      inset 0 0 30px rgba(255, 255, 255, 0.3);
  }
}

.name {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ========================================
   TOPBAR (Member Navigation)
======================================== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
  box-shadow: 
    0 0 15px rgba(0, 212, 255, 0.1),
    inset 0 0 20px rgba(0, 212, 255, 0.03);
  position: relative;
}

.topbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--primary) 50%, 
    transparent
  );
  opacity: 0.5;
}

.topbar a {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.topbar a:hover {
  color: var(--primary-light);
  background: rgba(0, 212, 255, 0.15);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

/* ========================================
   CARDS
======================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(123, 44, 191, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
}

.card:hover::before {
  opacity: 1;
}

.card.highlight {
  border-color: var(--primary);
  box-shadow: 
    0 0 20px rgba(0, 212, 255, 0.4),
    0 0 40px rgba(0, 212, 255, 0.2);
  animation: glow-card 2s ease-in-out infinite;
}

@keyframes glow-card {
  0%, 100% {
    box-shadow: 
      0 0 20px rgba(0, 212, 255, 0.4),
      0 0 40px rgba(0, 212, 255, 0.2);
  }
  50% {
    box-shadow: 
      0 0 30px rgba(0, 212, 255, 0.6),
      0 0 60px rgba(0, 212, 255, 0.3);
  }
}

/* KPI Cards */
.card.kpi {
  text-align: center;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 0 15px rgba(0, 212, 255, 0.15),
    inset 0 0 30px rgba(0, 212, 255, 0.05);
}

.card.kpi::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}

.card.kpi:hover {
  box-shadow: 
    0 0 25px rgba(0, 212, 255, 0.3),
    inset 0 0 30px rgba(0, 212, 255, 0.1);
  transform: translateY(-2px);
}

.card.kpi .small {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.card.kpi .v {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.7));
}

/* Tile variant */
.tile {
  padding: var(--space-md);
}

.tile .title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--border);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.tile .kv {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

/* ========================================
   BUTTONS
======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: 2px solid var(--primary);
  color: #0a0e27;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 
    0 0 20px rgba(0, 212, 255, 0.5),
    0 0 40px rgba(0, 212, 255, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  animation: glow-primary 2s ease-in-out infinite;
}

@keyframes glow-primary {
  0%, 100% {
    box-shadow: 
      0 0 20px rgba(0, 212, 255, 0.5),
      0 0 40px rgba(0, 212, 255, 0.3),
      inset 0 0 20px rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: 
      0 0 30px rgba(0, 212, 255, 0.7),
      0 0 60px rgba(0, 212, 255, 0.5),
      inset 0 0 20px rgba(255, 255, 255, 0.2);
  }
}

.btn.primary:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  color: #0a0e27;
  box-shadow: 
    0 0 30px rgba(0, 212, 255, 0.8),
    0 0 60px rgba(0, 212, 255, 0.6),
    0 4px 20px rgba(0, 212, 255, 0.5);
  transform: translateY(-3px);
}

.btn.success {
  background: linear-gradient(135deg, var(--success) 0%, #00cc70 100%);
  border: 2px solid var(--success);
  color: #0a0e27;
  font-weight: 700;
  box-shadow: 
    0 0 20px rgba(0, 255, 136, 0.5),
    0 0 40px rgba(0, 255, 136, 0.3);
}

.btn.success:hover {
  background: linear-gradient(135deg, #00ff99 0%, var(--success) 100%);
  color: #0a0e27;
  box-shadow: 
    0 0 30px rgba(0, 255, 136, 0.7),
    0 0 60px rgba(0, 255, 136, 0.5);
}

.btn.warning {
  background: linear-gradient(135deg, var(--warning) 0%, #e6a800 100%);
  border: 2px solid var(--warning);
  color: #0a0e27;
  font-weight: 700;
  box-shadow: 
    0 0 20px rgba(255, 184, 0, 0.5),
    0 0 40px rgba(255, 184, 0, 0.3);
}

.btn.warning:hover {
  background: linear-gradient(135deg, #ffc933 0%, var(--warning) 100%);
  color: #0a0e27;
  box-shadow: 
    0 0 30px rgba(255, 184, 0, 0.7),
    0 0 60px rgba(255, 184, 0, 0.5);
}

.btn.danger {
  background: linear-gradient(135deg, var(--danger) 0%, #e62e5c 100%);
  border: 2px solid var(--danger);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 
    0 0 20px rgba(255, 51, 102, 0.5),
    0 0 40px rgba(255, 51, 102, 0.3);
}

.btn.danger:hover {
  background: linear-gradient(135deg, #ff5588 0%, var(--danger) 100%);
  color: #ffffff;
  box-shadow: 
    0 0 30px rgba(255, 51, 102, 0.7),
    0 0 60px rgba(255, 51, 102, 0.5);
}

.btn.alt {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  box-shadow: 
    0 0 10px rgba(0, 212, 255, 0.3),
    inset 0 0 10px rgba(0, 212, 255, 0.1);
}

.btn.alt:hover {
  background: rgba(0, 212, 255, 0.15);
  color: var(--primary-light);
  box-shadow: 
    0 0 20px rgba(0, 212, 255, 0.6),
    0 0 40px rgba(0, 212, 255, 0.4),
    inset 0 0 20px rgba(0, 212, 255, 0.2);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* ========================================
   FORMS
======================================== */
.input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: var(--bg-darker);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  outline: none;
}

.input:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 
    0 0 0 3px rgba(0, 212, 255, 0.15),
    0 0 20px rgba(0, 212, 255, 0.3),
    inset 0 0 10px rgba(0, 212, 255, 0.05);
}

.input:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  margin-top: var(--space-md);
}

label:first-child {
  margin-top: 0;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

/* ========================================
   GRID LAYOUTS
======================================== */
.grid {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

/* ========================================
   STATS & ICONS
======================================== */
.stats {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.icon {
  font-size: 1.125rem;
  line-height: 1;
}

.icon-views::before {
  content: '👁️';
}

.icon-clicks::before {
  content: '🖱️';
}

.icon-report::before {
  content: '🚫';
}

.ad-stats {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm);
  background: rgba(0, 212, 255, 0.05);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  margin-top: var(--space-sm);
}

.ad-stats span {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-secondary);
}

.ad-stats .report-btn {
  margin-left: auto;
  padding: 4px 8px;
  font-size: 0.75rem;
  background: rgba(255, 51, 102, 0.1);
  border-color: var(--danger);
  color: var(--danger);
}

.ad-stats .report-btn:hover {
  background: rgba(255, 51, 102, 0.2);
}

/* ========================================
   BADGES & TAGS
======================================== */
.badge,
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-full);
  background: rgba(0, 212, 255, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(0, 212, 255, 0.4);
  box-shadow: 
    0 0 10px rgba(0, 212, 255, 0.3),
    inset 0 0 10px rgba(0, 212, 255, 0.1);
}

.badge.success {
  background: rgba(0, 255, 136, 0.15);
  color: #00ff99;
  border-color: rgba(0, 255, 136, 0.4);
  box-shadow: 
    0 0 10px rgba(0, 255, 136, 0.3),
    inset 0 0 10px rgba(0, 255, 136, 0.1);
}

.badge.warning {
  background: rgba(255, 184, 0, 0.15);
  color: #ffc933;
  border-color: rgba(255, 184, 0, 0.4);
  box-shadow: 
    0 0 10px rgba(255, 184, 0, 0.3),
    inset 0 0 10px rgba(255, 184, 0, 0.1);
}

.badge.danger {
  background: rgba(255, 51, 102, 0.15);
  color: #ff5588;
  border-color: rgba(255, 51, 102, 0.4);
  box-shadow: 
    0 0 10px rgba(255, 51, 102, 0.3),
    inset 0 0 10px rgba(255, 51, 102, 0.1);
}

/* ========================================
   MESSAGES
======================================== */
.msg {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  border-left: 4px solid var(--primary);
  background: rgba(0, 212, 255, 0.1);
  color: var(--text-primary);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.msg.ok,
.msg.success {
  border-left-color: var(--success);
  background: rgba(0, 255, 136, 0.1);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.msg.err,
.msg.error,
.msg.danger {
  border-left-color: var(--danger);
  background: rgba(255, 51, 102, 0.1);
  box-shadow: 0 0 20px rgba(255, 51, 102, 0.2);
}

.msg.warn,
.msg.warning {
  border-left-color: var(--warning);
  background: rgba(255, 184, 0, 0.1);
  box-shadow: 0 0 20px rgba(255, 184, 0, 0.2);
}

/* ========================================
   TABLES
======================================== */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-darker);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.table th {
  padding: var(--space-md);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
  color: var(--primary);
  background: var(--bg-card);
  border-bottom: 2px solid var(--border);
}

.table td {
  padding: var(--space-md);
  font-size: 0.875rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover td {
  background: rgba(0, 212, 255, 0.03);
}

/* ========================================
   UTILITY CLASSES
======================================== */
.small {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.muted {
  color: var(--text-muted);
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--space-sm); }
.p-2 { padding: var(--space-md); }
.p-3 { padding: var(--space-lg); }
.p-4 { padding: var(--space-xl); }

/* ========================================
   HERO SECTION
======================================== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  padding: var(--space-2xl) 0;
  margin-bottom: var(--space-2xl);
}

.cta h1 {
  font-size: 3rem;
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.cta p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ========================================
   PROFILE PAGE SPECIFIC
======================================== */
.profile-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-xl);
}

.profile-main {
  min-width: 0;
}

.profile-sidebar {
  position: sticky;
  top: var(--space-lg);
  align-self: start;
}

.user-info {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
}

.gravatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  border: 3px solid var(--primary);
  box-shadow: var(--shadow-glow);
  object-fit: cover;
}

.user-stats .small {
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--text-secondary);
}

.recent-mailings {
  margin-bottom: var(--space-lg);
}

.recent-mailings h4 {
  font-size: 1rem;
  margin-bottom: var(--space-md);
  color: var(--primary);
}

.mailing-item {
  padding: var(--space-sm);
  margin-bottom: var(--space-sm);
  background: var(--bg-darker);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.mailing-item:hover {
  border-color: var(--primary);
  background: var(--bg-card);
}

.mailing-item a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.mailing-item .small {
  font-size: 0.75rem;
}

/* ========================================
   BANNER DISPLAY
======================================== */
.banner-display {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  border: 1px solid var(--border);
}

.banner-display .gravatar {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.banner-display .banner-info {
  flex: 1;
  min-width: 0;
}

.banner-display .banner-info .small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.banner-display .banner-info strong {
  color: var(--primary);
}

.banner-display img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* ========================================
   FOOTER
======================================== */
.footer {
  margin-top: var(--space-2xl);
  padding: var(--space-xl) 0;
  border-top: 2px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
  
  .profile-sidebar {
    position: static;
  }
  
  .hero {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 768px) {
  .container {
    padding: var(--space-md);
  }
  
  .header {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .topbar > div {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
  }
  
  .cta h1 {
    font-size: 2rem;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   COPYBOX (for affiliate tools)
======================================== */
.copybox {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.copybox textarea {
  flex: 1;
  min-height: 60px;
}

.copybox .copybtn {
  flex-shrink: 0;
  margin-top: 0;
}

/* ========================================
   ACTIONS BAR
======================================== */
.actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.actions > * {
  flex-shrink: 0;
}

/* ========================================
   IFRAME (for topframe ads)
======================================== */
.adframe {
  width: 100%;
  height: 600px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: white;
  margin-top: var(--space-md);
}

/* ========================================
   TIMER
======================================== */
.timer {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

/* ========================================
   VOTE BUTTONS
======================================== */
.vote {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.vote button,
.vote a {
  font-size: 0.8125rem;
}
/* hotfix: let inputs inside cards/topbar be focusable/clickable */
.card::before,
.topbar::before { pointer-events: none !important; }