/* === FORM COMPONENTS === */

/* Unified Form Styles */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
  color: var(--text-primary);
  font-size: var(--font-size-base);
}

/* Token Group Separator */
.form-group.token-group + .form-group.token-group {
  border-top: 1px solid var(--border-primary);
  padding-top: var(--space-md);
}

/* Unified Input Styling */
.form-input {
  width: 100%;
  padding: calc(8px * var(--master-scale)) calc(12px * var(--master-scale));
  background: var(--bg-glass);
  backdrop-filter: blur(calc(8px * var(--master-scale)));
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  transition: all var(--transition-smooth);
  min-height: var(--input-height);
}

.form-input:focus {
    border-color: var(--border-accent);
  outline: 0;
  box-shadow: 0 0 0 calc(2px * var(--master-scale)) rgba(0, 170, 255, 0.25);
  background: var(--bg-glass-hover);
}

.form-input::placeholder {
  color: var(--text-muted);
}

/* Input Container for side-by-side layouts */
.input-container {
  display: flex;
  gap: var(--space-sm);
  align-items: stretch;
  margin-bottom: var(--space-sm);
}

/* Unified Button Styling */
.form-button {
  background: var(--gradient-accent);
  color: white;
  border: none;
  padding: calc(8px * var(--master-scale)) calc(16px * var(--master-scale));
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  white-space: nowrap;
  font-weight: 600;
  font-size: var(--font-size-base);
  transition: all var(--transition-smooth);
  min-height: var(--button-height);
  box-shadow: var(--shadow-sm);
}

.form-button:hover:not(:disabled) {
  transform: translateY(calc(-1px * var(--master-scale)));
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, 
    rgba(0, 212, 255, 0.9) 0%, 
    rgba(124, 58, 237, 0.9) 100%);
}

.form-button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.form-button:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Checkbox Styling */
.checkbox-container {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
  cursor: pointer;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  font-weight: normal;
  transition: all var(--transition-fast);
}

.align-left {
  text-align: left;
  display: block;
}

.checkbox-container:hover {
  color: var(--text-accent);
}

.checkbox-container input[type="checkbox"] {
  width: calc(16px * var(--master-scale));
  height: calc(16px * var(--master-scale));
  margin: 0;
  accent-color: var(--accent-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-container input[type="checkbox"]:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Info Messages */
.form-info {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-top: var(--space-xs);
  line-height: calc(1.4 * var(--master-scale));
  transition: all var(--transition-smooth);
  display: none;
  opacity: 0;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius-sm);
  border-left: 3px solid transparent;
  background-color: var(--bg-glass);
}

.form-info.visible {
  display: block;
  opacity: 1;
}

.form-info.success {
  background-color: rgba(16, 185, 129, 0.1);
  border-left-color: var(--accent-success);
  color: var(--accent-success);
}

.form-info.error {
  background-color: rgba(239, 68, 68, 0.1);
  border-left-color: var(--accent-error);
  color: var(--accent-error);
}

.form-info.warning {
  background-color: rgba(245, 158, 11, 0.1);
  border-left-color: var(--accent-warning);
  color: var(--accent-warning);
}

.form-info.info {
  background-color: rgba(0, 170, 255, 0.1);
  border-left-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Tooltip Styling */
.tooltip {
  position: relative;
  cursor: help;
  color: var(--accent-tertiary);
  display: inline-block;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: calc(220px * var(--master-scale));
  background-color: var(--bg-tertiary);
  backdrop-filter: blur(var(--glass-blur));
  color: var(--text-primary);
  text-align: left;
  padding: var(--space-xs);
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-sm);
  line-height: calc(1.3 * var(--master-scale));
  position: absolute;
  z-index: 1000;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  white-space: normal;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-primary);
}

.tooltip:hover .tooltip-text {
  visibility: visible;
}

/* Key Manager Tooltip */
.key-tooltip {
  position: fixed;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: calc(6px * var(--master-scale)) calc(10px * var(--master-scale));
  border-radius: calc(4px * var(--master-scale));
  font-family: var(--font-mono);
  font-size: calc(0.75rem * var(--master-scale));
  z-index: 10001;
  max-width: 300px;
  word-break: break-all;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.key-value-preview {
  cursor: help;
  position: relative;
}

/* === UPLOAD COMPONENTS === */

.upload-button {
  display: inline-block;
  background: var(--gradient-accent);
  color: white;
  padding: calc(12px * var(--master-scale)) calc(24px * var(--master-scale));
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--font-size-base);
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-md);
}

.upload-button:hover {
  transform: translateY(calc(-2px * var(--master-scale)));
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, 
    rgba(0, 212, 255, 0.9) 0%, 
    rgba(124, 58, 237, 0.9) 100%);
}

