/* ============================================
   SISTEMA DE TEMAS (Dark/Light Mode)
   ============================================ */

/* Variables CSS para Dark Mode (tema por defecto) */
:root,
[data-theme="dark"] {
  /* Colores base */
  --bg-primary: linear-gradient(180deg, #ff6fb7 0%, #d84a8f 15%, #b02a6f 30%, #4a1a35 50%, #2d1525 60%, #1f0f1a 70%, #150a12 80%, #0f0509 90%, #0a0306 100%);
  --bg-secondary: rgba(15, 16, 40, 0.75);
  --bg-card: rgba(255, 255, 255, 0.08);
  --bg-overlay: rgba(10, 11, 40, 0.5);
  
  /* Colores de texto */
  --text-primary: #f5f6ff;
  --text-secondary: #f0f2ff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --text-white: #ffffff;
  --text-light: rgba(255, 255, 255, 0.9);
  
  /* Colores de borde */
  --border-primary: rgba(255, 111, 183, 0.15);
  --border-secondary: rgba(255, 111, 183, 0.25);
  --border-accent: rgba(255, 111, 183, 0.3);
  
  /* Colores de acento */
  --accent-pink: #ff6fb7;
  --accent-mint: #4CE0B3;
  --accent-orange: #ff8e72;
  
  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(255, 111, 183, 0.2);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 40px rgba(255, 111, 183, 0.1);
  --shadow-lg: 0 4px 30px rgba(0, 0, 0, 0.4);
  
  /* Opacidad del fondo decorativo */
  --bg-pattern-opacity: 0.04;
  
  /* Color palette (legacy) */
  --yellow: #FFAF87;
  --grape: #377771;
  --ivory: #FFFFFF;
  --terracotta: #ED6A5E;
  --gunmetal: #4CE0B3;
}

/* Variables CSS para Light Mode */
[data-theme="light"] {
  /* Colores base */
  --bg-primary: linear-gradient(180deg, #ffffff 0%, #f8f9fa 20%, #f0f2f5 40%, #e9ecef 60%, #dee2e6 80%, #ced4da 100%);
  --bg-secondary: rgba(255, 255, 255, 0.9);
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-overlay: rgba(255, 255, 255, 0.85);
  
  /* Colores de texto */
  --text-primary: #1a1a2e;
  --text-secondary: #2d2d44;
  --text-muted: rgba(26, 26, 46, 0.7);
  --text-white: #1a1a2e;
  --text-light: rgba(26, 26, 46, 0.9);
  
  /* Colores de borde */
  --border-primary: rgba(255, 111, 183, 0.2);
  --border-secondary: rgba(255, 111, 183, 0.3);
  --border-accent: rgba(255, 111, 183, 0.4);
  
  /* Colores de acento (más vibrantes en light mode) */
  --accent-pink: #ff6fb7;
  --accent-mint: #4CE0B3;
  --accent-orange: #ff8e72;
  
  /* Sombras (más suaves en light mode) */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 40px rgba(255, 111, 183, 0.1);
  --shadow-lg: 0 4px 30px rgba(0, 0, 0, 0.2);
  
  /* Opacidad del fondo decorativo (más visible en light mode) */
  --bg-pattern-opacity: 0.02;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
  /* Prevenir scroll horizontal global */
  width: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  /* Prevenir scroll horizontal */
  width: 100%;
  position: relative;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Títulos con buen contraste en ambos modos */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
}

/* Elementos strong con buen contraste */
strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Listas con buen contraste */
ul, ol {
  color: var(--text-primary);
}

li {
  color: var(--text-primary);
}

/* Page decorative background: using hero-bg.svg */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('/assets/hero-bg.svg') center / cover no-repeat;
  opacity: var(--bg-pattern-opacity);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  background: var(--bg-secondary);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--border-primary);
  box-shadow: var(--shadow-md);
  z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  padding: 18px 0;
  gap: 16px;
  position: relative;
}

/* Nav should not grow, stays on left */
.brand {
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 20px;
  background: linear-gradient(135deg, #ff6fb7 0%, #ff8e72 50%, #4CE0B3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(255, 111, 183, 0.5);
  transition: transform 0.2s ease;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

.brand:hover {
  transform: scale(1.05);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 12px;
  transition: all 0.25s ease;
  opacity: 0.85;
  position: relative;
  overflow: hidden;
}

.nav a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 111, 183, 0.2), rgba(76, 224, 179, 0.2));
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: 12px;
}

.nav a:hover {
  opacity: 1;
  color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.nav a:hover::before {
  opacity: 1;
}

/* Language Selector */
.language-selector {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  color: var(--text-secondary);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-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='%23f0f2ff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 32px;
}

.language-selector:hover {
  background-color: var(--bg-overlay);
  border-color: var(--border-secondary);
  box-shadow: var(--shadow-sm);
}

.language-selector:focus {
  border-color: var(--border-accent);
}

/* Modern Language Switcher (Dropdown) - Improved UX */
.language-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Auth Nav Desktop - Positioned between nav and selectors */
.auth-nav-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.auth-nav-desktop a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 12px;
  transition: all 0.25s ease;
  opacity: 0.85;
}

.auth-nav-desktop a:hover {
  opacity: 1;
  color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.auth-nav-desktop .btn-nav-signup {
  background: linear-gradient(135deg, #ff6fb7 0%, #ff8e72 50%, #4CE0B3 100%);
  color: var(--text-white);
  opacity: 1;
}

.auth-nav-desktop .btn-nav-signup:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Desktop: Positioned to the right of the header */
.language-switcher-desktop {
  margin-left: 12px;
}

/* Theme Switcher Desktop */
.theme-switcher-desktop {
  margin-left: 12px;
}

/* Hide desktop theme switcher on mobile */
@media (max-width: 768px) {
  .theme-switcher-desktop {
    display: none !important;
  }
}

/* Theme Switcher Mobile */
.theme-switcher-mobile {
  display: none;
  margin-top: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-primary);
  justify-content: center;
  align-items: center;
}

@media (max-width: 768px) {
  .theme-switcher-mobile {
    display: flex;
  }
}

/* Hide desktop switcher on mobile */
@media (max-width: 768px) {
  .language-switcher-desktop {
    display: none !important;
  }
}

/* Mobile: Positioned at the end of mobile menu */
.language-switcher-mobile {
  display: none;
  margin-top: auto;
  padding: 20px 24px;
  border-top: 1px solid var(--border-primary);
  background: var(--bg-overlay);
}

@media (max-width: 768px) {
  .mobile-nav {
    display: flex;
  }
  
  .language-switcher-mobile {
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    margin-top: auto;
    padding-top: 20px;
    padding-bottom: 20px;
  }
  
  .language-switcher-mobile .language-btn {
    width: calc(100% - 48px);
    max-width: calc(100% - 48px);
    margin: 0 24px;
    justify-content: center;
    padding: 10px 16px;
  }
  
  .language-switcher-mobile .language-dropdown {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    top: calc(100% + 8px);
  }
}

.language-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-secondary);
  border-radius: 10px;
  color: var(--text-secondary);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  position: relative;
  overflow: hidden;
}

.language-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 111, 183, 0.15), rgba(76, 224, 179, 0.15));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.language-btn:hover {
  background: var(--bg-overlay);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
  color: var(--text-primary);
}

.language-btn:hover::before {
  opacity: 1;
}

.language-btn:focus {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px rgba(255, 111, 183, 0.2), var(--shadow-sm);
}

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

.globe-icon {
  font-size: 16px;
  filter: drop-shadow(0 0 4px rgba(255, 111, 183, 0.5));
  transition: transform 0.3s ease;
}

.language-btn:hover .globe-icon {
  transform: rotate(15deg) scale(1.1);
}

.current-lang {
  font-weight: 700;
  min-width: 28px;
  text-align: center;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}

.dropdown-arrow {
  font-size: 9px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.8;
  position: relative;
  z-index: 1;
}

.language-btn[aria-expanded="true"] {
  background: var(--bg-overlay);
  border-color: var(--border-accent);
  color: var(--text-primary);
}

.language-btn[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  min-width: 160px;
  z-index: 1000;
  overflow: hidden;
  animation: dropdownFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: top right;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  position: relative;
}

.lang-option::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(135deg, #ff6fb7, #4ce0b3);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.lang-option:hover {
  background: var(--bg-overlay);
  color: var(--text-primary);
  padding-left: 20px;
}

.lang-option:hover::before {
  opacity: 1;
}

.lang-option.active {
  background: var(--bg-overlay);
  color: var(--text-primary);
  font-weight: 600;
  padding-left: 20px;
}

.lang-option.active::before {
  opacity: 1;
}

.lang-option .flag {
  font-size: 20px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: transform 0.2s ease;
}

.lang-option:hover .flag {
  transform: scale(1.15);
}

.lang-option span:not(.flag) {
  flex: 1;
  position: relative;
  z-index: 1;
}

.language-selector option {
  background: var(--bg-overlay);
  color: var(--text-secondary);
}

.mobile-language-selector {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 111, 183, 0.2);
  margin-top: 16px;
}

.mobile-language-selector label {
  display: block;
  position: relative;
  overflow: hidden;
}

/* Espacio para AdSense después del navbar y debajo del hero */
.hero {
  padding-top: 140px;
  padding-bottom: 140px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/hero-bg.svg') center/cover no-repeat;
  opacity: .5;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: -5px 0 8px;
  font-size: 40px;
  line-height: 1.1;
  text-align: center;
}

.hero p {
  margin: 0 auto 20px;
  font-size: 18px;
  max-width: 540px;
  color: var(--text-secondary);
  opacity: .9;
  text-align: center;
}

.hero-content {
  text-align: center;
}

.upload-card {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  margin-top: 0px;
  border-radius: 32px;
  padding: 32px 28px 28px;
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-secondary);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.upload-drop {
  width: 100%;
  border: 1.5px dashed var(--border-secondary);
  border-radius: 24px;
  display: block;
  padding: 56px 48px;
  cursor: pointer;
  text-align: center;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease, background .2s ease;
  min-height: 300px;
  background: var(--bg-overlay);
}

.upload-drop:hover {
  background: var(--bg-card);
  border-color: var(--accent-pink);
  box-shadow: var(--shadow-md);
}

.upload-drop input {
  display: none;
}

.upload-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-direction: column;
}

.upload-icon {
  font-size: 56px;
}

.drop-icon {
  width: 140px;
  height: 140px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 24px rgba(255, 111, 183, 0.9));
}

/* Merge icon container with two documents and arrows */
.merge-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.merge-doc {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(255, 111, 183, 0.7));
  transition: transform 0.3s ease;
}

.merge-doc-left {
  transform: rotate(-5deg);
}

.merge-doc-right {
  transform: rotate(5deg);
}

.merge-doc:hover {
  transform: scale(1.1);
}

.merge-arrows {
  width: 120px;
  height: 100px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(255, 111, 183, 0.5));
}

@media (max-width: 768px) {
  .merge-icon-container {
    gap: 12px;
    max-width: 300px;
  }

  .merge-doc {
    width: 80px;
    height: 80px;
  }

  .merge-arrows {
    width: 90px;
    height: 80px;
  }
}

.upload-text strong {
  display: block;
  font-weight: 700;
  font-size: 24px;
  margin-top: 8px;
  color: var(--text-primary);
}

.upload-text span {
  font-size: 14px;
  opacity: .8;
  margin-top: 4px;
  color: var(--text-secondary);
}

label#dropzone:active {
  transform: scale(0.99);
}

/* Floating action row is unused now but kept hidden for safety */
.mode-row {
  display: none;
}

/* Backdrop that dims the whole page when the bubble is visible */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
  z-index: 9000;
}

.backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* Bubble notification as a centered modal above the backdrop */
.bubble {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -42%);
  background: var(--bg-card);
  /* solid to keep colors vivid over backdrop */
  color: var(--text-primary);
  padding: 16px 20px 16px 44px;
  /* more padding and space for X */
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-secondary);
  opacity: 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  transition: opacity .25s ease, transform .25s ease, background .3s ease, color .3s ease;
  pointer-events: auto;
  z-index: 10000;
  /* above backdrop */
  /* Prevenir que se salga de la pantalla */
  max-width: calc(100vw - 40px);
  box-sizing: border-box;
}

