/* ============================================
   PLIVE 2.0 - BLACK & GOLD PREMIUM THEME
   Pure Black + Gold Accent Colors
============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Gold/Yellow Gradients */
  --gradient-1: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  --gradient-2: linear-gradient(135deg, #FFB347 0%, #FFCC33 100%);
  --gradient-3: linear-gradient(135deg, #F7931A 0%, #FFD700 100%);
  --gradient-4: linear-gradient(135deg, #FFD700 0%, #B8860B 100%);
  --gradient-5: linear-gradient(135deg, #FFC107 0%, #FF9800 100%);
  --gradient-6: linear-gradient(135deg, #E6B800 0%, #FFD54F 100%);
  --gradient-hero: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #B8860B 100%);

  /* Gold Colors */
  --gold: #FFD700;
  --gold-light: #FFE55C;
  --gold-dark: #B8860B;
  --orange: #FFA500;
  --amber: #FFBF00;

  /* Legacy mapping */
  --purple: #FFD700;
  --pink: #FFB347;
  --coral: #FF6B6B;
  --cyan: #FFD700;
  --green: #4ADE80;
  --yellow: #FFD700;

  /* Pure Black Background */
  --bg-dark: #000000;
  --bg-darker: #000000;
  --bg-card: rgba(20, 20, 20, 0.9);
  --bg-card-hover: rgba(30, 30, 30, 0.95);

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.75);
  --text-muted: rgba(255, 255, 255, 0.45);

  /* Border */
  --border-color: rgba(255, 215, 0, 0.15);

  /* Gold Shadows */
  --shadow-colored: 0 10px 40px rgba(255, 215, 0, 0.25);
  --shadow-pink: 0 10px 40px rgba(255, 165, 0, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #000000;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle Gold Glow Background */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(255, 165, 0, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 40% 40%, rgba(184, 134, 11, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 60% 60%, rgba(255, 191, 0, 0.05) 0%, transparent 40%);
  animation: floatBg 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes floatBg {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(2%, 2%) rotate(1deg);
  }

  50% {
    transform: translate(-1%, 3%) rotate(-1deg);
  }

  75% {
    transform: translate(-2%, -1%) rotate(0.5deg);
  }
}

/* Gold Floating Orb */
body::after {
  content: '';
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--gradient-1);
  filter: blur(100px);
  opacity: 0.15;
  top: 10%;
  right: 10%;
  animation: floatOrb 15s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes floatOrb {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-50px, 50px) scale(1.1);
  }
}

/* Layout */
.app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ============================================
   SIDEBAR - Black & Gold Style
============================================ */
.sidebar {
  width: 280px;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 215, 0, 0.2);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-hero);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo i {
  font-size: 1.75rem;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navigation */
.nav-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

.nav-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.nav-item:hover {
  color: var(--text-primary);
  transform: translateX(5px);
}

.nav-item:hover::before {
  opacity: 0.15;
}

.nav-item.active {
  color: #000000 !important;
  background: var(--gradient-1);
  box-shadow: var(--shadow-colored);
}

.nav-item.active::before {
  opacity: 0;
}

.nav-item i {
  font-size: 1.25rem;
  width: 28px;
  text-align: center;
}

/* ============================================
   MAIN CONTENT
============================================ */
.main-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  position: relative;
}

.page-header {
  margin-bottom: 2rem;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 400;
}

/* ============================================
   CARDS - Glass Style
============================================ */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card:hover::before {
  opacity: 1;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  background: var(--gradient-4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   BUTTONS - Gradient Style
============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-1);
  color: #000000 !important;
  box-shadow: var(--shadow-colored);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.btn-success {
  background: var(--gradient-4);
  color: var(--bg-dark);
}

.btn-danger {
  background: var(--gradient-2);
  color: #000000 !important;
  box-shadow: var(--shadow-pink);
}

.btn-danger:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(240, 147, 251, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

/* ============================================
   FORMS - Modern Style
============================================ */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--purple);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.form-input::placeholder {
  color: var(--text-muted);
}

/* Select dropdown options styling */
.form-select option {
  background: #1a1a1a;
  color: #ffffff;
  padding: 0.5rem;
}

.form-select option:hover,
.form-select option:focus,
.form-select option:checked {
  background: #333333;
  color: #FFD700;
}

/* ============================================
   CONNECTION STATUS
============================================ */
.connection-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-bottom: 1.5rem;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 10px var(--coral);
  animation: pulse 2s ease-in-out infinite;
}

.status-dot.connected {
  background: var(--green);
  box-shadow: 0 0 15px var(--green);
}

.status-dot.reconnecting {
  background: #f59e0b;
  box-shadow: 0 0 15px #f59e0b;
  animation: reconnectPulse 1s ease-in-out infinite;
}

@keyframes reconnectPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.5;
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

/* ============================================
   DASHBOARD 2-COLUMN LAYOUT
============================================ */
.dashboard-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 1.5rem;
  min-height: calc(100vh - 200px);
}

.dashboard-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dashboard-right {
  display: flex;
  flex-direction: column;
}

.dashboard-right .event-log-card {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dashboard-right .event-log-container {
  flex: 1;
  max-height: none;
  height: auto;
  overflow-y: hidden;
}

@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-right .event-log-container {
    max-height: none;
  }
}

/* ============================================
   STATS GRID - Colorful Cards
============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.stat-card:nth-child(1) {
  border-top: 3px solid var(--purple);
}

.stat-card:nth-child(2) {
  border-top: 3px solid var(--pink);
}

.stat-card:nth-child(3) {
  border-top: 3px solid var(--cyan);
}

.stat-card:nth-child(4) {
  border-top: 3px solid var(--green);
}

.stat-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-card:nth-child(1) .stat-value {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-card:nth-child(2) .stat-value {
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-card:nth-child(3) .stat-value {
  background: var(--gradient-3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-card:nth-child(4) .stat-value {
  background: var(--gradient-4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

/* ============================================
   TABLES
============================================ */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.table th {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.table tr {
  transition: all 0.2s ease;
}

.table tr:hover td {
  background: rgba(102, 126, 234, 0.1);
}

/* ============================================
   TAB CONTENT
============================================ */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   TOAST
============================================ */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
}

.toast {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  margin-bottom: 0.75rem;
  animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.toast-success {
  border-left: 4px solid var(--green);
}

.toast-error {
  border-left: 4px solid var(--coral);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ============================================
   SCROLLBAR
============================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-2);
}

/* ============================================
   TRIGGER GRID - 3 Column Layout
============================================ */
.trigger-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.trigger-grid .card {
  margin-bottom: 0;
}

.trigger-grid .card:hover {
  transform: none;
}

.trigger-grid .card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trigger-grid .card-title i {
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* Form Row - 2 columns */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Trigger List Card */
.trigger-list-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trigger-list-card .card-header .btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

/* Trigger Cards Grid */
.trigger-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  max-height: 900px;
  overflow-y: auto;
  padding: 0.5rem;
}

.trigger-card {
  background: linear-gradient(145deg, rgba(30, 30, 45, 0.9), rgba(20, 20, 30, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.trigger-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--cyan));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.trigger-card:hover {
  border-color: rgba(102, 126, 234, 0.4);
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.15), 0 5px 15px rgba(0, 0, 0, 0.3);
}

.trigger-card:hover::before {
  opacity: 1;
}

.trigger-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1rem 0.75rem;
  position: relative;
}

.trigger-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.trigger-status.active {
  background: var(--green);
  box-shadow: 0 0 12px var(--green), 0 0 20px rgba(16, 185, 129, 0.4);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {

  0%,
  100% {
    box-shadow: 0 0 8px var(--green);
  }

  50% {
    box-shadow: 0 0 16px var(--green), 0 0 24px rgba(16, 185, 129, 0.4);
  }
}

.trigger-name {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.3px;
}

.trigger-actions {
  display: flex;
  gap: 0.35rem;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.25s ease;
}

.trigger-card:hover .trigger-actions {
  opacity: 1;
  transform: translateX(0);
}

.trigger-actions .btn-icon {
  width: 28px;
  height: 28px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 0.75rem;
}

.trigger-actions .btn-icon:hover {
  transform: scale(1.15);
}

.trigger-actions .btn-test:hover {
  background: rgba(16, 185, 129, 0.25);
  color: var(--green);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.trigger-actions .btn-copy:hover {
  background: rgba(102, 126, 234, 0.25);
  color: var(--purple);
  box-shadow: 0 0 12px rgba(102, 126, 234, 0.3);
}

.trigger-actions .btn-edit:hover {
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
}

.trigger-actions .btn-delete:hover {
  background: rgba(245, 87, 108, 0.25);
  color: var(--coral);
  box-shadow: 0 0 12px rgba(245, 87, 108, 0.3);
}

.trigger-card-body {
  padding: 0 1rem 1rem;
}

.trigger-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.trigger-type {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.65rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.25), rgba(118, 75, 162, 0.25));
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 8px;
  font-size: 0.72rem;
  color: #a5b4fc;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trigger-type i {
  font-size: 0.7rem;
  color: var(--purple);
}