.upload-progress, .processing-status, .results {
  background: var(--gradient-surface);
  backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-primary);
  margin-bottom: var(--space-md) !important; 
}

.progress-container {
  height: calc(20px * var(--master-scale));
  background-color: var(--secondary-color);
  border-radius: calc(10px * var(--master-scale));
  margin: var(--space-md) 0;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: var(--gradient-accent);
  width: 0;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.progress-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: calc(0.75rem * var(--master-scale));
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

#progress-text {
  text-align: center;
  font-weight: 600;
  margin-bottom: var(--space-md);
  font-size: var(--font-size-base);
}

#file-list {
  max-height: calc(200px * var(--master-scale));
  overflow-y: auto;
  margin-top: var(--space-md);
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xs);
  border-bottom: 1px solid var(--border-color);
}

.file-name {
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: var(--space-md);
}

.file-status {
  flex-shrink: 0;
  font-size: var(--font-size-sm);
}

.file-status.success {
  color: var(--success-color);
  font-weight: bold;
}

.file-status.error {
  color: var(--error-color);
  font-weight: bold;
  }

.file-status.uploading {
  color: var(--primary-color);
}

.file-status.warning {
  color: var(--accent-warning);
}

.status-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-lg) 0;
}

.spinner {
  width: calc(30px * var(--master-scale));
  height: calc(30px * var(--master-scale));
  border: calc(4px * var(--master-scale)) solid rgba(255, 255, 255, 0.1);
  border-left-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: var(--space-md);
}

#processing-log {
  max-height: calc(200px * var(--master-scale));
  overflow-y: auto;
  padding: var(--space-sm);
  background: var(--bg-glass);
  backdrop-filter: blur(calc(8px * var(--master-scale)));
  border-radius: var(--border-radius-sm);
  font-family: var(--font-mono);
  margin-top: var(--space-md);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  font-size: var(--font-size-sm);
  overflow-x: hidden;
}

.log-entry {
  margin: calc(5px * var(--master-scale)) 0;
  line-height: calc(1.5 * var(--master-scale));
}

.log-entry.info {
  color: var(--text-color);
}

.log-entry.success {
  color: var(--success-color);
}

.log-entry.error {
  color: var(--error-color);
}

#result-links {
  margin: var(--space-lg) 0;
}

.result-link {
  display: block;
  padding: calc(12px * var(--master-scale)) var(--space-md);
  background: var(--bg-glass);
  backdrop-filter: blur(calc(8px * var(--master-scale)));
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  margin-bottom: var(--space-sm);
  text-decoration: none;
  color: var(--text-color);
  transition: all var(--transition-smooth);
}

.result-link:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-accent);
  transform: translateY(calc(-1px * var(--master-scale)));
}

.download-button, .start-button, .parse-more-button {
    display: block;
  width: 100%;
  background: var(--gradient-accent);
  color: white;
  padding: calc(12px * var(--master-scale)) calc(24px * var(--master-scale));
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-weight: 600;
  border: none;
  font-size: var(--font-size-base);
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  margin: var(--space-lg) auto;
}

.parse-more-button {
  display: inline-block;
  width: auto;
  min-width: 120px;
  text-align: center;
}

.start-button {
  background-color: var(--text-muted);
  color: var(--text-secondary);
  cursor: not-allowed;
}

.start-button.ready {
  background: var(--gradient-accent);
  color: white;
  cursor: pointer;
}

.start-button.ready:hover, .download-button:hover, .parse-more-button:hover {
  transform: translateY(calc(-2px * var(--master-scale)));
  box-shadow: var(--shadow-md);
}

.status-message {
  text-align: center;
  margin-top: var(--space-sm);
  font-weight: bold;
  color: var(--success-color);
}

.success-icon {
  color: var(--success-color);
  font-size: calc(24px * var(--master-scale));
  margin-left: var(--space-sm);
}

.result-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: var(--space-xs) 0;
}

.copy-button, .copy-both-button {
  padding: calc(4px * var(--master-scale)) var(--space-xs);
  background: var(--success-color);
  color: white;
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-size: var(--font-size-sm);
  transition: all var(--transition-smooth);
}

.copy-button:hover, .copy-both-button:hover {
  background: var(--accent-success);
  transform: translateY(calc(-1px * var(--master-scale)));
}

.copy-button.copied, .copy-both-button.copied {
  background: var(--accent-primary);
}

.copy-both-button {
  margin-top: var(--space-xs);
}

.both-links {
  margin-bottom: var(--space-sm);
  padding-bottom: 0;
  border-bottom: none;
  text-align: center;
}

#result-links h4:first-child {
  border-top: 1px solid var(--border-primary);
  padding-top: var(--space-sm);
}

.result-item:first-child:not(.both-links ~ .result-item) {
  border-top: 1px solid var(--border-primary);
  padding-top: var(--space-sm);
  margin-top: var(--space-sm);
}