.bubble.bubble-loading {
  padding: 16px 20px 16px 20px;
  /* less padding when no X button */
}

.bubble.show {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.bubble .action {
  background: var(--terracotta);
  border: 0;
  color: var(--text-white);
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  font-size: 18px;
  margin-left: 8px;
  transition: color 0.3s ease;
}

.bubble .action-protect {
  background: linear-gradient(135deg, #4CE0B3, #377771);
}

.bubble .dismiss {
  position: absolute;
  left: 12px;
  top: 10px;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  opacity: .95;
  cursor: pointer;
  font-size: 18px;
  transition: color 0.3s ease;
}

/* Responsive Bubble para móvil */
@media (max-width: 768px) {
  .bubble {
    max-width: 90%;
    width: auto;
    min-width: 280px;
    padding: 16px 18px 16px 40px;
    flex-wrap: wrap;
    gap: 10px;
    border-radius: 16px;
    font-size: 14px;
    /* Asegurar centrado vertical y horizontal desde el inicio */
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    /* Prevenir que se salga de la pantalla */
    max-height: 90vh;
    overflow-y: auto;
    /* Mejorar visibilidad */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    /* Asegurar que esté visible */
    margin: 0;
  }

  .bubble.show {
    opacity: 1;
    transform: translate(-50%, -50%) !important;
  }

  .bubble.bubble-loading {
    padding: 16px 18px;
  }

  .bubble span {
    flex: 1 1 100%;
    text-align: center;
    margin-bottom: 8px;
    word-wrap: break-word;
  }

  .bubble .action {
    flex: 1 1 auto;
    padding: 12px 18px;
    font-size: 16px;
    margin-left: 0;
    min-width: 120px;
    white-space: nowrap;
  }

  .bubble .dismiss {
    font-size: 20px;
    left: 10px;
    top: 8px;
    z-index: 1;
  }

  .wave-loader-container {
    margin-right: 6px;
  }

  .wave-loader {
    width: 40px;
    height: 40px;
  }
}

/* Ajustes adicionales para pantallas muy pequeñas */
@media (max-width: 480px) {
  .bubble {
    max-width: 95%;
    min-width: 260px;
    padding: 14px 16px 14px 36px;
    font-size: 13px;
    gap: 8px;
    /* Asegurar centrado en pantallas muy pequeñas */
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
  }

  .bubble.show {
    opacity: 1;
    transform: translate(-50%, -50%) !important;
  }

  .bubble .action {
    padding: 10px 16px;
    font-size: 14px;
    min-width: 100px;
  }

  .bubble span {
    font-size: 13px;
    margin-bottom: 6px;
  }
}

/* Wave loader animation */
.wave-loader-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}

.wave-loader {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 111, 183, 0.15);
  border: 2px solid rgba(255, 111, 183, 0.3);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.wave-loader .wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 111, 183, 0.6), rgba(255, 142, 114, 0.6));
  border-radius: 50%;
  animation: wave-fill 2s ease-in-out infinite;
  transform-origin: center bottom;
}

.wave-loader .wave1 {
  animation: wave-fill 2s ease-in-out infinite;
  opacity: 0.7;
}

.wave-loader .wave2 {
  animation: wave-fill 2s ease-in-out infinite 0.3s;
  opacity: 0.5;
  background: linear-gradient(135deg, rgba(255, 142, 114, 0.6), rgba(76, 224, 179, 0.6));
}

.wave-loader .wave3 {
  animation: wave-fill 2s ease-in-out infinite 0.6s;
  opacity: 0.4;
  background: linear-gradient(135deg, rgba(76, 224, 179, 0.6), rgba(255, 111, 183, 0.6));
}

@keyframes wave-fill {
  0% {
    transform: translateY(100%) scaleX(1) scaleY(1);
    border-radius: 50% 50% 0 0;
  }

  25% {
    transform: translateY(70%) scaleX(1.15) scaleY(0.9);
    border-radius: 48% 52% 45% 55%;
  }

  50% {
    transform: translateY(40%) scaleX(1.25) scaleY(0.85);
    border-radius: 45% 55% 40% 60%;
  }

  75% {
    transform: translateY(20%) scaleX(1.2) scaleY(0.9);
    border-radius: 48% 52% 45% 55%;
  }

  100% {
    transform: translateY(0%) scaleX(1) scaleY(1);
    border-radius: 50% 50% 0 0;
  }
}

.progress {
  position: relative;
  height: 8px;
  background: #eee;
  border-radius: 999px;
  margin-top: 16px;
  overflow: hidden;
}

.bar {
  height: 100%;
  width: 0%;
  background: var(--terracotta);
  transition: width .2s ease;
}

.result {
  margin-top: 14px;
  font-size: 14px;
}

.result a {
  color: white;
  background: var(--grape);
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
}

.section {
  padding: 56px 0;
  background: transparent;
  position: relative;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card .emoji {
  font-size: 28px;
}

.card h3 {
  margin: 12px 0 8px;
  color: var(--text-primary);
}

.card p {
  color: var(--text-secondary);
  font-size: 14px;
}

.ad .ad-box {
  display: flex;
  justify-content: center;
}

.ad-box {
  display: flex;
  justify-content: center;
  width: 100%;
}

.ad-placeholder {
  width: 100%;
  max-width: 970px;
  height: 90px;
  border: 2px dashed var(--border-secondary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: var(--bg-card);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Ad box in hero section */
.hero-content .ad-box {
  margin-top: 32px;
  margin-bottom: 0;
}

.hero-content .ad-placeholder {
  background: var(--bg-card);
  border-color: var(--border-accent);
  color: var(--text-muted);
}

.pricing {
  background: #fff;
}

.pricing .pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.price-card {
  background: #fff9f6;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.price-card.highlight {
  background: #FFE2D6;
  border-color: rgba(0, 0, 0, 0.08);
}

.price {
  font-size: 36px;
  margin: 8px 0 12px;
  font-weight: 800;
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
}

.btn.primary {
  background: linear-gradient(90deg, #ff6fb7, #ff8e72);
  color: #fff;
  box-shadow: 0 0 16px rgba(255, 111, 183, 0.8);
}

.btn.secondary {
  background: var(--grape);
  color: #fff;
}

.btn[disabled] {
  opacity: .5;
  cursor: not-allowed;
}

.btn.big {
  padding: 14px 28px;
  font-size: 16px;
}

.footer {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-top: 1px solid var(--border-primary);
  position: relative;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  font-size: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer a {
  color: var(--text-secondary);
  text-decoration: none;
  margin-left: 16px;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--text-primary);
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    padding: 24px 0;
    gap: 16px;
  }

  .footer a {
    margin: 0 8px;
    display: inline-block;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    font-size: 12px;
    padding: 20px 0;
  }

  .footer a {
    margin: 4px 6px;
    font-size: 12px;
  }
}

.subnote {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 0;
  margin-bottom: 0;
}

/* Toast notification */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: #1e2a2a;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  background: rgba(76, 224, 179, 0.9);
  border: 1px solid rgba(76, 224, 179, 0.5);
}

.toast.error {
  background: rgba(237, 106, 94, 0.9);
  border: 1px solid rgba(237, 106, 94, 0.5);
}

/* Password Modal */
.password-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 11000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.password-modal:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}

.password-modal-content {
  background: linear-gradient(145deg, rgba(30, 42, 42, 0.98), rgba(15, 20, 25, 0.98));
  border: 1px solid rgba(255, 111, 183, 0.2);
  border-radius: 24px;
  padding: 32px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 111, 183, 0.3);
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.25s ease;
}

.password-modal:not([hidden]) .password-modal-content {
  transform: scale(1) translateY(0);
}

.password-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.password-modal-close:hover {
  opacity: 1;
  background: rgba(255, 111, 183, 0.1);
}

.password-modal-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff6fb7, #ff8e72);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.password-modal-subtitle {
  margin: 0 0 24px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.password-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.password-input-group {
  position: relative;
}

.password-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(10, 12, 20, 0.8);
  border: 2px solid rgba(255, 111, 183, 0.3);
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.password-input:focus {
  outline: none;
  border-color: #ff6fb7;
  box-shadow: 0 0 20px rgba(255, 111, 183, 0.4);
  background: rgba(15, 18, 28, 0.9);
}

.password-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.password-strength {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.password-strength-weak {
  color: #ff6fb7;
}

.password-strength-medium {
  color: #ff8e72;
}

.password-strength-strong {
  color: #4CE0B3;
}

.password-strength-error {
  color: #ED6A5E;
}

.password-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.password-btn {
  padding: 12px 24px;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.password-btn-cancel {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.password-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.password-btn-submit {
  background: linear-gradient(135deg, #ff6fb7, #ff8e72);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 111, 183, 0.4);
}

.password-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 111, 183, 0.6);
}

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

/* Menú hamburguesa para móviles */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #f0f2ff;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
  z-index: 100;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 111, 183, 0.2);
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.show {
  display: block;
  opacity: 1;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background: var(--bg-secondary);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  justify-content: flex-start;
  border-left: 1px solid var(--border-accent);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  padding: 80px 0 0 0;
  overflow-y: auto;
  transition: right 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.mobile-nav > *:not(.language-switcher-mobile) {
  padding-left: 24px;
  padding-right: 24px;
}

.mobile-nav.show {
  right: 0;
}

.mobile-nav-item {
  display: block;
  padding: 16px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border-radius: 12px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
  background: rgba(255, 111, 183, 0.15);
  border-color: rgba(255, 111, 183, 0.3);
  transform: translateX(4px);
}

.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 28px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.mobile-nav-close:hover {
  background: rgba(255, 111, 183, 0.2);
  transform: rotate(90deg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    width: min(680px, 92%);
  }

  .header-inner {
    padding: 14px 0;
  }

  .brand {
    font-size: 18px;
  }

  /* Ocultar navegación desktop, mostrar hamburguesa */
  .nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .mobile-nav {
    display: block;
  }

  .hero {
    padding: 140px 0 120px;
    overflow-x: hidden;
    /* Prevenir scroll horizontal */
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.2;
    padding: 0 16px;
    /* Asegurar padding en móvil */
    word-wrap: break-word;
  }

  .hero p {
    font-size: 15px;
    padding: 0 16px;
    /* Asegurar padding en móvil */
    max-width: 100%;
  }

  .upload-card {
    padding: 20px;
    border-radius: 20px;
    max-width: 100%;
    margin: 0 auto;
  }

  .upload-drop {
    padding: 32px 24px;
    min-height: 220px;
    border-radius: 20px;
  }

  .drop-icon {
    width: 100px;
    height: 100px;
  }

  .upload-text strong {
    font-size: 20px;
  }

  .upload-text span {
    font-size: 13px;
  }

  /* Asegurar que el contenido del upload no se desborde */
  .upload-inner {
    gap: 12px;
  }

  .file-info {
    font-size: 12px;
    word-break: break-word;
  }

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

  .ad-placeholder {
    height: 100px;
    max-width: 728px;
  }

  .password-modal-content {
    padding: 24px;
    max-width: 90%;
  }

  .password-modal-title {
    font-size: 20px;
  }

  .password-modal-actions {
    flex-direction: column;
    gap: 12px;
  }

  .password-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(440px, 95%);
  }

  .header-inner {
    padding: 12px 0;
  }

  .brand {
    font-size: 16px;
    letter-spacing: 0.5px;
  }

  .nav {
    gap: 4px;
  }

  .nav a {
    padding: 6px 10px;
    font-size: 12px;
  }

  .hero {
    padding: 120px 0 100px;
    overflow-x: hidden;
  }

  .hero h1 {
    font-size: 26px;
    line-height: 1.2;
    padding: 0 12px;
    word-wrap: break-word;
  }

  .hero p {
    font-size: 14px;
    padding: 0 12px;
    max-width: 100%;
  }

  .upload-card {
    padding: 16px;
    border-radius: 16px;
    max-width: 100%;
  }

  .upload-drop {
    padding: 24px 16px;
    min-height: 180px;
    border-radius: 16px;
  }

  .drop-icon {
    width: 80px;
    height: 80px;
  }

  .upload-text strong {
    font-size: 18px;
  }

  .upload-text span {
    font-size: 12px;
  }

  .upload-inner {
    gap: 10px;
  }

  .file-info {
    font-size: 11px;
    padding: 0 4px;
  }

  .ad-placeholder {
    height: 60px;
    max-width: 320px;
  }

  /* Mejoras para formularios en móviles */
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
    /* Evita zoom automático en iOS */
  }

  /* Modales más pequeños en móviles */
  .modal-content {
    max-width: 95%;
    width: 95% !important;
    padding: 24px 20px;
    margin: 20px auto;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 20px;
  }

  .modal-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .modal-message {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .modal-input {
    font-size: 16px;
    /* Evita zoom en iOS */
    padding: 14px 16px;
  }

  .modal-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .modal-btn {
    width: 100%;
    min-width: 0;
    padding: 14px 20px;
    font-size: 16px;
  }

  /* Tablas con scroll horizontal */
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px;
    padding: 0 16px;
    position: relative;
  }

  /* Indicador visual de scroll en tablas */
  .table-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(to left, rgba(10, 11, 40, 0.8), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .table-wrapper.scrollable::after {
    opacity: 1;
  }

  table {
    min-width: 100%;
    width: max-content;
  }

  /* Mejorar visibilidad de scrollbar en móvil */
  .table-wrapper::-webkit-scrollbar {
    height: 6px;
  }

  .table-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 111, 183, 0.1);
    border-radius: 3px;
  }

  .table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 111, 183, 0.4);
    border-radius: 3px;
  }

  .table-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 111, 183, 0.6);
  }

  /* Cards más compactas */
  .card {
    padding: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .card h3 {
    font-size: 18px;
    word-wrap: break-word;
  }

  .card p {
    word-wrap: break-word;
    font-size: 14px;
  }
}

