/* CSS Variables & Theme Setup */
:root {
  --bg-color: #0b0a13;
  --bg-glow-purple: radial-gradient(circle at 10% 20%, rgba(138, 43, 226, 0.15) 0%, transparent 50%);
  --bg-glow-blue: radial-gradient(circle at 90% 80%, rgba(0, 191, 255, 0.12) 0%, transparent 50%);
  
  --card-bg: rgba(22, 21, 38, 0.92);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hover: rgba(255, 255, 255, 0.18);
  
  --text-main: #f3f3fb;
  --text-muted: #9da0c3;
  --text-dark: #696b8a;
  
  --accent-purple: #9c27b0;
  --accent-purple-glow: rgba(156, 39, 176, 0.4);
  --accent-blue: #00bcd4;
  --accent-blue-glow: rgba(0, 188, 212, 0.4);
  --accent-green: #4caf50;
  --accent-orange: #ff9800;
  --accent-danger: #f44336;
  
  --btn-primary-bg: linear-gradient(135deg, #8e2de2 0%, #4a00e0 100%);
  --btn-primary-hover: linear-gradient(135deg, #9b40e6 0%, #5b14e6 100%);
  --btn-primary-glow: rgba(142, 45, 226, 0.4);
  
  --font-family-title: 'Outfit', sans-serif;
  --font-family-body: 'Inter', sans-serif;
  --font-family-code: 'Fira Code', monospace;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  
  --shadow-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow-card-glow: 0 0 20px rgba(138, 43, 226, 0.1);
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-family-body);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Background Glow Effects */
.glow-bg {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
}

.bg-purple {
  background: var(--bg-glow-purple);
}

.bg-blue {
  background: var(--bg-glow-blue);
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Main Container */
.app-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 2rem;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.spark-icon-wrapper {
  background: linear-gradient(135deg, rgba(142, 45, 226, 0.2) 0%, rgba(74, 0, 224, 0.2) 100%);
  border: 1px solid var(--accent-purple);
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px var(--accent-purple-glow);
}

.icon-sparkle {
  color: var(--accent-blue);
  animation: float-pulse 4s ease-in-out infinite;
}

@keyframes float-pulse {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.9; }
  50% { transform: translateY(-4px) scale(1.1); opacity: 1; }
}

.logo-title {
  font-family: var(--font-family-title);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, #ffffff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-subtitle {
  font-size: 0.9rem;
  color: var(--accent-blue);
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-family-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: white;
  box-shadow: 0 4px 15px var(--btn-primary-glow);
}

.btn-primary:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--btn-primary-glow), 0 0 10px rgba(255, 255, 255, 0.15);
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-muted);
  color: white;
}

.btn-danger {
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.2);
  color: var(--accent-danger);
}

.btn-danger:hover {
  background: var(--accent-danger);
  color: white;
}

.btn-block {
  width: 100%;
}

.btn-small {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 6px;
}

.btn-pulse {
  position: relative;
  overflow: hidden;
}

.btn-pulse::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  opacity: 0;
  transition: transform 0.5s, opacity 0.5s;
}

.btn-pulse:active::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  transition: 0s;
}

/* Badges */
.badge {
  background: var(--accent-purple);
  color: white;
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}

.badge.hidden {
  display: none;
}

/* Glass Cards */
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: var(--shadow-glow);
  transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-glow), var(--shadow-card-glow);
}

/* Main Workspace Grid Layout */
.workspace-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 950px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }
}

/* Control Panel */
.control-panel {
  padding: 1.5rem;
  position: sticky;
  top: 2rem;
}

.section-title {
  font-family: var(--font-family-title);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 0.75rem;
}

.setting-group {
  margin-bottom: 1.5rem;
}

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

/* Toggles & Selects */
.toggle-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--card-border);
  padding: 3px;
  border-radius: 8px;
}

.toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-family-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  transition: var(--transition-fast);
}

.toggle-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.toggle-btn.active {
  background: var(--accent-purple);
  color: white;
  box-shadow: 0 2px 8px var(--accent-purple-glow);
}