/* === PRIVACY & CONTACT COMPONENTS === */


.privacy-notice {
  background: var(--gradient-surface);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius-lg);
  margin: var(--space-xs) 0 !important; /* Force consistent spacing */
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.privacy-header {
  background: var(--gradient-accent);
  padding: var(--space-xs) var(--space-sm);
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-smooth);
}

.privacy-header:hover {
  background: linear-gradient(135deg, 
    rgba(0, 212, 255, 0.9) 0%, 
    rgba(124, 58, 237, 0.9) 100%);
}

.privacy-header h3 {
  color: white;
  margin: 0;
  font-size: var(--font-size-base);
  font-weight: 600;
  display: flex;
  align-items: center;  /* Changed from flex-start to center */
  gap: var(--space-xs);
  flex: 1;
}

.privacy-header svg:first-child {
  flex-shrink: 0;
  margin-top: calc(2px * var(--master-scale));
}

.privacy-summary {
  font-size: var(--font-size-sm);
  font-weight: 400;
  opacity: 0.9;
  margin-left: calc(4px * var(--master-scale));
  line-height: calc(1.3 * var(--master-scale));
}

.privacy-toggle {
  flex-shrink: 0;
  transition: transform var(--transition-smooth);
  opacity: 0.8;
}

.privacy-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth);
  padding: 0 var(--space-lg);
}

.privacy-notice.expanded .privacy-content {
  padding: var(--space-lg);
}

.privacy-notice.expanded .privacy-toggle {
  transform: rotate(180deg);
}

.privacy-item {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-color);
}

.privacy-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.privacy-item h4 {
  color: var(--text-color);
  margin: 0 0 var(--space-xs) 0;
  font-size: var(--font-size-base);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.privacy-item p {
  color: var(--text-secondary);
  margin: 0;
  line-height: calc(1.5 * var(--master-scale));
  font-size: var(--font-size-sm);
}

.privacy-item strong {
  color: var(--primary-color);
  font-weight: 600;
}

.contact-section {
  background: var(--gradient-surface);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xs);
  margin: var(--space-xs) 0 !important; /* Force consistent spacing */
  text-align: center;
  box-shadow: var(--shadow-md);
}

.contact-section h2 {
  color: var(--primary-color);
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-xs);
}

.contact-section p {
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.contact-section ul {
  list-style: none;
  padding: 0;
}

.contact-section li {
  margin: var(--space-sm) 0;
  color: var(--text-color);
  font-size: var(--font-size-base);
}

.contact-handle {
  color: var(--accent-color);
  font-weight: bold;
}

/* === KEY MANAGER COMPONENTS === */

.key-manager-button {
    background: var(--bg-glass) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-primary) !important;
}

.key-manager-button:hover:not(:disabled) {
  background: var(--bg-glass-hover) !important;
  border-color: var(--border-accent) !important;
  transform: translateY(calc(-1px * var(--master-scale)));
  box-shadow: var(--shadow-md);
}

.key-manager-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  animation: modalFadeIn 0.3s ease-out;
}

.key-manager-overlay {
  width: 100%;
  max-width: calc(600px * var(--master-scale));
  max-height: 90vh;
  overflow: hidden;
  animation: modalSlideIn 0.3s ease-out;
}

.key-manager-content {
  background: var(--gradient-surface);
  backdrop-filter: blur(var(--glass-blur-heavy));
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy));
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg), 0 0 48px rgba(0, 170, 255, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.key-manager-header {
  background: var(--gradient-accent);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border-accent);
}

.key-manager-header h3 {
  color: white;
  margin: 0;
  font-size: var(--font-size-xl);
  font-weight: 600;
}

.key-manager-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: calc(24px * var(--master-scale));
  width: calc(32px * var(--master-scale));
  height: calc(32px * var(--master-scale));
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-smooth);
  line-height: 1;
}

.key-manager-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.key-manager-body {
  padding: var(--space-lg);
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.key-manager-body h4 {
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.saved-keys-section {
  margin-bottom: var(--space-xl);
}

.saved-keys-list {
  max-height: calc(250px * var(--master-scale));
  overflow-y: auto;
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius-sm);
  background: var(--bg-glass);
}

.no-keys-message {
  padding: var(--space-lg);
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
}

.saved-key-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-primary);
  background: var(--bg-glass);
  transition: all var(--transition-smooth);
}

.saved-key-item:last-child {
  border-bottom: none;
}

.saved-key-item:hover {
  border-color: var(--border-accent);
  background: var(--bg-glass-hover);
}

.key-info {
  flex: 1;
  min-width: 0;
}