.trigger-target {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.trigger-preview {
  display: flex;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.trigger-preview span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.trigger-preview i {
  font-size: 0.7rem;
  color: var(--cyan);
}

/* Add Card */
.trigger-card-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 140px;
  background: linear-gradient(145deg, rgba(40, 40, 60, 0.3), rgba(30, 30, 45, 0.3));
  border: 2px dashed rgba(102, 126, 234, 0.3);
  color: var(--text-muted);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.trigger-card-add:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: linear-gradient(145deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.08));
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
}

.trigger-card-add i {
  font-size: 1.75rem;
  transition: transform 0.3s ease;
}

.trigger-card-add:hover i {
  transform: scale(1.2) rotate(90deg);
}

.trigger-card-add span {
  font-size: 0.85rem;
  font-weight: 600;
}


/* Textarea */
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  resize: vertical;
  min-height: 100px;
  transition: all 0.3s ease;
  line-height: 1.5;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--purple);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.form-textarea::placeholder {
  color: var(--text-muted);
}

/* Label with hint */
.form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-label i {
  color: var(--purple);
}

.label-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Variable Hints */
.variable-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.var-tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: var(--gradient-1);
  border-radius: 6px;
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.var-tag:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Audio Selector */
.audio-selector {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.audio-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
}

.audio-tab {
  flex: 1;
  padding: 0.75rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.audio-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.audio-tab.active {
  background: rgba(102, 126, 234, 0.15);
  color: var(--purple);
  font-weight: 600;
}

.audio-content {
  padding: 1rem;
}

.audio-content.hidden {
  display: none;
}

.audio-results {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 150px;
  overflow-y: auto;
  margin-top: 0.75rem;
}

.audio-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.audio-item:hover {
  background: rgba(102, 126, 234, 0.15);
  border-color: var(--purple);
}

.audio-item.selected {
  background: rgba(102, 126, 234, 0.2);
  border-color: var(--purple);
}

.audio-item i {
  color: var(--purple);
  font-size: 1.25rem;
}

.audio-item span {
  font-size: 0.85rem;
  color: var(--text-primary);
}

/* File Upload Zone */
.file-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-upload-zone:hover {
  background: rgba(102, 126, 234, 0.1);
  border-color: var(--purple);
}

.file-upload-zone.dragover {
  background: rgba(102, 126, 234, 0.15);
  border-color: var(--purple);
  border-style: solid;
}

.file-upload-zone i {
  font-size: 2rem;
  color: var(--purple);
}

.file-upload-zone span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
}

/* Uploaded File Display */
.uploaded-file {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(67, 233, 123, 0.1);
  border: 1px solid var(--green);
  border-radius: 8px;
  margin-top: 0.75rem;
}

.uploaded-file.hidden {
  display: none;
}

.uploaded-file i {
  color: var(--green);
  font-size: 1.25rem;
}

.uploaded-file span {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 87, 108, 0.2);
  border: none;
  border-radius: 6px;
  color: var(--coral);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background: var(--coral);
  color: white;
}

/* Video Preview */
.video-preview {
  width: 100%;
  max-height: 200px;
  border-radius: 12px;
  margin-top: 0.75rem;
  background: #000;
}

.video-preview.hidden {
  display: none;
}


/* TikTok Scanner */
.tiktok-scanner {
  margin-bottom: 0.75rem;
}

.scanner-input {
  display: flex;
  gap: 0.5rem;
}

.scanner-input .form-input {
  flex: 1;
}

.scanner-input .btn {
  white-space: nowrap;
}

.scanner-status {
  margin-top: 0.35rem;
  font-size: 0.7rem;
}

.status-idle {
  color: var(--text-muted);
}

.status-scanning {
  color: var(--cyan);
}

.status-success {
  color: var(--green);
}

.status-error {
  color: var(--coral);
}

/* Section Label */
.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}

/* Event Section */
.event-section {
  margin-bottom: 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.event-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: 0.75rem 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.event-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.event-item:has(.event-checkbox:checked) {
  background: rgba(102, 126, 234, 0.15);
  border-color: var(--purple);
}

.event-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1rem;
}

.event-icon.follow {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.event-icon.like {
  background: linear-gradient(135deg, #f093fb, #f5576c);
  color: white;
}

.event-icon.share {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: white;
}

.event-icon.join {
  background: linear-gradient(135deg, #43e97b, #38f9d7);
  color: white;
}

.event-item span {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.event-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--purple);
  cursor: pointer;
}

/* Gift Section */
.gift-section {
  margin-top: 0.25rem;
}

/* Gift Grid */
.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 0.35rem;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.gift-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.gift-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  border-color: var(--purple);
}

.gift-card:has(.gift-checkbox:checked) {
  background: rgba(102, 126, 234, 0.2);
  border-color: var(--purple);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.gift-card:has(.gift-checkbox:checked)::after {
  content: '✓';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  background: var(--green);
  color: white;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gift-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  margin-bottom: 0.2rem;
}

.gift-card .gift-name {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.1;
  margin-bottom: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.gift-card .gift-coins {
  font-size: 0.55rem;
  color: var(--yellow);
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.gift-card .gift-coins i {
  font-size: 0.6rem;
}

.gift-card .gift-checkbox {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}


/* Overlay List */
.overlay-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.overlay-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.overlay-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--pink);
}

.overlay-item:has(input:checked) {
  background: rgba(240, 147, 251, 0.15);
  border-color: var(--pink);
  box-shadow: 0 0 15px rgba(240, 147, 251, 0.2);
}

.overlay-preview {
  width: 50px;
  height: 50px;
  background: var(--gradient-5);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay-preview i {
  font-size: 1.5rem;
  color: white;
}

.overlay-name {
  flex: 1;
  font-weight: 500;
  color: var(--text-primary);
}

.overlay-item input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--pink);
  cursor: pointer;
}

/* ============================================
   GIFT SCANNER GRID
============================================ */
#giftGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  max-height: 720px;
  overflow-y: auto;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
}

.gift-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.gift-card:hover {
  border-color: var(--purple);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.gift-card.selected {
  border-color: var(--green);
  background: rgba(67, 233, 123, 0.1);
}

.gift-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 0.25rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}

/* Fallback for broken images - show emoji */
.gift-img-fallback {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}

.gift-name {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.15rem;
}

.gift-coins {
  font-size: 0.6rem;
  color: var(--yellow);
  font-weight: 500;
}

.gift-coins i {
  margin-right: 0.25rem;
}

.gift-checkbox {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 18px;
  height: 18px;
  accent-color: var(--green);
  cursor: pointer;
}

/* Scanner Status */
.scanner-status {
  margin-top: 0.75rem;
  padding: 0.5rem;
  font-size: 0.85rem;
}

.scanner-status .status-success {
  color: var(--green);
}

.scanner-status .status-error {
  color: var(--coral);
}

.scanner-status .status-loading {
  color: var(--cyan);
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1200px) {
  .trigger-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -280px;
    height: 100vh;
    z-index: 100;
    transition: left 0.3s ease;
  }

  .sidebar.open {
    left: 0;
  }

  .main-content {
    padding: 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-value {
    font-size: 1.75rem;
  }

  .trigger-grid {
    grid-template-columns: 1fr;
  }

  #giftGrid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}

/* ============================================
   BADGE
============================================ */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  background: var(--gradient-1);
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-success {
  background: var(--gradient-4);
  color: var(--bg-dark);
}

.badge-warning {
  background: var(--gradient-5);
  color: var(--bg-dark);
}

.badge-danger {
  background: var(--gradient-2);
}

/* ============================================
   VARIABLE TAGS
============================================ */
.variable-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.var-tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: rgba(102, 126, 234, 0.2);
  border: 1px solid var(--purple);
  border-radius: 8px;
  font-size: 0.8rem;
  font-family: monospace;
  color: var(--purple);
  cursor: pointer;
  transition: all 0.2s ease;
}