/* Sliders */
.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  margin: 0.75rem 0 0.25rem 0;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-blue);
  cursor: pointer;
  box-shadow: 0 0 8px var(--accent-blue-glow);
  transition: transform 0.1s ease;
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dark);
}

/* Forms */
.form-select, .form-textarea, .form-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  font-family: var(--font-family-body);
  font-size: 0.9rem;
  border-radius: 8px;
  padding: 0.65rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-select:focus, .form-textarea:focus, .form-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 10px rgba(0, 188, 212, 0.2);
}

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

.input-hint {
  font-size: 0.75rem;
  color: var(--text-dark);
  margin-top: 0.4rem;
}

/* Main Content & Seeds Grid */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.seeds-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 700px) {
  .seeds-grid {
    grid-template-columns: 1fr;
  }
}

.seed-card {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  min-height: 180px;
}

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

.card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.tag-purple {
  background: rgba(156, 39, 176, 0.15);
  color: #e040fb;
  border: 1px solid rgba(156, 39, 176, 0.3);
}

.tag-blue {
  background: rgba(0, 188, 212, 0.15);
  color: #00e5ff;
  border: 1px solid rgba(0, 188, 212, 0.3);
}

.tag-green {
  background: rgba(76, 175, 80, 0.15);
  color: #69f0ae;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.tag-orange {
  background: rgba(255, 152, 0, 0.15);
  color: #ffd180;
  border: 1px solid rgba(255, 152, 0, 0.3);
}

