* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; -webkit-tap-highlight-color: transparent; outline: none; }
html, body { background-color: #000000; color: #ffffff; overflow-x: hidden; width: 100%; position: relative; margin: 0; padding: 0; }
.header-gamer { background-color: #000000; padding: 15px 20px; position: relative; border-bottom: 2px solid #0a2e04; box-shadow: 0px 4px 15px rgba(57, 255, 20, 0.4); }
.neon-line-container { position: absolute; bottom: -2px; left: 0; width: 100%; height: 2px; overflow: hidden; }
.neon-line-container::after { content: ''; position: absolute; top: 0; left: -100%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, #39ff14, #ffffff, #39ff14, transparent); box-shadow: 0 0 10px #39ff14, 0 0 20px #39ff14, 0 0 40px #39ff14; animation: shoot-ray 2.5s linear infinite; }
@keyframes shoot-ray { 0% { left: -50%; } 100% { left: 150%; } }
.header-top { display: flex; justify-content: space-between; align-items: center; position: relative; }
.left-controls { display: flex; align-items: center; gap: 15px; flex: 1; min-width: 0; }
.right-controls { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.menu-btn { font-size: 30px; color: #39ff14; cursor: pointer; display: inline-block; text-shadow: 0 0 8px rgba(57, 255, 20, 0.8); user-select: none; transition: transform 0.2s; flex-shrink: 0; }
.menu-btn:active { transform: scale(0.9); }
.dropdown-menu { position: absolute; top: 50px; left: 0; background: #050505; border: 1px solid #39ff14; box-shadow: 0 0 12px rgba(57, 255, 20, 0.5); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; z-index: 100; min-width: 200px; }
.dropdown-menu.show { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { color: #ffffff; text-decoration: none; padding: 12px 20px; font-size: 16px; border-bottom: 1px solid #1a1a1a; transition: background 0.3s, color 0.3s; }
.dropdown-menu a:hover { background: #111111; color: #39ff14; }
@keyframes animacion-colores-texto { 0% { color: #39ff14; text-shadow: 0 0 8px rgba(57, 255, 20, 0.6); } 33% { color: #00f3ff; text-shadow: 0 0 8px rgba(0, 243, 255, 0.6); } 66% { color: #a855f7; text-shadow: 0 0 8px rgba(168, 85, 247, 0.6); } 100% { color: #39ff14; text-shadow: 0 0 8px rgba(57, 255, 20, 0.6); } }
.texto-arcoiris { animation: animacion-colores-texto 3s linear infinite; font-weight: bold; }
.dropdown-menu a.texto-arcoiris:hover { background: #111111; }
.yt-btn, .donate-btn, .admin-btn { background: #050505; border: 1px solid #39ff14; color: #39ff14; width: 42px; height: 42px; min-width: 42px; min-height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; text-decoration: none; box-shadow: 0 0 8px rgba(57, 255, 20, 0.4); transition: all 0.3s ease; flex-shrink: 0; }
.admin-btn { border-color: #a855f7; color: #a855f7; box-shadow: 0 0 8px rgba(168, 85, 247, 0.4); }
.yt-btn:hover, .donate-btn:hover { background: #111111; transform: scale(1.08); box-shadow: 0 0 15px #39ff14; }
.admin-btn:hover { background: #111111; transform: scale(1.08); box-shadow: 0 0 15px #a855f7; }
.yt-btn:active, .donate-btn:active, .admin-btn:active { transform: scale(0.95); }
.search-wrapper { display: flex; align-items: center; flex: 1; min-width: 0; }
.search-box { display: flex; align-items: center; background: #000000; border: 2px solid transparent; border-radius: 30px; padding: 4px; transition: all 0.4s ease; max-width: 100%; }

/* FIX ESTRICTO: padding-right aumentado a 20px para empujar la X al centro */
.search-box.active { border-color: #39ff14; box-shadow: 0 0 12px #39ff14, inset 0 0 8px rgba(57, 255, 20, 0.3); width: 100%; max-width: 140px; padding-right: 20px; }

.search-icon { background: transparent; border: none; color: #39ff14; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; transition: transform 0.3s ease; filter: drop-shadow(0 0 5px rgba(57, 255, 20, 0.6)); flex-shrink: 0; }
.search-icon:hover { transform: scale(1.1); filter: drop-shadow(0 0 10px #39ff14); }
.search-input { width: 0; min-width: 0; border: none; background: transparent; outline: none; color: #ffffff; font-size: 14px; padding: 0; transition: width 0.4s ease, padding 0.4s ease; }
.search-box.active .search-input { width: 100%; padding: 0 8px; }

/* FIX ESTRICTO: margin-right de 5px para centrar la X en su espacio sin tocar el borde */
.clear-icon { background: transparent; border: none; color: #39ff14; font-size: 14px; cursor: pointer; display: none; align-items: center; justify-content: center; width: 0; transition: width 0.2s ease; flex-shrink: 0; margin-right: 5px; }

.clear-icon:hover { transform: scale(1.2); text-shadow: 0 0 8px #39ff14; }
.donors-ticker { width: 100%; overflow: hidden; white-space: nowrap; margin-top: 15px; padding: 4px 0; background-color: #050505; border-radius: 4px; border: 1px solid #1a1a1a; box-shadow: inset 0 0 8px rgba(57, 255, 20, 0.1); }
.ticker-content { display: inline-block; padding-left: 100%; animation: ticker-scroll 20s linear infinite; }
@keyframes ticker-scroll { 0% { transform: translate(0, 0); } 100% { transform: translate(-100%, 0); } }
.ticker-item { display: inline-block; margin-right: 40px; color: #39ff14; font-size: 13px; font-weight: bold; text-shadow: 0 0 5px rgba(57, 255, 20, 0.4); }
.content-area { padding: 30px 20px; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.app-button { display: block; width: 100%; max-width: 450px; border-radius: 20px; overflow: hidden; text-decoration: none; cursor: pointer; background-color: #111111; position: relative; transition: transform 0.3s ease; }
.app-button:hover { transform: scale(1.02); }
.app-button img { width: 100%; display: block; pointer-events: none; object-fit: cover; }
.btn-bedrock { border: 2px solid #a855f7; box-shadow: 0 0 18px rgba(168, 85, 247, 0.6), inset 0 0 12px rgba(168, 85, 247, 0.3); }
.btn-java { border: 2px solid #ef4444; box-shadow: 0 0 18px rgba(239, 68, 68, 0.6), inset 0 0 12px rgba(239, 68, 68, 0.3); }
#bedrockPage, #donorsPage { min-height: 100vh; background-color: #000000; position: relative; }
.btn-volver-bedrock { position: absolute; top: 15px; right: 20px; background: #0a0a0a; border: 2px solid #a855f7; color: #a855f7; padding: 8px 15px; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: bold; text-transform: uppercase; z-index: 10; }
.btn-volver-donors { border-color: #39ff14; color: #39ff14; }
.bedrock-body-content { padding: 60px 20px 40px 20px; text-align: center; max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 25px; }
.video-bedrock-header { width: 100%; border-radius: 15px; box-shadow: 0 0 20px rgba(168, 85, 247, 0.3); }
.info-box { background: linear-gradient(90deg, rgba(16, 5, 26, 0.9) 0%, rgba(0, 0, 0, 0) 100%); border-left: 5px solid #a855f7; padding: 20px; border-radius: 0 12px 12px 0; text-align: left; }
.info-box h3 { color: #a855f7; margin-bottom: 12px; font-size: 19px; display: flex; align-items: center; gap: 8px; }
.info-box ul { list-style-type: none; padding-left: 0; color: #dddddd; font-size: 15px; line-height: 1.6; }
.info-box li { margin-bottom: 10px; position: relative; padding-left: 15px; }
.info-box li::before { content: "•"; color: #a855f7; font-size: 20px; position: absolute; left: 0; top: -2px; }
.link-azul { color: #00f3ff; text-decoration: none; border-bottom: 1px solid #00f3ff; font-weight: bold; }
.download-section { display: flex; justify-content: center; width: 100%; }
.download-container { display: flex; flex-direction: column; width: 100%; max-width: 320px; gap: 10px; }
.selected-version-display { width: 100%; background: #0d0d0d; border: 2px solid #a855f7; border-radius: 10px; color: #a855f7; font-size: 14px; font-weight: bold; text-align: center; padding: 10px; }
.selected-version-display.error { color: #ef4444; border-color: #ef4444; }
.selected-version-display.success { color: #39ff14; border-color: #39ff14; }
.download-row { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 10px; }
.download-btn-img { flex: 1; min-width: 0; height: auto; border-radius: 10px; cursor: pointer; }
.version-btn { width: 50px; height: 50px; flex-shrink: 0; background: #0a0a0a; border: 2px solid #a855f7; color: #a855f7; border-radius: 10px; display: flex; justify-content: center; align-items: center; cursor: pointer; font-size: 20px; }
.preview-section { width: 100%; display: flex; flex-direction: column; align-items: center; }
.preview-title { color: #a855f7; font-size: 20px; font-weight: bold; text-transform: uppercase; margin-bottom: 15px; border-bottom: 2px solid #a855f7; padding-bottom: 5px; display: inline-block; }
.preview-img { width: 100%; max-width: 550px; height: auto; border-radius: 12px; border: 2px solid #a855f7; cursor: zoom-in; }

@media (min-width: 768px) {
  .content-area { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 60px; padding-top: 60px; }
  .app-button { max-width: 520px; }
  .search-wrapper { flex: 0 1 500px; margin-left: 20px; }
  .search-box.active { max-width: 100%; }
  #bedrockPage .bedrock-body-content { max-width: 1600px; width: 95%; padding-top: 60px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "video download" "info preview"; gap: 50px 80px; align-items: center; }
  #bedrockPage .video-bedrock-header { grid-area: video; width: 100%; max-width: 100%; margin: 0; border-radius: 15px; border: 2px solid #a855f7; box-shadow: 0 0 35px rgba(168, 85, 247, 0.3); }
  #bedrockPage .info-box { grid-area: info; margin: 0; max-width: 100%; border-radius: 12px; background: rgba(16, 5, 26, 0.8); border: 1px solid #a855f7; box-shadow: 0 0 20px rgba(168, 85, 247, 0.2); padding: 35px; }
  #bedrockPage .info-box h3 { font-size: 26px; }
  #bedrockPage .info-box ul { font-size: 18px; line-height: 1.8; }
  #bedrockPage .download-section { grid-area: download; margin: 0; display: flex; justify-content: center; align-items: center; width: 100%; background: rgba(10, 10, 10, 0.7); border: 1px solid #a855f7; border-radius: 15px; padding: 40px 30px; box-shadow: inset 0 0 20px rgba(168, 85, 247, 0.1), 0 0 30px rgba(168, 85, 247, 0.2); }
  #bedrockPage .download-container { max-width: 480px; width: 100%; display: flex; flex-direction: column; gap: 20px; }
  #bedrockPage .selected-version-display { font-size: 16px; padding: 12px; }
  #bedrockPage .download-row { align-items: stretch; }
  #bedrockPage .download-btn-img { border-radius: 8px; border: 2px solid transparent; transition: all 0.3s ease; object-fit: cover; }
  #bedrockPage .download-btn-img:hover { transform: scale(1.02); border-color: #a855f7; box-shadow: 0 0 15px rgba(168, 85, 247, 0.5); }
  #bedrockPage .version-btn { height: auto; width: 60px; font-size: 24px; border-radius: 8px; box-shadow: 0 0 10px rgba(168, 85, 247, 0.3); }
  #bedrockPage .preview-section { grid-area: preview; margin: 0; display: flex; justify-content: center; align-items: center; width: 100%; }
  #bedrockPage .preview-title { display: none; }
  #bedrockPage .preview-img { max-width: 85%; width: 100%; margin: 0; border-radius: 12px; border: 2px solid #a855f7; box-shadow: 0 0 30px rgba(168, 85, 247, 0.3); transition: transform 0.3s; }
  #bedrockPage .preview-img:hover { transform: scale(1.03); }
  .donors-body-content { display: block; max-width: 1100px !important; text-align: left; margin: 0 auto; padding-top: 60px; }
  .donors-body-content h2, .donors-body-content p { text-align: center; }
  #donorsListContainer { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-top: 30px; }
}

.modal-overlay, .image-modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100vw; height: 100vh; max-width: 100%; background: rgba(0, 0, 0, 0.95); justify-content: center; align-items: center; z-index: 2000; }
.modal-overlay.show, .image-modal-overlay.show { display: flex; }
.modal-content { background: #0a0a0a; padding: 30px 20px; border-radius: 15px; border: 2px solid #ef4444; box-shadow: 0 0 25px rgba(239, 68, 68, 0.6); text-align: center; max-width: 350px; width: 90%; transform: scale(0.8); transition: transform 0.3s ease; box-sizing: border-box; overflow: hidden; }
.modal-overlay.show .modal-content { transform: scale(1); }
.modal-icon { font-size: 40px; margin-bottom: 15px; }
.modal-title { color: #ef4444; margin-bottom: 15px; font-size: 22px; text-shadow: 0 0 10px #ef4444; text-transform: uppercase; }
.modal-text { color: #cccccc; font-size: 15px; line-height: 1.5; margin-bottom: 25px; }
.modal-close-btn { background: transparent; border: 2px solid #ef4444; color: #ef4444; padding: 10px 25px; border-radius: 8px; cursor: pointer; font-size: 16px; font-weight: bold; text-transform: uppercase; transition: all 0.3s ease; width: 100%; }
.modal-close-btn:hover { background: #ef4444; color: #ffffff; box-shadow: 0 0 20px #ef4444; }
.image-modal-content { max-width: 95%; max-height: 90vh; border-radius: 10px; border: 2px solid #a855f7; object-fit: contain; }
.image-modal-close { position: absolute; top: 20px; right: 20px; background: rgba(10, 10, 10, 0.8); border: 2px solid #a855f7; color: #a855f7; width: 40px; height: 40px; border-radius: 50%; font-size: 20px; font-weight: bold; cursor: pointer; display: flex; justify-content: center; align-items: center; z-index: 2001; }
.payment-options { display: flex; flex-direction: column; gap: 15px; margin-top: 15px; }
.payment-item { background: #0d0d0d; border: 1px solid #39ff14; border-radius: 10px; padding: 15px; box-shadow: 0 0 15px rgba(57, 255, 20, 0.1); overflow: hidden; }
.payment-header { display: flex; align-items: center; gap: 10px; color: #39ff14; font-size: 18px; font-weight: bold; text-transform: uppercase; cursor: pointer; }
.payment-body { display: none; justify-content: space-between; align-items: center; background: #000000; padding: 10px 15px; border-radius: 8px; border: 1px solid #1a1a1a; margin-top: 15px; }
.payment-item.active .payment-body { display: flex; }
.payment-id { color: #ffffff; font-size: 15px; font-family: monospace; letter-spacing: 1px; }
.copy-btn { background: #0a0a0a; border: 1px solid #39ff14; color: #39ff14; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-weight: bold; font-size: 14px; text-transform: uppercase; }
.ads-action-box { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 5px; }
.ads-trigger-link { color: #00f3ff; font-size: 14px; font-weight: bold; text-decoration: underline; cursor: pointer; display: none; }
.payment-item.active .ads-trigger-link { display: inline-block; }
.admin-input { width: 100%; padding: 12px; margin: 10px 0; background: #111; border: 1px solid #a855f7; color: #fff; border-radius: 8px; box-sizing: border-box; outline: none; }
.admin-submit-btn { background: #0a0a0a; border: 2px solid #a855f7; color: #a855f7; padding: 12px; font-weight: bold; font-size: 16px; border-radius: 8px; cursor: pointer; width: 100%; margin-top: 10px; text-transform: uppercase; }
.admin-action-btn { background: #111; border: 1px solid; padding: 5px 10px; border-radius: 4px; cursor: pointer; font-size: 13px; font-weight: bold; }
.btn-edit { border-color: #00f3ff; color: #00f3ff; }
.btn-del { border-color: #ef4444; color: #ef4444; }
.donor-card { background: #0d0d0d; border: 1px solid #39ff14; border-radius: 8px; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.donor-name { font-weight: bold; font-size: 16px; color: #ffffff; display: flex; align-items: center; gap: 8px; }
.donor-amount { color: #39ff14; font-weight: bold; font-size: 16px; }
.versions-box { display: flex; flex-direction: column; background: #0d0d0d; border: 1px solid #a855f7; border-radius: 8px; overflow: hidden; margin-top: 15px; }
.version-item { color: #ffffff; text-decoration: none; padding: 12px 15px; font-size: 15px; border-bottom: 1px solid #1a1a1a; text-align: center; font-weight: bold; }
.version-item:last-child { border-bottom: none; }
