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

/* ===== BASE ===== */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0d0008;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== INTERACTIVE BACKGROUND CANVAS ===== */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===== DESKTOP ===== */
#desktop {
  width: 100vw;
  min-height: calc(100vh - 40px);
  position: relative;
  padding: 20px;
  z-index: 1;
}

/* Aura glow bottom */
#desktop::after {
  content: '';
  position: fixed;
  bottom: 40px;
  left: 0;
  right: 0;
  height: 140px;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 100, 180, 0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 2;
}

/* ===== DESKTOP ICONS ===== */
.desktop-icons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 5;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  width: 75px;
  padding: 6px;
  border-radius: 4px;
  transition: background 0.15s;
}

.desktop-icon:hover {
  background: rgba(255, 100, 180, 0.25);
}

.desktop-icon:active {
  background: rgba(255, 100, 180, 0.45);
}

.desktop-icon .icon-img {
  font-size: 38px;
  filter: drop-shadow(0 2px 6px rgba(255, 80, 160, 0.7));
}

.desktop-icon span {
  color: #fff;
  font-size: 11px;
  text-align: center;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.95);
  line-height: 1.3;
  word-break: break-word;
}

/* ===== WINDOWS ===== */
.win-window {
  position: absolute;
  border-radius: 8px 8px 4px 4px;
  box-shadow:
    0 0 0 1px rgba(255, 150, 200, 0.25),
    0 8px 40px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 200, 230, 0.35);
  overflow: hidden;
  min-width: 340px;
  min-height: 180px;
  max-height: calc(100vh - 50px);
  display: none;
  z-index: 10;
  resize: both;
  flex-direction: column;
}

.win-window.active {
  display: flex;
}

.win-window.maximized {
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: calc(100vh - 40px) !important;
  border-radius: 0;
  transition: width 0.2s, height 0.2s, top 0.2s, left 0.2s;
}

.win-window.maximized .win-body {
  max-height: calc(100vh - 40px - 34px) !important;
  height: calc(100vh - 40px - 34px) !important;
}

/* Titlebar */
.win-titlebar {
  background: linear-gradient(180deg,
      rgba(220, 80, 150, 0.88) 0%,
      rgba(160, 30, 100, 0.93) 50%,
      rgba(100, 10, 60, 0.97) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 150, 200, 0.3);
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: move;
  user-select: none;
}

.win-titlebar .title-icon {
  font-size: 16px;
}

.win-titlebar h3 {
  color: #ffe0f0;
  font-size: 12px;
  font-weight: 400;
  flex: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* Window buttons */
.win-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 10px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.1s;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(200, 200, 200, 0.15) 100%);
  color: #333;
  text-shadow: none;
}

.win-btn:hover {
  filter: brightness(1.35);
}

