/* AUTH & PAYWALL STYLES */
.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.auth-modal {
  background: #2c2c2c;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  max-width: 400px;
  color: white;
  max-height: 90vh;
  overflow-y: auto;
}

.auth-modal h2 {
  color: #4CAF50;
  margin-bottom: 20px;
}

.auth-modal p {
  margin-bottom: 25px;
  color: #e0e0e0;
  line-height: 1.5;
}

.gumroad-btn {
  background: #36A9AE;
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin: 10px;
  transition: background 0.3s;
}

.gumroad-btn:hover {
  background: #2a8287;
}

.google-login-btn {
  background: #4285f4;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px auto 0;
  max-width: 200px;
}

.usage-bar {
  background: #222;
  border-radius: 8px;
  height: 6px;
  margin: 8px 0;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
  border: 1px solid #444;
}

.usage-fill {
  background: linear-gradient(to right, #4CAF50, #ff9800, #f44336);
  height: 100%;
  transition: width 0.3s;
}

.user-info {
  background: #333;
  padding: 8px 12px;
  border-radius: 6px;
  margin: 15px 0 8px 0;
  font-size: 12px;
  color: #e0e0e0;
  border: 1px solid #444;
}

.upgrade-btn {
  background: linear-gradient(45deg, #4CAF50, #45a049);
  border: none;
  color: white;
  padding: 3px 6px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 10px;
  margin-left: 8px;
  transition: all 0.3s;
  font-weight: 600;
  min-width: 70px;
  text-align: center;
}

.upgrade-btn:hover {
  background: linear-gradient(45deg, #45a049, #4CAF50);
  transform: scale(1.05);
}

.signout-btn {
  background: #666;
  border: none;
  color: white;
  padding: 3px 6px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 10px;
  min-width: 70px;
  text-align: center;
}

.top-upgrade-btn {
  position: absolute;
  top: 80px;
  right: 30px;
  background: linear-gradient(45deg, #4CAF50, #45a049);
  border: none;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
  z-index: 1000;
  display: none;
}

.top-upgrade-btn:hover {
  background: linear-gradient(45deg, #45a049, #4CAF50);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.top-upgrade-btn.show {
  display: block;
}

/* Load Session Alignment Fix (CSS Grid Method) */
.load-session-group {
  display: grid;
  grid-template-columns: 1fr auto; /* Input takes space, button fits content */
  gap: 10px;
  align-items: center; /* This works reliably in Grid */
}

/* We only need to remove the button's default bottom margin */
.load-session-group .btn {
  margin-bottom: 0; 
  padding: 10px 15px; /* Adjust padding for desired size */
}

#loadSessionBtn svg {
  width: 14px;
  height: 14px;
}

/* Summary Prompt Modal */
#summary-prompt-textarea {
  width: 100%;
  height: 300px;
  margin-top: 15px;
  margin-bottom: 20px;
  font-size: 13px;
  font-family: 'Consolas', monospace;
  line-height: 1.6;
  background-color: #222;
  color: #ddd;
  padding: 15px;
  border: 1px solid #555;
  border-radius: 6px;
  resize: vertical;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.modal-actions .btn {
    margin-bottom: 0;
}

/* Profanity Filter Modal */
#profanity-filter-modal .auth-modal {
    max-width: 800px;
}

#profanity-blacklist-textarea {
    width: 100%;
    height: 200px;
    margin-top: 10px;
    margin-bottom: 15px;
    font-size: 13px;
    font-family: 'Consolas', monospace;
    line-height: 1.4;
    background-color: #222;
    color: #ddd;
    padding: 15px;
    border: 1px solid #555;
    border-radius: 6px;
    resize: vertical;
}

#profanity-severe-textarea {
    width: 100%;
    height: 120px;
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    font-family: 'Consolas', monospace;
    line-height: 1.4;
    background-color: #2d1f1f;
    color: #ffcccc;
    padding: 15px;
    border: 1px solid #665555;
    border-radius: 6px;
    resize: vertical;
}

.blacklist-section {
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
}

.blacklist-section h4 {
    margin-bottom: 8px;
    color: #e0e0e0;
    font-size: 14px;
}

.blacklist-help {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 10px;
}

.severe-warning {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    padding: 10px;
    border-radius: 4px;
    font-size: 12px;
    color: #ff9999;
    margin-bottom: 10px;
