/* Modern Dark Mode Variables */
:root {
  --bg-primary: #0a0a0b;
  --bg-secondary: #111115;
  --bg-tertiary: #1a1a1f;
  --bg-card: #1e1e24;
  --bg-glass: rgba(30, 30, 36, 0.8);

  --border-primary: #2a2a32;
  --border-secondary: #3a3a42;
  --border-accent: #4a4a52;

  --text-primary: #ffffff;
  --text-secondary: #b4b4b8;
  --text-muted: #8a8a8f;
  --text-accent: #e0e0e4;

  --accent-primary: #00ff88;
  --accent-primary-hover: #00e67a;
  --accent-secondary: #0066ff;
  --accent-secondary-hover: #0052cc;

  --success: #00ff88;
  --success-bg: rgba(0, 255, 136, 0.1);
  --danger: #ff4757;
  --danger-bg: rgba(255, 71, 87, 0.1);
  --warning: #ffa502;
  --warning-bg: rgba(255, 165, 2, 0.1);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.6);

  --gradient-primary: linear-gradient(135deg, var(--accent-primary) 0%, #00cc6a 100%);
  --gradient-secondary: linear-gradient(135deg, var(--accent-secondary) 0%, #0052cc 100%);
  --gradient-card: linear-gradient(135deg, var(--bg-card) 0%, rgba(30, 30, 36, 0.95) 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);

  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 20px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Legacy variable mappings for compatibility */
  --border-color: var(--border-primary);
  --hover-bg: var(--bg-card);
  --success-color: var(--success);
  --danger-color: var(--danger);
  --light-grey: var(--text-muted);
}

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

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 14px;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Container */
.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px;
  min-height: 100vh;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
  padding: 16px 24px;
  background: #0a0a0b;
  border: none;
  border-radius: 0;
  backdrop-filter: none;
  box-shadow: none;
  border-bottom: 1px solid #1a1a1f;
}

/* Logo styling */
.logo {
  display: flex;
  align-items: center;
}

.logo-svg {
  height: 100px;
  width: auto;
  max-width: 500px;
}

/* Header Actions */
.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* Modern Buttons */
.btn-primary,
.btn-secondary {
  padding: 12px 24px;
  border: none;
  border-radius: var(--border-radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

.btn-primary {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: linear-gradient(135deg, #00d96c 0%, #00cc6a 100%);
  color: #0a0a0b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  filter: brightness(1.1);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #1a1a1f;
  color: #a3a3a3;
  border: 1px solid #2d2d33;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-secondary:hover {
  background: #242428;
  border-color: #404048;
  color: #ffffff;
}

.btn-secondary:active {
  transform: none;
}

/* Tab Navigation */
.tab-navigation {
  margin-bottom: 50px;
  padding: 20px 24px 0 24px;
  background: #0a0a0b;
  border-bottom: 1px solid #1a1a1f;
}

.tab-container {
  display: flex;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  backdrop-filter: none;
  box-shadow: none;
  overflow-x: auto;
  min-height: 48px;
  overflow: visible;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-radius: 0;
  color: #a3a3a3;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
  min-width: fit-content;
  border-bottom: 2px solid transparent;
}

.tab-btn:hover {
  color: #ffffff;
  background: transparent;
}

.tab-btn.active {
  color: #ffffff;
  background: transparent;
  border-bottom-color: #00d96c;
  box-shadow: none;
  transform: none;
  border-left: none;
  border-right: none;
  border-top: none;
}

.tab-btn.active .tab-icon {
  filter: none;
}

.tab-icon {
  font-size: 16px;
  line-height: 1;
}

.tab-label {
  font-weight: 600;
}

.coming-soon-badge {
  background: #0052cc;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  position: absolute;
  top: -8px;
  right: -8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  z-index: 10;
}

/* Tab Content */
.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

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

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

/* Setup Tab Styles */
.setup-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px;
}

.setup-intro {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  text-align: center;
}

.setup-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}

.setup-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  background: var(--gradient-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(20px);
  transition: var(--transition-normal);
}

.setup-step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-secondary);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  color: var(--bg-primary);
  border-radius: 50%;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.step-content h3 {
  color: var(--text-primary);
  margin-bottom: 8px;
  font-size: 18px;
}

.step-content p {
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.6;
}

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

.setup-resources h3 {
  margin-bottom: 24px;
  color: var(--text-primary);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.resource-card {
  padding: 24px;
  background: var(--gradient-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(20px);
  transition: var(--transition-normal);
}

.resource-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-primary);
}

.resource-card h4 {
  color: var(--text-primary);
  margin-bottom: 8px;
}

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

/* Premium Tab Styles */
.premium-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px;
}

.premium-hero {
  text-align: center;
  margin-bottom: 48px;
}

.coming-soon-banner {
  background: var(--gradient-secondary);
  padding: 32px;
  border-radius: var(--border-radius-xl);
  margin-top: 24px;
  box-shadow: var(--shadow-lg);
}

.coming-soon-banner h3 {
  font-size: 28px;
  margin-bottom: 12px;
  color: white;
}

.coming-soon-banner p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
}

.premium-features {
  margin-bottom: 48px;
}

.premium-features h3 {
  text-align: center;
  margin-bottom: 32px;
  font-size: 24px;
  color: var(--text-primary);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 32px 24px;
  background: var(--gradient-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius-lg);
  text-align: center;
  backdrop-filter: blur(20px);
  transition: var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-primary);
}

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

.feature-card h4 {
  color: var(--text-primary);
  margin-bottom: 12px;
  font-size: 18px;
}

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

.premium-teasers {
  margin-bottom: 48px;
}

.premium-teasers h3 {
  text-align: center;
  margin-bottom: 32px;
  font-size: 24px;
  color: var(--text-primary);
}

.strategy-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.strategy-preview {
  padding: 24px;
  background: var(--gradient-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(20px);
  transition: var(--transition-normal);
}

.strategy-preview:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-primary);
}

.strategy-preview h4 {
  color: var(--text-primary);
  margin-bottom: 16px;
  font-size: 18px;
}

.preview-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.preview-stats .stat {
  background: var(--success-bg);
  color: var(--success);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.strategy-preview p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.premium-cta {
  text-align: center;
  padding: 48px 32px;
  background: var(--gradient-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius-xl);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
}

.premium-cta h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.premium-cta p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 16px;
}

.waitlist-form {
  display: flex;
  gap: 12px;
  max-width: 400px;
  margin: 0 auto 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.waitlist-input {
  flex: 1;
  min-width: 250px;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius-md);
  color: var(--text-primary);
  font-size: 14px;
}

.waitlist-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.1);
}

.waitlist-btn {
  padding: 12px 24px;
  white-space: nowrap;
}

.waitlist-note {
  color: var(--text-muted);
  font-size: 12px;
}

/* Help Tab Styles */
.help-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px;
}

.help-search {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  max-width: 500px;
}

.help-search-input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius-md);
  color: var(--text-primary);
  font-size: 14px;
}

.help-search-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.1);
}

.help-sections {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.help-section {
  background: var(--gradient-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  backdrop-filter: blur(20px);
}

.help-section h3 {
  color: var(--text-primary);
  margin-bottom: 24px;
  font-size: 20px;
  border-bottom: 1px solid var(--border-primary);
  padding-bottom: 12px;
}

.help-topics {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.help-topic {
  background: var(--bg-tertiary);
  padding: 20px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-primary);
  transition: var(--transition-normal);
}

.help-topic:hover {
  border-color: var(--border-secondary);
  background: var(--bg-card);
}

.help-topic h4 {
  color: var(--text-primary);
  margin-bottom: 8px;
  font-size: 16px;
}

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

.support-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.support-option {
  background: var(--bg-tertiary);
  padding: 24px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-primary);
  text-align: center;
  transition: var(--transition-normal);
}

.support-option:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.support-option h4 {
  color: var(--text-primary);
  margin-bottom: 8px;
  font-size: 16px;
}

.support-option p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Responsive Design for Tabs */
@media (max-width: 768px) {
  .tab-container {
    padding: 4px;
    gap: 4px;
  }
  
  .tab-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .tab-label {
    display: none;
  }
  
  .coming-soon-badge {
    position: static;
    margin-left: 4px;
    font-size: 8px;
    padding: 1px 4px;
  }
  
  .setup-container,
  .premium-container,
  .help-container {
    padding: 16px;
  }
  
  .setup-step {
    flex-direction: column;
    text-align: center;
  }
  
  .step-number {
    margin-bottom: 12px;
  }
  
  .waitlist-form {
    flex-direction: column;
    align-items: stretch;
  }
  
  .waitlist-input {
    min-width: unset;
  }
  
  .feature-grid,
  .strategy-preview-grid,
  .support-options {
    grid-template-columns: 1fr;
  }
}

/* Portfolio Overview */
.portfolio-overview {
  margin-bottom: 32px;
}

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

.portfolio-overview h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.portfolio-message {
  color: var(--text-muted);
  font-style: italic;
  font-size: 14px;
  text-align: left;
  margin-top: 0px;
}

/* Portfolio Cards - Modern 6-card layout */
.portfolio-cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

@media (max-width: 1400px) {
    .portfolio-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .portfolio-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .portfolio-cards {
        grid-template-columns: 1fr;
    }
}

.portfolio-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  min-height: 140px;
}