/* Landscape phones: reduce dropzone height to avoid overflow */
@media (max-height: 420px) and (orientation: landscape) {
  .hero {
    padding: 100px 0 80px;
  }

  .upload-drop {
    min-height: 160px;
    padding: 20px;
  }
}

/* Continue to... Section (Tools Grid) */
.continue-section {
  margin-top: 60px;
  padding-top: 40px;
  width: 100%;
  position: relative;
}

.continue-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff6fb7, transparent);
}

.continue-title {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, #ff6fb7 0%, #4CE0B3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 40px;
  text-align: center;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.tool-card {
  background: linear-gradient(135deg,
      rgba(255, 111, 183, 0.1) 0%,
      rgba(76, 224, 179, 0.08) 50%,
      rgba(255, 111, 183, 0.1) 100%);
  border-radius: 16px;
  padding: 24px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 111, 183, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(255, 111, 183, 0.15) 0%,
      rgba(76, 224, 179, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.tool-card:hover {
  border-color: #ff6fb7;
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(255, 111, 183, 0.4), 0 0 40px rgba(76, 224, 179, 0.2);
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #FFAF87 0%, #ED6A5E 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(237, 106, 94, 0.3);
  position: relative;
  z-index: 1;
}

.tool-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.tool-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

/* Responsive adjustments for tools grid */
@media (max-width: 768px) {
  .continue-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
  }

  .tool-card {
    padding: 20px;
  }

  .tool-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
    margin-bottom: 12px;
  }

  .tool-name {
    font-size: 16px;
  }

  .tool-desc {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .continue-section {
    margin-top: 40px;
    padding-top: 30px;
  }

  .continue-title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Merge PDF - Files List Styles */
.files-list {
  margin-top: 20px;
  padding: 20px;
  background: rgba(10, 12, 35, 0.6);
  border-radius: 16px;
  border: 1px solid rgba(255, 111, 183, 0.2);
}

.files-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 111, 183, 0.2);
  color: #f0f2ff;
  font-size: 14px;
}

.btn-clear {
  background: rgba(237, 106, 94, 0.2);
  color: #ED6A5E;
  border: 1px solid rgba(237, 106, 94, 0.4);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-clear:hover {
  background: rgba(237, 106, 94, 0.3);
  border-color: #ED6A5E;
}

.files-list-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 111, 183, 0.15);
  border-radius: 10px;
  cursor: move;
  transition: all 0.2s ease;
}

.file-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 111, 183, 0.3);
  transform: translateX(4px);
}

.file-item.dragging {
  opacity: 0.5;
  border-color: #ff6fb7;
}

.file-item-drag-handle {
  color: rgba(255, 111, 183, 0.6);
  font-size: 18px;
  cursor: grab;
  user-select: none;
}

.file-item-drag-handle:active {
  cursor: grabbing;
}

.file-item-info {
  flex: 1;
  min-width: 0;
}

.file-item-name {
  color: #f0f2ff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.file-item-size {
  color: rgba(240, 242, 255, 0.6);
  font-size: 12px;
}

.file-item-remove {
  background: rgba(237, 106, 94, 0.2);
  color: #ED6A5E;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.file-item-remove:hover {
  background: rgba(237, 106, 94, 0.4);
  transform: scale(1.1);
}

.btn-merge {
  width: 100%;
  background: linear-gradient(135deg, #ff6fb7 0%, #ED6A5E 100%);
  color: white;
  border: none;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(255, 111, 183, 0.4);
  margin-top: 8px;
}

.btn-merge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 111, 183, 0.5);
}

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

.btn-merge:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 768px) {
  .files-list {
    padding: 16px;
  }

  .file-item {
    padding: 10px 12px;
  }

  .file-item-name {
    font-size: 13px;
  }

  .btn-merge {
    padding: 14px 20px;
    font-size: 15px;
  }
}

/* Split PDF - Split Options Styles */
.split-options {
  margin-top: 20px;
  padding: 24px;
  background: rgba(10, 12, 35, 0.6);
  border-radius: 16px;
  border: 1px solid rgba(255, 111, 183, 0.2);
}

.split-options-header {
  margin-bottom: 20px;
  text-align: center;
}

.split-options-header h3 {
  color: #f0f2ff;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.split-modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.split-mode-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 111, 183, 0.2);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.split-mode-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 111, 183, 0.4);
  transform: translateY(-2px);
}

.split-mode-btn.active {
  background: linear-gradient(135deg, rgba(255, 111, 183, 0.2) 0%, rgba(76, 224, 179, 0.15) 100%);
  border-color: #ff6fb7;
  box-shadow: 0 4px 16px rgba(255, 111, 183, 0.3);
}

.split-mode-icon {
  font-size: 32px;
  margin-bottom: 4px;
}

.split-mode-name {
  color: #f0f2ff;
  font-size: 14px;
  font-weight: 600;
}

.split-mode-desc {
  color: rgba(240, 242, 255, 0.6);
  font-size: 12px;
}

.split-input-group {
  margin-bottom: 20px;
}

.split-input-group label {
  display: block;
  color: #f0f2ff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.split-input-group input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(10, 12, 20, 0.8);
  border: 2px solid rgba(255, 111, 183, 0.3);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.split-input-group input:focus {
  outline: none;
  border-color: #ff6fb7;
  box-shadow: 0 0 20px rgba(255, 111, 183, 0.4);
  background: rgba(15, 18, 28, 0.9);
}

.split-input-group input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.split-input-group small {
  display: block;
  color: rgba(240, 242, 255, 0.5);
  font-size: 12px;
  margin-top: 6px;
}

.btn-split {
  width: 100%;
  background: linear-gradient(135deg, #ff6fb7 0%, #ED6A5E 100%);
  color: white;
  border: none;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(255, 111, 183, 0.4);
  margin-top: 8px;
}

.btn-split:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 111, 183, 0.5);
}

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

.btn-split:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 768px) {
  .split-options {
    padding: 20px;
  }

  .split-modes {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .split-mode-btn {
    padding: 14px;
  }

  .btn-split {
    padding: 14px 20px;
    font-size: 15px;
  }
}

/* Split PDF - Icon Container Styles */
.split-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
}

.split-doc-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  overflow: hidden;
}

.split-doc {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255, 111, 183, 0.6));
  transition: transform 0.3s ease;
}

.split-doc-wrapper:hover .split-doc {
  transform: scale(1.05);
}

.split-mask {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.split-mask-top {
  background: rgba(10, 12, 35, 0.98);
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 55%);
}

.split-mask-bottom {
  background: rgba(10, 12, 35, 0.98);
  clip-path: polygon(0 45%, 100% 55%, 100% 100%, 0 100%);
}

.split-slash {
  width: 30px;
  height: 90px;
  flex-shrink: 0;
}

.split-doc-left {
  transform: rotate(-3deg);
}

.split-doc-center {
  transform: rotate(0deg);
}

.split-doc-right {
  transform: rotate(3deg);
}

@media (max-width: 768px) {
  .split-icon-container {
    gap: 6px;
    max-width: 350px;
  }

  .split-doc-wrapper {
    width: 70px;
    height: 70px;
  }

  .split-slash {
    width: 24px;
    height: 70px;
  }
}

/* Compress PDF - Icon Container Styles */
.compress-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.compress-doc-wrapper {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.compress-doc-large {
  width: 110px;
  height: 110px;
}

.compress-doc-small {
  width: 70px;
  height: 70px;
}

.compress-doc {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255, 111, 183, 0.6));
  transition: transform 0.3s ease;
}

.compress-doc-wrapper:hover .compress-doc {
  transform: scale(1.05);
}

.compress-arrow {
  width: 80px;
  height: 100px;
  flex-shrink: 0;
}

/* Compress PDF - Options Styles */
.compress-options {
  margin-top: 30px;
  padding: 30px;
  background: rgba(10, 12, 35, 0.6);
  border-radius: 16px;
  border: 1px solid rgba(255, 111, 183, 0.2);
  backdrop-filter: blur(10px);
}

.compress-options-header {
  margin-bottom: 20px;
  text-align: center;
}

.compress-options-header h3 {
  color: #f0f2ff;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.compress-levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}

.compress-level-btn {
  padding: 20px;
  background: rgba(20, 25, 50, 0.7);
  border: 2px solid rgba(255, 111, 183, 0.3);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  color: #f0f2ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.compress-level-btn:hover {
  background: rgba(255, 111, 183, 0.1);
  border-color: rgba(255, 111, 183, 0.5);
  transform: translateY(-2px);
}

.compress-level-btn.active {
  background: rgba(255, 111, 183, 0.2);
  border-color: rgba(255, 111, 183, 0.8);
  box-shadow: 0 0 20px rgba(255, 111, 183, 0.4);
}

.compress-level-icon {
  font-size: 28px;
  line-height: 1;
}

.compress-level-name {
  font-size: 16px;
  font-weight: 600;
  color: #f0f2ff;
}

.compress-level-desc {
  font-size: 13px;
  color: rgba(240, 242, 255, 0.7);
}

.btn-compress {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, rgba(255, 111, 183, 0.9), rgba(76, 224, 179, 0.9));
  color: #0a0c23;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 111, 183, 0.3);
}

.btn-compress:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 111, 183, 0.5);
}

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

.btn-compress:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 768px) {
  .compress-options {
    padding: 20px;
  }

  .compress-levels {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .compress-level-btn {
    padding: 16px;
  }

  .btn-compress {
    padding: 14px 20px;
    font-size: 15px;
  }

  .compress-icon-container {
    gap: 8px;
    max-width: 320px;
  }

  .compress-doc-large {
    width: 90px;
    height: 90px;
  }

  .compress-doc-small {
    width: 60px;
    height: 60px;
  }

  .compress-arrow {
    width: 60px;
    height: 80px;
  }
}

/* Watermark PDF - Icon Container Styles */
.watermark-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.watermark-doc-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  transition: transform 0.3s ease;
}