.var-tag:hover {
  background: var(--purple);
  color: white;
  transform: scale(1.05);
}

/* Table button icons */
.table .btn-icon {
  width: 32px;
  height: 32px;
  margin: 0 0.25rem;
}

.table .btn-edit {
  background: rgba(102, 126, 234, 0.2);
  color: var(--purple);
}

.table .btn-edit:hover {
  background: var(--purple);
  color: white;
}

.table .btn-delete {
  background: rgba(245, 87, 108, 0.2);
  color: var(--coral);
}

.table .btn-delete:hover {
  background: var(--coral);
  color: white;
}

/* ============================================
   MODAL POPUP
============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background: var(--gradient-1);
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.modal-section {
  margin-bottom: 1.5rem;
}

.modal-section h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-section h4 i {
  color: var(--purple);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid var(--border-color);
}

/* Variable Tags */
.variable-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.var-tag {
  background: rgba(255, 215, 0, 0.15);
  color: var(--gold);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-family: 'Courier New', monospace;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.var-tag:hover {
  background: rgba(255, 215, 0, 0.3);
  transform: scale(1.05);
}

/* Gift Selection in Modal */
.gift-filter {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.modal-gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.75rem;
  max-height: 200px;
  overflow-y: auto;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
}

.modal-gift-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-gift-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.modal-gift-item.selected {
  border-color: var(--purple);
  background: rgba(102, 126, 234, 0.2);
}

.modal-gift-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.modal-gift-item .gift-emoji {
  font-size: 1.75rem;
}

.modal-gift-item span {
  font-size: 0.7rem;
  margin-top: 0.25rem;
  text-align: center;
  color: var(--text-secondary);
}

/* Overlay Selection in Modal */
.overlay-select-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}

.overlay-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.overlay-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

.overlay-option.selected {
  border-color: var(--purple);
  background: rgba(102, 126, 234, 0.2);
}

.overlay-option i {
  font-size: 1.5rem;
  color: var(--text-secondary);
}

.overlay-option.selected i {
  color: var(--purple);
}

.overlay-option span {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Gift Selection Section Toggle */
.gift-selection {
  display: none;
}

.gift-selection.show {
  display: block;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal {
    width: 95%;
    max-height: 95vh;
  }

  .modal-grid {
    grid-template-columns: 1fr;
  }

  .overlay-select-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   EVENT LOG - Dashboard
============================================ */
.event-log-controls {
  display: flex;
  gap: 0.5rem;
}

.event-log-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  transition: all 0.2s ease;
}

.filter-checkbox:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.filter-checkbox input[type="checkbox"] {
  accent-color: var(--purple);
  cursor: pointer;
}

.filter-checkbox i {
  font-size: 0.8rem;
}

.event-log-container {
  max-height: none;
  overflow-y: hidden;
  padding-right: 0.5rem;
}

.event-log-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  text-align: center;
}

.event-log-empty i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
  animation: pulse 2s ease-in-out infinite;
}

.event-log-empty p {
  font-size: 0.95rem;
}

/* Event Log Items */
.event-log-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
  animation: slideInFromRight 0.3s ease;
}

/* User Avatar Container */
.event-log-avatar {
  flex-shrink: 0;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 215, 0, 0.3);
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.event-log-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.event-log-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.event-log-icon.gift {
  background: linear-gradient(135deg, rgba(240, 147, 251, 0.3), rgba(245, 87, 108, 0.3));
  color: var(--pink);
}

.event-log-icon.follow {
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.3), rgba(0, 242, 254, 0.3));
  color: var(--cyan);
}

.event-log-icon.like {
  background: linear-gradient(135deg, rgba(245, 87, 108, 0.3), rgba(250, 112, 154, 0.3));
  color: var(--coral);
}

.event-log-icon.share {
  background: linear-gradient(135deg, rgba(67, 233, 123, 0.3), rgba(56, 249, 215, 0.3));
  color: var(--green);
}

.event-log-icon.join {
  background: linear-gradient(135deg, rgba(254, 225, 64, 0.3), rgba(250, 112, 154, 0.3));
  color: var(--yellow);
}

.event-log-icon.comment {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
  color: var(--purple);
}

.event-log-content {
  flex: 1;
  min-width: 0;
}

.event-log-content .username {
  font-weight: 600;
  color: #ffffff;
}

.event-log-content .message {
  font-size: 0.9rem;
  color: var(--text-secondary);
  word-break: break-word;
}

.event-log-content .gift-info {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, rgba(240, 147, 251, 0.2), rgba(245, 87, 108, 0.15));
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--pink);
  margin-left: 0.25rem;
  border: 1px solid rgba(240, 147, 251, 0.3);
}

.event-log-content .gift-info img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 4px;
}

.event-log-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Auto-scroll button active state */
#btnToggleAutoScroll.active {
  background: var(--gradient-1);
  color: white;
  border-color: transparent;
}

/* Event Min Coins */
.event-min-coins {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-color);
}

.event-min-coins label {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.form-input-sm {
  width: 60px;
  padding: 0.35rem 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  text-align: center;
}

.form-input-sm:focus {
  outline: none;
  border-color: var(--purple);
}

/* Event Cards Grid */
.event-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.3rem;
}

.event-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.4rem 0.3rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.event-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--purple);
  transform: translateY(-2px);
}

.event-card.active {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
  border-color: var(--purple);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.event-card-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
  margin-bottom: 0.2rem;
  font-size: 0.7rem;
  color: var(--purple-light);
  transition: all 0.3s ease;
}

.event-card-icon.like {
  background: linear-gradient(135deg, rgba(255, 77, 136, 0.3), rgba(255, 128, 170, 0.3));
  color: #ff4d88;
}

.event-card-icon.share {
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.3), rgba(0, 242, 254, 0.3));
  color: var(--cyan);
}

.event-card-icon.comment {
  background: linear-gradient(135deg, rgba(67, 233, 123, 0.3), rgba(56, 249, 215, 0.3));
  color: var(--green);
}

.event-card-icon.join {
  background: linear-gradient(135deg, rgba(254, 225, 64, 0.3), rgba(250, 112, 154, 0.3));
  color: var(--yellow);
}

.event-card-icon.gift {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.3), rgba(255, 152, 0, 0.3));
  color: #ffc107;
}

.event-card-icon.coins {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.3), rgba(255, 193, 7, 0.3));
  color: #ff9800;
}

/* Min Coins Card */
.min-coins-card {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.1), rgba(255, 193, 7, 0.1)) !important;
  border-color: rgba(255, 152, 0, 0.3) !important;
}

/* Like Count Card */
.like-count-card {
  background: linear-gradient(135deg, rgba(255, 77, 136, 0.1), rgba(255, 128, 170, 0.1)) !important;
  border-color: rgba(255, 77, 136, 0.3) !important;
}

.like-count-input {
  width: 60px;
  padding: 0.25rem 0.4rem;
  font-size: 0.75rem;
  text-align: center;
  font-weight: 600;
  color: #ff4d88;
  background: rgba(255, 77, 136, 0.1);
  border: 1px solid rgba(255, 77, 136, 0.3);
  border-radius: 6px;
}

.like-count-input:focus {
  border-color: #ff4d88;
  box-shadow: 0 0 0 3px rgba(255, 77, 136, 0.2);
  outline: none;
}

.min-coins-input {
  width: 80px;
  padding: 0.4rem 0.5rem;
  font-size: 0.9rem;
  text-align: center;
  font-weight: 600;
  color: #ff9800;
  background: rgba(255, 152, 0, 0.1);
  border: 1px solid rgba(255, 152, 0, 0.3);
}

.min-coins-input:focus {
  border-color: #ff9800;
  box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.2);
}

.event-card.active .event-card-icon {
  transform: scale(1.1);
}

.event-card-label {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.15rem;
}

.event-card.active .event-card-label {
  color: var(--text-primary);
}

.event-checkbox {
  width: 14px;
  height: 14px;
  cursor: pointer;
  accent-color: var(--purple);
}