.btn-minimize {
  background: linear-gradient(180deg, #ffa7f8 0%, rgb(255, 190, 250) 100%);
}

.btn-maximize {
  background: linear-gradient(180deg, #ff79f4 0%, #fc89f2 100%);
}

.btn-close {
  background: linear-gradient(180deg, #ff1aec 0%, #ff3def 100%);
  color: #fff;
}

/* Window body */
.win-body {
  background: rgba(20, 5, 15, 0.93);
  padding: 24px;
  overflow-y: auto;
  border: 1px solid rgba(200, 60, 120, 0.2);
  border-top: none;
  flex: 1;
}

/* ===== CONTENT STYLES ===== */
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: #ff80c0;
  margin-bottom: 12px;
  border-bottom: 2px solid rgba(220, 60, 130, 0.5);
  padding-bottom: 6px;
  text-shadow: 0 0 12px rgba(255, 100, 180, 0.5);
}

.profile-grid {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c0306080, #60103040);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  flex-shrink: 0;
  border: 3px solid rgba(220, 80, 150, 0.7);
  box-shadow: 0 4px 20px rgba(220, 60, 130, 0.4), 0 0 30px rgba(255, 100, 180, 0.2);
}

.profile-info h2 {
  color: #ffb0d8;
  font-size: 22px;
  text-shadow: 0 0 10px rgba(255, 100, 180, 0.4);
}

.profile-info p {
  color: #d0a0b8;
  font-size: 13px;
  margin-top: 6px;
  line-height: 1.6;
}

.about-list {
  list-style: none;
  margin-top: 16px;
  padding: 0;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  color: #d0a0b8;
  font-size: 13px;
  line-height: 1.5;
}

.about-list .about-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-list strong {
  color: #ffb0d8;
  font-weight: 600;
}

.badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(180, 40, 100, 0.7), rgba(100, 10, 50, 0.85));
  color: #ffcce8;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 20px;
  margin: 4px 2px;
  border: 1px solid rgba(220, 80, 150, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.skill-bar {
  margin-bottom: 14px;
}

.skill-bar label {
  font-size: 13px;
  color: #e0a0c0;
  display: block;
  margin-bottom: 5px;
}

.skill-track {
  height: 14px;
  background: rgba(60, 10, 30, 0.6);
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid rgba(180, 50, 100, 0.4);
}

.skill-fill {
  height: 100%;
  border-radius: 7px;
  background: linear-gradient(90deg, #c0306080 0%, #ff80c0 100%);
  box-shadow: inset 0 1px 0 rgba(255, 200, 230, 0.35), 0 0 8px rgba(255, 100, 180, 0.4);
  transition: width 1s ease;
}

.project-card {
  background: linear-gradient(135deg, rgba(40, 5, 20, 0.8), rgba(25, 5, 15, 0.9));
  border: 1px solid rgba(200, 60, 120, 0.35);
  border-radius: 6px;
  padding: 14px;
  margin-bottom: 12px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.project-card:hover {
  box-shadow: 0 4px 20px rgba(220, 60, 130, 0.3);
  border-color: rgba(220, 80, 150, 0.6);
}

.project-card h4 {
  color: #ff90c8;
  font-size: 14px;
  margin-bottom: 4px;
}

.project-card p {
  color: #c090a8;
  font-size: 12px;
  line-height: 1.5;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 6px;
  background: rgba(50, 5, 25, 0.7);
  border: 1px solid rgba(200, 60, 120, 0.3);
  margin-bottom: 8px;
  font-size: 13px;
  color: #dda0c0;
  transition: border-color 0.2s;
}

.contact-item:hover {
  border-color: rgba(255, 100, 180, 0.6);
}

.contact-item .icon {
  font-size: 20px;
}

/* ===== TASKBAR ===== */
#taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(180deg,
      rgba(140, 30, 80, 0.92) 0%,
      rgba(50, 5, 30, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 120, 180, 0.4);
  display: flex;
  align-items: center;
  padding: 0 4px;
  z-index: 9999;
  box-shadow: 0 -2px 16px rgba(200, 40, 100, 0.4);
}

/* Start button */
#start-btn {
  height: 36px;
  padding: 0 16px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(180deg, #d04090 0%, #701040 100%);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 12px rgba(220, 60, 130, 0.5), inset 0 1px 0 rgba(255, 200, 230, 0.3);
  transition: filter 0.1s;
  margin-right: 4px;
}

#start-btn:hover {
  filter: brightness(1.25);
}

/* Taskbar items */
.tb-item {
  height: 32px;
  padding: 0 12px;
  border-radius: 4px;
  border: 1px solid rgba(255, 150, 200, 0.2);
  background: rgba(255, 100, 180, 0.1);
  color: #ffcce8;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
  margin: 0 2px;
}

.tb-item:hover {
  background: rgba(255, 100, 180, 0.22);
}

.tb-item.open {
  background: linear-gradient(180deg, rgba(160, 30, 80, 0.8) 0%, rgba(220, 70, 140, 0.55) 100%);
  border-color: rgba(255, 150, 200, 0.55);
}

/* Clock */
#clock {
  margin-left: auto;
  color: #ffcce8;
  font-size: 12px;
  text-align: center;
  padding: 0 12px;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* ===== START MENU ===== */
#start-menu {
  position: fixed;
  bottom: 40px;
  left: 0;
  width: 340px;
  background: linear-gradient(160deg,
      rgba(60, 8, 35, 0.97) 0%,
      rgba(20, 3, 12, 0.99) 100%);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(220, 80, 150, 0.35);
  border-radius: 0 8px 0 0;
  box-shadow: 4px -4px 24px rgba(0, 0, 0, 0.7);
  display: none;
  z-index: 10000;
  overflow: hidden;
}

#start-menu.open {
  display: block;
}

.sm-header {
  background: linear-gradient(90deg, rgba(180, 40, 100, 0.9), rgba(80, 10, 45, 0.95));
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 120, 180, 0.25);
}

.sm-avatar {
  font-size: 32px;
}

.sm-username {
  color: #ffe0f0;
  font-size: 15px;
  font-weight: 600;
}

.sm-items {
  padding: 8px;
}

.sm-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 4px;
  cursor: pointer;
  color: #f0c0d8;
  font-size: 13px;
  transition: background 0.1s;
}

.sm-item:hover {
  background: rgba(220, 80, 150, 0.2);
}

.sm-item .sm-icon {
  font-size: 20px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(30, 5, 15, 0.8);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #c03080, #701040);
  border-radius: 4px;
}

/* ===== SKILLS TWO-COLUMN LAYOUT ===== */
.skills-body {
  display: flex;
  gap: 0;
  align-items: flex-start;
  padding: 0;
}

.skills-col {
  flex: 1;
  padding: 24px;
  min-width: 0;
}