.watermark-doc-original {
  filter: drop-shadow(0 0 12px rgba(76, 224, 179, 0.6));
}

.watermark-doc-watermarked {
  filter: drop-shadow(0 0 12px rgba(255, 111, 183, 0.6));
  opacity: 0.3;
}

.watermark-doc {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.watermark-doc-wrapper:hover .watermark-doc {
  transform: scale(1.05);
}

.watermark-arrow-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: watermarkPulse 2s ease-in-out infinite;
}

.watermark-arrow {
  width: 80px;
  height: 50px;
}

@keyframes watermarkPulse {

  0%,
  100% {
    opacity: 0.7;
    transform: translateX(0);
  }

  50% {
    opacity: 1;
    transform: translateX(3px);
  }
}

.watermark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: watermarkFade 3s ease-in-out infinite;
}

@keyframes watermarkFade {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.6;
  }
}

.watermark-text {
  width: 100%;
  height: 100%;
}

/* Watermark PDF - Options Styles */
.watermark-options {
  margin-top: 30px;
  padding: 30px;
  background: rgba(10, 12, 35, 0.6);
  border-radius: 16px;
  border: 1px solid rgba(255, 111, 183, 0.2);
  backdrop-filter: blur(10px);
}

.watermark-options-header {
  margin-bottom: 20px;
  text-align: center;
}

.watermark-options-header h3 {
  color: #f0f2ff;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.watermark-form {
  margin-bottom: 25px;
}

.watermark-input-group {
  margin-bottom: 20px;
}

.watermark-input-group label {
  display: block;
  color: #f0f2ff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.watermark-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(20, 25, 50, 0.7);
  border: 2px solid rgba(255, 111, 183, 0.3);
  border-radius: 8px;
  color: #f0f2ff;
  font-size: 15px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.watermark-input:focus {
  outline: none;
  border-color: rgba(255, 111, 183, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 111, 183, 0.1);
}

.watermark-opacity-control {
  display: flex;
  align-items: center;
  gap: 15px;
}

.watermark-slider {
  flex: 1;
  height: 6px;
  background: rgba(20, 25, 50, 0.7);
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.watermark-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, rgba(255, 111, 183, 0.9), rgba(76, 224, 179, 0.9));
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(255, 111, 183, 0.4);
}

.watermark-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, rgba(255, 111, 183, 0.9), rgba(76, 224, 179, 0.9));
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(255, 111, 183, 0.4);
}

.opacity-value {
  min-width: 45px;
  color: #f0f2ff;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
}

.btn-watermark {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, rgba(255, 111, 183, 0.9), rgba(76, 224, 179, 0.9));
  color: #0a0c23;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 111, 183, 0.3);
}

.btn-watermark:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 111, 183, 0.5);
}

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

.btn-watermark:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Signature type selector */
.sign-type-selector {
  display: flex;
  gap: 15px;
  margin-bottom: 5px;
}

.sign-type-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: rgba(20, 25, 50, 0.7);
  border: 2px solid rgba(255, 111, 183, 0.3);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #f0f2ff;
  font-size: 14px;
  font-weight: 600;
}

.sign-type-option:hover {
  border-color: rgba(255, 111, 183, 0.6);
  background: rgba(20, 25, 50, 0.9);
}

.sign-type-option input[type="radio"] {
  margin-right: 8px;
  cursor: pointer;
}

.sign-type-option input[type="radio"]:checked+span {
  color: rgba(255, 111, 183, 1);
}

.sign-type-option:has(input[type="radio"]:checked) {
  border-color: rgba(255, 111, 183, 0.8);
  background: rgba(255, 111, 183, 0.1);
  box-shadow: 0 0 0 3px rgba(255, 111, 183, 0.1);
}

.sign-option-panel {
  margin-top: 15px;
}

@media (max-width: 768px) {
  .watermark-options {
    padding: 20px;
  }

  .watermark-input {
    padding: 10px 14px;
    font-size: 14px;
  }

  .btn-watermark {
    padding: 14px 20px;
    font-size: 15px;
  }

  .watermark-icon-container {
    gap: 10px;
    max-width: 400px;
  }

  .watermark-doc-wrapper {
    width: 90px;
    height: 90px;
  }

  .watermark-arrow {
    width: 60px;
    height: 40px;
  }
}

/* Sign PDF - Icon Container Styles */
.sign-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 20px 0;
}

/* PDF Document (Left) */
.sign-pdf-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: signPdfFloat 3s ease-in-out infinite;
}

.sign-pdf-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(76, 224, 179, 0.5));
  transition: transform 0.3s ease;
  z-index: 2;
  position: relative;
}

.sign-pdf-glow {
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, rgba(76, 224, 179, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: signPdfGlow 2s ease-in-out infinite;
  z-index: 1;
}

.sign-pdf-wrapper:hover .sign-pdf-icon {
  transform: scale(1.1) rotate(-5deg);
}

/* Animated Arrow */
.sign-arrow-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  animation: signArrowPulse 2s ease-in-out infinite;
}

.sign-arrow {
  width: 100px;
  height: 40px;
  filter: drop-shadow(0 0 8px rgba(76, 224, 179, 0.6));
}

.sign-arrow .arrow-path {
  animation: signArrowFlow 2s ease-in-out infinite;
}

/* Pencil Icon (Right) */
.sign-pencil-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: signPencilWrite 2.5s ease-in-out infinite;
}

.sign-pencil-icon,
.sign-pencil-fallback {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255, 111, 183, 0.6));
  transition: transform 0.3s ease;
  z-index: 2;
  position: relative;
}

.sign-pencil-fallback {
  width: 80px;
  height: 80px;
}

.sign-pencil-glow {
  position: absolute;
  inset: -8px;
  background: radial-gradient(circle, rgba(255, 111, 183, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  animation: signPencilGlow 2s ease-in-out infinite;
  z-index: 1;
}

.sign-pencil-wrapper:hover .sign-pencil-icon,
.sign-pencil-wrapper:hover .sign-pencil-fallback {
  transform: scale(1.15) rotate(15deg);
}

/* Animations */
@keyframes signPdfFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}

@keyframes signPdfGlow {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

@keyframes signArrowPulse {

  0%,
  100% {
    opacity: 0.7;
    transform: translateX(0);
  }

  50% {
    opacity: 1;
    transform: translateX(5px);
  }
}

@keyframes signArrowFlow {
  0% {
    stroke-dasharray: 0 200;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 100 200;
    stroke-dashoffset: -50;
  }

  100% {
    stroke-dasharray: 200 200;
    stroke-dashoffset: -200;
  }
}

@keyframes signPencilWrite {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  25% {
    transform: translateY(-5px) rotate(-10deg);
  }

  50% {
    transform: translateY(-8px) rotate(5deg);
  }

  75% {
    transform: translateY(-5px) rotate(-5deg);
  }
}

@keyframes signPencilGlow {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.15);
  }
}

/* Sign PDF - Responsive */
@media (max-width: 768px) {
  .sign-icon-container {
    gap: 15px;
    max-width: 400px;
    padding: 15px 0;
  }

  .sign-pdf-wrapper {
    width: 90px;
    height: 90px;
  }

  .sign-pencil-wrapper {
    width: 75px;
    height: 75px;
  }

  .sign-pencil-fallback {
    width: 60px;
    height: 60px;
  }

  .sign-arrow {
    width: 70px;
    height: 30px;
  }
}

/* Protect PDF - Icon Container Styles */
.protect-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.protect-doc-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  transition: transform 0.3s ease;
}

.protect-doc-locked {
  filter: drop-shadow(0 0 12px rgba(255, 111, 183, 0.6));
}

.protect-doc {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.protect-doc-wrapper:hover .protect-doc {
  transform: scale(1.05);
}

.protect-lock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 36px;
  pointer-events: none;
  animation: protectLockPulse 2s ease-in-out infinite;
  z-index: 10;
}

@keyframes protectLockPulse {

  0%,
  100% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
  }
}

/* Protect PDF - Options Styles */
.protect-options {
  margin-top: 30px;
  padding: 30px;
  background: rgba(10, 12, 35, 0.6);
  border-radius: 16px;
  border: 1px solid rgba(255, 111, 183, 0.2);
  backdrop-filter: blur(10px);
}

.protect-options-header {
  margin-bottom: 20px;
  text-align: center;
}

.protect-options-header h3 {
  color: #f0f2ff;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.protect-form {
  margin-bottom: 25px;
}

.protect-input-group {
  margin-bottom: 20px;
}

.protect-input-group label {
  display: block;
  color: #f0f2ff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.protect-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(20, 25, 50, 0.7);
  border: 2px solid rgba(255, 111, 183, 0.3);
  border-radius: 8px;
  color: #f0f2ff;
  font-size: 15px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.protect-input:focus {
  outline: none;
  border-color: rgba(255, 111, 183, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 111, 183, 0.1);
}

.password-hint {
  font-size: 12px;
  color: rgba(240, 242, 255, 0.6);
  margin-top: 6px;
}

.password-strength {
  font-size: 12px;
  margin-top: 6px;
  font-weight: 600;
}

.password-strength-weak {
  color: #ff6fb7;
}

.password-strength-medium {
  color: #ffaf87;
}

.password-strength-strong {
  color: #4ce0b3;
}

.btn-protect {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, rgba(255, 111, 183, 0.9), rgba(76, 224, 179, 0.9));
  color: #0a0c23;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 111, 183, 0.3);
}

.btn-protect:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 111, 183, 0.5);
}

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

.btn-protect:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 768px) {
  .protect-options {
    padding: 20px;
  }

  .protect-input {
    padding: 10px 14px;
    font-size: 14px;
  }

  .btn-protect {
    padding: 14px 20px;
    font-size: 15px;
  }

  .protect-icon-container {
    max-width: 280px;
  }

  .protect-doc-wrapper {
    width: 100px;
    height: 100px;
  }

  .protect-lock {
    font-size: 30px;
  }
}

/* Rotate PDF - Icon Container Styles */
.rotate-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.rotate-docs-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
  width: 100%;
}

.rotate-doc {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255, 111, 183, 0.6));
  transition: transform 0.3s ease;
}

.rotate-doc-left {
  transform-origin: center;
}

.rotate-doc-right {
  transform-origin: center;
}

.rotate-docs-wrapper:hover .rotate-doc-left {
  transform: rotate(-15deg) scale(1.05);
}

.rotate-docs-wrapper:hover .rotate-doc-right {
  transform: rotate(15deg) scale(1.05);
}

.rotate-arrow-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.rotate-arrow {
  font-size: 40px;
  pointer-events: none;
  animation: rotateArrowSpin 2s ease-in-out infinite;
  color: rgba(255, 111, 183, 0.9);
  filter: drop-shadow(0 0 8px rgba(255, 111, 183, 0.6));
  line-height: 1;
}

.rotate-arrow-90 {
  animation-duration: 2s;
}

.rotate-arrow-180 {
  animation-duration: 1.5s;
}

.rotate-arrow-270 {
  animation-duration: 2s;
  animation-direction: reverse;
}

@keyframes rotateArrowSpin {

  0%,
  100% {
    opacity: 0.8;
    transform: rotate(0deg);
  }

  50% {
    opacity: 1;
    transform: rotate(180deg);
  }
}

/* Rotate PDF - Options Styles */
.rotate-options {
  margin-top: 30px;
  padding: 30px;
  background: rgba(10, 12, 35, 0.6);
  border-radius: 16px;
  border: 1px solid rgba(255, 111, 183, 0.2);
  backdrop-filter: blur(10px);
}

.rotate-options-header {
  margin-bottom: 20px;
  text-align: center;
}

.rotate-options-header h3 {
  color: #f0f2ff;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.rotate-form {
  margin-bottom: 25px;
}

.rotate-input-group {
  margin-bottom: 20px;
}