.key-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: calc(4px * var(--master-scale));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.key-meta {
  display: flex;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.key-value-preview {
  font-family: var(--font-mono);
  background: var(--bg-glass);
  padding: calc(2px * var(--master-scale)) calc(4px * var(--master-scale));
  border-radius: calc(4px * var(--master-scale));
  font-size: calc(0.75rem * var(--master-scale));
}

.key-actions {
  display: flex;
  gap: var(--space-xs);
  flex-shrink: 0;
}

.use-key-button {
  background: var(--accent-success);
  padding: calc(4px * var(--master-scale)) calc(8px * var(--master-scale));
  font-size: var(--font-size-sm);
  min-height: auto;
}

.use-key-button:hover {
  background: var(--accent-success);
  filter: brightness(1.1);
}

.delete-button {
  background: var(--accent-error);
  padding: calc(4px * var(--master-scale)) calc(8px * var(--master-scale));
  font-size: var(--font-size-sm);
  min-height: auto;
}

.delete-button:hover {
  background: var(--accent-error);
  filter: brightness(1.1);
}

.add-key-section {
  border-top: 1px solid var(--border-primary);
  padding-top: var(--space-md);
}

.add-key-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.key-manager-footer {
  padding: var(--space-md);
  border-top: 1px solid var(--border-primary);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.key-manager-cancel {
  background: var(--text-muted);
}

.key-manager-cancel:hover {
  background: var(--text-muted);
  filter: brightness(1.1);
}

/* === WARNING COMPONENTS === */

.single-file-warning.prominent {
  background: var(--gradient-surface);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 2px solid var(--accent-warning);
  border-radius: var(--border-radius-lg);
  margin: var(--space-md) 0;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.2), var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.single-file-warning.prominent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(245, 158, 11, 0.15) 0%, 
    rgba(255, 127, 80, 0.1) 100%);
  pointer-events: none;
  z-index: 0;
}

.warning-content {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md);
  position: relative;
  z-index: 1;
}

.warning-icon {
  font-size: calc(20px * var(--master-scale));
  flex-shrink: 0;
  color: var(--accent-warning);
  margin-top: calc(2px * var(--master-scale));
}

.warning-text {
  color: var(--text-primary);
  font-weight: 500;
  font-size: var(--font-size-base);
  line-height: calc(1.5 * var(--master-scale));
}

.warning-text strong {
  color: var(--accent-warning);
  font-weight: 600;
}

.single-file-warning.prominent {
  animation: fadeInPulse 0.8s var(--transition-bounce);
}

/* === KOFI WIDGET COMPONENTS === */

.kofi-container {
  margin: var(--space-xs) 0 !important; /* Force consistent spacing */
  display: flex;
  justify-content: center;
}

#kofiShortcode857 iframe {
  border-radius: var(--border-radius-sm) !important;
  box-shadow: var(--shadow-md) !important;
  border: 1px solid var(--border-color) !important;
}

.ko-fi-button {
  background-color: var(--accent-color) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--border-radius-sm) !important;
  transition: all var(--transition-smooth) !important;
}

.ko-fi-button:hover {
  background-color: #e56b47 !important;
  border-color: var(--primary-color) !important;
}

/* Loading animation for form buttons */
.form-button:disabled::after {
  content: '';
  position: absolute;
  width: calc(16px * var(--master-scale));
  height: calc(16px * var(--master-scale));
  margin: auto;
  border: calc(2px * var(--master-scale)) solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: button-loading-spinner 1s linear infinite;
  top: 0;
  bottom: 0;
  right: var(--space-sm);
}

/* Enhanced progress bar animation */
#total-progress::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.1) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.1) 75%,
    transparent 75%,
    transparent
  );
  background-size: calc(40px * var(--master-scale)) calc(40px * var(--master-scale));
  animation: progressStripes 1s linear infinite;
}

/* === GIVEAWAY COMPONENTS === */

.giveaway-link {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.2) 0%, 
        rgba(255, 140, 0, 0.2) 100%) !important;
    border: 2px solid rgba(255, 215, 0, 0.5) !important;
    color: #FFD700 !important;
    position: relative;
    overflow: hidden;
}

.giveaway-link:hover {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.3) 0%, 
        rgba(255, 140, 0, 0.3) 100%) !important;
    border-color: rgba(255, 215, 0, 0.8) !important;
    color: #FFD700 !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    transform: translateY(calc(-2px * var(--master-scale)));
}

.giveaway-link::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s linear infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.giveaway-message {
    animation: fadeInDown 0.3s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Discord webhook specific styles */

.discord-webhook-button {
    background: linear-gradient(135deg, 
        rgba(114, 137, 218, 0.2) 0%, 
        rgba(88, 101, 242, 0.2) 100%) !important;
    border: 2px solid rgba(114, 137, 218, 0.5) !important;
    color: #7289da !important;
}

.discord-webhook-button:hover {
    background: linear-gradient(135deg, 
        rgba(114, 137, 218, 0.3) 0%, 
        rgba(88, 101, 242, 0.3) 100%) !important;
    border-color: rgba(114, 137, 218, 0.8) !important;
    box-shadow: 0 0 20px rgba(114, 137, 218, 0.3);
}

#discord-status-message {
    padding: var(--space-sm);
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-sm);
}