.skills-divider {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(to bottom,
      transparent 0%,
      rgba(220, 80, 150, 0.5) 15%,
      rgba(220, 80, 150, 0.5) 85%,
      transparent 100%);
  flex-shrink: 0;
}

/* ===== LANGUAGE LEVEL PILLS ===== */
.lang-item {
  margin-bottom: 18px;
}

.lang-name {
  display: block;
  color: #e0a0c0;
  font-size: 13px;
  margin-bottom: 7px;
  font-weight: 600;
}

.lang-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.level-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  border: 1px solid rgba(180, 50, 100, 0.35);
  background: rgba(40, 5, 20, 0.6);
  color: rgba(200, 120, 160, 0.5);
  letter-spacing: 0.03em;
  transition: transform 0.1s;
}

.level-pill.active {
  background: linear-gradient(135deg, rgba(180, 40, 100, 0.65), rgba(100, 10, 50, 0.8));
  border-color: rgba(220, 80, 150, 0.6);
  color: #ffcce8;
  box-shadow: 0 0 8px rgba(220, 60, 130, 0.3);
}

.level-pill.active.native {
  background: linear-gradient(135deg, #c03080, #701040);
  border-color: #ff90c8;
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 100, 180, 0.5);
  font-weight: 700;
}

.level-pill:hover {
  transform: scale(1.08);
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 28px;
}

/* Vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(220, 80, 150, 0.6) 8%,
    rgba(220, 80, 150, 0.6) 92%,
    transparent 100%
  );
}

.tl-item {
  position: relative;
  margin-bottom: 22px;
}

.tl-item:last-child {
  margin-bottom: 0;
}

/* Dot on the line */
.tl-dot {
  position: absolute;
  left: -24px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c03080, #701040);
  border: 2px solid rgba(255, 150, 200, 0.5);
  box-shadow: 0 0 8px rgba(220, 60, 130, 0.5);
  flex-shrink: 0;
}

.tl-content {
  background: rgba(40, 5, 20, 0.55);
  border: 1px solid rgba(200, 60, 120, 0.25);
  border-radius: 6px;
  padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tl-content:hover {
  border-color: rgba(220, 80, 150, 0.5);
  box-shadow: 0 2px 14px rgba(220, 60, 130, 0.2);
}

.tl-date {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 150, 200, 0.7);
  margin-bottom: 4px;
}

.tl-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffb0d8;
  margin-bottom: 5px;
}

.tl-desc {
  font-size: 12px;
  color: #c090a8;
  line-height: 1.55;
}

.tl-desc strong {
  color: #e0b0cc;
}

/* Highlighted entry (Erasmus) */
.tl-highlight .tl-dot {
  background: linear-gradient(135deg, #ff80c0, #c03080);
  border-color: #ff90c8;
  box-shadow: 0 0 14px rgba(255, 100, 180, 0.7);
  width: 14px;
  height: 14px;
  left: -25px;
  top: 3px;
}

.tl-highlight .tl-content {
  background: rgba(60, 8, 35, 0.75);
  border-color: rgba(255, 100, 180, 0.4);
  box-shadow: 0 0 16px rgba(220, 60, 130, 0.18);
}

.tl-highlight .tl-title {
  color: #ff90c8;
  font-size: 14px;
}

/* Future entry */
.tl-future .tl-dot {
  background: rgba(100, 20, 50, 0.5);
  border-color: rgba(180, 60, 120, 0.4);
  box-shadow: none;
}

.tl-future .tl-content {
  border-style: dashed;
  border-color: rgba(180, 60, 120, 0.3);
  background: rgba(30, 3, 15, 0.4);
}

.tl-future .tl-date,
.tl-future .tl-title {
  opacity: 0.65;
}

.tl-future .tl-title::after {
  content: ' (próximamente)';
  font-size: 10px;
  font-weight: 400;
  color: rgba(220, 100, 160, 0.6);
}

/* ===== RESPONSIVE / MOBILE ===== */
@media (max-width: 768px) {
  /* Windows ocupan toda la pantalla en móvil */
  .win-window {
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: calc(100vh - 40px) !important; /* Deja espacio para taskbar */
    border-radius: 0;
    resize: none !important;
    min-width: 0;
  }
  
  .win-window.maximized .win-body,
  .win-window .win-body {
    max-height: calc(100vh - 40px - 34px) !important; /* 40px taskbar, 34px titlebar aprox */
    height: calc(100vh - 40px - 34px) !important;
    padding: 16px;
  }

  /* Ocultar botón de maximizar en móvil porque ya están a pantalla completa */
  .btn-maximize {
    display: none !important;
  }

  /* Iconos de escritorio en rejilla */
  .desktop-icons {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
    align-content: flex-start;
  }

  /* Menú inicio */
  #start-menu {
    width: 100vw;
    border-radius: 0;
  }

  /* Barra de tareas con scroll horizontal si hay muchas pestañas */
  #taskbar {
    overflow-x: auto;
    justify-content: flex-start;
    padding-right: 15px; /* Para que el reloj no tape cosas */
  }

  /* Sobre mi */
  .profile-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Habilidades a 1 columna */
  .skills-body {
    flex-direction: column;
  }

  .skills-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(220, 80, 150, 0.5), transparent);
    margin: 10px 0;
  }
  
  .skills-col {
    padding: 10px 0;
    width: 100%;
  }
}