.rotate-input-group label {
  display: block;
  color: #f0f2ff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.rotate-angles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.rotate-angle-btn {
  padding: 18px 12px;
  background: rgba(20, 25, 50, 0.7);
  border: 2px solid rgba(255, 111, 183, 0.3);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  color: #f0f2ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.rotate-angle-btn:hover {
  background: rgba(255, 111, 183, 0.1);
  border-color: rgba(255, 111, 183, 0.5);
  transform: translateY(-2px);
}

.rotate-angle-btn.active {
  background: rgba(255, 111, 183, 0.2);
  border-color: rgba(255, 111, 183, 0.8);
  box-shadow: 0 0 20px rgba(255, 111, 183, 0.4);
}

.rotate-angle-icon {
  font-size: 28px;
  line-height: 1;
}

.rotate-angle-name {
  font-size: 16px;
  font-weight: 600;
  color: #f0f2ff;
}

.rotate-angle-desc {
  font-size: 12px;
  color: rgba(240, 242, 255, 0.7);
}

.rotate-input-group label input[type="checkbox"] {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: rgba(255, 111, 183, 0.8);
}

.rotate-input-group label span {
  color: #f0f2ff;
  font-size: 14px;
  cursor: pointer;
}

.btn-rotate {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, rgba(255, 111, 183, 0.9), rgba(76, 224, 179, 0.9));
  color: #0a0c23;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 111, 183, 0.3);
}

.btn-rotate:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 111, 183, 0.5);
}

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

.btn-rotate:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 768px) {
  .rotate-options {
    padding: 20px;
  }

  .rotate-angles {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .rotate-angle-btn {
    padding: 16px;
  }

  .btn-rotate {
    padding: 14px 20px;
    font-size: 15px;
  }

  .rotate-icon-container {
    max-width: 320px;
  }

  .rotate-docs-wrapper {
    gap: 15px;
  }

  .rotate-doc {
    width: 80px;
    height: 80px;
  }

  .rotate-arrow-container {
    width: 50px;
    height: 50px;
  }

  .rotate-arrow {
    font-size: 32px;
  }
}

/* PDF to Image - Icon Container Styles */
.pdf-to-image-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.pdf-to-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  position: relative;
  width: 100%;
}

.pdf-to-image-doc {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255, 111, 183, 0.6));
  transition: transform 0.3s ease;
}

.pdf-to-image-wrapper:hover .pdf-to-image-doc {
  transform: scale(1.05);
}

.pdf-to-image-arrow-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pdf-to-image-arrow {
  font-size: 32px;
  color: rgba(255, 111, 183, 0.9);
  filter: drop-shadow(0 0 8px rgba(255, 111, 183, 0.6));
  animation: pdfToImageArrowPulse 2s ease-in-out infinite;
}

@keyframes pdfToImageArrowPulse {

  0%,
  100% {
    opacity: 0.7;
    transform: translateX(0);
  }

  50% {
    opacity: 1;
    transform: translateX(5px);
  }
}

.pdf-to-image-result {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(76, 224, 179, 0.6));
  transition: transform 0.3s ease;
}

.pdf-to-image-wrapper:hover .pdf-to-image-result {
  transform: scale(1.05);
}

/* PDF to Image - Options Styles */
.image-options {
  margin-top: 30px;
  padding: 30px;
  background: rgba(10, 12, 35, 0.6);
  border-radius: 16px;
  border: 1px solid rgba(255, 111, 183, 0.2);
  backdrop-filter: blur(10px);
}

.image-options-header {
  margin-bottom: 20px;
  text-align: center;
}

.image-options-header h3 {
  color: #f0f2ff;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.image-form {
  margin-bottom: 25px;
}

.image-input-group {
  margin-bottom: 20px;
}

.image-input-group label {
  display: block;
  color: #f0f2ff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.image-formats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.image-format-btn {
  padding: 18px 12px;
  background: rgba(20, 25, 50, 0.7);
  border: 2px solid rgba(255, 111, 183, 0.3);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  color: #f0f2ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.image-format-btn:hover {
  background: rgba(255, 111, 183, 0.1);
  border-color: rgba(255, 111, 183, 0.5);
  transform: translateY(-2px);
}

.image-format-btn.active {
  background: rgba(255, 111, 183, 0.2);
  border-color: rgba(255, 111, 183, 0.8);
  box-shadow: 0 0 20px rgba(255, 111, 183, 0.4);
}

.image-format-icon {
  font-size: 28px;
  line-height: 1;
}

.image-format-name {
  font-size: 16px;
  font-weight: 600;
  color: #f0f2ff;
}

.image-format-desc {
  font-size: 12px;
  color: rgba(240, 242, 255, 0.7);
}

.btn-convert-image {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, rgba(255, 111, 183, 0.9), rgba(76, 224, 179, 0.9));
  color: #0a0c23;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 111, 183, 0.3);
}

.btn-convert-image:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 111, 183, 0.5);
}

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

.btn-convert-image:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 768px) {
  .image-options {
    padding: 20px;
  }

  .image-formats {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .image-format-btn {
    padding: 16px;
  }

  .btn-convert-image {
    padding: 14px 20px;
    font-size: 15px;
  }

  .pdf-to-image-icon-container {
    max-width: 320px;
  }

  .pdf-to-image-wrapper {
    gap: 12px;
  }

  .pdf-to-image-doc {
    width: 80px;
    height: 80px;
  }

  .pdf-to-image-arrow {
    font-size: 24px;
  }

  .pdf-to-image-result {
    width: 80px;
    height: 80px;
  }
}

/* ============================================
   Authentication Pages Styles
   ============================================ */

/* Auth Card - Mejorado */
.auth-card {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
  margin-top: 30px;
  border-radius: 28px;
  padding: 48px 40px;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.12), rgba(10, 11, 40, 0.98));
  box-shadow:
    0 0 60px rgba(255, 111, 183, 0.6),
    0 0 100px rgba(76, 224, 179, 0.3),
    0 24px 60px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff6fb7, #ff8e72, #4CE0B3);
  opacity: 0.8;
}

.auth-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 111, 183, 0.1) 0%, transparent 70%);
  pointer-events: none;
  animation: authGlow 8s ease-in-out infinite;
}

@keyframes authGlow {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }

  50% {
    transform: translate(-20%, -20%) scale(1.1);
    opacity: 0.5;
  }
}

/* Auth Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  color: #f0f2ff;
  font-size: 14px;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(10, 12, 20, 0.8);
  border: 2px solid rgba(255, 111, 183, 0.3);
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #ff6fb7;
  box-shadow: 0 0 20px rgba(255, 111, 183, 0.4);
  background: rgba(15, 18, 28, 0.9);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-hint {
  font-size: 12px;
  color: rgba(240, 242, 255, 0.6);
  margin-top: -4px;
}

.form-actions {
  margin-top: 8px;
}

.form-actions .btn {
  width: 100%;
}

/* Error Message */
.error-message {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(237, 106, 94, 0.15);
  border: 1px solid rgba(237, 106, 94, 0.4);
  border-radius: 10px;
  color: #ED6A5E;
  font-size: 14px;
  text-align: center;
}

/* Auth Links */
.auth-links {
  margin-top: 20px;
  text-align: center;
}

.auth-links p {
  color: rgba(240, 242, 255, 0.7);
  font-size: 14px;
  margin: 0;
}

.auth-links a {
  color: #ff6fb7;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.auth-links a:hover {
  color: #ff8e72;
  text-decoration: underline;
}

/* Settings Page - Layout con Sidebar */
.settings-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 0;
}

@media (max-width: 768px) {
  .settings-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .settings-sidebar {
    position: relative;
    top: 0;
  }

  .settings-nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 0 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 111, 183, 0.3) transparent;
  }

  .settings-nav::-webkit-scrollbar {
    height: 4px;
  }

  .settings-nav::-webkit-scrollbar-track {
    background: transparent;
  }

  .settings-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 111, 183, 0.3);
    border-radius: 2px;
  }

  .settings-nav-item {
    white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid transparent;
    min-width: fit-content;
    padding: 12px 16px;
  }

  .settings-nav-item::before {
    display: none;
  }

  .settings-nav-item.active {
    border-left: none;
    border-bottom-color: #ff6fb7;
  }

  .settings-card {
    padding: 20px;
  }

  .settings-header h2 {
    font-size: 22px;
  }

  .settings-header p {
    font-size: 14px;
  }

  .form-group {
    margin-bottom: 20px;
  }

  .form-group label {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
    /* Evita zoom en iOS */
    padding: 12px 16px;
  }

  .form-actions {
    flex-direction: column;
    gap: 12px;
  }

  .btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
  }
}

/* Banner "Gratis por siempre" - Banner positivo por defecto */
.free-forever-banner {
  max-width: 520px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(76, 224, 179, 0.15), rgba(255, 111, 183, 0.1));
  border-radius: 16px;
  padding: 14px 20px;
  border: 1px solid rgba(76, 224, 179, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 0 30px rgba(76, 224, 179, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: slideDown 0.3s ease-out;
}

.free-forever-banner .banner-text strong {
  color: #4ce0b3;
  font-weight: 600;
  font-size: 15px;
}

/* Banner de límites para usuarios anónimos - Solo cuando se alcanza el límite */
.anonymous-limit-banner {
  max-width: 520px;
  margin: 0 auto 20px;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.1), rgba(10, 11, 40, 0.95));
  border-radius: 16px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 170, 0, 0.5);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 170, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: slideDown 0.3s ease-out;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.banner-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.banner-text {
  flex: 1;
  min-width: 200px;
  font-size: 14px;
  color: #f0f2ff;
  line-height: 1.5;
}

.banner-text strong {
  color: #4ce0b3;
  font-weight: 600;
  font-size: 15px;
}

.banner-cta {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

.banner-btn {
  padding: 8px 20px;
  background: linear-gradient(135deg, #ff6fb7 0%, #d84a8f 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(255, 111, 183, 0.4);
  flex-shrink: 0;
}

.banner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 111, 183, 0.6);
  background: linear-gradient(135deg, #ff7fc7 0%, #e85aa9 100%);
}

/* Estilos para banner de límite alcanzado */
.anonymous-limit-banner .banner-text strong {
  color: #ffaa00;
  font-weight: 600;
  font-size: 15px;
}

/* Responsive Banners */
@media (max-width: 768px) {
  .free-forever-banner,
  .anonymous-limit-banner {
    max-width: 100%;
    margin: 0 auto 16px;
    padding: 14px 16px;
    border-radius: 12px;
  }

  .banner-content {
    gap: 10px;
  }

  .banner-icon {
    font-size: 20px;
  }

  .banner-text {
    min-width: 0;
    font-size: 13px;
  }

  .banner-text strong {
    font-size: 14px;
  }

  .banner-cta {
    font-size: 11px;
  }

  .banner-btn {
    padding: 10px 18px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .anonymous-limit-banner {
    padding: 12px 14px;
    margin-bottom: 12px;
  }

  .banner-content {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 12px;
  }

  .banner-icon {
    font-size: 18px;
    align-self: center;
  }

  .banner-text {
    font-size: 12px;
    text-align: center;
  }

  .banner-text strong {
    font-size: 13px;
    display: block;
    margin-bottom: 4px;
  }

  .banner-cta {
    font-size: 11px;
    margin-top: 6px;
  }

  .banner-btn {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    font-size: 14px;
  }
}

.settings-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), rgba(10, 11, 40, 0.96));
  border-radius: 20px;
  padding: 24px 0;
  box-shadow: 0 0 40px rgba(255, 111, 183, 0.4), 0 20px 50px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  color: rgba(240, 242, 255, 0.7);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.25s ease;
  border-left: 3px solid transparent;
  position: relative;
}

.settings-nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #ff6fb7, #4CE0B3);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.settings-nav-item:hover {
  color: #f0f2ff;
  background: rgba(255, 111, 183, 0.08);
  border-left-color: rgba(255, 111, 183, 0.5);
}

.settings-nav-item.active {
  color: #ff6fb7;
  background: rgba(255, 111, 183, 0.15);
  border-left-color: #ff6fb7;
}

.settings-nav-item.active::before {
  opacity: 1;
}

