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

/* Theme Variables */
:root {
  /* Dark Theme (Default) */
  --bg-gradient-start: #1a1a2e;
  --bg-gradient-end: #16213e;
  --text-primary: #eee;
  --text-secondary: #ccc;
  --header-bg: rgba(255, 255, 255, 0.05);
  --header-border: rgba(255, 255, 255, 0.1);
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.1);
  --region-heading: #ffd700;
  --link-color: #3498db;
  --link-hover: #5dade2;
  --soon-bg: rgba(255, 105, 180, 0.2);
  --soon-border: rgba(255, 105, 180, 0.6);
  --spawning-bg: rgba(138, 43, 226, 0.2);
  --spawning-border: rgba(138, 43, 226, 0.6);
  --done-opacity: 0.4;
  --shadow-color: rgba(0, 0, 0, 0.3);
}

/* Light Theme */
[data-theme="light"] {
  --bg-gradient-start: #f5f7fa;
  --bg-gradient-end: #c3cfe2;
  --text-primary: #2c3e50;
  --text-secondary: #34495e;
  --header-bg: rgba(255, 255, 255, 0.9);
  --header-border: rgba(0, 0, 0, 0.1);
  --card-bg: rgba(255, 255, 255, 0.95);
  --card-border: rgba(0, 0, 0, 0.1);
  --region-heading: #f39c12;
  --link-color: #2980b9;
  --link-hover: #3498db;
  --soon-bg: rgba(255, 105, 180, 0.25);
  --soon-border: rgba(255, 20, 147, 0.8);
  --spawning-bg: rgba(138, 43, 226, 0.25);
  --spawning-border: rgba(138, 43, 226, 0.8);
  --done-opacity: 0.5;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

/* ============================================
   Skeleton Loader
   ============================================ */

.skeleton-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  animation: fadeIn 0.3s ease-out;
}

.skeleton-region {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--card-border);
}

.skeleton-heading {
  height: 32px;
  background: linear-gradient(
    90deg,
    var(--card-border) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    var(--card-border) 100%
  );
  background-size: 200% 100%;
  border-radius: 8px;
  margin-bottom: 20px;
  animation: shimmer 1.5s infinite;
}

.skeleton-item {
  height: 80px;
  background: linear-gradient(
    90deg,
    var(--card-border) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    var(--card-border) 100%
  );
  background-size: 200% 100%;
  border-radius: 8px;
  margin-bottom: 12px;
  animation: shimmer 1.5s infinite;
  animation-delay: calc(var(--index, 0) * 0.1s);
}

.skeleton-item:nth-child(2) {
  --index: 1;
}

.skeleton-item:nth-child(3) {
  --index: 2;
}

.skeleton-item:nth-child(4) {
  --index: 3;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ============================================
   Scroll Animations
   ============================================ */

.animate-ready {
  opacity: 0;
  transform: translateY(20px);
}

.animate-in {
  animation: slideUp 0.5s ease-out forwards;
}

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

/* Stagger animation for multiple items */
.region-section:nth-child(1) {
  animation-delay: 0s;
}
.region-section:nth-child(2) {
  animation-delay: 0.1s;
}
.region-section:nth-child(3) {
  animation-delay: 0.2s;
}

.boss-item:nth-child(1) {
  animation-delay: 0s;
}
.boss-item:nth-child(2) {
  animation-delay: 0.05s;
}
.boss-item:nth-child(3) {
  animation-delay: 0.1s;
}
.boss-item:nth-child(4) {
  animation-delay: 0.15s;
}
.boss-item:nth-child(5) {
  animation-delay: 0.2s;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(
    135deg,
    var(--bg-gradient-start) 0%,
    var(--bg-gradient-end) 100%
  );
  color: var(--text-primary);
  min-height: 100vh;
  padding: 20px;
  transition:
    background 0.3s ease,
    color 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

header {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
  background: var(--header-bg);
  border-radius: 12px;
  border: 1px solid var(--header-border);
  box-shadow: 0 4px 6px var(--shadow-color);
  transition:
    background 0.3s ease,
    border 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Loading Bar */
.loading-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #e74c3c, #f39c12, #3498db, #9b59b6);
  background-size: 200% 100%;
  animation:
    loadingProgress 1.5s ease-out forwards,
    gradientShift 2s ease infinite;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.loading-bar.hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes loadingProgress {
  0% {
    width: 0%;
  }
  50% {
    width: 70%;
  }
  100% {
    width: 100%;
  }
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

header h1 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.header-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.volume-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.volume-control label {
  font-size: 0.9rem;
}

#volume-slider {
  width: 150px;
  cursor: pointer;
}

#volume-value {
  font-size: 0.9rem;
  min-width: 40px;
}

/* Notification Toggle Button */
.notification-btn {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.5);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.notification-btn:hover:not(:disabled) {
  background: rgba(231, 76, 60, 0.3);
  border-color: #e74c3c;
  transform: translateY(-2px);
}

.notification-btn.active {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
  border-color: rgba(46, 204, 113, 0.5);
}

.notification-btn.active:hover {
  background: rgba(46, 204, 113, 0.3);
  border-color: #2ecc71;
}

.notification-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Export Button */
.export-btn {
  background: rgba(52, 152, 219, 0.2);
  color: #3498db;
  border: 1px solid rgba(52, 152, 219, 0.5);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  min-height: 44px;
  min-width: 44px;
}

.export-btn:hover:not(:disabled) {
  background: rgba(52, 152, 219, 0.3);
  border-color: #3498db;
  transform: translateY(-2px);
}

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

.export-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Ko-fi Header Button */
.kofi-header-btn {
  background: linear-gradient(135deg, #ff5f5f 0%, #ff9e7a 100%);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(255, 95, 109, 0.4);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}

.kofi-header-btn:hover {
  background: linear-gradient(135deg, #ff4545 0%, #ff8a5c 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 95, 109, 0.5);
}

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

/* Theme Toggle Button */
.theme-toggle-btn {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 4px var(--shadow-color);
  min-height: 44px;
  min-width: 44px;
}

.theme-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow-color);
}

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

[data-theme="light"] .theme-toggle-btn {
  background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
}

main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Community Message */
.community-message {
  background: rgba(52, 152, 219, 0.15);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(52, 152, 219, 0.3);
  text-align: center;
  transition:
    background 0.3s ease,
    border 0.3s ease;
}

.community-message p {
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
  margin-bottom: 10px;
}

.community-message p:last-child {
  margin-bottom: 0;
}

.community-message a {
  color: var(--link-color);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s;
}

.community-message a:hover {
  color: var(--link-hover);
}

/* SF Calculator Guide */
.guide-content {
  margin-top: 1rem;
  text-align: left;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.guide-steps {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
  line-height: 1.8;
}

.guide-steps li {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.guide-tip {
  margin-top: 1rem;
  padding: 0.8rem;
  background: rgba(255, 193, 7, 0.1);
  border-left: 3px solid #ffc107;
  border-radius: 4px;
  font-size: 0.95rem;
}

/* Last Updated Timestamp */
.last-updated {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 10px !important;
}

#update-time {
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: help;
}

#update-time.fresh {
  color: #2ecc71;
  background: rgba(46, 204, 113, 0.15);
}

#update-time.recent {
  color: #f39c12;
  background: rgba(243, 156, 18, 0.15);
}

#update-time.old {
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.15);
}