#discord-status-message.success {
    background: rgba(16, 185, 129, 0.1);
    border-left: 3px solid var(--accent-success);
    color: var(--accent-success);
}

#discord-status-message.error {
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid var(--accent-error);
    color: var(--accent-error);
}


.message-preview-section {
    margin-bottom: var(--space-md);
}

.message-preview {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius-sm);
    min-height: calc(120px * var(--master-scale)); /* Increase this value for larger preview */
}

.preview-content {
    margin-top: var(--space-sm);
}

.discord-message-preview {
    background-color: #313338;
    padding: calc(16px * var(--master-scale)); /* Increased from 8px */
    border-radius: calc(8px * var(--master-scale)); /* Increased from 6px */
    font-family: "Whitney", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: calc(15px * var(--master-scale)); /* Increased from 14px */
    color: #dcddde;
}

.discord-author {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.discord-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
}

.discord-username {
    font-weight: 600;
    color: #ffffff;
    margin-right: 6px;
}

.discord-timestamp {
    color: #72767d;
    font-size: 12px;
}

.discord-content a {
    color: #00aff4;
    text-decoration: none;
}
.discord-content a:hover {
    text-decoration: underline;
}

.discord-app-badge {
    background: #5865f2;
    color: #ffffff;
    font-size: calc(10px * var(--master-scale));
    font-weight: 600;
    padding: calc(2px * var(--master-scale)) calc(4px * var(--master-scale));
    border-radius: calc(3px * var(--master-scale));
    margin-left: calc(4px * var(--master-scale));
    margin-right: calc(4px * var(--master-scale));
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(22px * var(--master-scale));
    height: calc(22px * var(--master-scale));
    margin-left: var(--space-xs);
    background: var(--accent-primary);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    font-size: calc(15px * var(--master-scale));
    font-weight: bold;
    transition: all var(--transition-smooth);
    vertical-align: middle;
}

.help-icon:hover {
    background: var(--text-primary);
    transform: scale(1.1);
}

.help-icon svg {
    display: block;
}

.discord-login-btn-nav {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: calc(8px * var(--master-scale)) calc(16px * var(--master-scale));
    background: #5865F2;
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: var(--font-size-sm);
    transition: all var(--transition-smooth);
    white-space: nowrap;
}

.discord-login-btn-nav:hover {
    background: #4752C4;
    transform: translateY(calc(-1px * var(--master-scale)));
}

.discord-login-btn-nav svg {
    flex-shrink: 0;
}

.discord-user-info-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: calc(4px * var(--master-scale)) calc(12px * var(--master-scale));
    background: var(--bg-glass);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: var(--border-radius-sm);
}

.discord-avatar-nav {
    width: calc(28px * var(--master-scale));
    height: calc(28px * var(--master-scale));
    border-radius: 50%;
    border: 2px solid #5865F2;
}

.discord-username-nav {
    color: var(--text-primary);
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.discord-logout-btn-nav {
    padding: calc(4px * var(--master-scale)) calc(10px * var(--master-scale));
    background: var(--accent-error);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: calc(0.75rem * var(--master-scale));
    font-weight: 600;
    transition: all var(--transition-smooth);
}

.discord-logout-btn-nav:hover {
    background: #dc2626;
}


/* Add to components.css */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.global-status-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    color: white;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    font-weight: 600;
    animation: slideInRight 0.3s ease-out;
}

.global-status-message.success {
    background: var(--accent-success);
}

.global-status-message.error {
    background: var(--accent-error);
}

.global-status-message.info {
    background: var(--accent-primary);
}

.saved-key-item.selected {
    background: rgba(88, 101, 242, 0.1);
    border-color: var(--accent-primary);
}

.saved-key-item.selected .key-name {
    color: var(--accent-primary);
    font-weight: 600;
}

.saved-key-item.selected .key-name {
    color: var(--accent-primary);
    font-weight: 600;
}

/* === CHANGELOG MODAL COMPONENTS === */

.changelog-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  animation: modalFadeIn 0.3s ease-out;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.changelog-modal.show {
  opacity: 1;
}

.changelog-overlay {
  width: 100%;
  max-width: calc(850px * var(--master-scale));
  max-height: 90vh;
  overflow: hidden;
  animation: modalSlideIn 0.3s ease-out;
}

.changelog-content {
  background: var(--gradient-surface);
  backdrop-filter: blur(var(--glass-blur-heavy));
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy));
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg), 0 0 48px rgba(0, 170, 255, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.changelog-header {
  background: var(--gradient-accent);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border-accent);
}