.event-min-coins {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.event-min-coins label {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.event-min-coins .form-input {
  padding: 0.35rem 0.5rem;
  font-size: 0.8rem;
  text-align: center;
}

/* Sound Selector */
.sound-selector {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.selected-sound {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(102, 126, 234, 0.15);
  border: 1px solid var(--purple);
  border-radius: 8px;
}

.selected-sound .sound-name {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.selected-sound .btn-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.selected-sound .btn-play-sound:hover {
  background: rgba(67, 233, 123, 0.2);
  color: var(--green);
}

.selected-sound .btn-remove-sound:hover {
  background: rgba(245, 87, 108, 0.2);
  color: var(--coral);
}

/* Video Selector */
.video-selector {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.selected-video {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(79, 172, 254, 0.15);
  border: 1px solid var(--cyan);
  border-radius: 8px;
}

.selected-video .video-name {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.selected-video .btn-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.selected-video .btn-play-video:hover {
  background: rgba(67, 233, 123, 0.2);
  color: var(--green);
}

.selected-video .btn-remove-video:hover {
  background: rgba(245, 87, 108, 0.2);
  color: var(--coral);
}

.video-preview {
  width: 100%;
  max-height: 200px;
  border-radius: 12px;
  margin-top: 0.75rem;
  background: #000;
  border: 1px solid var(--border-color);
}

/* Sound Picker Modal */
#soundPickerModal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.sound-picker-modal {
  width: 500px;
  max-width: 95vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.sound-picker-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
}

.sound-picker-modal .modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sound-picker-modal .modal-header h3 i {
  color: var(--purple);
}

.sound-picker-modal .modal-body {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.5rem;
}

.sound-search-box {
  position: relative;
  margin-bottom: 1rem;
}

.sound-search-box i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.sound-search-box .form-input {
  padding-left: 2.75rem;
}

.sound-list {
  flex: 1;
  overflow-y: auto;
  max-height: 400px;
}

.sound-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
}

.sound-item:hover {
  background: rgba(102, 126, 234, 0.15);
}

.sound-item .sound-play {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-1);
  border-radius: 50%;
  color: white;
  font-size: 0.85rem;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sound-item .sound-play:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.sound-item .sound-play.playing {
  background: var(--gradient-4);
}

.sound-item .sound-play.playing i::before {
  content: "\f04c";
}

.sound-item .sound-info {
  flex: 1;
  min-width: 0;
}

.sound-item .sound-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.15rem;
}

.sound-item .sound-source {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sound-item .btn-select-sound {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  background: var(--gradient-4);
  border: none;
  border-radius: 8px;
  color: var(--bg-dark);
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s ease;
}

.sound-item:hover .btn-select-sound {
  opacity: 1;
}

.sound-item .btn-select-sound:hover {
  transform: scale(1.05);
}

.sound-loading {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
}

.sound-empty {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
}

/* ============================================
   TRIGGER LINKING STYLES
============================================ */

/* Trigger Card Selected State */
.trigger-card.selected {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
  border-color: var(--purple);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.trigger-card.selectable {
  cursor: pointer;
}

/* Event Card Selected State */
.event-card.selected {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3)) !important;
  border-color: var(--purple) !important;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
  transform: scale(1.05);
}

/* Gift Card Selected State */
.gift-card.selected {
  background: linear-gradient(135deg, rgba(240, 147, 251, 0.3), rgba(245, 87, 108, 0.3)) !important;
  border-color: var(--pink) !important;
  box-shadow: 0 4px 25px rgba(240, 147, 251, 0.4);
  transform: scale(1.05);
}

/* Attach Section */
.attach-section {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  margin-top: 1rem;
}

/* Attach Section Full Width */
.attach-section-full {
  grid-column: 1 / -1;
  padding: 1rem 0;
  margin-top: 1rem;
}

.btn-attach-full {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  background: var(--gradient-1);
  border: none;
  border-radius: 12px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-attach-full:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-attach-full i {
  font-size: 1.1rem;
}

/* Linked Triggers List */
.trigger-links {
  overflow: visible;
}

.linked-triggers-list {
  padding: 1rem;
}

.linked-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  text-align: center;
}

.linked-empty i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.linked-empty p {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.linked-empty span {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Linked Trigger Item */
.linked-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
  position: relative;
}

.linked-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--purple);
}

.linked-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.linked-item-name {
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.linked-item-name i {
  color: var(--purple);
}

.linked-item-delete {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.linked-item-delete:hover {
  background: rgba(245, 87, 108, 0.2);
  color: var(--coral);
}

.linked-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.linked-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: rgba(102, 126, 234, 0.15);
  border-radius: 6px;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.linked-tag.event {
  background: rgba(67, 233, 123, 0.15);
  color: var(--green);
}

.linked-tag.gift {
  background: rgba(240, 147, 251, 0.15);
  color: var(--pink);
}

.linked-tag i {
  font-size: 0.6rem;
}

/* Linked Item Types */
.linked-item.event {
  border-left: 3px solid var(--green);
}

.linked-item.gift {
  border-left: 3px solid var(--pink);
}

.linked-type-badge {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

/* ============================================
   NEW LINKED ITEM CARD STYLES
============================================ */

.linked-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.linked-item-card:hover {
  border-color: var(--purple);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
}

.linked-item-card.event {
  border-top: 3px solid var(--green);
}

.linked-item-card.gift {
  border-top: 3px solid var(--pink);
}

.linked-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
}

.linked-type-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.linked-item-card.event .linked-type-indicator {
  color: var(--green);
}

.linked-item-card.gift .linked-type-indicator {
  color: var(--pink);
}

.linked-card-delete {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.linked-card-delete:hover {
  background: rgba(245, 87, 108, 0.2);
  color: var(--coral);
}

/* Linked Items Grid */
.linked-items-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem;
}

.linked-items-grid.events {
  gap: 0.5rem;
}

/* Event Icons */
.linked-item-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.8rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--item-color) 20%, transparent), color-mix(in srgb, var(--item-color) 10%, transparent));
  border: 1px solid color-mix(in srgb, var(--item-color) 30%, transparent);
  border-radius: 10px;
  min-width: 70px;
}

.linked-item-icon i {
  font-size: 1.2rem;
  color: var(--item-color);
}

.linked-item-icon span {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Gift Items */
.linked-gift-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  min-width: 70px;
  text-align: center;
}

.linked-gift-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
}

.linked-gift-emoji {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(240, 147, 251, 0.2), rgba(245, 87, 108, 0.2));
  border-radius: 8px;
}

.linked-gift-name {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-primary);
}

.linked-gift-coins {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.65rem;
  color: var(--yellow);
}

.linked-gift-coins i {
  font-size: 0.55rem;
}

.linked-gift-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Trigger Section */
.linked-trigger-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1rem 1rem;
  gap: 0.5rem;
}

.linked-arrow {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
  border-radius: 50%;
  color: var(--purple-light);
  font-size: 0.8rem;
}

.linked-trigger-info {
  width: 100%;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 10px;
  text-align: center;
}

.linked-trigger-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.linked-trigger-name i {
  color: var(--purple);
}

/* Trigger Properties Badges */
.linked-trigger-props {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.prop-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 500;
}

.prop-badge.minecraft {
  background: rgba(139, 195, 74, 0.2);
  color: #8BC34A;
  border: 1px solid rgba(139, 195, 74, 0.3);
}

.prop-badge.overlay {
  background: rgba(79, 172, 254, 0.2);
  color: var(--cyan);
  border: 1px solid rgba(79, 172, 254, 0.3);
}

.prop-badge.webhook {
  background: rgba(255, 152, 0, 0.2);
  color: #FF9800;
  border: 1px solid rgba(255, 152, 0, 0.3);
}

.prop-badge i {
  font-size: 0.6rem;
}

/* ============================================
   HORIZONTAL ROW LAYOUT FOR LINKED ITEMS
============================================ */

.linked-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.linked-row:hover {
  border-color: var(--purple);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
}

.linked-row.event {
  border-left: 3px solid var(--green);
}

.linked-row.gift {
  border-left: 3px solid var(--pink);
}

/* Source items (events/gifts) */
.linked-sources {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.linked-source-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.linked-source-item:not(.gift) {
  background: linear-gradient(135deg, color-mix(in srgb, var(--item-color) 15%, transparent), color-mix(in srgb, var(--item-color) 8%, transparent));
  border-color: color-mix(in srgb, var(--item-color) 25%, transparent);
}

.linked-source-item.gift {
  background: linear-gradient(135deg, rgba(240, 147, 251, 0.1), rgba(245, 87, 108, 0.1));
  border-color: rgba(240, 147, 251, 0.25);
}

.linked-source-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.linked-source-icon i {
  font-size: 0.85rem;
  color: var(--item-color);
}

.linked-source-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 4px;
}

.linked-source-icon .emoji {
  font-size: 1.1rem;
}

.linked-source-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.linked-more {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.2rem 0.4rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* Arrow */
.linked-arrow-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
  border-radius: 50%;
  flex-shrink: 0;
}