/* Horizontal Regions Layout */
.regions-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
}

.loading {
  text-align: center;
  padding: 40px;
  color: #888;
}

/* Region Section */
.region-section {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--card-border);
  box-shadow: 0 2px 4px var(--shadow-color);
  transition:
    background 0.3s ease,
    border 0.3s ease;
}

.region-section h2 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--card-border);
  color: var(--region-heading);
  transition: color 0.3s ease;
}

.region-note {
  color: #f39c12;
  font-style: italic;
  padding: 15px;
  background: rgba(243, 156, 18, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(243, 156, 18, 0.3);
  transition:
    background 0.3s ease,
    border 0.3s ease;
}

.region-note a {
  color: var(--link-color);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s;
}

.region-note a:hover {
  color: var(--link-hover);
}

.boss-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Boss Item */
.boss-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: var(--card-bg);
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Smooth background shimmer on hover */
.boss-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  transition: left 0.6s ease;
  pointer-events: none;
}

.boss-item:hover::before {
  left: 100%;
}

.boss-item:hover {
  transform: translateX(4px);
}

.boss-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.boss-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Confidence Badge Styles */
.confidence-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  cursor: help;
}

.confidence-badge.conf-high {
  background: rgba(241, 196, 15, 0.2);
  color: #f1c40f;
  border: 1px solid rgba(241, 196, 15, 0.4);
}

.confidence-badge.conf-medium {
  background: rgba(230, 126, 34, 0.2);
  color: #e67e22;
  border: 1px solid rgba(230, 126, 34, 0.4);
}

.confidence-badge.conf-low {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.4);
}

[data-theme="light"] .confidence-badge.conf-high {
  background: rgba(241, 196, 15, 0.3);
  color: #d4ac0d;
}

[data-theme="light"] .confidence-badge.conf-medium {
  background: rgba(230, 126, 34, 0.3);
  color: #ca6f1e;
}

[data-theme="light"] .confidence-badge.conf-low {
  background: rgba(231, 76, 60, 0.3);
  color: #c0392b;
}

/* Patch Warning Badge - shows locations changed after maintenance */
.patch-warning-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 5px;
  margin-left: 6px;
  border-radius: 4px;
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.4);
  cursor: help;
  white-space: nowrap;
}

[data-theme="light"] .patch-warning-badge {
  background: rgba(231, 76, 60, 0.15);
  color: #c0392b;
}