.changelog-header h3 {
  color: white;
  margin: 0;
  font-size: var(--font-size-xl);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.changelog-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: calc(24px * var(--master-scale));
  width: calc(32px * var(--master-scale));
  height: calc(32px * var(--master-scale));
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-smooth);
  line-height: 1;
}

.changelog-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.changelog-body {
  padding: var(--space-lg);
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.changelog-entry {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-primary);
}

.changelog-entry:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.changelog-entry-header {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.changelog-version {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--accent-primary);
}

.changelog-date {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  font-weight: 500;
}

.changelog-badge {
  display: inline-block;
  padding: calc(2px * var(--master-scale)) calc(8px * var(--master-scale));
  border-radius: calc(12px * var(--master-scale));
  font-size: calc(0.75rem * var(--master-scale));
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.changelog-badge.new {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-success);
  border: 1px solid var(--accent-success);
}

.changelog-badge.feature {
  background: rgba(0, 170, 255, 0.2);
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
}

.changelog-badge.fix {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-warning);
  border: 1px solid var(--accent-warning);
}

.changelog-badge.breaking {
  background: rgba(239, 68, 68, 0.2);
  color: var(--accent-error);
  border: 1px solid var(--accent-error);
}

.changelog-items {
  list-style: none;
  padding: 0;
  margin: var(--space-sm) 0 0 0;
}

.changelog-items li {
  padding: var(--space-xs) 0;
  padding-left: var(--space-md);
  position: relative;
  color: var(--text-secondary);
  line-height: calc(1.6 * var(--master-scale));
}

.changelog-items li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

.changelog-items li strong {
  color: var(--text-primary);
  font-weight: 600;
}

.maintenance-notice {
    border-top: 1px solid #666;  /* adjust color */
    margin-top: 6px;           /* spacing above */
    padding-top: 3px;           /* spacing inside */
}

.nexus-plugin-button {
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.2) 0%, 
    rgba(168, 85, 247, 0.2) 100%) !important;
  border: 2px solid rgba(139, 92, 246, 0.5) !important;
  color: #a78bfa !important;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.nexus-plugin-button:hover {
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.3) 0%, 
    rgba(168, 85, 247, 0.3) 100%) !important;
  border-color: rgba(139, 92, 246, 0.8) !important;
  color: #c4b5fd !important;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.beta-badge {
  display: inline-block;
  padding: calc(2px * var(--master-scale)) calc(6px * var(--master-scale));
  background: rgba(245, 158, 11, 0.9);
  color: white;
  font-size: calc(0.65rem * var(--master-scale));
  font-weight: 700;
  border-radius: calc(4px * var(--master-scale));
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: calc(4px * var(--master-scale));
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* File item layout - maintains original left-right structure */
.file-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: calc(10px * var(--master-scale)) calc(12px * var(--master-scale));
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-smooth);
    gap: var(--space-md);
}

.file-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Left side - filename and metadata */
.file-info-left {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: calc(6px * var(--master-scale));
}

/* Filename at top */
.file-name {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Metadata row below filename */
.file-formatted-info {
    display: flex;
    align-items: center;
    gap: calc(10px * var(--master-scale));
    flex-wrap: wrap;
    font-size: calc(0.8rem * var(--master-scale));
    line-height: 1.2;
}

/* Individual metadata elements */
.file-timestamp {
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
}

.file-map-badge {
    font-weight: 600;
    font-size: calc(0.8rem * var(--master-scale));
    white-space: nowrap;
}

.file-recorder,
.file-commander {
    font-size: calc(0.8rem * var(--master-scale));
    color: var(--text-secondary);
    white-space: nowrap;
}

.file-recorder strong {
    color: #7dd3fc;
    font-weight: 500;
}

.file-commander strong {
    color: #fbbf24;
    font-weight: 500;
}

.file-size-display {
    color: var(--text-muted);
    font-size: calc(0.75rem * var(--master-scale));
    white-space: nowrap;
}

/* Right side - status */
.file-status {
    flex-shrink: 0;
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-align: right;
    min-width: calc(120px * var(--master-scale));
}

.file-status.success {
    color: var(--success-color);
}

.file-status.error {
    color: var(--error-color);
}

.file-status.uploading {
    color: var(--primary-color);
}

.file-status.warning {
    color: var(--accent-warning);
}


/* Delete button styling */
.file-delete-btn {
    background: var(--accent-error);
    color: white;
    border: none;
    padding: calc(4px * var(--master-scale)) calc(8px * var(--master-scale));
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: calc(0.75rem * var(--master-scale));
    font-weight: 600;
    transition: all var(--transition-smooth);
    margin-left: var(--space-xs);
    white-space: nowrap;
}

.file-delete-btn:hover {
    background: #dc2626;
    transform: translateY(calc(-1px * var(--master-scale)));
}

.file-delete-btn:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

/* Deleted file state */
.file-item.deleted {
    opacity: 0.5;
    pointer-events: none;
}

.file-item.deleting {
    opacity: 0.7;
}

.file-status.deleted {
    color: var(--text-muted);
    text-decoration: line-through;
}

.timer-info {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-top: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-glass);
    backdrop-filter: blur(calc(8px * var(--master-scale)));
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-primary);
    text-align: center;
    font-weight: 500;
    line-height: calc(1.4 * var(--master-scale));
}