.settings-nav-icon {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.settings-content-area {
  min-height: 600px;
}

.settings-section {
  display: none;
  animation: fadeIn 0.3s ease;
}

.settings-section.active {
  display: block;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Settings Card - Mejorado */
.settings-card {
  position: relative;
  margin-bottom: 24px;
  border-radius: 24px;
  padding: 32px;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), rgba(10, 11, 40, 0.96));
  box-shadow: 0 0 40px rgba(255, 111, 183, 0.5), 0 24px 60px rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.settings-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 111, 183, 0.2);
}

.settings-header h2 {
  margin: 0 0 8px 0;
  font-size: 22px;
  font-weight: 700;
  color: #f0f2ff;
  background: linear-gradient(135deg, #ff6fb7, #ff8e72);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.settings-header p {
  margin: 0;
  color: rgba(240, 242, 255, 0.6);
  font-size: 14px;
}

.settings-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Account Info */
.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  color: rgba(240, 242, 255, 0.7);
  font-size: 14px;
  font-weight: 600;
}

.info-value {
  color: #f0f2ff;
  font-size: 14px;
  font-weight: 500;
}

.plan-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-free {
  background: rgba(76, 224, 179, 0.2);
  color: #4CE0B3;
  border: 1px solid rgba(76, 224, 179, 0.4);
}

.plan-pro {
  background: rgba(255, 111, 183, 0.2);
  color: #ff6fb7;
  border: 1px solid rgba(255, 111, 183, 0.4);
}

.plan-premium {
  background: rgba(255, 175, 135, 0.2);
  color: #FFAF87;
  border: 1px solid rgba(255, 175, 135, 0.4);
}

.info-loading {
  color: rgba(240, 242, 255, 0.6);
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

/* Email Verification */
.verification-status {
  margin-bottom: 20px;
}

.verification-success,
.verification-warning {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}

.verification-success {
  background: rgba(76, 224, 179, 0.15);
  border: 1px solid rgba(76, 224, 179, 0.3);
  color: #4CE0B3;
}

.verification-warning {
  background: rgba(255, 175, 135, 0.15);
  border: 1px solid rgba(255, 175, 135, 0.3);
  color: #FFAF87;
}

.verification-icon {
  font-size: 20px;
}

.verification-form {
  margin-top: 20px;
}

.verification-form .form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.verification-form .btn {
  flex: 1;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: 0.3s;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: rgba(240, 242, 255, 0.8);
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input:checked+.toggle-slider {
  background: linear-gradient(135deg, rgba(255, 111, 183, 0.5), rgba(76, 224, 179, 0.5));
  border-color: rgba(255, 111, 183, 0.6);
}

.toggle-switch input:checked+.toggle-slider:before {
  transform: translateX(24px);
  background-color: #ff6fb7;
  box-shadow: 0 0 10px rgba(255, 111, 183, 0.6);
}

/* Nav Active State */
.nav a.active {
  opacity: 1;
  background: linear-gradient(135deg, rgba(255, 111, 183, 0.2), rgba(76, 224, 179, 0.2));
}

.nav a.active::before {
  opacity: 1;
}

/* Signup button in nav */
.btn-nav-signup {
  background: linear-gradient(135deg, rgba(255, 111, 183, 0.3), rgba(76, 224, 179, 0.3)) !important;
  border: 1px solid rgba(255, 111, 183, 0.4) !important;
}

.btn-nav-signup:hover {
  background: linear-gradient(135deg, rgba(255, 111, 183, 0.4), rgba(76, 224, 179, 0.4)) !important;
  border-color: rgba(255, 111, 183, 0.6) !important;
}

/* Admin Panel Button */
.admin-access-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 111, 183, 0.2);
}