.linked-arrow-inline i {
  font-size: 0.7rem;
  color: var(--purple-light);
}

/* Target (Trigger) */
.linked-target {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  min-width: 80px;
}

.linked-target-name {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.linked-target-name i {
  font-size: 0.75rem;
  color: var(--purple);
}

.linked-target-props {
  display: flex;
  gap: 0.25rem;
}

.prop-icon {
  font-size: 0.65rem;
  padding: 0.2rem;
  border-radius: 4px;
}

.prop-icon.minecraft {
  color: #8BC34A;
  background: rgba(139, 195, 74, 0.2);
}

.prop-icon.overlay {
  color: var(--cyan);
  background: rgba(79, 172, 254, 0.2);
}

.prop-icon.webhook {
  color: #FF9800;
  background: rgba(255, 152, 0, 0.2);
}

/* Multiple Triggers Container */
.linked-targets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  min-width: 120px;
  flex: 1;
}

.linked-trigger-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.6rem;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.1));
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.linked-trigger-item:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 165, 0, 0.2));
  border-color: var(--gold);
}

.linked-trigger-item i.fa-bolt {
  font-size: 0.7rem;
  color: var(--gold);
}

.linked-trigger-item span {
  white-space: nowrap;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.linked-trigger-props {
  display: flex;
  gap: 0.2rem;
  margin-left: 0.25rem;
}

/* Delete button */
.linked-row-delete {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  opacity: 0;
}

.linked-row:hover .linked-row-delete {
  opacity: 1;
}

.linked-row-delete:hover {
  background: rgba(245, 87, 108, 0.2);
  color: var(--coral);
}

/* Row Actions Container */
.linked-row-actions {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.linked-row:hover .linked-row-actions {
  opacity: 1;
}

.linked-row-edit {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.linked-row-edit:hover {
  background: rgba(102, 126, 234, 0.2);
  color: var(--purple);
}

/* Edit Link Modal */
.edit-link-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.edit-link-content {
  width: 350px;
  max-width: 90vw;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.edit-link-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
}

.edit-link-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.edit-link-header h3 i {
  color: var(--purple);
}

.edit-link-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.edit-link-close:hover {
  background: rgba(245, 87, 108, 0.2);
  color: var(--coral);
}

.edit-link-body {
  padding: 1.25rem;
}

.edit-link-footer {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border-color);
}

/* Improve linked row layout sync */
.linked-sources {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex: 1;
  min-width: 100px;
}

.linked-target {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  min-width: 100px;
  max-width: 150px;
}

.linked-target-name span {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================
   SIMULATION PANEL
============================================ */
.simulation-panel {
  margin-top: 1.5rem;
}

.simulation-panel .card-title i {
  color: var(--gold);
}

.simulation-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.simulation-user {
  max-width: 300px;
}

.simulation-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sim-btn {
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.sim-btn.follow {
  background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
  color: white;
}

.sim-btn.follow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

.sim-btn.like {
  background: linear-gradient(135deg, #E91E63 0%, #AD1457 100%);
  color: white;
}

.sim-btn.like:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(233, 30, 99, 0.4);
}

.sim-btn.share {
  background: linear-gradient(135deg, #2196F3 0%, #1565C0 100%);
  color: white;
}

.sim-btn.share:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(33, 150, 243, 0.4);
}

.sim-btn.join {
  background: linear-gradient(135deg, #FF9800 0%, #EF6C00 100%);
  color: white;
}

.sim-btn.join:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 152, 0, 0.4);
}

.sim-btn.gift {
  background: var(--gradient-1);
  color: #000;
  font-weight: 700;
}

.sim-btn.gift:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-colored);
}

.simulation-gift-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.simulation-gift-row .form-select {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
}

.simulation-gift-row .sim-gift-count {
  width: 80px;
}

/* Active state animation */
.sim-btn:active {
  transform: scale(0.95);
}

/* ============================================
   OVERLAY MANAGEMENT STYLES
============================================ */
.overlay-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.overlay-url-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.overlay-url-row .form-input {
  flex: 1;
}

.btn-copy {
  padding: 0.75rem 1rem;
  min-width: 44px;
}

.overlay-count {
  background: var(--gradient-1);
  color: #000;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.overlay-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 400px;
  overflow-y: auto;
}

.overlay-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: var(--text-muted);
  text-align: center;
}

.overlay-empty i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.overlay-empty p {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.overlay-empty span {
  font-size: 0.875rem;
}

/* Overlay Item Card */
.overlay-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.overlay-item:hover {
  background: rgba(255, 215, 0, 0.05);
  border-color: rgba(255, 215, 0, 0.3);
}

.overlay-item-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-1);
  border-radius: 12px;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.overlay-item-info {
  flex: 1;
  min-width: 0;
}

.overlay-item-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.overlay-item-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.overlay-item-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.overlay-item-url {
  flex: 1;
  max-width: 300px;
}

.overlay-item-url input {
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
}

.overlay-item-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.overlay-item-actions .btn-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.overlay-item-actions .btn-icon:hover {
  background: rgba(255, 215, 0, 0.15);
  color: var(--gold);
}

.overlay-item-actions .btn-delete:hover {
  background: rgba(239, 68, 68, 0.15);
  color: var(--coral);
}

.overlay-item-actions .btn-preview:hover {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
}

/* Overlay type badges */
.overlay-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.overlay-type-badge.alert {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.overlay-type-badge.goal {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.overlay-type-badge.leaderboard {
  background: rgba(234, 179, 8, 0.2);
  color: #fbbf24;
}

.overlay-type-badge.countdown {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
}

.overlay-type-badge.chat {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.overlay-type-badge.custom {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

/* ============================================
   COUNTDOWN TIMER STYLES
============================================ */
.countdown-rules-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.countdown-empty {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
}

.countdown-empty i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.countdown-empty p {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.countdown-rule-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.countdown-rule-item:hover {
  border-color: var(--gold);
  background: rgba(255, 215, 0, 0.05);
}

.countdown-rule-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.countdown-rule-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.countdown-rule-details h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.countdown-rule-details span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.countdown-rule-actions {
  display: flex;
  gap: 0.5rem;
}

/* Active Countdown Display */
.active-countdowns {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.active-countdown-item {
  background: rgba(255, 215, 0, 0.1);
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: pulse-gold 2s ease-in-out infinite;
}

@keyframes pulse-gold {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
  }

  50% {
    box-shadow: 0 0 20px 5px rgba(255, 215, 0, 0.2);
  }
}

.active-countdown-timer {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Courier New', monospace;
}

.active-countdown-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.active-countdown-info span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.overlay-url-row {
  display: flex;
  gap: 0.5rem;
}

.overlay-url-row .form-input {
  flex: 1;
}

/* Countdown Gift Picker */
.countdown-gift-picker {
  position: relative;
}

.gift-picker-selected {
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s ease;
}

.gift-picker-selected:hover {
  border-color: var(--gold);
}

.gift-picker-selected img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.gift-picker-placeholder {
  color: var(--text-muted);
}

.gift-picker-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1a1a1a;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-top: 4px;
  z-index: 100;
  max-height: 300px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.gift-picker-search {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.gift-picker-search .form-input {
  padding: 0.5rem 0.75rem;
}

.gift-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  padding: 0.75rem;
  max-height: 220px;
  overflow-y: auto;
}

.gift-picker-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.03);
}

.gift-picker-item:hover {
  background: rgba(255, 215, 0, 0.1);
  transform: scale(1.05);
}

.gift-picker-item.selected {
  background: rgba(255, 215, 0, 0.2);
  border: 1px solid var(--gold);
}

.gift-picker-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 0.25rem;
}

.gift-picker-item .gift-name {
  font-size: 0.7rem;
  text-align: center;
  color: var(--text-primary);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gift-picker-item .gift-coins {
  font-size: 0.65rem;
  color: var(--gold);
}

/* Edit button style */
.btn-icon.btn-edit {
  color: var(--gold);
}

.btn-icon.btn-edit:hover {
  background: rgba(255, 215, 0, 0.2);
}

.btn.btn-warning {
  background: var(--gradient-5);
}

/* TTS Tab Styles */
.tts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .tts-grid {
    grid-template-columns: 1fr;
  }
}

.tts-event-toggles {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tts-event-toggle {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  gap: 1rem;
}

.tts-event-toggle:hover {
  background: rgba(255, 255, 255, 0.07);
}

.tts-event-toggle .event-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-1);
  border-radius: 10px;
  font-size: 1rem;
  color: #fff;
}

.tts-event-toggle .event-name {
  flex: 1;
  font-weight: 500;
}

.tts-event-toggle input[type="checkbox"] {
  display: none;
}

.tts-event-toggle .toggle-slider {
  width: 48px;
  height: 26px;
  background: var(--bg-dark);
  border-radius: 13px;
  position: relative;
  transition: all 0.3s;
}

.tts-event-toggle .toggle-slider::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: all 0.3s;
}