.timer-overdue {
    background: rgba(251, 191, 36, 0.1);
    border-color: var(--accent-warning);
    color: var(--accent-warning);
}

/* Queue Status Indicator */
.queue-status {
    margin: var(--space-md) auto;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--border-radius-sm);
    text-align: center;
    font-size: var(--font-size-sm);
    font-weight: 600;
    transition: all var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    max-width: calc(500px * var(--master-scale));
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--shadow-sm);
}

.queue-status.idle {
    background: var(--gradient-surface);
    border: 1px solid var(--accent-success);
    color: var(--accent-success);
}

.queue-status.moderate {
    background: var(--gradient-surface);
    border: 1px solid var(--accent-warning);
    color: var(--accent-warning);
}

.queue-status.busy {
    background: var(--gradient-surface);
    border: 1px solid var(--accent-error);
    color: var(--accent-error);
}

.queue-status .status-icon {
    width: calc(8px * var(--master-scale));
    height: calc(8px * var(--master-scale));
    border-radius: 50%;
    animation: queuePulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.queue-status.idle .status-icon {
    background: var(--accent-success);
}

.queue-status.moderate .status-icon {
    background: var(--accent-warning);
}

.queue-status.busy .status-icon {
    background: var(--accent-error);
}

@keyframes queuePulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.queue-status .status-text {
    display: flex;
    align-items: center;
    gap: calc(4px * var(--master-scale));
}

.queue-status.loading {
    background: var(--gradient-surface);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
}

.queue-status .spinner-small {
    width: calc(12px * var(--master-scale));
    height: calc(12px * var(--master-scale));
    border: calc(2px * var(--master-scale)) solid rgba(255, 255, 255, 0.3);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* === ABOUT MODAL COMPONENTS === */

.about-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  animation: modalFadeIn 0.3s ease-out;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.about-modal.show {
  opacity: 1;
}

.about-overlay {
  width: 100%;
  max-width: calc(850px * var(--master-scale));
  max-height: 90vh;
  overflow: hidden;
  animation: modalSlideIn 0.3s ease-out;
}

.about-content {
  background: var(--gradient-surface);
  backdrop-filter: blur(var(--glass-blur-heavy));
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy));
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg), 0 0 48px rgba(0, 170, 255, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.about-header {
  background: var(--gradient-accent);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border-accent);
}

.about-header h3 {
  color: white;
  margin: 0;
  font-size: var(--font-size-xl);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.about-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: calc(24px * var(--master-scale));
  width: calc(32px * var(--master-scale));
  height: calc(32px * var(--master-scale));
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-smooth);
  line-height: 1;
}

.about-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.about-body {
  padding: var(--space-lg);
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.about-section {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-primary);
}

.about-section:last-of-type {
  margin-bottom: var(--space-lg);
  padding-bottom: 0;
  border-bottom: none;
}

.about-section h4 {
  color: var(--text-primary);
  margin: 0 0 var(--space-md) 0;
  font-size: var(--font-size-lg);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.about-section p {
  color: var(--text-secondary);
  line-height: calc(1.6 * var(--master-scale));
  margin-bottom: var(--space-sm);
}

.about-section p:last-child {
  margin-bottom: 0;
}

.about-section code {
  background: var(--bg-glass);
  padding: calc(2px * var(--master-scale)) calc(6px * var(--master-scale));
  border-radius: calc(4px * var(--master-scale));
  font-family: var(--font-mono);
  font-size: calc(0.9em);
  color: var(--accent-primary);
}

.about-specs {
  list-style: none;
  padding: 0;
  margin: var(--space-sm) 0;
  background: var(--bg-glass);
  border-radius: var(--border-radius-sm);
  padding: var(--space-md);
}

.about-specs li {
  padding: var(--space-xs) 0;
  color: var(--text-secondary);
  line-height: calc(1.6 * var(--master-scale));
}

.about-specs li strong {
  color: var(--text-primary);
  font-weight: 600;
  display: inline-block;
  min-width: calc(100px * var(--master-scale));
}

.about-footer {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 2px solid var(--border-primary);
  text-align: center;
}

.about-footer p {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.about-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-contact li {
  color: var(--text-secondary);
  margin: var(--space-xs) 0;
}

.about-contact .contact-handle {
  color: var(--accent-color);
  font-weight: bold;
}

.about-image {
    text-align: center;
    margin-top: 20px;
}

.about-image img {
    max-width: 512px;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.about-image img:hover {
    opacity: 1;
}

/* Contact Form Toggle */
.contact-form-toggle {
    margin-top: var(--space-md);
}

.contact-toggle-btn {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
}

.contact-toggle-btn:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-accent);
}

.contact-toggle-btn .toggle-icon {
    transition: transform var(--transition-smooth);
}

.contact-form-collapsible {
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    margin-top: var(--space-md);
}



/* RAM Wanted Button */
.ram-wanted-button {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.2) 0%, 
        rgba(5, 150, 105, 0.2) 100%) !important;
    border: 2px solid rgba(16, 185, 129, 0.5) !important;
    color: #10b981 !important;
}