.boss-time-scheduled {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.boss-timer {
  font-family: "Courier New", monospace;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 5px 15px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .boss-timer {
  background: rgba(0, 0, 0, 0.1);
}

/* Normal State - more than 5 minutes */
.boss-item.normal {
  border-color: var(--card-border);
}

.boss-item.normal .boss-timer {
  color: var(--text-secondary);
}

/* Soon State - within 5 minutes (PINK) */
.boss-item.soon {
  border-color: var(--soon-border);
  background: var(--soon-bg);
  animation: pulse-pink 1.5s infinite;
}

.boss-item.soon .boss-timer {
  color: #ff69b4;
}

@keyframes pulse-pink {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(255, 105, 180, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 20px rgba(255, 105, 180, 0.6),
      0 0 30px rgba(255, 105, 180, 0.3);
    transform: scale(1.01);
  }
}

/* Spawning State - timer hit 0, 5-minute spawning timer (PURPLE) */
.boss-item.spawning {
  border-color: var(--spawning-border);
  background: var(--spawning-bg);
  animation: pulse-purple 1s infinite;
}

.boss-item.spawning .boss-timer {
  color: #9b59b6;
}

.boss-item.spawning .boss-status {
  color: #e74c3c;
  font-weight: bold;
  text-transform: uppercase;
}

@keyframes pulse-purple {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(155, 89, 182, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 25px rgba(155, 89, 182, 0.8),
      0 0 40px rgba(155, 89, 182, 0.4);
    transform: scale(1.02);
  }
}

/* Next State - after spawning timer, counting to next boss */
.boss-item.next {
  border-color: #3498db;
  background: rgba(52, 152, 219, 0.1);
}

.boss-item.next .boss-timer {
  color: #3498db;
}

.boss-item.next .boss-status {
  color: #3498db;
  font-size: 0.8rem;
}

/* Done State - spawn ended */
.boss-item.done {
  border-color: var(--card-border);
  background: var(--card-bg);
  opacity: var(--done-opacity);
}

.boss-item.done .boss-timer {
  color: #666;
}

.boss-item.done .boss-status {
  color: #666;
  font-size: 0.8rem;
}

/* Timer Display */
.timer-display {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.boss-status {
  font-size: 0.75rem;
  color: #888;
}

footer {
  text-align: center;
  margin-top: 30px;
  padding: 15px;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

footer.sound-enabled {
  color: #2ecc71;
}

/* About Section */
.about-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.about-section h2 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #ffd700;
}

.about-section p {
  margin: 8px 0;
  color: #ccc;
}

.about-section strong {
  color: #00ffff;
}

/* Support Section */
.support-section {
  background: linear-gradient(
    135deg,
    rgba(255, 95, 109, 0.1),
    rgba(255, 195, 113, 0.1)
  );
  border-radius: 12px;
  padding: 25px;
  margin-top: 20px;
  border: 1px solid rgba(255, 95, 109, 0.3);
  text-align: center;
}

.support-section h2 {
  color: #ff6f61;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

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

.support-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.support-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.support-btn .support-icon {
  font-size: 1.2rem;
}

.kofi-btn {
  background: linear-gradient(135deg, #ff5f5f, #ff9e7a);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 95, 109, 0.4);
}

.kofi-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 95, 109, 0.6);
  background: linear-gradient(135deg, #ff4545, #ff8a5c);
}

.gumroad-btn {
  background: linear-gradient(135deg, #ff90e8, #ffb8f0);
  color: #1a1a2e;
  box-shadow: 0 4px 15px rgba(255, 144, 232, 0.4);
}

.gumroad-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 144, 232, 0.6);
  background: linear-gradient(135deg, #ff7de0, #ffa8eb);
}

.support-note {
  font-size: 0.9rem;
  color: var(--text-secondary);
  opacity: 0.8;
}

/* Light theme adjustments for support section */
[data-theme="light"] .support-section {
  background: linear-gradient(
    135deg,
    rgba(255, 95, 109, 0.15),
    rgba(255, 195, 113, 0.15)
  );
  border-color: rgba(255, 95, 109, 0.4);
}

[data-theme="light"] .support-section h2 {
  color: #e74c3c;
}

/* Surprise Section */
.surprise-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 15px;
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.surprise-section details {
  cursor: pointer;
}

.surprise-section summary {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffd700;
  padding: 10px;
  user-select: none;
  transition: color 0.3s;
}

.surprise-section summary:hover {
  color: #ffed4e;
}

.surprise-content {
  margin-top: 15px;
  font-size: 1.3rem;
  font-weight: bold;
  color: #ff69b4;
  animation: surprise-reveal 0.5s ease-out;
  text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

@keyframes surprise-reveal {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive - Mobile First Approach */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .container {
    max-width: 100%;
  }

  header {
    padding: 15px;
    margin-bottom: 20px;
  }

  header h1 {
    font-size: 1.4rem;
    margin-bottom: 15px;
  }

  .header-controls {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .volume-control {
    width: 100%;
    justify-content: space-between;
  }

  #volume-slider {
    flex: 1;
    max-width: 150px;
  }

  .theme-toggle-btn,
  .notification-btn,
  .export-btn,
  .kofi-header-btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    min-height: 48px;
    justify-content: center;
  }

  .community-message {
    padding: 15px;
    font-size: 0.95rem;
  }

  .regions-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .region-section {
    padding: 15px;
  }

  .region-section h2 {
    font-size: 1.2rem;
  }

  .boss-item {
    flex-direction: column;
    gap: 12px;
    padding: 15px;
    text-align: center;
  }

  .boss-info {
    width: 100%;
  }

  .boss-name {
    font-size: 1.05rem;
  }

  .boss-timer {
    font-size: 1.4rem;
    padding: 8px 20px;
  }

  .timer-display {
    width: 100%;
    align-items: center;
  }

  footer {
    font-size: 0.85rem;
    padding: 15px;
  }

  .about-section,
  .support-section,
  .surprise-section {
    padding: 15px;
    font-size: 0.95rem;
  }

  .support-buttons {
    flex-direction: column;
    align-items: center;
  }

  .support-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  body {
    padding: 8px;
  }

  header h1 {
    font-size: 1.2rem;
  }

  .volume-control label {
    font-size: 0.85rem;
  }

  .theme-toggle-btn,
  .notification-btn,
  .export-btn {
    font-size: 0.95rem;
  }

  .boss-name {
    font-size: 1rem;
  }

  .boss-timer {
    font-size: 1.3rem;
  }

  .region-section h2 {
    font-size: 1.1rem;
  }
}

/* Landscape mobile optimization */
@media (max-width: 900px) and (orientation: landscape) {
  body {
    padding: 10px;
  }

  header h1 {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .header-controls {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .volume-control {
    flex: 1;
    min-width: 200px;
  }

  .theme-toggle-btn,
  .notification-btn,
  .export-btn {
    flex: 0 1 auto;
    width: auto;
    min-width: 120px;
  }

  .regions-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet optimization */
@media (min-width: 481px) and (max-width: 768px) {
  .regions-container {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }

  .boss-item {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .timer-display {
    align-items: flex-end;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Enhanced touch targets */
  button,
  a,
  summary,
  input[type="range"] {
    min-height: 44px;
    min-width: 44px;
  }

  .boss-item {
    padding: 18px;
  }

  /* Remove hover effects on touch devices */
  .boss-item:hover {
    transform: none;
  }

  button:hover {
    transform: none;
  }

  /* Add active states for better feedback */
  button:active {
    transform: scale(0.98);
    opacity: 0.9;
  }

  .boss-item:active {
    background: var(--card-bg);
    opacity: 0.95;
  }
}

@media (max-width: 600px) {
  header h1 {
    font-size: 1.3rem;
  }

  .regions-container {
    grid-template-columns: 1fr;
  }

  .boss-item {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .timer-display {
    align-items: center;
  }
}

/* ============================================
   SF CALCULATOR STYLES
   ============================================ */

/* Navigation */
.tool-nav {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-tab {
  padding: 0.75rem 1.5rem;
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.nav-tab.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Region Navigation (subtabs for Boss Timer) */
.region-nav {
  display: none;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem 0;
  justify-content: center;
  flex-wrap: wrap;
}

.region-tab {
  padding: 0.5rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.region-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.region-tab.active {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  border-color: #f39c12;
  box-shadow: 0 2px 10px rgba(243, 156, 18, 0.3);
}

/* Timer Layout with Horizontal Promo Boxes on Top */
.timer-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Add Boss Time Button Container */
.add-boss-time-container {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.add-boss-time-btn {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

.add-boss-time-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4);
  background: linear-gradient(135deg, #00cec9 0%, #00b894 100%);
}

.add-boss-time-btn:active {
  transform: translateY(0);
}

/* Horizontal Promo Boxes */
.promo-boxes-horizontal {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
}

.promo-boxes-horizontal .promo-box {
  flex: 0 0 280px;
  scroll-snap-align: start;
}

/* Hide promo boxes when not on timer tab */
.promo-boxes-horizontal.hidden {
  display: none;
}

.promo-box {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 12px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.promo-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--shadow-color);
}

.promo-box .promo-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.promo-box h3 {
  color: var(--region-heading);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.promo-box p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.promo-box strong {
  color: var(--text-primary);
}

.promo-cta {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.promo-box:hover .promo-cta {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: scale(1.05);
}

.sf-promo {
  border-color: rgba(102, 126, 234, 0.3);
}

.sf-promo:hover {
  border-color: rgba(102, 126, 234, 0.6);
  background: rgba(102, 126, 234, 0.1);
}

.probability-promo {
  border-color: rgba(243, 156, 18, 0.3);
}

.probability-promo:hover {
  border-color: rgba(243, 156, 18, 0.6);
  background: rgba(243, 156, 18, 0.1);
}

.probability-promo .promo-cta {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.probability-promo:hover .promo-cta {
  background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
}

.celestial-promo {
  border-color: rgba(0, 209, 178, 0.25);
}
.celestial-promo:hover {
  border-color: rgba(0, 209, 178, 0.6);
  background: rgba(0, 209, 178, 0.06);
}
.celestial-promo .promo-cta {
  background: linear-gradient(135deg, #00d1b2 0%, #007f7f 100%);
}
.celestial-promo:hover .promo-cta {
  background: linear-gradient(135deg, #007f7f 0%, #00d1b2 100%);
}
.promo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 0.25rem;
}

/* Alliance Promo Styling */
.alliance-promo {
  border-color: rgba(255, 215, 0, 0.4);
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.05) 0%,
    rgba(220, 53, 69, 0.05) 100%
  );
}

.alliance-promo:hover {
  border-color: rgba(255, 215, 0, 0.8);
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.15) 0%,
    rgba(220, 53, 69, 0.15) 100%
  );
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.3);
}

.promo-icon-dual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.promo-img-dual {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
}

.alliance-cross {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--region-heading);
  opacity: 0.8;
}

.alliance-promo .promo-cta {
  background: linear-gradient(135deg, #667eea 0%, #dc3545 100%);
}

.alliance-promo:hover .promo-cta {
  background: linear-gradient(135deg, #dc3545 0%, #667eea 100%);
  transform: scale(1.05);
}

/* Modal Styling */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: var(--card-bg);
  margin: 2% auto;
  padding: 2rem;
  border: 2px solid var(--card-border);
  border-radius: 16px;
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 10px 50px var(--shadow-color);
  animation: slideDown 0.4s ease;
}

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

.modal-close {
  color: var(--text-secondary);
  float: right;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-close:hover,
.modal-close:focus {
  color: var(--text-primary);
  transform: rotate(90deg);
}

.modal-title {
  color: var(--region-heading);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.modal-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 2rem;
}

/* Add Boss Time Modal Specific Styles */
.add-boss-modal-content {
  max-width: 500px;
}

.boss-time-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.boss-time-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.boss-time-form label {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.boss-time-form select,
.boss-time-form input[type="time"] {
  background: #1a1a2e;
  border: 2px solid var(--card-border);
  border-radius: 8px;
  padding: 12px;
  color: #eee;
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
}

/* Fix dropdown option colors for readability */
.boss-time-form select option {
  background: #1a1a2e;
  color: #eee;
  padding: 10px;
}

.boss-time-form select:focus,
.boss-time-form input[type="time"]:focus {
  outline: none;
  border-color: #00b894;
  box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.2);
}

.boss-time-form select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form hint text */
.form-hint {
  display: block;
  font-size: 0.8rem;
  color: #888;
  margin-top: 4px;
  font-style: italic;
}

[data-theme="light"] .form-hint {
  color: #666;
}

/* Light theme adjustments for form */
[data-theme="light"] .boss-time-form select,
[data-theme="light"] .boss-time-form input[type="time"] {
  background: #fff;
  color: #2c3e50;
  border-color: #ccc;
}

[data-theme="light"] .boss-time-form select option {
  background: #fff;
  color: #2c3e50;
}

.form-info {
  background: rgba(52, 152, 219, 0.1);
  border: 1px solid rgba(52, 152, 219, 0.3);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 0.5rem;
}

.form-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0.25rem 0;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.submit-boss-btn {
  flex: 1;
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-boss-btn:hover {
  background: linear-gradient(135deg, #00cec9 0%, #00b894 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

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

.cancel-btn {
  background: transparent;
  border: 2px solid var(--card-border);
  color: var(--text-secondary);
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cancel-btn:hover {
  border-color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
}

.submit-status {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
}

.submit-status.success {
  background: rgba(46, 204, 113, 0.2);
  border: 1px solid rgba(46, 204, 113, 0.5);
  color: #2ecc71;
}

.submit-status.error {
  background: rgba(231, 76, 60, 0.2);
  border: 1px solid rgba(231, 76, 60, 0.5);
  color: #e74c3c;
}

.submit-status.hidden {
  display: none;
}

/* Clan Sections */
.clan-section {
  background: var(--header-bg);
  border: 2px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.cerulean-section {
  border-left: 4px solid #667eea;
}

.crimson-section {
  border-left: 4px solid #dc3545;
}

.clan-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--card-border);
}

.clan-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 12px;
}

.clan-info h3 {
  color: var(--region-heading);
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

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

.clan-details {
  color: var(--text-primary);
}

.intro-text {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.clan-stats {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.clan-stats h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.clan-stats ul {
  list-style: none;
  padding: 0;
}

.clan-stats li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.rank-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-weight: bold;
  font-size: 0.85rem;
}

.rank-10 {
  background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
  color: #333;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.rank-9 {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #333;
}

.rank-5 {
  background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
  color: #333;
}

.benefits-section {
  text-align: center;
  margin: 1.5rem 0;
}

.benefits-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--card-border);
}

.what-we-offer,
.what-we-seek {
  margin-bottom: 1.5rem;
}

.what-we-offer h4,
.what-we-seek h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.what-we-offer p,
.what-we-seek p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.what-we-seek ul {
  list-style: none;
  padding-left: 0;
}

.what-we-seek li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  color: var(--text-secondary);
  position: relative;
}

.what-we-seek li::before {
  content: "⚡";
  position: absolute;
  left: 0;
  color: var(--region-heading);
}

.casual-note {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.contact-section {
  background: rgba(255, 215, 0, 0.05);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1.5rem;
}

.contact-section p {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.discord-link {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    padding: 1.5rem;
    margin: 5% auto;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .clan-header {
    flex-direction: column;
    text-align: center;
  }

  .clan-icon {
    width: 56px;
    height: 56px;
  }
}

/* Make boss container take full width */
.timer-layout #boss-container {
  flex: 1;
  min-width: 0;
  /* Allow internal grid to work properly */
  width: 100%;
}

/* Ensure regions-container inside timer-layout works correctly - 2 columns for 2 regions, centered */
.timer-layout .regions-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 500px));
  gap: 20px;
  justify-content: center;
}

/* Responsive: Hide promo boxes scrollbar and handle smaller screens */
@media (max-width: 900px) {
  .timer-layout .regions-container {
    grid-template-columns: 1fr;
  }
}

  .promo-boxes-horizontal {
    flex-wrap: nowrap;
  }

  .promo-boxes-horizontal .promo-box {
    flex: 0 0 260px;
  }
}

@media (max-width: 650px) {
  .promo-boxes-horizontal {
    flex-direction: column;
  }

  .promo-boxes-horizontal .promo-box {
    flex: none;
    width: 100%;
  }

  /* Ensure single column on mobile */
  .timer-layout .regions-container {
    grid-template-columns: 1fr;
  }
}

/* Tool Views */
.tool-view {
  display: none;
}

.tool-view.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* SF Calculator Container */
.sf-calculator {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.calculator-title {
  font-size: 2rem;
  color: var(--region-heading);
  text-align: center;
  margin-bottom: 0.5rem;
}

.calculator-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Dungeon Selection */
.dungeon-selection {
  margin-bottom: 2rem;
}

.dungeon-selection label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.dungeon-dropdown {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid var(--card-border);
  border-radius: 8px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dungeon-dropdown option {
  background: #1a1a2e;
  color: var(--text-primary);
}

.dungeon-dropdown:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.dungeon-dropdown:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Requirements Section */
.requirements-section {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.requirements-section h3 {
  margin-bottom: 1rem;
  color: var(--region-heading);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#modified-indicator {
  font-size: 0.9rem;
  color: #ffa500;
}

.requirement-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: end;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.sf-input {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 2px solid var(--card-border);
  border-radius: 8px;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.sf-input:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.sf-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.sf-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.5;
}

.reset-preset-btn {
  padding: 0.75rem 1rem;
  background: rgba(255, 165, 0, 0.2);
  border: 2px solid rgba(255, 165, 0, 0.5);
  border-radius: 8px;
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.reset-preset-btn:hover {
  background: rgba(255, 165, 0, 0.3);
  border-color: rgba(255, 165, 0, 0.7);
  transform: translateY(-2px);
}

/* Party Section */
.party-section {
  margin-bottom: 2rem;
}

.party-section h3 {
  margin-bottom: 1rem;
  color: var(--region-heading);
}

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

.party-slot {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.3s ease;
}

.party-slot:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

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

.slot-label {
  font-weight: 600;
  color: var(--text-primary);
}

.clear-slot-btn {
  padding: 0.25rem 0.5rem;
  background: rgba(255, 69, 58, 0.2);
  border: 1px solid rgba(255, 69, 58, 0.5);
  border-radius: 4px;
  color: #ff4540;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.clear-slot-btn:hover {
  background: rgba(255, 69, 58, 0.3);
  border-color: rgba(255, 69, 58, 0.7);
}

.slot-input {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 2px solid var(--card-border);
  border-radius: 8px;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.slot-input:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.slot-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.slot-input.input-valid {
  border-color: #4caf50;
  background: rgba(76, 175, 80, 0.1);
}

.slot-input.input-warning {
  border-color: #ffa500;
  background: rgba(255, 165, 0, 0.1);
}

.slot-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.5;
}

.slot-range {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  font-size: 0.8rem;
  line-height: 1.4;
  word-wrap: break-word;
}

.range-label {
  color: var(--text-secondary);
  margin-right: 0.5rem;
  display: block;
  margin-bottom: 0.25rem;
}

.range-value {
  font-weight: 600;
  display: block;
}

.range-value.status-success {
  color: #4caf50;
}

.range-value.status-warning {
  color: #ffa500;
}

.range-value.status-error {
  color: #ff4540;
}

/* Party Status */
.party-status {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.status-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.status-item.full-width {
  grid-column: 1 / -1;
}

.status-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.status-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.status-indicator {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-align: center;
}

.status-indicator.status-neutral {
  background: rgba(158, 158, 158, 0.2);
  border: 2px solid rgba(158, 158, 158, 0.5);
  color: #9e9e9e;
}

.status-indicator.status-success {
  background: rgba(76, 175, 80, 0.2);
  border: 2px solid rgba(76, 175, 80, 0.5);
  color: #4caf50;
}

.status-indicator.status-warning {
  background: rgba(255, 165, 0, 0.2);
  border: 2px solid rgba(255, 165, 0, 0.5);
  color: #ffa500;
}

.status-indicator.status-error {
  background: rgba(255, 69, 58, 0.2);
  border: 2px solid rgba(255, 69, 58, 0.5);
  color: #ff4540;
}

/* World Chat Options */
.world-chat-options {
  margin: 1.5rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.world-chat-options label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.tolerance-hint {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 0.3rem;
}

.tolerance-input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tolerance-label {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tolerance-input {
  width: 80px;
  padding: 0.6rem;
  font-size: 1.1rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--text-primary);
  text-align: center;
}

.tolerance-input:focus {
  outline: none;
  border-color: var(--region-heading);
  background: rgba(255, 255, 255, 0.08);
}

.tolerance-unit {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 1rem;
  width: 100%;
}

.copy-world-chat-btn,
.reset-party-btn {
  flex: 1;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: 2px solid;
  border-radius: 12px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.copy-world-chat-btn {
  background: rgba(52, 199, 89, 0.2);
  border-color: rgba(52, 199, 89, 0.5);
}

.copy-world-chat-btn:hover {
  background: rgba(52, 199, 89, 0.3);
  border-color: rgba(52, 199, 89, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 199, 89, 0.3);
}

.reset-party-btn {
  background: rgba(255, 69, 58, 0.2);
  border-color: rgba(255, 69, 58, 0.5);
}

.reset-party-btn:hover {
  background: rgba(255, 69, 58, 0.3);
  border-color: rgba(255, 69, 58, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 69, 58, 0.3);
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
  .sf-calculator {
    padding: 1rem;
  }

  .calculator-title {
    font-size: 1.5rem;
  }

  .requirement-inputs {
    grid-template-columns: 1fr;
  }

  .party-slots {
    grid-template-columns: 1fr;
  }

  .party-status {
    grid-template-columns: 1fr;
  }

  .action-buttons {
    flex-direction: column;
  }

  .nav-tab {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .calculator-title {
    font-size: 1.3rem;
  }

  .calculator-subtitle {
    font-size: 0.9rem;
  }

  .status-value {
    font-size: 1rem;
  }
}

/* ============================================ */
/* Currency/Probability Converter Styles */
/* ============================================ */

.converter-tool {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.converter-title {
  font-size: 2rem;
  color: var(--region-heading);
  text-align: center;
  margin-bottom: 0.5rem;
}

.converter-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Steps Container */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Individual Step */
.conversion-step {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
  animation: fadeIn 0.3s ease;
}

.step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.step-number {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--region-heading);
}

.delete-step-btn {
  padding: 0.4rem 0.8rem;
  background: rgba(255, 69, 58, 0.2);
  border: 1px solid rgba(255, 69, 58, 0.5);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.delete-step-btn:hover {
  background: rgba(255, 69, 58, 0.3);
  transform: scale(1.05);
}

/* Step Type Selector */
.step-type-selector {
  margin-bottom: 1.5rem;
}

.step-type-selector label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

/* Inheritance Selector */
.inheritance-selector {
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 8px;
}

.inheritance-selector label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.inherit-select {
  width: 100%;
  padding: 0.6rem;
  background: #34495e;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.95rem;
  cursor: pointer;
}

.inherit-select:focus {
  outline: none;
  border-color: #667eea;
}

.type-select {
  width: 100%;
  padding: 0.8rem;
  background: #2c3e50;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
}

.type-select option {
  background: #2c3e50;
  color: #ffffff;
}

/* BETA badge */
.beta-badge {
  display: inline-block;
  background: #ff9f0a;
  color: #111;
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 0.5rem;
}

.type-select:focus {
  outline: none;
  border-color: var(--region-heading);
}

/* Step Inputs */
.step-inputs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.input-row label {
  min-width: 80px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.amount-input,
.rate-input,
.currency-input {
  flex: 1;
  padding: 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
}

.amount-input:focus,
.rate-input:focus,
.currency-input:focus {
  outline: none;
  border-color: var(--region-heading);
  background: rgba(255, 255, 255, 0.08);
}

.currency-text-input {
  flex: 1;
  padding: 0.7rem;
  background: rgba(255, 204, 0, 0.1);
  border: 2px solid rgba(255, 204, 0, 0.5);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
}

.currency-text-input:focus {
  outline: none;
  border-color: #ffcc00;
}

.rate-row {
  justify-content: flex-start;
}

.rate-label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.probability-row {
  display: none;
}

/* Step Result */
.step-result {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(52, 199, 89, 0.1);
  border: 2px solid rgba(52, 199, 89, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.result-arrow {
  font-size: 1.5rem;
  color: #34c759;
}

.result-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: #34c759;
}

/* Probability Result Styling */
.probability-result {
  width: 100%;
  text-align: left;
}

.expected-value {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid rgba(52, 199, 89, 0.3);
  color: var(--text-primary);
}

.confidence-explained {
  background: rgba(100, 181, 246, 0.08);
  padding: 1rem;
  border-radius: 6px;
  border-left: 4px solid #64b5f6;
}

.confidence-intro {
  font-size: 1rem;
  margin-bottom: 0.8rem;
  color: #64b5f6;
}

.confidence-line {
  font-size: 0.95rem;
  margin: 0.5rem 0;
  padding-left: 0.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.confidence-line strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* Add Step Button */
.add-step-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.add-step-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Cumulative Results */
.cumulative-results {
  background: rgba(255, 159, 10, 0.1);
  border: 2px solid rgba(255, 159, 10, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.cumulative-results h3 {
  font-size: 1.3rem;
  color: var(--region-heading);
  margin-bottom: 1rem;
  text-align: center;
}

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

/* Chain Summary Styles */
.chain-summary {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chain-step-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.6rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  font-size: 0.95rem;
}

.chain-step-num {
  font-weight: 700;
  color: var(--region-heading);
  min-width: 50px;
}

.chain-step-flow {
  color: var(--text-primary);
  font-weight: 500;
}

.chain-step-type {
  font-size: 0.85rem;
}

.chain-inherit {
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.7;
}

.chain-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--region-heading);
  margin-bottom: 0.5rem;
}

.chain-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 1rem;
  border-left: 4px solid #4caf50;
}

.chain-item.has-probability {
  border-left-color: #ff9f0a;
}

.chain-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.chain-start,
.chain-end {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  padding: 0.3rem 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}

.chain-arrow {
  font-size: 1.4rem;
  color: #ff9f0a;
}

.chain-steps-detail {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
}

.chain-prob {
  color: #ff9f0a;
  font-weight: 600;
}

.chain-ratio {
  color: #4caf50;
  font-weight: 600;
}

.chain-mixed {
  color: #9c27b0;
  font-weight: 600;
}

.chain-note {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  margin-top: 0.5rem;
}

.chain-overall {
  text-align: center;
  padding: 0.75rem;
  background: rgba(76, 175, 80, 0.15);
  border-radius: 8px;
  margin-top: 0.5rem;
  font-size: 1rem;
}

.chain-overall strong {
  color: #4caf50;
}

/* Legacy styles (keep for backward compatibility) */
.cumulative-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.cumulative-start,
.cumulative-end {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cumulative-arrow {
  font-size: 1.5rem;
  color: #ff9f0a;
}

/* Reset Button */
.reset-converter-btn {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 69, 58, 0.2);
  border: 2px solid rgba(255, 69, 58, 0.5);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.reset-converter-btn:hover {
  background: rgba(255, 69, 58, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 69, 58, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .converter-tool {
    padding: 1rem;
  }

  .converter-title {
    font-size: 1.5rem;
  }

  .input-row {
    flex-wrap: wrap;
  }

  .input-row label {
    min-width: 100%;
  }

  .cumulative-item {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   MARKET NEWS STYLES
   ============================================ */

/* Promotional Box - Featured */
.street-outfit-promo.featured-promo {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  border: 2px solid #ffa500;
  box-shadow:
    0 0 20px rgba(255, 215, 0, 0.5),
    0 4px 15px rgba(0, 0, 0, 0.2);
  animation: gentle-glow 2s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.street-outfit-promo.featured-promo h3 {
  color: #1a1a1a !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.street-outfit-promo.featured-promo p {
  color: #2d2d2d !important;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
}

.street-outfit-promo.featured-promo strong {
  color: #000000 !important;
}

.street-outfit-promo.featured-promo::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(45deg);
  animation: shine 3s ease-in-out infinite;
}

@keyframes gentle-glow {
  0%,
  100% {
    box-shadow:
      0 0 20px rgba(255, 215, 0, 0.5),
      0 4px 15px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow:
      0 0 30px rgba(255, 215, 0, 0.7),
      0 4px 15px rgba(0, 0, 0, 0.3);
  }
}

@keyframes shine {
  0% {
    left: -50%;
  }
  100% {
    left: 150%;
  }
}

.event-badge {
  display: inline-block;
  background: #ff6b6b;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.highlight-text {
  color: #8b0000;
  font-weight: bold;
  font-size: 1.05em;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* Market News Container */
.market-news-tool {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 12px;
}

.market-news-title {
  font-size: 2rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.market-news-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Event Overview */
.event-overview {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  color: white;
}

.event-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.event-chest-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.event-info h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
}

.event-info p {
  margin: 0.25rem 0;
  opacity: 0.95;
}

.event-cost {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.inline-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Section Titles */
.section-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

/* Drop Table Section */
.drop-table-section {
  margin-bottom: 2rem;
}

.outfit-drops {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.outfit-card {
  background: var(--input-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.outfit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.outfit-card.common {
  border-color: #4caf50;
}

.outfit-card.uncommon {
  border-color: #2196f3;
}

.outfit-card.rare {
  border-color: #ff9800;
  background: linear-gradient(
    135deg,
    rgba(255, 152, 0, 0.1) 0%,
    rgba(255, 193, 7, 0.1) 100%
  );
}

.outfit-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
}

.outfit-details h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  color: var(--text-color);
}

.outfit-stats {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
}

.outfit-stats span {
  color: var(--text-secondary);
}

/* Preview Toggle */
.preview-toggle {
  width: 100%;
  padding: 1rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.preview-toggle:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Outfit Previews */
.outfit-previews {
  display: grid;
  gap: 2rem;
  padding: 1.5rem;
  background: var(--input-bg);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
}

.outfit-previews:not(.hidden) {
  max-height: 3000px;
  opacity: 1;
  margin-bottom: 1rem;
}

.preview-item {
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.preview-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.preview-item h4 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.preview-item p {
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* Expected Value Section */
.expected-value-section {
  margin-bottom: 2rem;
}

.calculation-box {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  padding: 2rem;
  border-radius: 12px;
  color: white;
}

.calculation-box h4 {
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
}

.calculation-details {
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.calculation-details p {
  margin: 0.5rem 0;
  font-family: "Courier New", monospace;
  font-size: 1.05rem;
}

.calculation-details .result {
  font-size: 1.3rem;
  font-weight: bold;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.cost-summary {
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.cost-summary p {
  margin: 0.5rem 0;
  font-size: 1.05rem;
}

.quick-reference h4 {
  margin: 1rem 0 0.5rem 0;
  font-size: 1.1rem;
}

.quick-reference ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quick-reference li {
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  margin: 0.5rem 0;
  border-radius: 6px;
  font-size: 1.05rem;
}

/* Market Impact Section */
.market-impact-section {
  margin-bottom: 2rem;
}

.market-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.comparison-card {
  padding: 1.5rem;
  border-radius: 12px;
  border: 2px solid var(--border-color);
}

.comparison-card.baseline {
  background: linear-gradient(
    135deg,
    rgba(103, 126, 234, 0.1) 0%,
    rgba(118, 75, 162, 0.1) 100%
  );
  border-color: #667eea;
}

.price-status-banner {
  background: rgba(255, 193, 7, 0.15);
  border-left: 4px solid #ffc107;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 6px;
}

.status-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
  color: white;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  animation: pulse 2s ease-in-out infinite;
}

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

.price-evolution {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 1.05rem;
}

.old-price {
  color: var(--text-secondary);
  text-decoration: line-through;
  opacity: 0.7;
}

.arrow {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.3rem;
}

.current-price {
  color: #43e97b;
  font-weight: bold;
  font-size: 1.1rem;
}

.comparison-card.baseline {
  background: linear-gradient(
    135deg,
    rgba(103, 126, 234, 0.1) 0%,
    rgba(118, 75, 162, 0.1) 100%
  );
  border-color: #667eea;
}

.comparison-card.chest-method {
  background: linear-gradient(
    135deg,
    rgba(17, 153, 142, 0.1) 0%,
    rgba(56, 239, 125, 0.1) 100%
  );
  border-color: #11998e;
}

.chest-advantage {
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(67, 233, 123, 0.15);
  border-radius: 6px;
  border-left: 3px solid #43e97b;
  font-size: 0.95rem;
}

.comparison-card h4 {
  color: var(--primary-color);
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
}

.market-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-group h5 {
  color: var(--text-color);
  margin: 0 0 0.5rem 0;
}

.stat-group ul {
  list-style: none;
  padding-left: 1rem;
  margin: 0;
}

.stat-group li {
  padding: 0.25rem 0;
  color: var(--text-secondary);
}

.benefit-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.benefit-list li {
  padding: 0.75rem;
  background: rgba(76, 175, 80, 0.1);
  border-left: 3px solid #4caf50;
  margin: 0.5rem 0;
  border-radius: 4px;
}

.highlight-benefit {
  padding: 1rem;
  background: rgba(255, 193, 7, 0.2);
  border-left: 4px solid #ffc107;
  margin: 1rem 0;
  border-radius: 4px;
  font-weight: bold;
}

/* Break-Even Analysis */
.breakeven-analysis {
  background: var(--input-bg);
  padding: 2rem;
  border-radius: 12px;
  margin: 2rem 0;
  border: 2px solid var(--border-color);
}

.breakeven-analysis h4 {
  color: var(--primary-color);
  margin: 0 0 1.5rem 0;
  font-size: 1.3rem;
}

.method-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.method-card {
  padding: 1.5rem;
  border-radius: 8px;
  border: 2px solid var(--border-color);
}

.method-card.chest-card {
  background: linear-gradient(
    135deg,
    rgba(76, 175, 80, 0.1) 0%,
    rgba(129, 199, 132, 0.1) 100%
  );
  border-color: #4caf50;
}

.method-card.marketplace-card {
  background: linear-gradient(
    135deg,
    rgba(33, 150, 243, 0.1) 0%,
    rgba(100, 181, 246, 0.1) 100%
  );
  border-color: #2196f3;
}

.method-card h5 {
  margin: 0 0 1rem 0;
  color: var(--text-color);
  font-size: 1.1rem;
}

.pros-cons {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pros-cons li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
}

.pros-cons .pro {
  color: #4caf50;
}

.pros-cons .con {
  color: #ff5722;
}

.pros-cons .info {
  color: #2196f3;
  font-style: italic;
}

.conclusion {
  padding: 1rem;
  background: rgba(255, 193, 7, 0.1);
  border-left: 4px solid #ffc107;
  border-radius: 4px;
  font-weight: bold;
  color: var(--text-color);
}

/* Player Advice */
.player-advice {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.advice-card {
  padding: 2rem;
  border-radius: 12px;
  border: 2px solid var(--border-color);
}

.advice-card.gem-holders {
  background: linear-gradient(
    135deg,
    rgba(156, 39, 176, 0.1) 0%,
    rgba(171, 71, 188, 0.1) 100%
  );
  border-color: #9c27b0;
}

.advice-card.gold-holders {
  background: linear-gradient(
    135deg,
    rgba(255, 152, 0, 0.1) 0%,
    rgba(255, 193, 7, 0.1) 100%
  );
  border-color: #ff9800;
}

.advice-card h4 {
  color: var(--primary-color);
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
}

.advice-intro {
  font-size: 1.1rem;
  font-weight: bold;
  padding: 1rem;
  background: rgba(76, 175, 80, 0.2);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  text-align: center;
}

.advice-intro.warning {
  background: rgba(255, 87, 34, 0.2);
  color: #ff5722;
}

.strategy,
.situation,
.options {
  margin: 1.5rem 0;
}

.strategy h5,
.situation h5,
.options h5 {
  color: var(--text-color);
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
}

.strategy ul,
.situation ul,
.options ul {
  list-style: none;
  padding-left: 1rem;
  margin: 0;
}

.strategy li,
.situation li,
.options li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
}

.strategy.alternative {
  opacity: 0.85;
}

.recommendation,
.good-news {
  padding: 1rem;
  background: rgba(33, 150, 243, 0.1);
  border-left: 4px solid #2196f3;
  border-radius: 4px;
  margin-top: 1.5rem;
}

.good-news {
  background: rgba(76, 175, 80, 0.1);
  border-left-color: #4caf50;
}

/* Market Predictions */
.market-predictions {
  background: var(--input-bg);
  padding: 2rem;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  margin: 2rem 0;
}

.market-predictions h4 {
  color: var(--primary-color);
  margin: 0 0 1.5rem 0;
  font-size: 1.3rem;
}

.predictions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.prediction-card {
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.prediction-card.success {
  background: linear-gradient(
    135deg,
    rgba(67, 233, 123, 0.1),
    rgba(56, 239, 125, 0.05)
  );
  border-color: rgba(67, 233, 123, 0.4);
}

.prediction-card.warning {
  background: linear-gradient(
    135deg,
    rgba(255, 193, 7, 0.1),
    rgba(255, 152, 0, 0.05)
  );
  border-color: rgba(255, 193, 7, 0.4);
}

.prediction-card h5 {
  margin: 0 0 1rem 0;
  color: var(--text-color);
  font-size: 1.1rem;
}

.prediction-card ul {
  list-style: none;
  padding-left: 1rem;
  margin: 0;
}

.prediction-card li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
}

.prediction-card ul ul {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.timeline {
  background: rgba(103, 126, 234, 0.1);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.timeline h5 {
  margin: 0 0 1rem 0;
  color: var(--text-color);
  font-size: 1.1rem;
}

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

.timeline li {
  padding: 0.75rem;
  background: var(--card-bg);
  margin: 0.5rem 0;
  border-radius: 6px;
  border-left: 3px solid #667eea;
  transition: all 0.3s ease;
}

.timeline li.completed {
  border-left-color: #43e97b;
  background: rgba(67, 233, 123, 0.1);
  opacity: 0.85;
}

.timeline li.active {
  border-left-color: #ffc107;
  background: linear-gradient(
    135deg,
    rgba(255, 193, 7, 0.2),
    rgba(255, 152, 0, 0.1)
  );
  border-left-width: 5px;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.timeline li.upcoming {
  border-left-color: #667eea;
  opacity: 0.9;
}

.timeline li.future {
  border-left-color: #9d4edd;
  opacity: 0.75;
}

.timeline strong {
  color: var(--primary-color);
}

.timeline-insight {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(76, 201, 240, 0.15);
  border-left: 4px solid #4cc9f0;
  border-radius: 6px;
  font-style: italic;
}

.bottom-line {
  padding: 1rem;
  background: rgba(255, 193, 7, 0.2);
  border-left: 4px solid #ffc107;
  border-radius: 4px;
  font-weight: bold;
  margin-top: 1.5rem;
}

/* Rare Outfit Hunters Section */
.rare-hunters-section {
  background: linear-gradient(
    135deg,
    rgba(138, 43, 226, 0.1),
    rgba(75, 0, 130, 0.1)
  );
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  border: 2px solid rgba(138, 43, 226, 0.3);
}

.rare-hunters-section .section-title {
  color: #c77dff;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.hunter-intro {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border-left: 4px solid #9d4edd;
}

.hunter-intro p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.hunter-economics {
  margin: 2rem 0;
}

.hunter-economics h4 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.chain-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.chain-step {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #667eea;
  transition: transform 0.2s ease;
}

.chain-step:hover {
  transform: translateX(5px);
}

.chain-step.net-cost {
  background: linear-gradient(
    135deg,
    rgba(76, 201, 240, 0.15),
    rgba(67, 233, 123, 0.15)
  );
  border-left: 4px solid #43e97b;
}

.chain-step h5 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.chain-step ul {
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}

.chain-step ul ul {
  margin-left: 2rem;
  margin-top: 0.3rem;
}

.chain-step li {
  margin: 0.5rem 0;
  line-height: 1.5;
}

.hunter-scenarios {
  margin: 2rem 0;
}

.hunter-scenarios h4 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.scenario-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 8px;
  border: 2px solid rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.scenario-card:hover {
  transform: translateY(-5px);
  border-color: rgba(102, 126, 234, 0.6);
  box-shadow: 0 8px 16px rgba(102, 126, 234, 0.2);
}

.scenario-card h5 {
  color: #667eea;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(102, 126, 234, 0.3);
}

.scenario-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.scenario-card li {
  padding: 0.5rem 0;
  line-height: 1.5;
}

.scenario-card .chance {
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(67, 233, 123, 0.2);
  border-radius: 6px;
  border-left: 3px solid #43e97b;
  font-weight: bold;
  color: #43e97b;
}

.hunter-tips {
  background: rgba(255, 193, 7, 0.1);
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem 0;
  border: 2px solid rgba(255, 193, 7, 0.3);
}

.hunter-tips h4 {
  color: #ffc107;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.hunter-tips ol {
  margin-left: 1.5rem;
}

.hunter-tips li {
  padding: 0.75rem 0;
  line-height: 1.6;
}

.hunter-tips strong {
  color: var(--primary-color);
}

.hunter-bottomline {
  background: linear-gradient(
    135deg,
    rgba(76, 201, 240, 0.2),
    rgba(67, 233, 123, 0.2)
  );
  padding: 2rem;
  border-radius: 8px;
  margin-top: 2rem;
  border: 2px solid rgba(67, 233, 123, 0.5);
}

.hunter-bottomline h4 {
  color: #43e97b;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.hunter-bottomline p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 1rem 0;
}

/* Pro Tips Section */
.pro-tips-section {
  margin-bottom: 2rem;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.tip-card {
  padding: 1.5rem;
  background: var(--input-bg);
  border-radius: 12px;
  border: 2px solid var(--border-color);
}

.tip-card.gem-tips {
  border-color: #9c27b0;
}

.tip-card.gold-tips {
  border-color: #ff9800;
}

.tip-card h4 {
  color: var(--primary-color);
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
}

.tip-card ol {
  padding-left: 1.5rem;
  margin: 0;
}

.tip-card li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  line-height: 1.5;
}

.philosophy,
.risk-reward,
.outlook {
  padding: 1.5rem;
  background: var(--input-bg);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin: 1.5rem 0;
}

.philosophy h4,
.risk-reward h4,
.outlook h4 {
  color: var(--primary-color);
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
}

.philosophy ul,
.risk-reward ul {
  list-style: none;
  padding-left: 1rem;
  margin: 0;
}

.philosophy li,
.risk-reward li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
}

.outlook p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Mobile Responsive - Market News */
@media (max-width: 768px) {
  .market-news-tool {
    padding: 1rem;
  }

  .market-news-title {
    font-size: 1.5rem;
  }

  .event-header {
    flex-direction: column;
    text-align: center;
  }

  .event-chest-icon {
    width: 60px;
    height: 60px;
  }

  .outfit-drops {
    grid-template-columns: 1fr;
  }

  .outfit-card {
    flex-direction: column;
    text-align: center;
  }

  .market-comparison,
  .method-comparison,
  .player-advice,
  .predictions-grid,
  .tips-grid {
    grid-template-columns: 1fr;
  }

  .preview-image {
    max-width: 100%;
  }

  .calculation-box,
  .breakeven-analysis {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .event-overview {
    padding: 1rem;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .outfit-icon {
    width: 50px;
    height: 50px;
  }

  .advice-card,
  .tip-card {
    padding: 1rem;
  }
}