/* ===== CLICKABLE BADGES ===== */
.badge-clickable {
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.badge-clickable:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 100, 180, 0.7) !important;
  box-shadow: 0 0 10px rgba(255, 100, 180, 0.6);
}

.badge-clickable:active {
  transform: translateY(1px);
}

/* ===== DIALOG POPUP ANIMATION ===== */
@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

#win-def-box {
  animation: scaleIn 0.15s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ===== STICKY NOTE ===== */
.draggable-note {
  position: absolute;
  top: 50px;
  right: 50px;
  width: 220px;
  min-height: 180px;
  background: linear-gradient(135deg, #fff2a3 0%, #ffe96e 100%);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border-radius: 2px 2px 30px 2px;
  padding: 16px;
  z-index: 5;
  transform: rotate(2deg);
  transition: transform 0.15s ease-out;
  cursor: grab;
  user-select: none;
}

.draggable-note:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.draggable-note:active {
  cursor: grabbing;
}

.note-pin {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

.note-close {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 11px;
  color: #8c7b30;
  cursor: pointer;
  font-weight: bold;
}

.note-close:hover {
  color: #ff3366;
}

.note-body h3 {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #665710;
  margin-bottom: 8px;
  text-transform: uppercase;
  border-bottom: 1px dashed rgba(102, 87, 16, 0.3);
  padding-bottom: 4px;
}

.note-body p {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: #7a6a1a;
  font-weight: 600;
}

/* ===== CONTROL PANEL ===== */
.cp-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}

.cp-section {
  background: rgba(30, 5, 18, 0.7);
  border: 1px solid rgba(200, 60, 120, 0.25);
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 14px;
}

.cp-section h4 {
  font-size: 13px;
  font-weight: 700;
  color: #ff90c8;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

/* Theme selector buttons */
.theme-selectors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.theme-btn {
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid rgba(200, 60, 120, 0.4);
  background: rgba(40, 5, 22, 0.8);
  color: #dda0c0;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}

.theme-btn:hover {
  background: rgba(180, 40, 100, 0.3);
  border-color: rgba(255, 100, 180, 0.6);
  transform: translateY(-1px);
}

.theme-btn.active {
  background: linear-gradient(135deg, rgba(200, 50, 120, 0.75), rgba(100, 10, 55, 0.9));
  border-color: rgba(255, 130, 190, 0.7);
  color: #fff;
  box-shadow: 0 0 10px rgba(220, 60, 130, 0.45);
  font-weight: 600;
}

/* Sliders */
.slider-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slider-group label {
  font-size: 12px;
  color: #c090a8;
}

.slider-group label span {
  color: #ff90c8;
  font-weight: 700;
}

.cp-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(60, 10, 35, 0.8);
  outline: none;
  border: 1px solid rgba(180, 50, 100, 0.4);
  cursor: pointer;
  transition: border-color 0.15s;
}

.cp-slider:hover {
  border-color: rgba(255, 100, 180, 0.6);
}

.cp-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff80c0, #c03070);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(220, 60, 130, 0.6);
  border: 2px solid rgba(255, 180, 210, 0.5);
  transition: transform 0.1s;
}

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

.cp-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff80c0, #c03070);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(220, 60, 130, 0.6);
  border: 2px solid rgba(255, 180, 210, 0.5);
}

/* Sound toggle switch */
.switch-container {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.switch-container input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 42px;
  height: 22px;
  border-radius: 11px;
  background: rgba(60, 10, 35, 0.8);
  border: 1px solid rgba(180, 50, 100, 0.5);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.switch-container input[type="checkbox"]::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(180, 80, 130, 0.7);
  transition: transform 0.2s, background 0.2s;
}

.switch-container input[type="checkbox"]:checked {
  background: linear-gradient(135deg, rgba(200, 50, 120, 0.75), rgba(100, 10, 55, 0.9));
  border-color: rgba(255, 130, 190, 0.7);
}

.switch-container input[type="checkbox"]:checked::after {
  transform: translateX(20px);
  background: #fff;
  box-shadow: 0 0 6px rgba(255, 100, 180, 0.6);
}

.switch-label {
  font-size: 12px;
  color: #c090a8;
}