.tts-event-toggle input:checked+.toggle-slider {
  background: var(--gradient-1);
}

.tts-event-toggle input:checked+.toggle-slider::after {
  left: 25px;
}

/* TTS Filter Options */
.tts-filter-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.filter-option {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  gap: 0.75rem;
  border: 2px solid transparent;
}

.filter-option:hover {
  background: rgba(255, 255, 255, 0.07);
}

.filter-option input[type="radio"] {
  display: none;
}

.filter-option input:checked~span {
  color: var(--gold);
}

.filter-option input:checked~.filter-icon {
  background: var(--gradient-1);
}

.filter-option:has(input:checked) {
  border-color: var(--purple);
  background: rgba(102, 126, 234, 0.1);
}

.filter-option .filter-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.2s;
}

/* Slider container */
.slider-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.form-range {
  flex: 1;
  height: 6px;
  background: var(--bg-dark);
  border-radius: 3px;
  appearance: none;
  cursor: pointer;
}

.form-range::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--gradient-1);
  border-radius: 50%;
  cursor: pointer;
}

.slider-value {
  min-width: 50px;
  text-align: right;
  font-weight: 600;
  color: var(--gold);
}

/* Toggle switch in card header */
.toggle-switch {
  position: relative;
  display: inline-block;
}

.toggle-switch input {
  display: none;
}

.toggle-switch .toggle-slider {
  width: 48px;
  height: 26px;
  background: var(--bg-dark);
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s;
  display: block;
}

.toggle-switch .toggle-slider::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: all 0.3s;
}

.toggle-switch input:checked+.toggle-slider {
  background: var(--gradient-1);
}

.toggle-switch input:checked+.toggle-slider::after {
  left: 25px;
}

/* Goal Tab Styles */
.goal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.goal-grid>.card:last-child {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .goal-grid {
    grid-template-columns: 1fr;
  }
}

.goal-type-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.goal-type-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  gap: 0.5rem;
  border: 2px solid transparent;
  text-align: center;
}

.goal-type-option:hover {
  background: rgba(255, 255, 255, 0.07);
}

.goal-type-option input[type="radio"] {
  display: none;
}

.goal-type-option:has(input:checked) {
  border-color: var(--purple);
  background: rgba(102, 126, 234, 0.15);
}

.goal-type-option:has(input:checked) .goal-type-icon {
  background: var(--gradient-1);
}

.goal-type-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  border-radius: 12px;
  font-size: 1.2rem;
  transition: all 0.2s;
}

.goal-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.goal-empty {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

.goal-empty i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.goal-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
}

.goal-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.goal-item-name {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.goal-item-type {
  padding: 0.25rem 0.5rem;
  background: var(--purple);
  border-radius: 6px;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.goal-progress-bar {
  height: 24px;
  background: var(--bg-dark);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.goal-progress-fill {
  height: 100%;
  background: var(--gradient-1);
  border-radius: 12px;
  transition: width 0.3s ease;
}

.goal-progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.85rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.goal-item-actions {
  display: flex;
  gap: 0.5rem;
}

.goal-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Goal Overlay Links Grid */
.overlay-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.overlay-link-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.overlay-link-item.overlay-link-all {
  grid-column: 1 / -1;
}

.overlay-link-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.overlay-link-label i {
  width: 20px;
  text-align: center;
}

/* Leaderboard Tab Styles */
.leaderboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.lb-tab {
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.lb-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.lb-tab.active {
  background: var(--gradient-1);
  color: #fff;
  border-color: var(--purple);
}

.lb-actions {
  display: flex;
  gap: 0.5rem;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lb-empty {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

.lb-empty i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.lb-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  transition: all 0.2s;
}

.lb-item:hover {
  background: rgba(255, 255, 255, 0.07);
}

.lb-rank {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border-radius: 8px;
  background: var(--bg-dark);
}

.lb-rank.rank-1 {
  background: linear-gradient(135deg, #ffd700, #ffb300);
  color: #000;
}

.lb-rank.rank-2 {
  background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
  color: #000;
}

.lb-rank.rank-3 {
  background: linear-gradient(135deg, #cd7f32, #a0522d);
  color: #fff;
}

.lb-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  overflow: hidden;
}

.lb-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lb-info {
  flex: 1;
}

.lb-name {
  font-weight: 600;
}

.lb-username {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.lb-value {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold);
}

/* Leaderboard Grid Layout */
.lb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1200px) {
  .lb-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .lb-grid {
    grid-template-columns: 1fr;
  }
}

.lb-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.lb-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.lb-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lb-card-title {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lb-preview-frame {
  height: 280px;
  background: #0d0d12;
  overflow: hidden;
}

.lb-preview-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  transform: scale(0.85);
  transform-origin: top left;
  width: 118%;
  height: 118%;
}

.lb-card-footer {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.2);
}

.lb-card-footer .form-input {
  flex: 1;
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
}

/* Leaderboard Card New Styles */
.lb-card {
  background: linear-gradient(145deg, rgba(30, 30, 45, 0.95), rgba(20, 20, 30, 0.98));
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.lb-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  border-color: rgba(102, 126, 234, 0.3);
}

.lb-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.1));
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lb-card-title {
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lb-card-title i {
  font-size: 1.1rem;
}

/* Type-specific icon colors */
.lb-card[data-type="coins"] .lb-card-title i {
  color: #ffd700;
  -webkit-text-fill-color: #ffd700;
}

.lb-card[data-type="coins-all"] .lb-card-title i {
  color: #ffd700;
  -webkit-text-fill-color: #ffd700;
}

.lb-card[data-type="like"] .lb-card-title i {
  color: #ff6b6b;
  -webkit-text-fill-color: #ff6b6b;
}

.lb-card[data-type="comment"] .lb-card-title i {
  color: #4facfe;
  -webkit-text-fill-color: #4facfe;
}

.lb-card[data-type="follow"] .lb-card-title i {
  color: #667eea;
  -webkit-text-fill-color: #667eea;
}

.lb-card[data-type="join"] .lb-card-title i {
  color: #00c853;
  -webkit-text-fill-color: #00c853;
}

.lb-preview-frame {
  height: 320px;
  background: linear-gradient(180deg, #0a0a12, #12121a);
  position: relative;
  overflow: hidden;
}

.lb-preview-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
}

.lb-preview-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
}

.lb-card-footer {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.2));
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.lb-card-footer .form-input {
  flex: 1;
  font-size: 0.8rem;
  padding: 0.6rem 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-family: monospace;
}

.lb-card-footer .btn {
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  transition: all 0.2s;
  border-radius: 12px;
}

/* ============================================
   LEADERBOARD PREVIEW PANEL - Gaming Style
============================================ */
.lb-preview-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  margin-bottom: 1rem;
}

.lb-preview-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.lb-preview-tab:hover {
  background: rgba(0, 255, 255, 0.1);
  border-color: rgba(0, 255, 255, 0.4);
  color: #00ffff;
}

.lb-preview-tab.active {
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(138, 43, 226, 0.2));
  border-color: #00ffff;
  color: #00ffff;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.lb-preview-tab i {
  font-size: 0.9rem;
}

.lb-preview-container {
  background: linear-gradient(135deg, #0a0a14, #12081a);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 255, 255, 0.15);
  box-shadow: inset 0 2px 20px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.lb-preview-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00ffff, #8a2be2, transparent);
}

.lb-preview-iframe {
  width: 100%;
  height: 500px;
  border: none;
  background: transparent;
  border-radius: 12px;
}

.lb-preview-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.lb-preview-actions .btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lb-preview-actions .btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  border-radius: 8px;
}

.lb-preview-actions .btn-primary {
  background: linear-gradient(135deg, #00ffff, #8a2be2);
  color: #fff !important;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.lb-preview-actions .btn-primary:hover {
  box-shadow: 0 6px 20px rgba(0, 255, 255, 0.5);
}

/* ============================================
   6-COLUMN PREVIEW GRID
============================================ */
.preview-global-actions {
  display: flex;
  gap: 0.5rem;
}

.style-selector-global {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  margin-bottom: 1rem;
}

.style-selector-global label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.style-selector-global .form-select {
  max-width: 250px;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
}

.lb-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 0.5rem;
}