.portfolio-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-accent);
}

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

.portfolio-card .card-icon {
  font-size: 28px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-secondary);
  border-radius: var(--border-radius-md);
  flex-shrink: 0;
  transition: all var(--transition-normal);
  margin-bottom: 16px;
}

.portfolio-card:hover .card-icon {
  background: var(--bg-card);
  border-color: var(--border-accent);
  transform: scale(1.05);
}

.portfolio-card-clickable {
  cursor: pointer;
  position: relative;
  transition: all var(--transition-normal);
}

.portfolio-card-clickable:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-accent);
}

.portfolio-card-clickable .card-subvalue {
  color: var(--color-accent);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.portfolio-card .card-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portfolio-card .card-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.portfolio-card .card-value {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.5px;
  margin: 0;
  padding: 0;
}

.card-value.positive {
  color: var(--success);
}

.card-value.negative {
  color: var(--danger);
}

.card-value.neutral {
  color: var(--text-secondary);
}

.portfolio-card .card-subvalue {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.portfolio-message {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 20px;
  font-size: 14px;
}


/* Strategies Section */
.strategies-section {
  margin-bottom: 32px;
}

.strategies-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 0;
}

.strategies-title h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin: 0;
}

.strategies-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Strategies Grid */
.strategies-grid {
  background: var(--gradient-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(20px);
  position: relative;
}

.strategies-grid::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0.5;
}

/* Grid Header with Tooltips */
.grid-header {
    display: grid;
    grid-template-columns: 40px 1.05fr 0.6fr 0.7fr 0.5fr 0.5fr 0.5fr 0.6fr 0.4fr;
    gap: 2px;
    padding: 15px 4px 20px 4px;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(33, 38, 45, 0.95) 100%);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(8px);
    line-height: 1.1;
    text-align: center;
}

/* Strategy grid alignment rules */
#strategiesGrid * {
    text-align: center !important;
    padding: 0 !important;
}

/* Left align the Strategy column specifically - multiple selectors for maximum specificity */
#strategiesGrid .grid-header .basic-metric.sortable-header[data-sort="name"],
#strategiesGrid .grid-header > div:nth-child(2),
.strategies-grid .grid-header > div:nth-child(2) {
    text-align: left !important;
    justify-content: flex-start !important;
}

/* Restore only essential spacing for readability */
#strategiesGrid .grid-header {
    padding: 15px 4px 20px 4px !important;
}

#strategiesGrid .strategy-row {
    padding: 18px 4px !important;
}

.grid-header > div {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    min-height: 32px !important;
    flex-direction: column !important;
    line-height: 1.2 !important;
    vertical-align: middle !important;
    position: static !important;
}

/* Ensure both basic and advanced metric headers have consistent alignment */
.grid-header .basic-metric,
.grid-header .advanced-metric {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    min-height: 32px !important;
    flex-direction: column !important;
    line-height: 1.2 !important;
    position: static !important;
}

/* Center-align the PF column header (first child) */
.grid-header > div:first-child {
    text-align: center !important;
    justify-content: center !important;
    align-items: center !important;
    padding-left: 7px !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 32px !important;
}

/* Left-align the Strategy column header (second child) */  
.grid-header > div:nth-child(2) {
    text-align: left !important;
    justify-content: flex-start !important;
    align-items: center !important;
    display: flex !important;
}

.tooltip-header {
    cursor: help;
    position: relative;
}

.tooltip-header:hover {
    color: var(--text-primary);
}

/* Custom Dropdown for Actions */
.action-dropdown {
    position: relative;
    display: inline-block;
}

.actions-btn {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(33, 38, 45, 0.8) 100%);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 4px 6px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    min-width: 32px;
    height: 28px;
    white-space: nowrap;
    line-height: 1;
    user-select: none;
}

.actions-btn:hover {
    background: linear-gradient(135deg, var(--hover-bg) 0%, var(--bg-tertiary) 100%);
    border-color: var(--text-secondary);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.dropdown-content {
    display: none;
    position: fixed;
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: 8px;
    min-width: 160px;
    max-height: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    z-index: 9999;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
    backdrop-filter: blur(8px);
}

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

.dropdown-content::-webkit-scrollbar {
    display: none; /* WebKit browsers */
}

.dropdown-content.show {
    display: block;
    opacity: 1;
    visibility: visible;
}

.dropdown-item {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 12px;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background: linear-gradient(90deg, rgba(63, 185, 80, 0.1) 0%, var(--hover-bg) 100%);
    border-left-color: var(--success-color);
    transform: translateX(2px);
}

.dropdown-item.danger {
    color: var(--danger-color);
}

.dropdown-item.danger:hover {
    background-color: rgba(218, 54, 51, 0.1);
}

.strategies-list {
    min-height: 200px;
}

.strategy-row {
    display: grid;
    grid-template-columns: 40px 1.05fr 0.6fr 0.7fr 0.5fr 0.5fr 0.5fr 0.6fr 0.4fr;
    gap: 2px;
    padding: 18px 4px;
    border-bottom: 1px solid var(--border-color);
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    margin: 2px 0;
    text-align: center;
}

/* Remove all alignment and padding from strategiesList elements */
#strategiesList * {
    text-align: unset !important;
    padding: 0 !important;
}

/* Restore only essential spacing for readability */
#strategiesList .strategy-row {
    padding: 18px 4px !important;
}

.strategy-row:hover {
    background: linear-gradient(90deg, rgba(63, 185, 80, 0.05) 0%, var(--hover-bg) 100%);
    border-left-color: var(--success-color);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.strategy-row:last-child {
    border-bottom: none;
}

.strategy-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.timeframe {
    font-size: 14px;
    color: var(--text-primary);
}

.tracking-since {
    font-size: 12px;
    color: var(--text-secondary);
}

.metric-positive {
    color: var(--success-color);
    font-weight: 600;
}

.metric-negative {
    color: var(--danger-color);
    font-weight: 600;
}

.metric-neutral {
    color: var(--text-primary);
}

.metric-light-grey {
    color: var(--light-grey);
}

.last-activity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 12px;
}

.activity-date {
    font-size: 10px;
    color: var(--light-grey);
    font-weight: normal;
}

.activity-time {
    font-size: 10px;
    color: var(--light-grey);
    font-weight: normal;
}

.activity-pnl {
    font-size: 14px;
    font-weight: 600;
}

.signal-buy {
    color: var(--success-color);
}

.signal-sell {
    color: var(--danger-color);
}

/* Strategy Actions */
.strategy-actions {
    display: flex;
    gap: 0px;
    align-items: center;
    justify-content: center;
}

.action-btn {
    background: none;
    border: none;
    font-size: 10px;
    cursor: pointer;
    padding: 0px;
    border-radius: 1px;
    transition: background-color 0.2s;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background-color: var(--bg-tertiary);
}

.pause-btn {
    opacity: 0.8;
}

.delete-btn:hover {
    background-color: var(--danger-color);
    opacity: 0.8;
}

/* Paused Strategy */
.strategy-paused {
    opacity: 0.6;
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid #ffc107;
}

.strategy-paused .strategy-name {
    color: var(--text-secondary);
    font-style: italic;
}

.strategy-paused .strategy-title {
    position: relative;
}

.strategy-paused .strategy-title::after {
    content: '⏸️';
    margin-left: 8px;
    font-size: 0.8em;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden !important; /* Prevent scrolling within modal overlay */
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    /* Prevent any interaction with background */
    pointer-events: auto;
    touch-action: none;
}

.modal-content {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(22, 27, 34, 0.95) 100%);
    margin: auto;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 500px;
    max-width: 90%;
    max-height: 90vh; /* Limit height to 90% of viewport */
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    animation: modalSlideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
    /* Allow interaction with modal content */
    pointer-events: auto;
    touch-action: auto;
    overflow: hidden;
}