.btn-reroll-card {
  background: transparent;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.btn-reroll-card:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.btn-reroll-card:hover i {
  transform: rotate(180deg);
}

.btn-reroll-card i {
  transition: transform 0.4s ease;
  width: 16px;
  height: 16px;
}

.seed-title {
  font-family: var(--font-family-title);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: white;
}

.seed-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.seed-link {
  font-size: 0.75rem;
  color: var(--accent-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.seed-link:hover {
  color: white;
  text-decoration: underline;
}

.seed-link i {
  width: 12px;
  height: 12px;
}

.random-words-wrapper {
  margin-top: 0.75rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.05);
  padding-top: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.words-label {
  font-size: 0.75rem;
  color: var(--text-dark);
  font-weight: 600;
  text-transform: uppercase;
}

.word-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.word-pill {
  font-family: var(--font-family-code);
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-muted);
}

.seed-quote {
  font-family: var(--font-family-title);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.4;
  color: #ffd180;
  margin-bottom: 0.5rem;
  position: relative;
  flex-grow: 1;
}

.quote-author {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.interaction-concept {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
  justify-content: center;
}

.concept-item {
  display: flex;
  flex-direction: column;
}

.concept-label {
  font-size: 0.75rem;
  color: var(--text-dark);
  font-weight: 600;
  text-transform: uppercase;
}

.concept-value {
  font-family: var(--font-family-title);
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
}

.concept-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--card-border-hover);
}

.concept-divider i {
  width: 14px;
  height: 14px;
}

/* Prompt Workspace Card */
.prompt-workspace {
  padding: 1.5rem;
}

.section-header-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.panel-subtitle {
  font-family: var(--font-family-title);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.prompt-display-container {
  background: #06050b;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 1rem;
  max-height: 180px;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.prompt-text-box {
  font-family: var(--font-family-code);
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: pre-wrap;
  word-break: break-all;
}

.generation-trigger-bar {
  display: flex;
  justify-content: flex-end;
}

.btn-spark-action {
  font-size: 1.05rem;
  padding: 0.8rem 1.75rem;
}

/* Results Panel */
.results-panel {
  padding: 1.5rem;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

.results-actions {
  display: flex;
  gap: 0.5rem;
}

.icon-bulb {
  color: var(--accent-orange);
}

/* Spinners */
.spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 0;
  width: 100%;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-large {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.loading-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Markdown Rendering Elements */
.markdown-body {
  font-size: 0.95rem;
  line-height: 1.6;
}

.markdown-body h1, .markdown-body h2, .markdown-body h3 {
  font-family: var(--font-family-title);
  color: white;
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

.markdown-body h3 {
  font-size: 1.15rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  padding-bottom: 0.25rem;
  color: var(--accent-blue);
}

.markdown-body p {
  margin-bottom: 1rem;
  color: var(--text-main);
}

.markdown-body ul, .markdown-body ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.markdown-body li {
  margin-bottom: 0.4rem;
}

.markdown-body strong {
  color: white;
}

.markdown-body blockquote {
  border-left: 4px solid var(--accent-purple);
  background: rgba(156, 39, 176, 0.05);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6, 5, 11, 0.85);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: var(--transition-smooth);
}

.modal-content {
  width: 90%;
  max-width: 500px;
  padding: 1.75rem;
  border-color: rgba(255, 255, 255, 0.15);
  position: relative;
  animation: slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slide-up {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

.modal-header h3 {
  font-family: var(--font-family-title);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-close:hover {
  color: white;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.setting-field {
  display: flex;
  flex-direction: column;
}

.range-display-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.slider-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  padding: 2px 8px;
  font-family: var(--font-family-code);
  font-size: 0.85rem;
  color: var(--accent-blue);
  min-width: 38px;
  text-align: center;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--card-border);
  padding-top: 1rem;
  margin-top: 1.5rem;
}

/* Saved Sidebar */
.saved-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  height: 100vh;
  z-index: 90;
  padding: 1.5rem;
  border-left: 1px solid var(--card-border);
  border-radius: 16px 0 0 16px;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0,0,0,0.5);
  animation: slide-left 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slide-left {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.sidebar-header h3 {
  font-family: var(--font-family-title);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-body {
  flex-grow: 1;
  overflow-y: auto;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 60%;
  color: var(--text-dark);
  text-align: center;
  padding: 1rem;
}

.icon-empty {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.empty-state p {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.empty-state .subtext {
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.saved-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.saved-item {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 1rem;
  position: relative;
  transition: var(--transition-smooth);
}

.saved-item:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
}

.saved-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  font-size: 0.7rem;
  color: var(--text-dark);
}

.saved-item-date {
  font-weight: 500;
}

.btn-delete-saved {
  background: transparent;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
  transition: var(--transition-fast);
}

.btn-delete-saved:hover {
  color: var(--accent-danger);
}

.saved-item-body {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: pre-wrap;
  max-height: 120px;
  overflow-y: auto;
}

/* Helper Class */
.hidden {
  display: none !important;
}

/* Tipping Modal Styles */
.tipping-modal-content {
  max-width: 460px;
}

.tipping-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  text-align: center;
}

.tipping-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--card-border);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

.tipping-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-family-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: var(--transition-smooth);
}

.tipping-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.tipping-tab-btn.active {
  background: var(--accent-purple);
  color: white;
  box-shadow: 0 2px 8px var(--accent-purple-glow);
}

.tipping-panels {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.tipping-panel {
  display: none;
  width: 100%;
  animation: tippingFadeIn 0.3s ease-in-out forwards;
}

.tipping-panel.active {
  display: block;
}

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

.coffee-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.coffee-note, .crypto-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.btn-coffee {
  background: #FFDD00;
  color: #000000;
  border: 1px solid #FFDD00;
  box-shadow: 0 4px 12px rgba(255, 221, 0, 0.25);
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-coffee:hover {
  background: #ffea5c;
  color: #000000;
  border-color: #ffea5c;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 221, 0, 0.35);
}

.address-copy-container {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  max-width: 100%;
  margin: 0.5rem 0;
}

.address-code {
  font-family: var(--font-family-code);
  font-size: 0.82rem;
  color: var(--accent-blue);
  word-break: break-all;
  user-select: all;
  text-align: left;
}

.btn-copy-addr {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 0.4rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-copy-addr:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.tip-copied-msg {
  display: block;
  font-size: 0.75rem;
  color: #69f0ae;
  margin-top: 0.25rem;
  font-weight: 500;
}

.icon-heart-glow {
  filter: drop-shadow(0 0 5px var(--accent-danger));
}