@media (max-width: 1200px) {
  .lb-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .lb-preview-grid {
    grid-template-columns: 1fr;
  }
}

.lb-preview-col {
  background: linear-gradient(135deg, rgba(10, 10, 20, 0.9), rgba(20, 10, 30, 0.9));
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.lb-preview-col:hover {
  border-color: rgba(0, 255, 255, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.lb-preview-header {
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(138, 43, 226, 0.1));
  border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.lb-preview-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.lb-preview-label i {
  color: #00ffff;
}

.lb-preview-frame-wrap {
  height: 350px;
  background: linear-gradient(180deg, #0a0a12, #12081a);
  position: relative;
  overflow: hidden;
}

.lb-preview-frame-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.3), transparent);
}

.lb-preview-frame {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  transform: scale(0.9);
  transform-origin: top center;
}

.lb-preview-footer {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  justify-content: center;
}

.lb-preview-footer .btn {
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  transition: all 0.2s;
}

.lb-preview-footer .btn:hover {
  background: rgba(0, 255, 255, 0.1);
  border-color: rgba(0, 255, 255, 0.5);
  color: #00ffff;
}

/* ============================================
   LEADERBOARD SETTINGS PANEL
============================================ */
.lb-settings-panel {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 255, 255, 0.15);
}

.lb-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 1200px) {
  .lb-settings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .lb-settings-grid {
    grid-template-columns: 1fr;
  }
}

.lb-setting-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lb-setting-group .form-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.lb-setting-group .form-label i {
  color: #00ffff;
  margin-right: 0.5rem;
}

.lb-setting-group .form-input,
.lb-setting-group .form-select {
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
}

.form-range {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.form-range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #00ffff, #8a2be2);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.lb-settings-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   SIMULATOR GIFT POPUP MODAL
============================================ */

/* Gift Selector Button */
.sim-gift-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 48px;
  flex: 1;
  min-width: 200px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
}

.sim-gift-btn:hover {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
}

.sim-gift-btn i {
  color: var(--text-muted);
}

.sim-gift-btn-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.sim-gift-btn-content img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.sim-gift-placeholder {
  color: var(--text-muted);
}

/* Modal Overlay and Container */
.sim-gift-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.sim-gift-modal.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.sim-gift-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.sim-gift-modal-content {
  position: relative;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  background: rgba(15, 15, 15, 0.98);
  border: 1px solid var(--gold);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(255, 215, 0, 0.2);
  animation: modalSlide 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modalSlide {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.sim-gift-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.sim-gift-modal-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sim-gift-modal-header h3 i {
  font-size: 1.1rem;
}

.sim-gift-modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sim-gift-modal-close:hover {
  background: rgba(255, 100, 100, 0.3);
  color: #ff6666;
}

.sim-gift-modal-search {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sim-gift-modal-search i {
  color: var(--text-muted);
}

.sim-gift-modal-search .form-input {
  flex: 1;
  border: none;
  background: rgba(255, 255, 255, 0.08);
}

.sim-gift-modal-grid {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

/* Gift Card in Modal */
.sim-gift-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.sim-gift-card:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.sim-gift-card.selected {
  background: rgba(255, 215, 0, 0.2);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.sim-gift-card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.sim-gift-card-emoji {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.sim-gift-card-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.2;
}

.sim-gift-card-coins {
  font-size: 0.75rem;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.sim-gift-card-coins i {
  font-size: 0.65rem;
}

/* ============================================
   LINKED TRIGGER DISPLAY - Enhanced with images
============================================ */
.linked-gift-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}

.linked-source-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.linked-source-info {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.linked-source-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-primary);
}

.linked-source-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: var(--item-color, var(--gold));
  font-size: 0.7rem;
  flex-shrink: 0;
}

.linked-source-icon.fallback {
  background: rgba(255, 255, 255, 0.1);
}

.gift-coins-badge {
  font-size: 0.6rem;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.15rem;
  opacity: 0.8;
}

.gift-coins-badge i {
  font-size: 0.5rem;
}

.linked-trigger-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.linked-trigger-name {
  font-weight: 500;
  color: var(--text-primary);
}

.trigger-action-badge {
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  width: fit-content;
}

.trigger-action-badge.minecraft {
  background: rgba(0, 200, 83, 0.2);
  color: #00c853;
}

.trigger-action-badge.overlay {
  background: rgba(156, 39, 176, 0.2);
  color: #ce93d8;
}

.trigger-action-badge.tts {
  background: rgba(33, 150, 243, 0.2);
  color: #64b5f6;
}

.trigger-action-badge.webhook {
  background: rgba(255, 152, 0, 0.2);
  color: #ffb74d;
}

.linked-trigger-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.linked-trigger-item>i {
  color: var(--gold);
  font-size: 0.9rem;
}

/* ============================================
   GROUPED LINKED TRIGGERS - Compact Layout
============================================ */
.linked-row-grouped {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0;
  padding: 0.4rem 0;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.linked-row-grouped:last-child {
  border-bottom: none;
}

.linked-row-grouped:hover {
  background: rgba(255, 255, 255, 0.02);
}

.linked-triggers-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
}

.linked-trigger-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.25rem 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  transition: all 0.2s ease;
}

.linked-trigger-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 215, 0, 0.3);
}

.linked-trigger-chip-content {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: nowrap;
}

.linked-trigger-chip-content>i {
  color: var(--gold);
  font-size: 0.65rem;
}

.trigger-chip-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trigger-chip-delete {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 0.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border-radius: 4px;
  margin-left: 0.25rem;
}

.trigger-chip-delete:hover {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.15);
}

.trigger-chip-delete i {
  font-size: 0.65rem;
}

.trigger-count-badge {
  background: var(--gold);
  color: #1a1a2e;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.35rem;
  border-radius: 10px;
  margin-left: 0.35rem;
}

.linked-arrow-only {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
  width: 16px;
}

.linked-arrow-only i {
  font-size: 0.75rem;
}

.linked-random-toggle-wrap {
  flex-shrink: 0;
}

/* Random Toggle Button */
.random-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 0.2rem 0.3rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.random-toggle:hover {
  background: rgba(255, 215, 0, 0.15);
  color: rgba(255, 215, 0, 0.7);
  border-color: rgba(255, 215, 0, 0.3);
}

.random-toggle.active {
  background: rgba(255, 215, 0, 0.25);
  border-color: var(--gold);
  color: var(--gold);
}

.random-toggle.active:hover {
  background: rgba(255, 215, 0, 0.35);
}

.random-toggle i {
  font-size: 0.65rem;
}

/* Delete Group Button */
.linked-group-delete {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0;
  margin-left: auto;
}

.linked-row-grouped:hover .linked-group-delete {
  opacity: 1;
}

.linked-group-delete:hover {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.15);
}

.linked-group-delete i {
  font-size: 0.7rem;
}