/* Universal smooth scrolling for all modal bodies */
.modal-content .modal-body,
.modal-content > div:not(.modal-header):not(.modal-footer) {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    /* Hide scrollbars but keep functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    /* Smooth scrolling */
    scroll-behavior: smooth;
    /* Touch scrolling for mobile */
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar for Chrome, Safari and Opera - Universal */
.modal-content .modal-body::-webkit-scrollbar,
.modal-content > div:not(.modal-header):not(.modal-footer)::-webkit-scrollbar {
    display: none;
}

/* Ensure modal headers stay fixed */
.modal-header {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

/* Aggressive scroll prevention when modals are open */
body.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}

/* Prevent scrolling on html element as well */
html.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

/* Modal flexbox structure for smooth scrolling */
#addStrategyModal .modal-content,
#showWebhooksModal .modal-content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 90vh;
}

#addStrategyModal .modal-body,
#showWebhooksModal .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    
    /* Hide scrollbars - Cross-browser support */
    scrollbar-width: none;           /* Firefox */
    -ms-overflow-style: none;        /* Internet Explorer/Edge */
}

#addStrategyModal .modal-body::-webkit-scrollbar,
#showWebhooksModal .modal-body::-webkit-scrollbar {
    display: none;                   /* Chrome, Safari, Opera */
}

#addStrategyModal .modal-footer,
#showWebhooksModal .modal-footer {
    flex-shrink: 0;
    padding: 0 24px 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Performance Report Modal - Enhanced sizing for better readability */
.report-modal {
    max-width: 900px;
    width: 95%;
    height: 90vh;
    min-height: 800px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
}

.report-modal .modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0; /* No padding - report-body handles all spacing */
    /* Hide scrollbars but keep functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    /* Smooth scrolling */
    scroll-behavior: smooth;
    /* Touch scrolling for mobile */
    -webkit-overflow-scrolling: touch;
}

.report-modal .modal-body::-webkit-scrollbar {
    display: none;
}


/* Mobile responsiveness for report modal */
@media (max-width: 768px) {
    .report-modal {
        width: 98%;
        height: 90vh;
        min-height: 700px;
    }
    
    .report-section {
        padding: 25px 24px;
        min-height: 250px;
    }
    
    .report-header {
        padding: 20px 24px;
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .report-title {
        font-size: 16px; /* Reduced from 20px for mobile */
    }
    
    .report-logo {
        height: 36px; /* 50% increase from 24px for mobile */
    }
    
    .report-section {
        padding: 20px 24px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .strategy-summary {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .metric-card {
        padding: 16px;
    }
    
    .metric-value {
        font-size: 18px;
    }
    
    .analysis-card {
        padding: 20px;
    }
    
    .analysis-card h4 {
        font-size: 16px;
    }
    
    .report-footer {
        padding: 16px 24px;
        flex-direction: column;
        gap: 12px;
    }
    
    .report-footer .btn-secondary,
    .report-footer .btn-primary {
        width: 100%;
        text-align: center;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

.modal-header /* Header Actions */
.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.close,
.close-tunnel {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

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

/* Form */
form {
    padding: 20px;
}

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

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-muted);
}

.webhook-url-container {
    display: flex;
    gap: 8px;
}

.webhook-url-container input {
    flex: 1;
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
}

.webhook-info {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px;
    margin: 16px 0;
}

.webhook-info p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Tunnel Info */
.tunnel-info {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 16px;
    margin: 16px 0;
}

.tunnel-info h4 {
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-size: 14px;
}

.tunnel-info p {
    margin: 4px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.tunnel-info code {
    background-color: var(--bg-tertiary);
    color: var(--accent-secondary);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
}

.tunnel-info ol {
    margin: 8px 0 0 20px;
    color: var(--text-secondary);
    font-size: 13px;
}

.tunnel-info hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 12px 0;
}

/* Webhooks List */
.webhooks-list {
    max-height: 400px;
    overflow-y: auto;
}

.webhook-item {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 12px;
}

.webhook-item h4 {
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-size: 16px;
}

.webhook-item .webhook-details {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
}

.webhook-item .webhook-url {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background-color: var(--bg-tertiary);
    padding: 8px;
    border-radius: 4px;
    color: var(--text-secondary);
    word-break: break-all;
}

.webhook-item .webhook-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.empty-webhooks {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

/* Toast Notification Container */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 400px;
}

/* Individual Toast Notification */
.notification {
    position: relative;
    padding: 12px 40px 16px 16px;
    background-color: var(--success-color);
    color: #1a1a1a;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: auto;
    overflow: hidden;
    word-wrap: break-word;
    white-space: pre-line;
    cursor: pointer;
}

/* Close button for manual dismissal */
.notification .close-toast {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: rgba(26, 26, 26, 0.6);
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.notification .close-toast:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #000;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

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

.notification.info {
    background-color: var(--accent-primary);
}

/* Progress bar at bottom of notification */
.notification::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: rgba(26, 26, 26, 0.2);
    animation: shrinkWidth var(--duration) linear forwards;
}

.notification.error::after {
    background-color: rgba(26, 26, 26, 0.3);
}

.notification.info::after {
    background-color: rgba(26, 26, 26, 0.3);
}

@keyframes shrinkWidth {
    from { width: 100%; }
    to { width: 0%; }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification {
        font-size: 13px;
        padding: 10px 36px 14px 12px;
    }
    
    .notification .close-toast {
        top: 6px;
        right: 8px;
        width: 24px;
        height: 24px;
        font-size: 18px;
    }
}

/* Change Currency Modal Warning */
.warning-message {
    background-color: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 6px;
    padding: 12px;
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-primary);
}

.warning-message strong {
    color: #ff9800;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

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

.empty-state p {
    font-size: 14px;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .grid-header,
    .strategy-row {
        grid-template-columns: 35px 0.9fr 0.4fr 0.5fr 0.4fr 0.4fr 0.4fr 0.4fr 0.3fr;
        gap: 1px;
        font-size: 8px;
        padding: 10px 2px;
    }
    
    .strategies-grid.show-advanced .grid-header,
    .strategies-grid.show-advanced .strategy-row {
        grid-template-columns: 35px 0.8fr 0.25fr 0.4fr 0.3fr 0.3fr 0.3fr 0.25fr 0.3fr 0.3fr 0.3fr 0.3fr 0.3fr 0.4fr 0.3fr;
    }
}

@media (max-width: 900px) {
    .grid-header,
    .strategy-row {
        grid-template-columns: 30px 0.6fr 0.25fr 0.4fr 0.3fr 0.3fr 0.3fr 0.3fr 0.25fr;
        gap: 1px;
        font-size: 7px;
        padding: 8px 1px;
    }
    
    .strategies-grid.show-advanced .grid-header,
    .strategies-grid.show-advanced .strategy-row {
        grid-template-columns: 30px 0.7fr 0.2fr 0.3fr 0.25fr 0.25fr 0.25fr 0.25fr 0.2fr 0.25fr 0.25fr 0.25fr 0.25fr 0.3fr 0.25fr;
    }
    
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 22px;
    }
    
    .logo-icon {
        font-size: 24px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .logo-slogan {
        font-size: 11px;
    }
    
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--accent-primary);
    animation: spin 1s ease-in-out infinite;
}

/* Alert Setup Modal */
.alert-format-box {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 16px;
    margin: 16px 0;
    position: relative;
}

.alert-format-box pre {
    margin: 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-secondary);
    background: transparent;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 150px;
    overflow-y: auto;
    padding-right: 8px;
}

.alert-format-box pre::-webkit-scrollbar {
    width: 6px;
}

.alert-format-box pre::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.alert-format-box pre::-webkit-scrollbar-thumb {
    background: var(--border-secondary);
    border-radius: 3px;
}

.alert-format-box pre::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Compact version for strategy creation modal */
.alert-format-box.compact {
    padding: 12px;
    margin: 12px 0;
}

.alert-format-box.compact pre {
    font-size: 12px;
    line-height: 1.3;
}

.pinescript-code-section {
    margin: 16px 0;
}

.pinescript-code-section h4 {
    margin-bottom: 8px;
    color: var(--text-primary);
}

.pinescript-code-section p {
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 13px;
}

.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--gradient-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    filter: brightness(1.1);
}

.alert-info {
    background: rgba(52, 152, 219, 0.1);
    border-left: 4px solid #3498db;
    padding: 16px;
    margin: 16px 0;
    border-radius: 0 4px 4px 0;
}

.alert-warning {
    background: rgba(241, 196, 15, 0.1);
    border-left: 4px solid #f1c40f;
    padding: 16px;
    margin: 16px 0;
    border-radius: 0 4px 4px 0;
}

.alert-info h4,
.alert-warning h4 {
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.alert-info ul,
.alert-warning ul {
    margin: 0;
    padding-left: 20px;
}

.alert-info li,
.alert-warning li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* Trades List Modal */
.trades-modal .modal-content {
    max-width: 1200px;
    width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.trades-modal .modal-body {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(90vh - 120px);
    flex: 1;
    /* Hide scrollbars but keep functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
    /* Smooth scrolling */
    scroll-behavior: smooth;
    /* Touch scrolling for mobile */
    -webkit-overflow-scrolling: touch;
}

.trades-modal .modal-body::-webkit-scrollbar {
    display: none; /* WebKit browsers */
}

.trades-summary {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

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

.summary-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.summary-value {
    font-size: 18px;
    font-weight: 600;
}

.trades-table-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.trades-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-secondary);
}

.trades-table th {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 12px 8px;
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.trades-table td {
    padding: 8px;
    border-bottom: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-primary);
}

.trades-table tbody tr:hover {
    background-color: var(--hover-bg);
}

.trade-profit-positive {
    color: var(--success-color);
    font-weight: 600;
}

.trade-profit-negative {
    color: var(--danger-color);
    font-weight: 600;
}

.trade-action-buy {
    color: var(--success-color);
    font-weight: 600;
}

.trade-action-sell {
    color: var(--danger-color);
    font-weight: 600;
}

.alert-info code,
.alert-warning code {
    background: var(--bg-tertiary);
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    color: var(--success-color);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Tab Styles */
.integration-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: var(--hover-bg);
}

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

.tab-content {
    display: none;
}

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

.alert-success {
    background: rgba(63, 185, 80, 0.1);
    border: 1px solid var(--success-color);
    border-radius: 6px;
    padding: 16px;
    margin-top: 20px;
}

.alert-success h4 {
    color: var(--success-color);
    margin-bottom: 12px;
}

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

.alert-success li {
    margin-bottom: 8px;
    color: var(--text-primary);
}

.alert-success li strong {
    color: var(--success-color);
}

/* Missing Trades Import Modal Styles */
.missing-trades-analysis {
    margin-bottom: 30px;
}

.gap-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.gap-item h3 {
    color: var(--accent-warning);
    margin-bottom: 10px;
}

.time-gap {
    background: var(--bg-secondary);
    padding: 8px 12px;
    border-radius: 4px;
    margin: 5px 0;
    font-family: monospace;
    color: var(--text-secondary);
}

.issue {
    background: rgba(218, 54, 51, 0.1);
    color: var(--accent-danger);
    padding: 8px 12px;
    border-radius: 4px;
    margin: 5px 0;
}

.import-options {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}

.import-options h3 {
    color: var(--accent-primary);
    margin-bottom: 15px;
}

.import-methods {
    display: grid;
    gap: 20px;
}

.import-method {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
}

.import-method h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.import-method p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.import-strategy-selection {
    margin-bottom: 20px;
}

.import-strategy-selection select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.trades-preview {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    margin: 15px 0;
}

.trades-preview table {
    width: 100%;
    background: var(--bg-tertiary);
}

.trades-preview th {
    background: var(--bg-secondary);
    padding: 10px 8px;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 12px;
}

.trades-preview td {
    padding: 8px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 12px;
}

.trades-preview tbody tr:hover {
    background: var(--hover-bg);
}

/* Manual Trade Form Styles */
.manual-trade-form .form-group {
    margin-bottom: 15px;
}

.manual-trade-form label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-primary);
    font-weight: 500;
}