.ram-wanted-button:hover {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.3) 0%, 
        rgba(5, 150, 105, 0.3) 100%) !important;
    border-color: rgba(16, 185, 129, 0.8) !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

/* RAM Wanted Modal - reuse about modal styles */
.ram-wanted-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(var(--glass-blur));
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    animation: modalFadeIn 0.3s ease-out;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.ram-wanted-modal.show {
    opacity: 1;
}

.ram-wanted-overlay {
    width: 100%;
    max-width: calc(850px * var(--master-scale));
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

.ram-wanted-content {
    background: var(--gradient-surface);
    backdrop-filter: blur(var(--glass-blur-heavy));
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg), 0 0 48px rgba(16, 185, 129, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.ram-wanted-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.ram-wanted-header h3 {
    color: white;
    margin: 0;
    font-size: var(--font-size-xl);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.ram-wanted-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: calc(24px * var(--master-scale));
    width: calc(32px * var(--master-scale));
    height: calc(32px * var(--master-scale));
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-smooth);
    line-height: 1;
}

.ram-wanted-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.ram-wanted-body {
    padding: var(--space-lg);
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.ram-wanted-section h4 {
    color: var(--text-primary);
    margin: var(--space-lg) 0 var(--space-md) 0;
    font-size: var(--font-size-lg);
    font-weight: 600;
}

.ram-wanted-section h4:first-child {
    margin-top: 0;
}

.ram-wanted-section p {
    color: var(--text-secondary);
    line-height: calc(1.6 * var(--master-scale));
    margin-bottom: var(--space-sm);
}

.ram-benefits,
.ram-specs {
    list-style: none;
    padding: 0;
    margin: var(--space-md) 0;
}

.ram-benefits li,
.ram-specs li {
    padding: var(--space-xs) 0;
    padding-left: var(--space-md);
    position: relative;
    color: var(--text-secondary);
    line-height: calc(1.6 * var(--master-scale));
}

.ram-benefits li::before {
    content: "";
    position: absolute;
    left: 0;
    color: var(--accent-success);
    font-weight: bold;
}

.ram-specs li strong {
    color: var(--text-primary);
    font-weight: 600;
    display: inline-block;
    min-width: calc(100px * var(--master-scale));
}

/* === PARSER MODE DROPDOWN === */

.parser-mode-container select {
    cursor: pointer;
    appearance: none;
    background-color: var(--bg-glass);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right calc(12px * var(--master-scale)) center;
    padding: calc(12px * var(--master-scale)) calc(12px * var(--master-scale));  /* CHANGED: Match text input padding */
    padding-right: calc(36px * var(--master-scale));  /* Keep room for arrow */
    min-height: var(--input-height);
    height: auto;
}

.parser-mode-container select:hover {
    border-color: var(--border-accent);
    background-color: var(--bg-glass-hover);
    background-position: right calc(12px * var(--master-scale)) center;
}

.parser-mode-container select:focus {
    outline: 0;
    border-color: var(--border-primary);  /* Changed from border-accent to border-primary */
    box-shadow: none;  /* Removed the blue glow shadow */
    background-color: var(--bg-glass-hover);
    background-position: right calc(12px * var(--master-scale)) center;
}

/* Force dark background for dropdown options */
.parser-mode-container select option {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    padding: calc(8px * var(--master-scale));
}

/* Prevent white background on hover/focus for options */
.parser-mode-container select option:hover {
    background-color: var(--bg-glass-hover) !important;
    color: var(--text-primary) !important;
}

.parser-mode-container select option:checked,
.parser-mode-container select option:focus {
    background-color: var(--accent-primary) !important;
    color: white !important;
}

.parser-mode-container .form-info {
    display: block;
    opacity: 1;
    background-color: rgba(0, 170, 255, 0.1);
}

/* Parser mode info text styling */
.parser-mode-info {
    color: var(--text-primary) !important;  /* White text */
}

.parser-mode-info strong {
    color: var(--text-primary);
    font-weight: 700;  /* Extra bold for the labels */
}