.btn-admin-panel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 24px;
  background: linear-gradient(135deg, rgba(255, 111, 183, 0.15), rgba(76, 224, 179, 0.15));
  border: 2px solid rgba(255, 111, 183, 0.4);
  border-radius: 12px;
  color: #f0f2ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 4px 15px rgba(255, 111, 183, 0.2),
    0 0 30px rgba(255, 111, 183, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-admin-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.btn-admin-panel:hover {
  background: linear-gradient(135deg, rgba(255, 111, 183, 0.25), rgba(76, 224, 179, 0.25));
  border-color: rgba(255, 111, 183, 0.6);
  transform: translateY(-2px);
  box-shadow:
    0 6px 25px rgba(255, 111, 183, 0.4),
    0 0 40px rgba(255, 111, 183, 0.2),
    0 0 60px rgba(76, 224, 179, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-admin-panel:hover::before {
  left: 100%;
}

.btn-admin-panel:active {
  transform: translateY(0);
  box-shadow:
    0 2px 10px rgba(255, 111, 183, 0.3),
    0 0 20px rgba(255, 111, 183, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-admin-icon {
  font-size: 20px;
  filter: drop-shadow(0 0 8px rgba(255, 111, 183, 0.6));
  transition: transform 0.3s ease;
}

.btn-admin-panel:hover .btn-admin-icon {
  transform: rotate(90deg) scale(1.1);
  filter: drop-shadow(0 0 12px rgba(255, 111, 183, 0.8));
}

.btn-admin-text {
  background: linear-gradient(135deg, #ff6fb7, #4ce0b3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Admin Panel Button in Sidebar */
.settings-nav-item-admin {
  background: linear-gradient(135deg, rgba(255, 111, 183, 0.15), rgba(76, 224, 179, 0.15)) !important;
  border: 2px solid rgba(255, 111, 183, 0.4) !important;
  border-left: 2px solid rgba(255, 111, 183, 0.4) !important;
  border-radius: 12px !important;
  margin: 8px 0;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 4px 15px rgba(255, 111, 183, 0.2),
    0 0 30px rgba(255, 111, 183, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.settings-nav-item-admin::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.settings-nav-item-admin:hover {
  background: linear-gradient(135deg, rgba(255, 111, 183, 0.25), rgba(76, 224, 179, 0.25)) !important;
  border-color: rgba(255, 111, 183, 0.6) !important;
  transform: translateY(-2px);
  box-shadow:
    0 6px 25px rgba(255, 111, 183, 0.4),
    0 0 40px rgba(255, 111, 183, 0.2),
    0 0 60px rgba(76, 224, 179, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.settings-nav-item-admin:hover::before {
  left: 100%;
}

.settings-nav-item-admin:active {
  transform: translateY(0);
  box-shadow:
    0 2px 10px rgba(255, 111, 183, 0.3),
    0 0 20px rgba(255, 111, 183, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.settings-nav-item-admin .btn-admin-icon {
  font-size: 20px;
  filter: drop-shadow(0 0 8px rgba(255, 111, 183, 0.6));
  transition: transform 0.3s ease;
}

.settings-nav-item-admin:hover .btn-admin-icon {
  transform: rotate(90deg) scale(1.1);
  filter: drop-shadow(0 0 12px rgba(255, 111, 183, 0.8));
}

.settings-nav-item-admin .btn-admin-text {
  background: linear-gradient(135deg, #ff6fb7, #4ce0b3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.settings-nav-item-admin.active {
  background: linear-gradient(135deg, rgba(255, 111, 183, 0.25), rgba(76, 224, 179, 0.25)) !important;
  border-color: rgba(255, 111, 183, 0.6) !important;
}

/* Responsive Auth Pages */
@media (max-width: 768px) {
  .auth-card {
    padding: 32px 24px;
    max-width: 100%;
  }

  .settings-card {
    padding: 24px 20px;
    margin: 20px auto;
  }

  .settings-header h2 {
    font-size: 20px;
  }

  .info-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .verification-form .form-actions {
    flex-direction: column;
  }

  .verification-form .btn {
    width: 100%;
  }
}

/* ========================================
   MODAL SYSTEM - Custom Notifications
   ======================================== */

#modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  pointer-events: none;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: all;
}

.modal-show {
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.1), rgba(10, 11, 40, 0.98));
  border: 1px solid rgba(255, 111, 183, 0.4);
  border-radius: 24px;
  padding: 28px 32px;
  max-width: 420px;
  width: 90%;
  box-shadow:
    0 0 60px rgba(255, 111, 183, 0.4),
    0 0 100px rgba(76, 224, 179, 0.2),
    0 20px 60px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: scale(0.85) translateY(30px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  opacity: 0;
  z-index: 1;
  overflow: hidden;
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff6fb7, #ff8e72, #4CE0B3);
  opacity: 0.8;
}

.modal-content::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 111, 183, 0.15) 0%, transparent 70%);
  pointer-events: none;
  animation: modalGlow 6s ease-in-out infinite;
}

@keyframes modalGlow {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }

  50% {
    transform: translate(-15%, -15%) scale(1.1);
    opacity: 0.5;
  }
}

.modal-content-show {
  transform: scale(1) translateY(0);
  opacity: 1;
  animation: floatBubble 3s ease-in-out infinite;
}

@keyframes floatBubble {

  0%,
  100% {
    transform: scale(1) translateY(0);
  }

  50% {
    transform: scale(1.02) translateY(-5px);
  }
}

.modal-title {
  margin: 0 0 12px 0;
  font-size: 22px;
  font-weight: 700;
  color: #f0f2ff;
  text-align: center;
  background: linear-gradient(135deg, #ff6fb7, #4ce0b3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

.modal-message {
  margin: 0 0 28px 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(240, 242, 255, 0.85);
  text-align: center;
  position: relative;
  z-index: 1;
}

.modal-input {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 24px;
  background: rgba(15, 20, 40, 0.8);
  border: 2px solid rgba(255, 111, 183, 0.3);
  border-radius: 12px;
  color: #f0f2ff;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.3s ease;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.modal-input:focus {
  outline: none;
  border-color: rgba(255, 111, 183, 0.6);
  box-shadow: 0 0 20px rgba(255, 111, 183, 0.3);
  background: rgba(15, 20, 40, 0.95);
}

.modal-input::placeholder {
  color: rgba(240, 242, 255, 0.5);
}

.modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.modal-btn {
  padding: 11px 28px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 110px;
  position: relative;
  overflow: hidden;
}

.modal-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.modal-btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Responsive Modales */
@media (max-width: 768px) {
  .modal-content {
    max-width: 90%;
    width: 90% !important;
    padding: 24px 20px;
    border-radius: 20px;
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .modal-message {
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
  }

  .modal-input {
    font-size: 16px;
    /* Evita zoom en iOS */
    padding: 14px 16px;
    margin-bottom: 20px;
  }

  .modal-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .modal-btn {
    width: 100%;
    min-width: 0;
    padding: 14px 20px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .modal-content {
    max-width: 95%;
    width: 95% !important;
    padding: 20px 16px;
    border-radius: 16px;
    max-height: 90vh;
  }

  .modal-title {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .modal-message {
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.4;
  }

  .modal-input {
    font-size: 16px;
    padding: 12px 14px;
    margin-bottom: 16px;
  }

  .modal-btn {
    padding: 12px 18px;
    font-size: 15px;
  }
}

.modal-btn-primary {
  background: linear-gradient(135deg, rgba(255, 111, 183, 0.9), rgba(76, 224, 179, 0.9));
  color: #0f1419;
  box-shadow:
    0 4px 15px rgba(255, 111, 183, 0.4),
    0 0 20px rgba(76, 224, 179, 0.2);
  position: relative;
  z-index: 1;
}

.modal-btn-primary:hover {
  background: linear-gradient(135deg, rgba(255, 111, 183, 1), rgba(76, 224, 179, 1));
  box-shadow:
    0 6px 25px rgba(255, 111, 183, 0.5),
    0 0 30px rgba(76, 224, 179, 0.3);
  transform: translateY(-2px) scale(1.02);
}

.modal-btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow:
    0 2px 10px rgba(255, 111, 183, 0.4),
    0 0 15px rgba(76, 224, 179, 0.2);
}

.modal-btn-secondary {
  background: rgba(20, 25, 50, 0.6);
  color: rgba(240, 242, 255, 0.9);
  border: 2px solid rgba(255, 111, 183, 0.3);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-btn-secondary:hover {
  background: rgba(20, 25, 50, 0.8);
  border-color: rgba(255, 111, 183, 0.5);
  color: #f0f2ff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 15px rgba(255, 111, 183, 0.2);
}

.modal-btn-secondary:active {
  transform: translateY(0) scale(0.98);
}

.modal-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 111, 183, 0.4);
}


/* Tablas responsive */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -16px;
  padding: 0 16px;
}

.table-wrapper table {
  width: 100%;
  min-width: 600px;
}

@media (max-width: 768px) {
  .table-wrapper {
    margin: 0 -20px;
    padding: 0 20px;
  }

  .table-wrapper table {
    min-width: 500px;
  }
}

@media (max-width: 480px) {
  .table-wrapper {
    margin: 0 -16px;
    padding: 0 16px;
  }

  .table-wrapper table {
    min-width: 400px;
    font-size: 12px;
  }

  .table-wrapper th,
  .table-wrapper td {
    padding: 8px 10px;
  }
}

/* Responsive Modals */
@media (max-width: 768px) {
  .modal-content {
    padding: 24px 20px;
    max-width: 90%;
    border-radius: 20px;
    margin: 20px auto;
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .modal-message {
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.6;
  }

  .modal-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .modal-btn {
    width: 100%;
    min-width: auto;
  }
}

/* ========================================
   ADMIN PANEL STYLES
   ======================================== */

.admin-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 0;
}

@media (max-width: 768px) {
  .admin-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .admin-sidebar {
    position: relative;
    top: 0;
  }

  .admin-nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 0 16px;
  }

  .admin-nav-item {
    white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid transparent;
  }

  .admin-nav-item::before {
    display: none;
  }

  .admin-nav-item.active {
    border-left: none;
    border-bottom-color: #ff6fb7;
  }
}

.admin-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), rgba(10, 11, 40, 0.96));
  border-radius: 20px;
  padding: 24px 0;
  box-shadow: 0 0 40px rgba(255, 111, 183, 0.4), 0 20px 50px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  color: rgba(240, 242, 255, 0.7);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.25s ease;
  border-left: 3px solid transparent;
  position: relative;
  cursor: pointer;
}

.admin-nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #ff6fb7, #4CE0B3);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.admin-nav-item:hover {
  color: #f0f2ff;
  background: rgba(255, 111, 183, 0.08);
  border-left-color: rgba(255, 111, 183, 0.5);
}

.admin-nav-item.active {
  color: #ff6fb7;
  background: rgba(255, 111, 183, 0.15);
  border-left-color: #ff6fb7;
}

.admin-nav-item.active::before {
  opacity: 1;
}

.admin-nav-icon {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.admin-content-area {
  min-height: 600px;
}

.admin-section {
  display: none;
  animation: fadeIn 0.3s ease;
}

.admin-section.active {
  display: block;
}

.admin-card {
  position: relative;
  margin-bottom: 24px;
  border-radius: 24px;
  padding: 32px;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), rgba(10, 11, 40, 0.96));
  box-shadow: 0 0 40px rgba(255, 111, 183, 0.5), 0 24px 60px rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.admin-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 111, 183, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.admin-header>div:first-child {
  flex: 1;
  min-width: 200px;
}

.admin-header h2 {
  margin: 0 0 8px 0;
  font-size: 22px;
  font-weight: 700;
  color: #f0f2ff;
  background: linear-gradient(135deg, #ff6fb7, #ff8e72);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.admin-header p {
  margin: 0;
  color: rgba(240, 242, 255, 0.6);
  font-size: 14px;
}

/* Botones de exportación */
.export-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-export {
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(255, 111, 183, 0.2), rgba(76, 224, 179, 0.2));
  border: 1px solid rgba(255, 111, 183, 0.4);
  border-radius: 8px;
  color: #f0f2ff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-export:hover {
  background: linear-gradient(135deg, rgba(255, 111, 183, 0.3), rgba(76, 224, 179, 0.3));
  border-color: rgba(255, 111, 183, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 111, 183, 0.3);
}

.btn-export:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(255, 111, 183, 0.2);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: rgba(20, 25, 50, 0.6);
  border: 1px solid rgba(255, 111, 183, 0.2);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: rgba(255, 111, 183, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 111, 183, 0.2);
}

.stat-icon {
  font-size: 40px;
  flex-shrink: 0;
}

.stat-info {
  flex: 1;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #ff6fb7;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: rgba(240, 242, 255, 0.7);
  margin-bottom: 8px;
}

.stat-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: rgba(240, 242, 255, 0.5);
}

.stats-section {
  margin-top: 32px;
}

.stats-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: #f0f2ff;
  margin-bottom: 16px;
}

.usage-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.usage-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.usage-label {
  min-width: 120px;
  font-size: 14px;
  color: rgba(240, 242, 255, 0.8);
  font-weight: 600;
}

.usage-bar-container {
  flex: 1;
  height: 24px;
  background: rgba(20, 25, 50, 0.6);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 111, 183, 0.2);
}

.usage-bar {
  height: 100%;
  background: linear-gradient(90deg, #ff6fb7, #4ce0b3);
  transition: width 0.5s ease;
}

.usage-value {
  min-width: 50px;
  text-align: right;
  font-size: 14px;
  font-weight: 600;
  color: #f0f2ff;
}

/* Filters */
.admin-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.admin-search,
.admin-filter {
  padding: 10px 16px;
  background: rgba(15, 20, 40, 0.8);
  border: 1px solid rgba(255, 111, 183, 0.3);
  border-radius: 8px;
  color: #f0f2ff;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.admin-search {
  flex: 1;
  min-width: 200px;
}

.admin-filter {
  min-width: 150px;
}

.admin-search:focus,
.admin-filter:focus {
  outline: none;
  border-color: rgba(255, 111, 183, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 111, 183, 0.1);
}

/* Tables */
.users-table,
.logs-table {
  overflow-x: auto;
  margin-bottom: 20px;
}

.users-table table,
.logs-table table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(15, 20, 40, 0.6);
  border-radius: 12px;
  overflow: hidden;
}

.users-table th,
.logs-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: rgba(240, 242, 255, 0.8);
  background: rgba(20, 25, 50, 0.8);
  border-bottom: 1px solid rgba(255, 111, 183, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.users-table td,
.logs-table td {
  padding: 12px 16px;
  font-size: 14px;
  color: rgba(240, 242, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.users-table tr:hover,
.logs-table tr:hover {
  background: rgba(255, 111, 183, 0.05);
}

.logs-table tr.log-error {
  background: rgba(237, 106, 94, 0.1);
}

.logs-table tr.log-error:hover {
  background: rgba(237, 106, 94, 0.15);
}

.error-detail {
  font-size: 11px;
  color: rgba(237, 106, 94, 0.8);
  margin-top: 4px;
  font-style: italic;
}

/* Badges */
.admin-badge {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(255, 111, 183, 0.2);
  color: #ff6fb7;
  border: 1px solid rgba(255, 111, 183, 0.4);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  margin-left: 6px;
  text-transform: uppercase;
}

.verified-badge {
  display: inline-block;
  color: #4ce0b3;
  font-size: 14px;
  margin-left: 6px;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-active,
.status-success {
  background: rgba(76, 224, 179, 0.2);
  color: #4ce0b3;
  border: 1px solid rgba(76, 224, 179, 0.4);
}

.status-cancelled,
.status-expired,
.status-error {
  background: rgba(237, 106, 94, 0.2);
  color: #ED6A5E;
  border: 1px solid rgba(237, 106, 94, 0.4);
}

.action-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255, 111, 183, 0.15);
  color: #ff6fb7;
  border: 1px solid rgba(255, 111, 183, 0.3);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

/* Buttons */
.btn-icon {
  background: transparent;
  border: 1px solid rgba(255, 111, 183, 0.3);
  color: #ff6fb7;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
  margin-right: 6px;
}

.btn-icon:hover {
  background: rgba(255, 111, 183, 0.1);
  border-color: rgba(255, 111, 183, 0.5);
  transform: scale(1.1);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  padding: 16px;
  background: rgba(15, 20, 40, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(255, 111, 183, 0.2);
}

.pagination button {
  padding: 8px 16px;
  background: rgba(255, 111, 183, 0.1);
  border: 1px solid rgba(255, 111, 183, 0.3);
  border-radius: 8px;
  color: #ff6fb7;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.pagination button:hover:not(:disabled) {
  background: rgba(255, 111, 183, 0.2);
  border-color: rgba(255, 111, 183, 0.5);
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination span {
  color: rgba(240, 242, 255, 0.7);
  font-size: 14px;
}

/* Plans Configuration */
.plans-config {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.plan-config-card {
  background: rgba(20, 25, 50, 0.6);
  border: 1px solid rgba(255, 111, 183, 0.2);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
}

.plan-config-card:hover {
  border-color: rgba(255, 111, 183, 0.4);
  box-shadow: 0 4px 20px rgba(255, 111, 183, 0.2);
}

.plan-config-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 111, 183, 0.2);
}

.plan-config-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #f0f2ff;
}

.plan-config-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.config-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.config-item label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(240, 242, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 8px;
}

.config-item input.plan-input {
  padding: 12px 16px;
  background: rgba(15, 20, 40, 0.8);
  border: 1px solid rgba(255, 111, 183, 0.3);
  border-radius: 8px;
  color: #f0f2ff;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.config-item input.plan-input:focus {
  outline: none;
  border-color: rgba(255, 111, 183, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 111, 183, 0.1);
  background: rgba(15, 20, 40, 0.95);
}

.config-item small {
  font-size: 12px;
  color: rgba(240, 242, 255, 0.5);
  margin-top: 4px;
}

.config-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 111, 183, 0.2);
}

.btn-save-plan,
.btn-reset-plan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-save-plan {
  background: linear-gradient(135deg, rgba(255, 111, 183, 0.2), rgba(76, 224, 179, 0.2));
  border: 2px solid rgba(255, 111, 183, 0.4);
  color: #f0f2ff;
  box-shadow:
    0 4px 15px rgba(255, 111, 183, 0.2),
    0 0 30px rgba(255, 111, 183, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-save-plan::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.btn-save-plan:hover {
  background: linear-gradient(135deg, rgba(255, 111, 183, 0.3), rgba(76, 224, 179, 0.3));
  border-color: rgba(255, 111, 183, 0.6);
  transform: translateY(-2px);
  box-shadow:
    0 6px 25px rgba(255, 111, 183, 0.4),
    0 0 40px rgba(255, 111, 183, 0.2),
    0 0 60px rgba(76, 224, 179, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-save-plan:hover::before {
  left: 100%;
}

.btn-save-plan:active {
  transform: translateY(0);
  box-shadow:
    0 2px 10px rgba(255, 111, 183, 0.3),
    0 0 20px rgba(255, 111, 183, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-reset-plan {
  background: rgba(15, 20, 40, 0.6);
  border: 2px solid rgba(240, 242, 255, 0.2);
  color: rgba(240, 242, 255, 0.8);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.btn-reset-plan:hover {
  background: rgba(15, 20, 40, 0.8);
  border-color: rgba(240, 242, 255, 0.4);
  color: #f0f2ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-reset-plan:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.btn-save-icon,
.btn-reset-icon {
  font-size: 16px;
  filter: drop-shadow(0 0 4px rgba(255, 111, 183, 0.4));
  transition: transform 0.3s ease;
}

.btn-save-plan:hover .btn-save-icon {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 8px rgba(255, 111, 183, 0.6));
}

.btn-reset-plan:hover .btn-reset-icon {
  transform: rotate(180deg);
}

.btn-save-text,
.btn-reset-text {
  position: relative;
  z-index: 1;
}

.config-item input[type="number"],
.config-item input[type="text"] {
  padding: 10px 14px;
  background: rgba(15, 20, 40, 0.8);
  border: 1px solid rgba(255, 111, 183, 0.3);
  border-radius: 8px;
  color: #f0f2ff;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.config-item input[type="number"]:focus,
.config-item input[type="text"]:focus {
  outline: none;
  border-color: rgba(255, 111, 183, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 111, 183, 0.1);
}

.config-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.config-item small {
  font-size: 12px;
  color: rgba(240, 242, 255, 0.5);
}

.config-actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}

.info-message {
  text-align: center;
  padding: 40px;
  color: rgba(240, 242, 255, 0.6);
  font-size: 14px;
}

/* PayPal Management Styles */
.paypal-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.paypal-stat-card {
  background: rgba(15, 20, 40, 0.8);
  border: 1px solid rgba(255, 111, 183, 0.2);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.paypal-stat-card:hover {
  border-color: rgba(255, 111, 183, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 111, 183, 0.2);
}

.paypal-stat-card.paypal-stat-active {
  border-color: rgba(76, 224, 179, 0.3);
}

.paypal-stat-card.paypal-stat-active:hover {
  border-color: rgba(76, 224, 179, 0.5);
  box-shadow: 0 4px 15px rgba(76, 224, 179, 0.2);
}

.paypal-stat-card.paypal-stat-pending {
  border-color: rgba(255, 170, 0, 0.3);
}

.paypal-stat-card.paypal-stat-pending:hover {
  border-color: rgba(255, 170, 0, 0.5);
  box-shadow: 0 4px 15px rgba(255, 170, 0, 0.2);
}

.paypal-stat-card.paypal-stat-cancelled,
.paypal-stat-card.paypal-stat-expired {
  border-color: rgba(255, 68, 68, 0.3);
}

.paypal-stat-card.paypal-stat-cancelled:hover,
.paypal-stat-card.paypal-stat-expired:hover {
  border-color: rgba(255, 68, 68, 0.5);
  box-shadow: 0 4px 15px rgba(255, 68, 68, 0.2);
}

.paypal-stat-value {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, #ff6fb7, #4ce0b3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.paypal-stat-card.paypal-stat-active .paypal-stat-value {
  background: linear-gradient(135deg, #4ce0b3, #76e8c9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.paypal-stat-card.paypal-stat-pending .paypal-stat-value {
  background: linear-gradient(135deg, #ffaa00, #ffc947);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.paypal-stat-card.paypal-stat-cancelled .paypal-stat-value,
.paypal-stat-card.paypal-stat-expired .paypal-stat-value {
  background: linear-gradient(135deg, #ff4444, #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.paypal-stat-label {
  color: rgba(240, 242, 255, 0.7);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.paypal-subscriptions-list {
  margin-top: 24px;
}

.paypal-subscription-card {
  background: rgba(15, 20, 40, 0.8);
  border: 1px solid rgba(255, 111, 183, 0.2);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.paypal-subscription-card:hover {
  border-color: rgba(255, 111, 183, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 111, 183, 0.2);
}

.paypal-subscription-card.paypal-subscription-synced {
  border-color: rgba(76, 224, 179, 0.3);
}

.paypal-subscription-card.paypal-subscription-synced:hover {
  border-color: rgba(76, 224, 179, 0.5);
  box-shadow: 0 4px 15px rgba(76, 224, 179, 0.2);
}

.paypal-subscription-card.paypal-subscription-unsynced {
  border-color: rgba(255, 170, 0, 0.3);
}

.paypal-subscription-card.paypal-subscription-unsynced:hover {
  border-color: rgba(255, 170, 0, 0.5);
  box-shadow: 0 4px 15px rgba(255, 170, 0, 0.2);
}

.paypal-subscription-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 111, 183, 0.1);
}

.paypal-subscription-email {
  color: #f0f2ff;
  font-size: 16px;
  font-weight: 600;
}

.paypal-sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.paypal-sync-badge-success {
  background: rgba(76, 224, 179, 0.15);
  color: #4ce0b3;
  border: 1px solid rgba(76, 224, 179, 0.3);
}

.paypal-sync-badge-warning {
  background: rgba(255, 170, 0, 0.15);
  color: #ffaa00;
  border: 1px solid rgba(255, 170, 0, 0.3);
}

.paypal-subscription-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.paypal-subscription-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.paypal-detail-label {
  color: rgba(240, 242, 255, 0.6);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.paypal-detail-value {
  color: #f0f2ff;
  font-size: 14px;
  font-weight: 500;
}

.paypal-subscription-id {
  font-family: 'Courier New', monospace;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: #4ce0b3;
}

.paypal-status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.paypal-status-active {
  background: rgba(76, 224, 179, 0.15);
  color: #4ce0b3;
  border: 1px solid rgba(76, 224, 179, 0.3);
}

.paypal-status-pending {
  background: rgba(255, 170, 0, 0.15);
  color: #ffaa00;
  border: 1px solid rgba(255, 170, 0, 0.3);
}

.paypal-status-cancelled,
.paypal-status-expired {
  background: rgba(255, 68, 68, 0.15);
  color: #ff4444;
  border: 1px solid rgba(255, 68, 68, 0.3);
}

.paypal-status-paypal-active,
.paypal-status-paypal-approved {
  background: rgba(76, 224, 179, 0.15);
  color: #4ce0b3;
  border: 1px solid rgba(76, 224, 179, 0.3);
}

.paypal-status-paypal-approval_pending {
  background: rgba(255, 170, 0, 0.15);
  color: #ffaa00;
  border: 1px solid rgba(255, 170, 0, 0.3);
}

.paypal-status-paypal-cancelled,
.paypal-status-paypal-expired {
  background: rgba(255, 68, 68, 0.15);
  color: #ff4444;
  border: 1px solid rgba(255, 68, 68, 0.3);
}

/* Responsive Admin */
@media (max-width: 768px) {
  .admin-card {
    padding: 24px 20px;
  }

  .admin-header {
    flex-direction: column;
    align-items: stretch;
  }

  .export-buttons {
    width: 100%;
    justify-content: stretch;
  }

  .btn-export {
    flex: 1;
    justify-content: center;
    min-width: 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

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

  .paypal-subscription-details {
    grid-template-columns: 1fr;
  }

  .paypal-subscription-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .admin-filters {
    flex-direction: column;
  }

  .admin-search,
  .admin-filter {
    width: 100%;
  }

  .users-table,
  .logs-table {
    font-size: 12px;
  }

  .users-table th,
  .users-table td,
  .logs-table th,
  .logs-table td {
    padding: 8px 12px;
  }
}

/* Edit User Modal Styles */
#edit-user-modal-container .modal-content select,
#edit-user-modal-container .modal-content input[type="number"],
#edit-user-modal-container .modal-content input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  background: rgba(15, 20, 40, 0.8);
  border: 1px solid rgba(255, 111, 183, 0.3);
  border-radius: 8px;
  color: #f0f2ff;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

#edit-user-modal-container .modal-content select:focus,
#edit-user-modal-container .modal-content input[type="number"]:focus,
#edit-user-modal-container .modal-content input[type="text"]:focus {
  outline: none;
  border-color: rgba(255, 111, 183, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 111, 183, 0.1);
  background: rgba(15, 20, 40, 0.95);
}

#edit-user-modal-container .modal-content select option {
  background: rgba(10, 11, 40, 0.98);
  color: #f0f2ff;
}

#edit-user-modal-container .modal-content label {
  display: block;
  margin-bottom: 6px;
  color: rgba(240, 242, 255, 0.8);
  font-size: 14px;
  font-weight: 600;
}

#edit-user-modal-container .modal-content small {
  display: block;
  margin-top: 4px;
  color: rgba(240, 242, 255, 0.5);
  font-size: 12px;
}

#edit-user-modal-container .modal-content input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #ff6fb7;
}

/* ========================================
   COOKIE BANNER
   ======================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #e0e0e0;
  padding: 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  border-top: 2px solid #4CE0B3;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  min-width: 250px;
}

.cookie-banner-text strong {
  color: #4CE0B3;
  font-size: 18px;
  display: block;
  margin-bottom: 8px;
}

.cookie-banner-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.cookie-banner-text a {
  color: #4CE0B3;
  text-decoration: underline;
}

.cookie-banner-text a:hover {
  color: #ff6fb7;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: linear-gradient(135deg, #4CE0B3 0%, #3ab896 100%);
  color: #1a1a2e;
}

.cookie-btn-accept:hover {
  background: linear-gradient(135deg, #3ab896 0%, #2a8a76 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 224, 179, 0.4);
}

.cookie-btn-reject {
  background: transparent;
  color: #e0e0e0;
  border: 2px solid #666;
}

.cookie-btn-reject:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #999;
}

.cookie-btn-settings {
  background: transparent;
  color: #4CE0B3;
  border: 2px solid #4CE0B3;
}

.cookie-btn-settings:hover {
  background: rgba(76, 224, 179, 0.1);
}

/* Modal de configuración de cookies */
.cookie-settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.cookie-settings-content {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 16px;
  padding: 30px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  border: 2px solid #4CE0B3;
}

.cookie-settings-content h2 {
  color: #4CE0B3;
  margin-top: 0;
  margin-bottom: 10px;
}

.cookie-settings-content>p {
  color: #e0e0e0;
  margin-bottom: 20px;
}

.cookie-setting-item {
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border-left: 3px solid #4CE0B3;
}

.cookie-setting-item label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  color: #e0e0e0;
}

.cookie-setting-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #4CE0B3;
  flex-shrink: 0;
}

.cookie-setting-item strong {
  color: #4CE0B3;
  display: block;
  margin-bottom: 5px;
}

.cookie-setting-item span {
  display: block;
  font-size: 13px;
  color: #b0b0b0;
  line-height: 1.4;
}

.cookie-setting-item input[type="checkbox"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-settings-actions {
  display: flex;
  gap: 10px;
  margin-top: 25px;
  justify-content: flex-end;
}

.cookie-btn-primary {
  background: linear-gradient(135deg, #4CE0B3 0%, #3ab896 100%);
  color: #1a1a2e;
}

.cookie-btn-primary:hover {
  background: linear-gradient(135deg, #3ab896 0%, #2a8a76 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 224, 179, 0.4);
}

.cookie-btn-secondary {
  background: transparent;
  color: #e0e0e0;
  border: 2px solid #666;
}

.cookie-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #999;
}

/* Responsive para cookie banner */
@media (max-width: 768px) {
  .cookie-banner {
    padding: 15px;
  }

  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-text {
    margin-bottom: 15px;
  }

  .cookie-banner-actions {
    justify-content: stretch;
  }

  .cookie-btn {
    flex: 1;
    min-width: 0;
  }

  .cookie-settings-content {
    padding: 20px;
    max-height: 95vh;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ========================================
   THEME TOGGLE SWITCH
   ======================================== */

.theme-toggle {
  position: relative;
  width: 56px;
  height: 28px;
  background: var(--bg-card);
  border: 2px solid var(--border-accent);
  border-radius: 28px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent-pink);
  outline-offset: 2px;
}

.theme-toggle::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle::after {
  content: '🌙';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  transition: opacity 0.3s ease;
  pointer-events: none;
  opacity: 1;
}

.theme-toggle--light::before {
  left: calc(100% - 22px);
  background: linear-gradient(135deg, #fff9c4 0%, #fff59d 100%);
  box-shadow: 0 2px 6px rgba(255, 193, 7, 0.4);
}

.theme-toggle--light::after {
  content: '☀️';
  opacity: 1;
}

.theme-toggle:hover {
  border-color: var(--accent-pink);
  box-shadow: var(--shadow-md);
  transform: scale(1.05);
}

.theme-toggle:active {
  transform: scale(0.95);
}

/* Contenedor del theme switcher */
.theme-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-switcher-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  user-select: none;
  transition: color 0.3s ease;
}

/* Responsive para theme toggle */
@media (max-width: 768px) {
  .theme-toggle {
    width: 50px;
    height: 26px;
  }

  .theme-toggle::before {
    width: 18px;
    height: 18px;
  }

  .theme-toggle--light::before {
    left: calc(100% - 20px);
  }

  .theme-switcher-label {
    display: none;
  }
}

/* ========================================
   END OF STYLES
   ======================================== */