.manual-trade-form input,
.manual-trade-form select {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.manual-trade-form input:focus,
.manual-trade-form select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(63, 185, 80, 0.3);
}

/* Alert Setup Instructions */
.alert-setup-instructions {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.alert-setup-instructions h3 {
    color: var(--accent-warning);
    margin-bottom: 15px;
}

.instruction-box {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
}

.instruction-box ol {
    margin: 10px 0;
    padding-left: 20px;
}

.instruction-box li {
    margin: 8px 0;
    color: var(--text-primary);
}

.instruction-box code {
    background: var(--bg-primary);
    color: var(--accent-primary);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
}

.warning-box {
    background: rgba(218, 54, 51, 0.1);
    border: 1px solid var(--accent-danger);
    border-radius: 4px;
    padding: 12px;
    margin-top: 15px;
    color: var(--accent-danger);
    font-weight: 500;
}

/* Compact styles for alert setup */
.alert-setup-instructions.compact {
    padding: 15px;
    margin: 15px 0;
}

.alert-setup-instructions.compact h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

.instruction-box.compact {
    padding: 12px;
}

.warning-box.compact {
    padding: 8px 12px;
    margin-top: 10px;
    font-size: 13px;
}

.help-text {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Advanced Metrics Toggle - Hidden by default and removed from grid flow */
.advanced-metric {
    display: none !important;
}

/* Show advanced metrics when toggle is active */
.strategies-grid.show-advanced .advanced-metric {
    display: block !important;
}

/* Only apply 14px to strategy row advanced metrics, not headers */
.strategy-row .advanced-metric {
    font-size: 14px;
}

/* Only apply 14px to strategy row metrics, not headers */
.strategy-row .basic-metric {
    font-size: 14px;
}

/* Override font size for specific elements */
.activity-date,
.activity-time {
    font-size: 10px !important;
}

.strategy-since {
    font-size: 10px !important;
}

/* Responsive grid adjustment for advanced metrics */
.strategies-grid .grid-header {
    display: flex;
    gap: 2px;
    font-weight: bold;
    padding: 15px 2px;
    background: var(--bg-tertiary);
    border-bottom: 2px solid var(--border-color);
    text-align: center;
}


/* Only basic-metric elements participate in flexbox layout */
.strategies-grid .grid-header > .basic-metric {
    flex: 1;
    min-width: 0;
}

/* Advanced metrics are completely removed from flex layout */
.strategies-grid .grid-header > .advanced-metric {
    display: none !important;
    flex: none !important;
    width: 0 !important;
}

.strategies-grid .grid-header > .basic-metric:first-child {
    flex: 1.2;
}

.strategies-grid .grid-header > .basic-metric:nth-child(2) {
    flex: 0.4;
}

.strategies-grid .grid-header > .basic-metric:nth-child(3) {
    flex: 0.6;
}

.strategies-grid .grid-header > .basic-metric:nth-child(4) {
    flex: 0.7;
}

.strategies-grid .grid-header > .basic-metric:nth-child(5) {
    flex: 0.5;
}

.strategies-grid .grid-header > .basic-metric:nth-child(6) {
    flex: 0.5;
}

.strategies-grid .grid-header > .basic-metric:nth-child(7) {
    flex: 0.5;
}

.strategies-grid .grid-header > .basic-metric:nth-child(8) {
    flex: 0.6;
}

.strategies-grid .grid-header > .basic-metric:last-child {
    flex: 0.4;
}

/* In advanced view, use grid layout for all columns */
.strategies-grid.show-advanced .grid-header {
    display: grid !important;
    grid-template-columns: 40px 1.05fr 0.3fr 0.6fr 0.4fr 0.4fr 0.4fr 0.4fr 0.4fr 0.3fr 0.4fr 0.4fr 0.4fr 0.6fr 0.4fr;
    text-align: center;
}


/* Reset advanced metrics to show in grid mode */
.strategies-grid.show-advanced .grid-header > .advanced-metric {
    display: block !important;
    flex: none !important;
    width: auto !important;
}

.strategy-row {
    display: flex;
    gap: 2px;
    align-items: center;
    text-align: center;
}


/* Only basic-metric elements participate in flexbox layout */
.strategy-row > .basic-metric {
    flex: 1;
    min-width: 0;
}

/* Advanced metrics are completely removed from flex layout */
.strategy-row > .advanced-metric {
    display: none !important;
    flex: none !important;
    width: 0 !important;
}

.strategy-row > .basic-metric:first-child {
    flex: 1.2;
}

.strategy-row > .basic-metric:nth-child(2) {
    flex: 0.4;
}

.strategy-row > .basic-metric:nth-child(3) {
    flex: 0.6;
}

.strategy-row > .basic-metric:nth-child(4) {
    flex: 0.7;
}

.strategy-row > .basic-metric:nth-child(5) {
    flex: 0.5;
}

.strategy-row > .basic-metric:nth-child(6) {
    flex: 0.5;
}

.strategy-row > .basic-metric:nth-child(7) {
    flex: 0.5;
}

.strategy-row > .basic-metric:nth-child(8) {
    flex: 0.6;
}

.strategy-row > .basic-metric:last-child {
    flex: 0.4;
}

/* In advanced view, use grid layout for all columns */
.strategies-grid.show-advanced .strategy-row {
    display: grid !important;
    grid-template-columns: 40px 1.05fr 0.3fr 0.6fr 0.4fr 0.4fr 0.4fr 0.4fr 0.4fr 0.3fr 0.4fr 0.4fr 0.4fr 0.6fr 0.4fr;
    text-align: center;
    gap: 2px;
    align-items: center;
}


/* Reset advanced metrics to show in grid mode */
.strategies-grid.show-advanced .strategy-row > .advanced-metric {
    display: block !important;
    flex: none !important;
    width: auto !important;
}

/* Force center alignment for all data cells in advanced view except strategy name */
.strategies-grid.show-advanced .strategy-row > div:not(.strategy-name):not(.strategy-actions) {
    text-align: center !important;
}

/* Left-align strategy name and actions columns */
.strategy-name {
    text-align: left !important;
}

.strategy-actions {
    text-align: center !important;
}

/* Ensure alignment is maintained when advanced stats are shown */
.strategies-grid.show-advanced .strategy-name {
    text-align: left !important;
}

.strategies-grid.show-advanced .strategy-actions {
    text-align: center !important;
}

/* Override center alignment for Strategy header in advanced view */
.strategies-grid.show-advanced .grid-header > div:nth-child(2) {
    text-align: left !important;
    justify-content: flex-start !important;
}

/* Advanced Metrics Toggle Component */
.toggle-column {
    display: flex;
    justify-content: center;
    align-items: center;
}

.toggle-column-spacer {
    /* Empty spacer for strategy rows */
    display: none;
}

.advanced-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.advanced-stats-button {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #1a1a1f;
    color: #a3a3a3;
    border: 1px solid #2d2d33;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

.advanced-stats-button:hover {
    background: #242428;
    border-color: #404048;
    color: #ffffff;
}

.advanced-stats-button.active {
    background: linear-gradient(135deg, #00d96c 0%, #00cc6a 100%);
    color: #0a0a0b;
    border-color: #00d96c;
    box-shadow: 0 2px 8px rgba(0, 217, 108, 0.3);
}

.advanced-stats-button.active:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 217, 108, 0.4);
    filter: brightness(1.05);
}

.button-icon {
    font-size: 14px;
    line-height: 1;
}

.button-text {
    font-size: 13px;
    font-weight: 500;
}

/* Strategy name with date styling */
.strategy-name {
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 2px;
}

.strategy-title {
    font-weight: 500;
    color: var(--text-primary);
}

.strategy-since {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: normal;
}

/* Net profit combined styling */
.net-profit-combined {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.profit-percentage {
    font-weight: 500;
    font-size: 14px;
}

.profit-amount {
    font-size: 12px;
    font-weight: normal;
    color: var(--text-primary);
}

/* Drawdown combined styling */
.drawdown-combined {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.drawdown-percentage {
    font-weight: 500;
    font-size: 14px;
}

.drawdown-amount {
    font-size: 12px;
    font-weight: normal;
    color: var(--text-primary);
}

/* Portfolio checkbox styling */
.portfolio-checkbox {
    display: flex;
    justify-content: center;
    align-items: center;
}

.portfolio-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
    cursor: pointer;
}

.portfolio-checkbox input[type="checkbox"]:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    accent-color: var(--text-muted);
}

/* Footer Styles */
.footer {
    margin-top: 60px;
    padding: 20px 0;
    background-color: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-content p {
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-secondary);
}

.footer-separator {
    color: var(--text-muted);
    font-size: 14px;
}

/* Legal Modal Styles */
.legal-modal .modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.legal-modal .modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 30px;
    /* Hide scrollbars but keep functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    /* Smooth scrolling */
    scroll-behavior: smooth;
    /* Touch scrolling for mobile */
    -webkit-overflow-scrolling: touch;
}

.legal-modal .modal-body::-webkit-scrollbar {
    display: none;
}

.legal-modal h3 {
    margin: 30px 0 15px;
    color: var(--text-primary);
    font-size: 20px;
}

.legal-modal h3:first-child {
    margin-top: 0;
}

.legal-modal h4 {
    margin: 25px 0 10px;
    color: var(--text-primary);
    font-size: 16px;
}

.legal-modal p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.legal-modal ul, .legal-modal ol {
    margin: 0 0 15px 20px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.legal-modal li {
    margin-bottom: 8px;
}

.legal-modal .effective-date {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 30px;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer {
        margin-top: 40px;
        padding: 15px 0;
    }
    
    .footer-content {
        padding: 0 15px;
    }
    
    .footer-links {
        gap: 10px;
    }
    
    .footer-links a {
        font-size: 13px;
    }
}

/* Strategy Actions Modal */
/* Strategy Actions Modal */
.strategy-actions-modal {
    width: 420px;
    max-width: 90%;
    max-height: 80vh;
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.strategy-actions-modal .modal-header {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.strategy-actions-modal .modal-body {
    padding: 24px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    /* Hide scrollbars but keep functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    /* Smooth scrolling */
    scroll-behavior: smooth;
    /* Touch scrolling for mobile */
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.strategy-actions-modal .modal-body::-webkit-scrollbar {
    display: none;
}

.actions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    min-height: min-content;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    text-align: left;
    width: 100%;
    font-family: inherit;
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
    min-width: 0;
}

.action-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.action-item:hover {
    background: var(--bg-card);
    border-color: var(--border-accent);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.action-item:hover::before {
    opacity: 1;
}

.action-item.danger {
    border-color: rgba(255, 71, 87, 0.3);
}

.action-item.danger:hover {
    background: var(--danger-bg);
    border-color: var(--danger);
    transform: translateX(4px);
}

.action-item.danger .action-text {
    color: var(--danger);
}

.action-icon {
    font-size: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius-sm);
    flex-shrink: 0;
    transition: all var(--transition-normal);
}

.action-item:hover .action-icon {
    background: var(--bg-tertiary);
    border-color: var(--border-accent);
    transform: scale(1.05);
}

.action-item.danger .action-icon {
    background: var(--danger-bg);
    border-color: var(--danger);
}

.action-item .action-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.action-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.action-desc {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
    transition: all var(--transition-normal);
    text-align: left;
    width: 100%;
}

.action-item:hover {
    background: var(--bg-card);
    border-color: var(--border-accent);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.action-icon {
    font-size: 24px;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.action-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.action-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.action-item.danger {
    border-color: var(--danger);
}

.action-item.danger:hover {
    background: var(--danger-bg);
    border-color: var(--danger);
}

.action-item.danger .action-text {
    color: var(--danger);
}

/* Equity Curve Styles */
.equity-curve-btn {
    margin: 10px 0;
    background: linear-gradient(135deg, var(--accent-secondary), #1e5bb8);
    border: 1px solid var(--accent-secondary);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.equity-curve-btn:hover {
    background: linear-gradient(135deg, #1e5bb8, var(--accent-secondary));
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(31, 107, 235, 0.3);
}

.portfolio-actions {
    margin: 15px 0;
    text-align: center;
}

.equity-curve-modal {
    width: 90vw !important;
    max-width: 1200px !important;
    min-width: 800px !important;
    height: 85vh !important;
    max-height: 85vh !important;
    min-height: 600px !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.equity-curve-modal .modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    /* Hide scrollbars but keep functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    /* Smooth scrolling */
    scroll-behavior: smooth;
    /* Touch scrolling for mobile */
    -webkit-overflow-scrolling: touch;
    /* Prevent layout shifts */
    display: flex;
    flex-direction: column;
    gap: 0;
}

.equity-curve-modal .modal-body::-webkit-scrollbar {
    display: none;
}

/* Chart info section - prevent compression */
.chart-info {
    padding: 20px 25px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;          /* Prevent compression */
    min-height: 80px;        /* Maintain minimum height */
}

.equity-curve-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px 15px 25px;
    border-bottom: 1px solid var(--border-color);
}

.equity-curve-modal .modal-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
}

.equity-curve-close {
    color: var(--text-secondary);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

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

.chart-info {
    padding: 20px 25px 15px 25px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.chart-summary {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    flex-shrink: 0;          /* Prevent compression */
    min-height: 60px;        /* Maintain minimum height */
}

.chart-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    flex-shrink: 0;          /* Prevent compression */
    min-height: 40px;        /* Maintain minimum height */
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;          /* Prevent compression */
    min-width: 150px;        /* Maintain minimum width */
}

.stat-label {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
}

.stat-value.positive {
    color: var(--success-color);
}

.stat-value.negative {
    color: var(--danger-color);
}

.chart-container {
    padding: 25px;
    background: var(--bg-secondary);
    position: relative;
    flex-shrink: 0;          /* Prevent compression */
    min-height: 450px;       /* Maintain minimum height for chart */
    width: 100%;             /* Take full available width */
}

.chart-container canvas {
    width: 100% !important;  /* Force full width */
    height: 400px !important; /* Fixed height to prevent shrinking */
    max-width: none !important;
    max-height: none !important;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 15px 25px 20px 25px;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.legend-color {
    width: 16px;
    height: 3px;
    border-radius: 2px;
}

.legend-color.equity-line {
    background: linear-gradient(90deg, var(--success-color), var(--accent-secondary));
}

.legend-color.initial-line {
    background: var(--text-muted);
    opacity: 0.6;
}

.legend-color.peak-trade {
    background: rgba(255, 193, 7, 1);
    border-radius: 50%;
    width: 12px;
    height: 12px;
}

/* Responsive chart styles */
@media (max-width: 768px) {
    .equity-curve-modal {
        width: 95vw !important;
        height: 90vh !important;
        min-width: 320px !important;
        min-height: 400px !important;
        margin: 10px auto;
    }
    
    .chart-stats {
        gap: 20px;
    }
    
    .stat-item {
        min-width: 120px;
    }
    
    .chart-container {
        padding: 15px;
    }
    
    .chart-legend {
        gap: 15px;
        flex-wrap: wrap;
    }
}

/* Sortable Headers */
.sortable-header {
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
    user-select: none;
    padding: 2px 4px;
    border-radius: 4px;
}

.sortable-header:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    transform: scale(1.02);
}

.sortable-header.sorted {
    background: var(--bg-card);
    color: var(--accent-primary);
    font-weight: 700;
}

.sort-indicator {
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.sortable-header:hover .sort-indicator,
.sortable-header.sorted .sort-indicator {
    opacity: 1;
}

.sortable-header.sorted .sort-indicator {
    color: var(--accent-primary);
    font-weight: bold;
}

/* Remove these original rules since we have more specific ones below */

/* Ensure non-sortable headers never show sort indicators */
.basic-metric:not(.sortable-header)::after,
.basic-metric:not(.sortable-header)::before,
.advanced-metric:not(.sortable-header)::after,
.advanced-metric:not(.sortable-header)::before {
    display: none !important;
    content: none !important;
}

/* Specifically prevent Actions column from showing any arrows */
.actions-column::after,
.actions-column::before,
.actions-column *::after,
.actions-column *::before {
    display: none !important;
    content: none !important;
}

/* Additional safety - prevent any arrows on specific non-sortable columns */
.grid-header > div:not(.sortable-header)::after,
.grid-header > div:not(.sortable-header)::before,
.strategy-row > div:not(.sortable-header)::after,
.strategy-row > div:not(.sortable-header)::before {
    display: none !important;
    content: none !important;
}

/* Force remove any potential conflicting pseudo-elements */
.basic-metric:not(.sortable-header),
.advanced-metric:not(.sortable-header) {
    position: relative;
}

.basic-metric:not(.sortable-header)::after,
.basic-metric:not(.sortable-header)::before,
.advanced-metric:not(.sortable-header)::after,
.advanced-metric:not(.sortable-header)::before {
    content: "" !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Make sort indicators very specific to avoid conflicts */
.sortable-header .sort-indicator.asc::after {
    content: '↑' !important;
}

.sortable-header .sort-indicator.desc::after {
    content: '↓' !important;
}

.sortable-header:hover .sort-indicator:not(.asc):not(.desc)::after {
    content: '↕' !important;
    opacity: 0.6;
}

/* Nuclear option - completely override any possible arrow-creating CSS */
.grid-header > .basic-metric:last-child::after,
.grid-header > .basic-metric:last-child::before,
.strategy-row > .basic-metric:last-child::after,
.strategy-row > .basic-metric:last-child::before,
.grid-header > div:nth-last-child(1)::after,
.grid-header > div:nth-last-child(1)::before,
.strategy-row > div:nth-last-child(1)::after,
.strategy-row > div:nth-last-child(1)::before {
    content: none !important;
    display: none !important;
}

/* Also target any potential elements that might contain "Actions" text */
div[class*="actions"]::after,
div[class*="actions"]::before,
div[class*="Actions"]::after,
div[class*="Actions"]::before,
*:contains("Actions")::after,
*:contains("Actions")::before {
    content: none !important;
    display: none !important;
}

/* Last resort - disable ALL pseudo-elements in the strategies grid that aren't sort indicators */
.strategies-grid *:not(.sort-indicator)::after,
.strategies-grid *:not(.sort-indicator)::before {
    content: none !important;
    display: none !important;
}

/* Re-enable only the sort indicators we want */
.strategies-grid .sortable-header .sort-indicator.asc::after {
    content: '↑' !important;
    display: inline !important;
}

.strategies-grid .sortable-header .sort-indicator.desc::after {
    content: '↓' !important;
    display: inline !important;
}

.strategies-grid .sortable-header:hover .sort-indicator:not(.asc):not(.desc)::after {
    content: '↕' !important;
    display: inline !important;
    opacity: 0.6;
}

/* Try removing any potential overflow or layout issues that might show arrows */
.actions-column,
.actions-column * {
    overflow: hidden !important;
    position: relative !important;
}

.actions-column::after {
    content: "" !important;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Force hide any arrows that might be coming from grid layout */
.strategies-grid .strategy-row > div:last-child,
.strategies-grid .grid-header > div:last-child {
    position: relative !important;
    overflow: hidden !important;
}

.strategies-grid .strategy-row > div:last-child::after,
.strategies-grid .grid-header > div:last-child::after,
.strategies-grid .strategy-row > div:last-child::before,
.strategies-grid .grid-header > div:last-child::before {
    content: none !important;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
}

/* Target the area to the right of the Actions column where the arrow actually appears */
.strategies-grid {
    position: relative !important;
    overflow: hidden !important;
}

.strategies-grid::after,
.strategies-grid::before {
    content: none !important;
    display: none !important;
}

/* Hide any elements that might be positioned outside the grid */
.strategies-grid *::after,
.strategies-grid *::before {
    content: none !important;
    display: none !important;
}

/* Then re-enable only the sort indicators we want */
.strategies-grid .sortable-header .sort-indicator.asc::after {
    content: '↑' !important;
    display: inline !important;
}

.strategies-grid .sortable-header .sort-indicator.desc::after {
    content: '↓' !important;
    display: inline !important;
}

.strategies-grid .sortable-header:hover .sort-indicator:not(.asc):not(.desc)::after {
    content: '↕' !important;
    display: inline !important;
    opacity: 0.6;
}

/* Also target the broader strategies section */
.strategies-section {
    position: relative !important;
    overflow: hidden !important;
}

.strategies-section::after,
.strategies-section::before {
    content: none !important;
    display: none !important;
}

.strategies-section *::after,
.strategies-section *::before {
    content: none !important;
    display: none !important;
}

/* Re-enable sort indicators in strategies section */
.strategies-section .sortable-header .sort-indicator.asc::after {
    content: '↑' !important;
    display: inline !important;
}

.strategies-section .sortable-header .sort-indicator.desc::after {
    content: '↓' !important;
    display: inline !important;
}

.strategies-section .sortable-header:hover .sort-indicator:not(.asc):not(.desc)::after {
    content: '↕' !important;
    display: inline !important;
    opacity: 0.6;
}

/* Simple sorting without arrows and no hover effects */
.sortable-header {
    cursor: pointer;
    user-select: none;
    padding: 2px 4px;
    border-radius: 4px;
}

.sortable-header.sorted {
    background: var(--bg-card);
    color: var(--accent-primary);
    font-weight: 700;
}

/* Remove any text-decoration or list-style that might create arrows */
.actions-column,
.actions-column *,
.strategy-actions,
.strategy-actions * {
    text-decoration: none !important;
    list-style: none !important;
    list-style-type: none !important;
    list-style-image: none !important;
    list-style-position: outside !important;
}

/* Check if it's a font or Unicode issue */
.actions-column {
    font-family: inherit !important;
    font-weight: normal !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

/* Hide any potential icon fonts or special characters */
.actions-column::after,
.actions-column::before {
    font-family: inherit !important;
    content: "" !important;
    display: none !important;
}

/* Delete Single Trades Modal Styles */
.delete-trades-content {
    max-width: 800px;
    width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.delete-trades-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-primary);
}

.delete-trades-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.delete-trades-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: var(--bg-secondary);
}

.filter-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.filter-section h3 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.filter-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-option input[type="radio"] {
    margin: 0;
}

.filter-option label {
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
}

.trades-list-section {
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.trades-list-header {
    padding: 1rem;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.trades-list-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.selection-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.selection-controls button {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.selection-controls button:hover {
    background: var(--accent-primary);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.trades-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
}

.no-trades {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 2rem;
}

.trade-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s ease;
}

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

.trade-item:hover {
    background: var(--bg-primary);
}

.trade-item.manual {
    border-left: 3px solid var(--warning);
}

.trade-item.webhook {
    border-left: 3px solid var(--success);
}

.trade-checkbox {
    margin-top: 0.5rem;
    width: 16px;
    height: 16px;
}

.trade-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.trade-basic {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.trade-details {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.trade-id {
    font-weight: bold;
    color: var(--text-primary);
    min-width: 50px;
}

.trade-timestamp {
    color: var(--text-secondary);
    font-size: 0.85rem;
    min-width: 150px;
}

.trade-action {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    min-width: 50px;
    text-align: center;
}

.trade-action.buy {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success);
}

.trade-action.sell {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.trade-contracts {
    color: var(--text-primary);
    font-weight: 500;
}

.trade-ticker {
    color: var(--accent-primary);
    font-weight: 500;
}

.trade-price {
    color: var(--text-secondary);
}

.trade-pnl.positive {
    color: var(--success);
}

.trade-pnl.negative {
    color: var(--danger);
}

.trade-source {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.trade-source.manual {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.trade-source.webhook {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success);
}

.delete-trades-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--bg-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.selection-summary {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-actions {
    display: flex;
    gap: 1rem;
}

.footer-actions .btn-danger {
    background: var(--danger);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.footer-actions .btn-danger:hover:not(:disabled) {
    background: #dc2626;
    transform: translateY(-1px);
}

.footer-actions .btn-danger:disabled {
    background: var(--text-disabled);
    cursor: not-allowed;
    opacity: 0.5;
}

.footer-actions .btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.footer-actions .btn-secondary:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .delete-trades-content {
        width: 95vw;
        margin: 1rem;
    }
    
    .trade-basic,
    .trade-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .filter-options {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .trades-list-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .delete-trades-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .footer-actions {
        justify-content: space-between;
    }
}

/* CSV Import Strategy Selection Styles */
.strategy-enable-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-primary);
}

.strategy-enable-checkbox:checked + label {
    color: var(--accent-primary);
    font-weight: bold;
}

.strategy-select:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background: var(--bg-disabled) !important;
}

.symbol-group {
    transition: all 0.3s ease;
}

.symbol-group:has(.strategy-enable-checkbox:not(:checked)) {
    opacity: 0.7;
    background: rgba(128, 128, 128, 0.1);
}

.symbol-group:has(.strategy-enable-checkbox:checked) {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 1px rgba(64, 158, 255, 0.3);
}

.csv-import-actions button:disabled,
.form-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--text-disabled) !important;
    transform: none !important;
    filter: none !important;
}

.trades-preview-table {
    transition: opacity 0.3s ease;
}

.symbol-group:has(.strategy-enable-checkbox:not(:checked)) .trades-preview-table {
    opacity: 0.5;
}

/* CSV Import Actions Styling */
.csv-import-actions {
    background: var(--bg-primary);
    border-radius: 0 0 8px 8px;
    margin: 0 -20px -20px -20px;
    padding: 20px !important;
}

.csv-import-actions button {
    white-space: nowrap;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 12px 24px;
    min-width: 120px;
}

.csv-import-actions .btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    font-weight: 600;
    min-width: 180px;
}

.csv-import-actions .btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    filter: brightness(1.1);
}

.csv-import-actions .btn-primary:active {
    transform: translateY(0);
}

.csv-import-actions .btn-secondary {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

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

/* Mobile responsiveness for CSV import */
@media (max-width: 768px) {
    .csv-import-actions > div {
        flex-direction: column;
        gap: 20px !important;
        align-items: stretch !important;
    }
    
    .csv-import-actions > div > div {
        justify-content: center;
    }
    
    .csv-import-actions button {
        flex: 1;
        min-width: auto !important;
    }
}

/* Toast Notification System */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
    max-width: 400px;
}

.notification {
    pointer-events: auto;
    margin-bottom: 12px;
    padding: 16px 20px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    min-width: 250px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.success {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.notification.error {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.notification.info {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

.notification.warning {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.close-toast {
    background: none;
    border: none;
    color: currentColor;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    font-size: 18px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.close-toast:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

/* Progress bar for auto-dismiss */
.notification::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: currentColor;
    opacity: 0.4;
    width: 100%;
    transform: scaleX(1);
    transform-origin: left;
    animation: progress var(--duration, 4000ms) linear forwards;
}

@keyframes progress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Mobile responsiveness for notifications */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification {
        min-width: auto;
        font-size: 13px;
        padding: 14px 16px;
    }
}

/* === WAITLIST FORM STYLING === */

.waitlist-form {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    backdrop-filter: blur(8px);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.waitlist-form .email-input-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.waitlist-input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.waitlist-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(63, 185, 80, 0.1);
    background: var(--bg-card);
}

.waitlist-input::placeholder {
    color: var(--text-secondary);
}

.waitlist-input:invalid {
    border-color: var(--danger);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.checkbox-item:hover {
    color: var(--primary);
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.waitlist-btn {
    padding: 12px 24px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
}

.waitlist-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.waitlist-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.waitlist-btn .btn-loading {
    display: none;
}

.waitlist-btn.loading .btn-text {
    opacity: 0;
}

.waitlist-btn.loading .btn-loading {
    display: inline;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.waitlist-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    margin: 24px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.waitlist-success .success-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.waitlist-success h4 {
    color: var(--success-color);
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 700;
}

.waitlist-success p {
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 8px;
}

.waitlist-success .success-note {
    color: var(--text-secondary);
    font-size: 14px;
    font-style: italic;
}

.waitlist-note {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 16px;
}

.privacy-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
}

/* Mobile responsiveness for waitlist form */
@media (max-width: 768px) {
    .waitlist-form .email-input-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .waitlist-form {
        padding: 20px;
        margin: 20px 16px;
    }
    
    .waitlist-btn {
        width: 100%;
        padding: 16px 24px;
        font-size: 16px;
    }
    
    .waitlist-success {
        padding: 24px 20px;
        margin: 20px 16px;
    }
}

/* === STRATEGY PERFORMANCE REPORT MODAL === */

.report-modal {
    max-width: 900px;
    width: 95%;
    height: 90vh;
    min-height: 800px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
}

.report-modal .modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0; /* No padding - report-body handles all spacing */
    /* Hide scrollbars but keep functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    /* Smooth scrolling */
    scroll-behavior: smooth;
    /* Touch scrolling for mobile */
    -webkit-overflow-scrolling: touch;
}


/* Professional Report Header */
.report-header {
    background: #000000;
    color: white;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    border-bottom: 2px solid var(--accent-primary);
    flex-shrink: 0;
    min-height: 80px;
}

.report-title {
    font-size: 20px; /* Reduced from 24px to accommodate larger logo */
    font-weight: 700;
    margin: 0;
    color: white;
}

.report-logo {
    height: 57px; /* Increased by 50% from 38px */
    width: auto;
    /* Original colors preserved - no filter */
}

/* Report Body */
.report-body {
    padding: 0;
    background: var(--bg-card);
}

.report-section {
    padding: 35px 32px;
    border-bottom: 1px solid var(--border-primary);
    min-height: 320px;
}

.report-section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-content {
    color: var(--text-secondary);
}

/* Report Overview */
.report-intro {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.strategy-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-primary);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-item .label {
    color: var(--text-muted);
    font-weight: 500;
}

.summary-item .value {
    color: var(--text-primary);
    font-weight: 600;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.metric-card {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-primary);
    text-align: center;
    transition: var(--transition-normal);
}

.metric-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-1px);
}

.metric-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.metric-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.metric-positive {
    color: #22c55e !important; /* Green for good metrics */
}

.metric-negative {
    color: #ef4444 !important; /* Red for bad metrics */
}

/* Report Disclaimer */
.report-disclaimer {
    margin: 20px 0;
    padding: 15px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    flex-shrink: 0;
    min-height: 80px;
    max-height: 120px;
}

.disclaimer-content h4 {
    margin: 0 0 10px 0;
    color: #dc2626;
    font-size: 14px;
}

.disclaimer-content p {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-secondary);
}

/* Chart Container */
.chart-container {
    margin-top: 24px;
}

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

.chart-placeholder {
    background: var(--bg-tertiary);
    border: 2px dashed var(--border-primary);
    border-radius: var(--border-radius-md);
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
}

/* Expert Analysis */
.analysis-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius-md);
    padding: 24px;
    margin-bottom: 20px;
}

.analysis-card:last-child {
    margin-bottom: 0;
}

.analysis-card h4 {
    color: var(--text-primary);
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Recommendation Card */
.recommendation-card {
    border-left: 4px solid var(--accent-primary);
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(0, 255, 136, 0.05));
}

.recommendation-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recommendation-badge.ready {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success);
}

.recommendation-badge.caution {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.recommendation-badge.needs-optimization {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.recommendation-reasoning {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

/* Analysis Lists */
.analysis-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.analysis-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-primary);
    color: var(--text-secondary);
    line-height: 1.5;
}

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

.analysis-list li:before {
    content: "•";
    color: var(--accent-primary);
    font-weight: bold;
    margin-right: 12px;
}

/* Risk Assessment */
.risk-assessment {
    text-align: center;
}

.risk-level {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius-md);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.risk-level.low {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success);
}

.risk-level.moderate {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.risk-level.high {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.risk-description {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.metric-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-1px);
}

.metric-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.metric-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.metric-positive {
    color: #22c55e !important; /* Green for good metrics */
}

.metric-negative {
    color: #ef4444 !important; /* Red for bad metrics */
}

/* Report Disclaimer */
.report-disclaimer {
    margin: 20px 0;
    padding: 15px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    flex-shrink: 0;
    min-height: 80px;
    max-height: 120px;
}

.disclaimer-content h4 {
    margin: 0 0 10px 0;
    color: #dc2626;
    font-size: 14px;
}

.disclaimer-content p {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-secondary);
}

/* Chart Container */
.chart-container {
    margin-top: 24px;
}

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

.chart-placeholder {
    background: var(--bg-tertiary);
    border: 2px dashed var(--border-primary);
    border-radius: var(--border-radius-md);
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
}

/* Expert Analysis */
.analysis-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius-md);
    padding: 24px;
    margin-bottom: 20px;
}

.analysis-card:last-child {
    margin-bottom: 0;
}

.analysis-card h4 {
    color: var(--text-primary);
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Recommendation Card */
.recommendation-card {
    border-left: 4px solid var(--accent-primary);
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(0, 255, 136, 0.05));
}

.recommendation-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recommendation-badge.ready {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success);
}

.recommendation-badge.caution {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.recommendation-badge.needs-optimization {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.recommendation-reasoning {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

/* Analysis Lists */
.analysis-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.analysis-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-primary);
    color: var(--text-secondary);
    line-height: 1.5;
}

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

.analysis-list li:before {
    content: "•";
    color: var(--accent-primary);
    font-weight: bold;
    margin-right: 12px;
}

/* Risk Assessment */
.risk-assessment {
    text-align: center;
}

.risk-level {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius-md);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.risk-level.low {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success);
}

.risk-level.moderate {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.risk-level.high {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.risk-description {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

/* Report Footer */
.report-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
    padding: 20px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    flex-shrink: 0;
    min-height: 70px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .report-modal {
        width: 98%;
        height: 90vh;
        min-height: 700px;
    }
    
    .report-section {
        padding: 25px 24px;
        min-height: 250px;
    }
    
    .report-header {
        padding: 20px 24px;
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .report-title {
        font-size: 16px; /* Reduced from 20px for mobile */
    }
    
    .report-logo {
        height: 36px; /* 50% increase from 24px for mobile */
    }
    
    .report-section {
        padding: 20px 24px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .strategy-summary {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .metric-card {
        padding: 16px;
    }
    
    .metric-value {
        font-size: 18px;
    }
    
    .analysis-card {
        padding: 20px;
    }
    
    .analysis-card h4 {
        font-size: 16px;
    }
    
    .report-footer {
        padding: 16px 24px;
        flex-direction: column;
        gap: 12px;
    }
    
    .report-footer .btn-secondary,
    .report-footer .btn-primary {
        width: 100%;
        text-align: center;
    }
}

/* Authentication & User Interface Styles */

/* Header User Info */
.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.user-details {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-email {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.user-plan {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.trial-status {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid var(--warning);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    animation: pulse 2s ease-in-out infinite;
}

.strategy-count {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.user-menu {
    position: relative;
}

.btn-user {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-user:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-secondary);
}

.user-avatar {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #ffffff;
    font-size: 0.8rem;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.user-menu.open .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 180px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.user-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.user-dropdown a:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-primary);
    margin: 0.5rem 0;
}

/* Upgrade Modal Styles */
.upgrade-message {
    text-align: center;
}

.upgrade-features {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.upgrade-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.upgrade-features li {
    padding: 0.5rem 0;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-primary);
}

.upgrade-features li:last-child {
    border-bottom: none;
}

.trial-offer {
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    color: #ffffff;
}

.trial-highlight h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.trial-highlight p {
    margin: 0;
    opacity: 0.9;
}

/* Strategy Limit Modal */
.limit-message {
    text-align: center;
}

.current-plan-info {
    margin: 1.5rem 0;
}

.plan-box {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.plan-box span:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

.plan-box span:last-child {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.upgrade-options {
    margin-top: 2rem;
}

.plan-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.plan-option-small {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.plan-option-small h5 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.plan-price-small {
    color: var(--accent-primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.plan-option-small ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.8rem;
}

.plan-option-small li {
    padding: 0.25rem 0;
    color: var(--text-secondary);
}

/* Trial Expired Modal */
.trial-expired-message {
    text-align: center;
}

.trial-summary {
    background: var(--success-bg);
    border: 1px solid var(--success);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: left;
}

.trial-summary h4 {
    color: var(--success);
    margin: 0 0 1rem 0;
}

.trial-summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trial-summary li {
    padding: 0.25rem 0;
    color: var(--text-primary);
}

.continue-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.option-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.option-card h5 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.option-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.option-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.downgrade-warning {
    background: var(--warning-bg);
    border: 1px solid var(--warning);
    border-radius: 6px;
    padding: 0.75rem;
    color: var(--warning);
    font-size: 0.8rem;
}

/* Account Settings Modal */
.settings-section {
    margin-bottom: 2rem;
}

.settings-section h4 {
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-primary);
    padding-bottom: 0.5rem;
}

.setting-item {
    margin-bottom: 1rem;
}

.setting-item label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.setting-item input {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.setting-item input:read-only {
    opacity: 0.7;
    cursor: not-allowed;
}

.subscription-info {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 1.5rem;
}

.current-plan {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.plan-name {
    font-weight: 600;
    color: var(--text-primary);
}

.plan-status {
    background: var(--success-bg);
    color: var(--success);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.plan-limits {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.trial-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-primary);
}

.usage-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.usage-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.usage-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.usage-value {
    display: block;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
}

/* Button Styles */
.btn-full {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-center {
        display: none;
    }
    
    .user-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .plan-comparison,
    .continue-options {
        grid-template-columns: 1fr;
    }
    
    .usage-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .upgrade-features {
        padding: 1rem;
    }
    
    .trial-offer {
        padding: 1rem;
    }
    
    .subscription-info {
        padding: 1rem;
    }
}

/* Account Settings - Danger Zone */
.danger-zone {
    border: 2px solid #dc3545 !important;
    background: rgba(220, 53, 69, 0.05) !important;
    border-radius: 8px;
    margin-top: 2rem;
}

.danger-zone h4 {
    color: #dc3545 !important;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.danger-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.danger-info h5 {
    color: #dc3545;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.danger-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.cancel-consequences {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cancel-consequences li {
    color: var(--text-secondary);
    padding: 0.25rem 0;
    font-size: 0.9rem;
    position: relative;
    padding-left: 1.5rem;
}

.cancel-consequences li::before {
    content: "⚠️";
    position: absolute;
    left: 0;
    top: 0.25rem;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.btn-danger:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
}

/* Cancel Account Modal */
.cancel-warning h4 {
    color: #dc3545;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.cancel-warning p {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cancel-checklist,
.cancel-alternatives {
    margin: 1.5rem 0;
    padding: 1rem;
    border-radius: 6px;
}

.cancel-checklist {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.cancel-alternatives {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.cancel-checklist h5,
.cancel-alternatives h5 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}

.cancel-checklist h5 {
    color: #dc3545;
}

.cancel-alternatives h5 {
    color: #28a745;
}

.cancel-checklist ul,
.cancel-alternatives ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cancel-checklist li,
.cancel-alternatives li {
    padding: 0.25rem 0;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.cancel-confirmation {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(220, 53, 69, 0.05);
    border: 2px solid #dc3545;
    border-radius: 8px;
}

.cancel-confirmation p {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.cancel-final-warning {
    margin-top: 1rem;
    text-align: center;
}

/* Mobile responsiveness for danger zone */
@media (max-width: 768px) {
    .danger-item {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .cancel-checklist,
    .cancel-alternatives {
        padding: 0.75rem;
    }
    
    .cancel-confirmation {
        padding: 1rem;
    }
}