/* ============================================
   GOAL THEME SELECTOR
============================================ */
.goal-theme-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.goal-theme-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.goal-theme-card:hover {
  border-color: rgba(255, 215, 0, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.goal-theme-card.selected {
  border-color: var(--gold);
  background: rgba(255, 215, 0, 0.1);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.goal-theme-card.selected::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: var(--gold);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.goal-theme-card {
  position: relative;
}

.theme-preview {
  height: 60px;
  width: 100%;
  border-radius: 0;
}

.theme-info {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.theme-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.theme-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .goal-theme-selector {
    grid-template-columns: 1fr;
  }

  .goal-theme-card {
    flex-direction: row;
    align-items: center;
  }

  .theme-preview {
    width: 80px;
    height: 60px;
    border-radius: 12px 0 0 12px;
  }
}

/* ============================================
   PROGRESSIVE GOAL STYLES
============================================ */
.progressive-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.goal-level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.5rem;
  margin-left: 0.5rem;
  background: linear-gradient(135deg, var(--gold), #FFA500);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
}

.goal-progressive-icon {
  margin-left: 0.4rem;
  color: var(--gold);
  font-size: 0.75rem;
  animation: progressivePulse 2s ease-in-out infinite;
}

@keyframes progressivePulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

.goal-item.progressive {
  border-left: 3px solid var(--gold);
}

.goal-item.progressive .goal-progress-fill {
  background: linear-gradient(90deg, var(--gold), #FFA500, var(--gold));
  background-size: 200% 100%;
  animation: shimmer 2s ease-in-out infinite;
}

/* ============================================
   GOAL PREVIEW IFRAME
============================================ */
.goal-preview-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
}

.goal-preview-frame {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

.goal-controls-section {
  border-top: 1px solid var(--border-color);
  padding-top: 0.5rem;
}

.goal-controls-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  border-radius: 8px;
}

.goal-controls-header:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.goal-controls-header span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.goal-controls-header i.fa-chevron-down {
  transition: transform 0.3s ease;
}

.goal-controls-header.open i.fa-chevron-down {
  transform: rotate(180deg);
}

.goal-list {
  max-height: 400px;
  overflow-y: auto;
  padding: 0.5rem 0;
}

/* Mini Theme Selector in Form */
.goal-theme-selector-mini {
  display: flex;
  gap: 0.75rem;
}

.goal-theme-mini {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
}

.goal-theme-mini:hover {
  border-color: rgba(255, 215, 0, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.goal-theme-mini.selected {
  border-color: var(--gold);
  background: rgba(255, 215, 0, 0.1);
}

.theme-mini-preview {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  flex-shrink: 0;
}

.goal-theme-mini span {
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

/* Goal Overlay URL Row */
.goal-overlay-url-row {
  display: flex;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.goal-overlay-input {
  flex: 1;
  padding: 0.4rem 0.6rem;
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
}

.goal-overlay-input:focus {
  outline: none;
  border-color: var(--gold);
}

.btn-gold {
  background: var(--gold) !important;
  color: #000 !important;
  border: none !important;
}

.btn-gold:hover {
  background: #e6c200 !important;
}

/* Goal Overlay Settings */
.goal-overlay-settings {
  margin-top: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.goal-settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background 0.2s;
}

.goal-settings-header:hover {
  background: rgba(0, 0, 0, 0.3);
}

.goal-settings-header span {
  font-weight: 500;
  color: var(--text-primary);
}

.goal-settings-header i:last-child {
  transition: transform 0.3s;
}

.goal-settings-header.expanded i:last-child {
  transform: rotate(180deg);
}

.goal-settings-panel {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.1);
}

.goal-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.range-value {
  color: var(--gold);
  font-weight: 600;
  margin-left: 0.5rem;
}

/* Goal Edit Modal */
.goal-edit-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.goal-edit-modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

.goal-edit-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.goal-edit-modal-header h3 {
  margin: 0;
  color: var(--gold);
}

.goal-edit-modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.goal-edit-modal-close:hover {
  color: var(--text-primary);
}

.goal-edit-modal-body {
  padding: 1.5rem;
}

.goal-edit-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
}

/* Goal Item Edit Button */
.btn-edit {
  background: var(--gold) !important;
  color: #000 !important;
}

/* Goal Tab 2 Column Layout */
.goal-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 1.5rem !important;
  align-items: start;
}

.goal-grid>.card {
  width: 100% !important;
  margin: 0 !important;
  grid-column: auto !important;
}

@media (max-width: 1200px) {
  .goal-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================
   OVERLAY CONNECTION STATUS INDICATOR
============================================ */
.overlay-status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.overlay-status-indicator.connected {
  background: #4ADE80;
  box-shadow: 0 0 8px #4ADE80, 0 0 16px rgba(74, 222, 128, 0.5);
  animation: pulseGreen 2s ease-in-out infinite;
}

.overlay-status-indicator.disconnected {
  background: #FF6B6B;
  box-shadow: 0 0 8px #FF6B6B;
}

@keyframes pulseGreen {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

.overlay-item {
  position: relative;
}

/* ============================================
   PROFILE SELECTOR
============================================ */
.page-header-with-profile {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-header-left {
  flex: 1;
  min-width: 200px;
}

.profile-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.5rem;
}

.profile-selector .form-select {
  width: auto;
  min-width: 150px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 8px;
}

.profile-selector .btn-sm {
  padding: 0.5rem;
  border-radius: 8px;
}

/* ============================================
   PROFILE MANAGEMENT MODAL
============================================ */
.profile-modal {
  width: 400px;
  max-width: 90vw;
}

.profile-list {
  max-height: 400px;
  overflow-y: auto;
}

.profile-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
}

.profile-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold);
}

.profile-item.active {
  background: rgba(255, 215, 0, 0.1);
  border-color: var(--gold);
}

.profile-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-1);
  border-radius: 0 3px 3px 0;
}

.profile-name {
  font-weight: 500;
  color: var(--text-primary);
}

.profile-actions {
  display: flex;
  gap: 0.25rem;
}

.btn-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-icon.danger:hover {
  background: rgba(255, 107, 107, 0.1);
  color: var(--coral);
  border-color: var(--coral);
}

.profile-default-badge {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  background: var(--gradient-1);
  color: #000;
  border-radius: 4px;
  font-weight: 600;
}

.profile-empty {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

.profile-empty i {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  opacity: 0.5;
}

/* ============================================
   SIDEBAR PROFILE SECTION - Premium Design
============================================ */
.sidebar-profile-section {
  margin-top: auto;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(255, 180, 0, 0.03) 100%);
  border-top: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 0;
}

.sidebar-profile-label {
  font-size: 0.7rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.sidebar-profile-label i {
  color: var(--gold);
  font-size: 0.8rem;
}

.sidebar-profile-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-profile-selector .form-select {
  flex: 1;
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 10px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FFD700' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

.sidebar-profile-selector .form-select:hover {
  border-color: var(--gold);
  background-color: rgba(255, 215, 0, 0.08);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}

.sidebar-profile-selector .form-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15);
}

.sidebar-profile-selector .form-select option {
  background: #1a1a1a;
  color: var(--text-primary);
  padding: 0.5rem;
}

.sidebar-profile-selector .btn-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 10px;
  color: var(--gold);
  cursor: pointer;
  transition: all 0.3s ease;
}

.sidebar-profile-selector .btn-icon:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: var(--gold);
  transform: rotate(90deg);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.sidebar-profile-selector .btn-icon i {
  font-size: 0.9rem;
}

/* ============================================
   AUTH SECTION - Login/User Info
============================================ */
.sidebar-auth-section {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #4285f4 0%, #357ae8 100%);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-google:hover {
  background: linear-gradient(135deg, #5a95f5 0%, #4285f4 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(66, 133, 244, 0.4);
}

.btn-google i {
  font-size: 1rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
}

.user-name {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-logout {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 100, 100, 0.1);
  border: 1px solid rgba(255, 100, 100, 0.3);
  border-radius: 8px;
  color: #ff6b6b;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-logout:hover {
  background: rgba(255, 100, 100, 0.2);
  border-color: #ff6b6b;
}

/* ============================================
   CHROME AUTOFILL FIX
   Prevents yellow/light background on autofilled inputs
============================================ */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
textarea:-webkit-autofill:active,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus,
select:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px rgba(20, 20, 20, 1) inset !important;
  -webkit-text-fill-color: #ffffff !important;
  background-color: rgba(20, 20, 20, 1) !important;
  border-color: var(--border-color) !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Additional fix for autocomplete dropdown */
input:-internal-autofill-selected {
  background-color: rgba(20, 20, 20, 1) !important;
  color: #ffffff !important;
}

/* ============================================
   CONNECTION TYPE SELECTOR (ServerTap vs RCON)
============================================ */
.mc-connection-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.mc-connection-option {
  position: relative;
  cursor: pointer;
}

.mc-connection-option input:checked+.mc-connection-card {
  border-color: #FFD700 !important;
  background: rgba(255, 215, 0, 0.1) !important;
}

.mc-connection-card:hover {
  border-color: rgba(255, 215, 0, 0.5) !important;
}

/* ============================================
   GUEST MODE WARNING BANNER
============================================ */
.guest-warning {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  padding: 0.75rem 1rem;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.guest-warning-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.guest-warning-content i.fa-exclamation-triangle {
  font-size: 1.25rem;
  color: #000;
}

.guest-warning-content span {
  color: #000;
  font-weight: 600;
  font-size: 0.9rem;
}

.guest-warning .btn {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  background: #000;
  color: #FFD700 !important;
  border: none;
}

.guest-warning .btn:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
}

.guest-warning .btn-close-warning {
  background: transparent;
  border: none;
  color: #000;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  font-size: 1rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.guest-warning .btn-close-warning:hover {
  opacity: 1;
}

/* Adjust body padding when guest warning is visible */
body.has-guest-warning {
  padding-top: 60px;
}

/* Guest mode badge in sidebar */
.guest-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #000;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 8px;
  margin-top: 1rem;
}

.guest-mode-badge i {
  font-size: 0.875rem;
}