/* Rakion Legacy · Marketplace retail visual, basado en los paneles V6.30–V6.43
   de LauncherWeb. Sólo afecta la pantalla de Mercado de cPanel. */
.rk-market-portal{max-width:1040px;margin:0 auto;padding:26px 0 65px;color:#e7eaf2}
.rk-market-compact-head{padding:7px 0 22px}.rk-market-compact-head h1{font-size:36px;margin:5px 0 7px;line-height:1.15;letter-spacing:-.02em}.rk-market-compact-head p{margin:0;max-width:770px;color:#afbed3;font-size:13px}
.rk-market-section{background:#161d2b;border:1px solid #343f52;border-radius:12px;padding:20px 20px 25px;box-shadow:0 12px 35px #0002}
.rk-market-section h2{font-size:20px;line-height:1.25;margin:0 0 12px;color:#f1f2f8}
.rk-market-muted{font-size:13px;color:#a6b7ce;line-height:1.65;margin:0 0 14px}
.rk-market-section .rk-market-page-status{font-size:11px;color:#c2cde0;margin:0 0 6px}
.rk-market-section .table-wrap{overflow-x:auto;width:100%}
.rk-market-section .rk-market-table{width:100%;border-collapse:collapse;font-size:12px}
.rk-market-section .rk-market-table th{text-align:left;text-transform:uppercase;letter-spacing:.04em;font-size:10px;color:#b8c9db;font-weight:800;border-bottom:1px solid #344259;padding:10px 6px}
.rk-market-section .rk-market-table td{padding:11px 5px;border-bottom:1px solid #313d50;vertical-align:middle}
.rk-market-section .rk-market-table tbody tr:last-child td{border-bottom:0}
.rk-market-section .rk-market-table th:nth-child(2),.rk-market-section .rk-market-table td:nth-child(2){width:22%}
.rk-market-section .rk-market-table th:nth-child(3),.rk-market-section .rk-market-table td:nth-child(3){width:16%;text-align:center}
.rk-market-section .rk-market-table td.rk-market-amount{color:#f3f5fa;white-space:nowrap;font-size:11px;font-weight:700;font-variant-numeric:tabular-nums}
.rk-market-section .rk-market-buy{padding:9px 13px;border:1px solid #4b566a;border-radius:8px;background:#20283a;color:#aeb9cd;font-size:12px;font-weight:700;min-height:36px;opacity:.5;cursor:not-allowed;filter:grayscale(.35)}
.rk-market-section .rk-market-table .rk-market-listing-cell{min-width:0}
.rk-market-section .rk-market-listing-trigger{width:100%;}
.rk-market-section .rk-market-listing-slot .item-icon-asset{display:block;width:95%;height:95%;object-fit:contain}
.rk-market-section .rk-market-listing-slot .slot-refine,.rk-market-section .rk-market-listing-slot .slot-grade,.rk-market-section .rk-market-listing-slot .slot-bless,.rk-market-section .rk-market-listing-slot .slot-flag{position:absolute;z-index:2;display:flex;justify-content:center;align-items:center;min-height:16px;padding:1px 3px;border-radius:2px;white-space:nowrap;font-size:10px;font-weight:900;line-height:1.1;pointer-events:none;box-shadow:0 1px 4px #000b}
.rk-market-section .rk-market-listing-slot .slot-refine{top:3px;left:3px;border:1px solid #b99a53;color:#ffe28e;background:#16120de8}
.rk-market-section .rk-market-listing-slot .slot-grade{top:3px;right:3px;border:1px solid #607dad;color:#d6e7ff;background:#182238ed}
.rk-market-section .rk-market-listing-slot .slot-grade-2{color:#85edb7;border-color:#309774}.rk-market-section .rk-market-listing-slot .slot-grade-3{color:#99d4ff;border-color:#4789c0}.rk-market-section .rk-market-listing-slot .slot-grade-4{color:#f2b4ff;border-color:#b769ce;background:#392144e8}.rk-market-section .rk-market-listing-slot .slot-grade-5{color:#ffe090;border-color:#d6aa4c;background:#483115ed}
.rk-market-section .rk-market-listing-slot .slot-bless{right:3px;bottom:3px;border:1px solid #b38cf0;color:#e6caff;background:#30214de8}
.rk-market-section .rk-market-listing-slot .slot-flag{left:3px;bottom:3px;border:1px solid #c05c9c;background:#5b254b;color:#ffe0f3}
.rk-grade-text-2{color:#4df39b}.rk-grade-text-3{color:#28a4ff}.rk-grade-text-4{color:#e467ff}.rk-grade-text-5{color:#ffc851}.rk-grade-text-1{color:#f5f7ff}
.rk-market-section .rk-market-listing-name b{font-size:13px;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.rk-market-section .rk-market-listing-name .item-subtitle{font-size:11px;color:#92abc8}
.market-error{padding:12px 14px;margin:16px 0;border:1px solid #a48248;border-radius:8px;background:#49382040;color:#ebd09d;font-size:13px}
.rk-preview-dialog-title{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #3e4b5e;padding:12px 16px;color:#f3d18f;font-size:14px}
#rk-market-preview-dialog{border:1px solid #806841;background:#101a27;color:#eaf1fa;padding:0;border-radius:9px;width:min(460px,calc(100vw - 30px));max-height:90vh;box-shadow:0 20px 70px #000b}
#rk-market-preview-dialog::backdrop{background:#020712ae}
.rk-preview-close{color:#fff;background:#23334c;border:1px solid #50627c;padding:4px 12px;border-radius:5px;cursor:pointer;font-size:20px;line-height:1.1}
.rk-preview-dialog-body{padding:17px;max-height:75vh;overflow-y:auto}
.rk-preview-head{display:flex;align-items:center;gap:13px;margin-bottom:15px}.rk-preview-head img{object-fit:contain;border:1px solid #73592e;border-radius:6px;background:#251e19}.rk-preview-head small{display:block;color:#9fb6d0;font-size:11px}.rk-preview-head h3{font-size:19px;margin:3px 0}.rk-preview-head span{font-size:11px;color:#d4c39e}
.rk-preview-group{border:1px solid #394858;background:#152130;padding:10px 12px;margin:9px 0;border-radius:6px}.rk-preview-group>strong{display:block;font-size:11px;color:#e6bc71;margin-bottom:7px}.rk-preview-stat{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:4px 0;border-bottom:1px solid #2b3a49;font-size:12px}.rk-preview-stat:last-child{border:0}.rk-preview-stat b{color:#eef5fb}.rk-preview-foot{color:#899db5;font-size:10px;margin-top:11px}
.rk-market-section .rk-empty{color:#9baac4;padding:30px 12px!important;text-align:center}
@media(max-width:800px){.rk-market-portal{padding-top:18px}.rk-market-section{padding:16px 11px}.rk-market-compact-head h1{font-size:29px}.rk-market-section .rk-market-table th:nth-child(2),.rk-market-section .rk-market-table td:nth-child(2){width:auto}.rk-market-section .rk-market-table td:nth-child(3){min-width:95px}}

/* Estilos originales LauncherWeb: market-filters-v630.css */
/* RKGOT Marketplace V6.30 — Barra de filtros independiente.
   No modifica el CSS retail, fichas, sockets ni el panel de cuenta. */
.rk-market-filters{margin:18px 0 18px;padding:17px;border:1px solid #34495b;border-radius:12px;background:linear-gradient(160deg,#172333,#111b29);box-shadow:inset 0 1px 0 rgba(248,217,156,.04)}
.rk-market-filters-top{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-bottom:15px}
.rk-market-filters-top>div{display:flex;flex-direction:column;gap:4px}
.rk-market-filters-top strong{color:#f2d18e;font-size:15px;letter-spacing:.02em}
.rk-market-filters-top>div span{font-size:12px;color:#a6bbd0}
.rk-market-filter-count{border:1px solid #415368;background:#101925;border-radius:20px;padding:6px 10px;color:#c9d7e5;font-size:11px;white-space:nowrap;font-variant-numeric:tabular-nums}
.rk-market-filter-form{display:grid;grid-template-columns:minmax(185px,1.5fr) repeat(3,minmax(128px,1fr));gap:12px 13px;align-items:end}
.rk-market-filter-form label{display:flex;flex-direction:column;gap:7px;min-width:0;color:#b9cadb;font-size:11px;font-weight:700;letter-spacing:.02em}
.rk-market-filter-form input,.rk-market-filter-form select{appearance:auto;box-sizing:border-box;display:block;width:100%;height:40px;min-width:0;border:1px solid #465a73;border-radius:7px;padding:8px 11px;background:#0e1724;color:#f2f4f8;font-size:12px;box-shadow:none}
.rk-market-filter-form input::placeholder{color:#8998ab}
.rk-market-filter-form input:focus-visible,.rk-market-filter-form select:focus-visible{outline:2px solid #d2a54d;outline-offset:1px;border-color:#d2a54d}
.rk-market-filter-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;grid-column:span 2}
.rk-market-filter-actions button{border-radius:7px;min-height:40px;padding:9px 18px;font-weight:800;white-space:nowrap}
.rk-filter-clear{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 12px;border:1px solid #465a73;border-radius:7px;color:#c2d3e5;text-decoration:none;font-size:12px;font-weight:700}
.rk-filter-clear:hover{background:#27374a;color:#fff}
.rk-filter-clear:focus-visible{outline:2px solid #d2a54d;outline-offset:2px}
@media (min-width:1150px){.rk-market-filter-form{grid-template-columns:minmax(170px,1.5fr) repeat(3,minmax(108px,1fr));}}
@media (max-width:850px){.rk-market-filter-form{grid-template-columns:repeat(2,minmax(0,1fr))}.rk-filter-search{grid-column:span 2}.rk-market-filter-actions{grid-column:span 2}}
@media (max-width:490px){.rk-market-filters{padding:12px}.rk-market-filters-top{align-items:flex-start;flex-direction:column}.rk-market-filter-form{grid-template-columns:1fr}.rk-filter-search,.rk-market-filter-actions{grid-column:span 1}.rk-market-filter-actions>*{flex:1 1 auto;text-align:center}}

/* V6.32: los filtros de moneda y ordenamiento del precio se agrupan verticalmente. */
.rk-market-filter-form .rk-filter-price-group{display:flex;flex-direction:column;gap:12px;min-width:0;align-self:stretch}
.rk-market-filter-form .rk-filter-price-group label{width:100%}

/* Estilos originales LauncherWeb: market-listings-v634.css */
/* Rakion GOT Marketplace V6.34 - slots retail grandes en publicaciones.
   Se aplica SOLO al listado general y a Mis ítems publicados.
   Reusa los indicadores del inventario, sin cambiar otros paneles ni transacciones. */
#mis-publicaciones .rk-market-listing-cell,
#rk-market-listings .rk-market-listing-cell {min-width:245px}
.rk-market-listing-cell{min-width:220px}
.rk-market-listing-cell .rk-market-listing-trigger,
.rk-market-listing-cell .rk-market-listing-static{
  display:inline-flex;align-items:center;max-width:100%;min-width:0;
  border:0;margin:0;padding:3px;border-radius:6px;
  background:transparent;box-shadow:none;color:inherit;
  text-align:left;text-decoration:none;vertical-align:middle;
  font:inherit;
}
.rk-market-listing-cell .rk-market-listing-trigger{cursor:help}
.rk-market-listing-cell .rk-market-listing-trigger:hover,
.rk-market-listing-cell .rk-market-listing-trigger:focus-visible{
  background:rgba(207,162,78,.08);outline:1px solid #c5a25a;
}
.rk-market-listing-summary{display:flex;align-items:center;gap:13px;min-width:0}
.rk-market-listing-cell .rk-market-listing-slot.box-slot{
  display:flex;position:relative;flex:0 0 80px;width:80px;height:80px;
  min-width:80px;min-height:80px;max-width:80px;max-height:80px;
  aspect-ratio:1;isolation:isolate;overflow:hidden;
  border:1px solid #86672d;border-radius:5px;
  background:radial-gradient(ellipse at 50% 40%,#343027 0%,#1d1713 75%);
  box-shadow:inset 0 0 1px 1px #524027;
  pointer-events:none;
}
.rk-market-listing-cell .rk-market-listing-slot .item-icon-asset,
.rk-market-listing-cell .rk-market-listing-slot .item-icon-placeholder{
  width:95%;height:95%;max-width:none;max-height:none;
  flex:0 0 auto;object-fit:contain;border:0;background:none;border-radius:0;
}
.rk-market-listing-cell .rk-market-listing-slot .slot-refine,
.rk-market-listing-cell .rk-market-listing-slot .slot-grade,
.rk-market-listing-cell .rk-market-listing-slot .slot-bless,
.rk-market-listing-cell .rk-market-listing-slot .slot-flag{
  font-size:10px;line-height:1.1;min-height:16px;padding:1px 3px;
}
/* V6.35: marca pequeña de gemas incrustadas, no cuenta sockets vacíos. */
.rk-market-listing-cell .rk-market-listing-slot .rk-slot-gems{
  position:absolute;z-index:3;bottom:3px;left:3px;
  display:inline-flex;align-items:center;justify-content:center;gap:1px;
  min-height:16px;padding:1px 4px;
  border:1px solid #57b6ca;border-radius:3px;
  background:rgba(10,37,55,.93);color:#a4f5ff;
  box-shadow:0 1px 5px #000b;text-shadow:0 1px 1px #000;
  font-size:10px;font-weight:900;line-height:1.1;white-space:nowrap;
  pointer-events:none;
}
/* Si el ítem tiene Post y gemas, mantener ambas marcas sin superponerlas. */
.rk-market-listing-cell .rk-market-listing-slot.has-gem-badge .slot-flag{bottom:22px}
.rk-market-listing-name{display:flex;flex-direction:column;min-width:0;gap:3px}
.rk-market-listing-name b{font-size:13px;line-height:1.25;white-space:normal;overflow-wrap:anywhere;text-decoration:underline;text-decoration-color:rgba(210,174,107,.46);text-underline-offset:3px}
.rk-market-listing-name .item-subtitle{font-size:11px;line-height:1.3;margin:0}
.rk-market-listing-metadata{margin:1px 0 0 96px;font-size:10px}
@media(max-width:720px){
  .rk-market-listing-cell{min-width:200px}
  .rk-market-listing-cell .rk-market-listing-slot.box-slot{
    flex-basis:68px;width:68px;height:68px;min-width:68px;min-height:68px;max-width:68px;max-height:68px;
  }
  .rk-market-listing-summary{gap:9px}
  .rk-market-listing-metadata{margin-left:80px}
  .rk-market-listing-cell .rk-market-listing-slot .slot-refine,
  .rk-market-listing-cell .rk-market-listing-slot .slot-grade,
  .rk-market-listing-cell .rk-market-listing-slot .slot-bless,
  .rk-market-listing-cell .rk-market-listing-slot .slot-flag{font-size:9px;min-height:14px;padding:1px 2px}
}

@media(max-width:720px){
  .rk-market-listing-cell .rk-market-listing-slot .rk-slot-gems{font-size:9px;min-height:14px;padding:1px 2px;bottom:2px;left:2px}
  .rk-market-listing-cell .rk-market-listing-slot.has-gem-badge .slot-flag{bottom:19px}
}

/* Estilos originales LauncherWeb: market-sidebar-v637.css */
/* Marketplace V6.37 — Filtros verticales a la derecha del Mercado.
   Complementa, sin sobrescribir, el CSS retail ni los filtros V6.33.
   El listado sigue usando casillas de 80px e insignias retail. */
.rk-market-section .rk-market-content{
  display:grid;
  grid-template-columns:minmax(0,1fr) 258px;
  gap:17px;
  align-items:start;
  margin-top:14px;
}
.rk-market-section .rk-market-results{min-width:0;}
.rk-market-section .rk-market-results .table-wrap{max-width:100%;overflow-x:auto;}
.rk-market-section .rk-market-results table{width:100%;}
.rk-market-section .rk-market-results th{white-space:nowrap;}
.rk-market-section .rk-market-results td{vertical-align:middle;}
.rk-market-section .rk-market-results td:last-child{white-space:normal;min-width:95px;}
.rk-market-section .rk-market-side{min-width:0;position:sticky;top:12px;}
.rk-market-section .rk-market-side .rk-market-filters{
  margin:0;
  padding:13px 12px;
  border-radius:9px;
}
.rk-market-section .rk-market-filters-top{
  flex-direction:column;
  align-items:stretch;
  gap:7px;
  margin-bottom:11px;
}
.rk-market-section .rk-market-filters-top>div{
  flex-direction:column;
  align-items:flex-start;
  gap:2px;
}
.rk-market-section .rk-market-filters-top>div span{
  display:block;
  white-space:normal;
  line-height:1.3;
}
.rk-market-section .rk-market-filter-count{align-self:flex-start;}
.rk-market-section .rk-market-filter-form{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:10px;
}
.rk-market-section .rk-market-filter-form label,
.rk-market-section .rk-market-filter-form .rk-filter-search,
.rk-market-section .rk-market-filter-form .rk-filter-refine,
.rk-market-section .rk-market-filter-form .rk-filter-socket,
.rk-market-section .rk-market-filter-form .rk-filter-grade,
.rk-market-section .rk-market-filter-form .rk-filter-bless,
.rk-market-section .rk-market-filter-form .rk-filter-currency,
.rk-market-section .rk-market-filter-form .rk-filter-sort{width:100%;min-width:0;}
.rk-market-section .rk-market-filter-form label>span{
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
}
.rk-market-section .rk-filter-field-icon{font-size:13px;font-weight:800;vertical-align:-.5px;}
.rk-market-section .rk-filter-field-socket{color:#91dffa;}
.rk-market-section .rk-filter-field-bless{color:#e4cbff;}
.rk-market-section .rk-market-filter-form .rk-filter-price-group{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding-top:10px;
  border-top:1px solid #354759;
  min-width:0;
}
.rk-market-section .rk-market-filter-actions{
  display:grid;
  grid-template-columns:1fr;
  gap:7px;
  align-items:stretch;
  width:100%;
  min-width:0;
  margin-top:2px;
}
.rk-market-section .rk-market-filter-actions button,
.rk-market-section .rk-market-filter-actions .rk-filter-clear{width:100%;height:33px;min-height:33px;font-size:11px;}
@media(max-width:900px){
  .rk-market-section .rk-market-content{grid-template-columns:minmax(0,1fr);}
  .rk-market-section .rk-market-side{order:-1;position:static;}
  .rk-market-section .rk-market-filter-form{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px 12px;
  }
  .rk-market-section .rk-market-filter-form .rk-filter-search{grid-column:1/-1;}
  .rk-market-section .rk-market-filter-form .rk-filter-price-group{
    grid-column:1/-1;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }
  .rk-market-section .rk-market-filter-actions{
    grid-column:1/-1;
    grid-template-columns:1fr 1fr;
  }
  .rk-market-section .rk-market-filters-top{flex-direction:row;align-items:center;}
}
@media(max-width:520px){
  .rk-market-section .rk-market-content{gap:12px;}
  .rk-market-section .rk-market-filter-form{grid-template-columns:1fr;}
  .rk-market-section .rk-market-filter-form .rk-filter-search,
  .rk-market-section .rk-market-filter-form .rk-filter-price-group,
  .rk-market-section .rk-market-filter-actions{grid-column:1;}
  .rk-market-section .rk-market-filter-form .rk-filter-price-group{grid-template-columns:1fr;gap:9px;}
  .rk-market-section .rk-market-filters-top{flex-direction:column;align-items:stretch;}
  .rk-market-section .rk-market-filter-actions{grid-template-columns:1fr 1fr;}
  .rk-market-section .rk-market-results .table-wrap{overflow-x:auto;}
}

/* Estilos originales LauncherWeb: market-level-v638.css */
/* Rakion GOT V6.39 — Level compacto integrado con el panel azul/dorado retail.
 * Usa las mismas clases y estructura de V6.38, sin cambiar el filtrado. */
.rk-market-section .rk-level-filter{
  width:100%;min-width:0;position:relative;color:#b9cadb;font-size:10px;
}
.rk-market-section .rk-level-trigger{
  list-style:none;cursor:pointer;user-select:none;box-sizing:border-box;
  min-height:41px;background:#0e1929;border:1px solid #3a5067;border-radius:6px;
  padding:5px 24px 5px 9px;position:relative;
  display:flex;flex-direction:column;justify-content:center;gap:2px;
}
.rk-market-section .rk-level-trigger::-webkit-details-marker{display:none}
.rk-market-section .rk-level-trigger::marker{content:""}
.rk-market-section .rk-level-trigger:hover,
.rk-market-section .rk-level-filter[open] .rk-level-trigger{border-color:#b68e48}
.rk-market-section .rk-level-trigger:focus-visible{outline:2px solid #cca55d;outline-offset:2px}
.rk-market-section .rk-level-label{color:#a9bfd4;font-size:9px;font-weight:700}
.rk-market-section .rk-level-choice{font-size:11px;color:#f5d48d;font-weight:800}
.rk-market-section .rk-level-chevron{
 position:absolute;right:9px;top:50%;transform:translateY(-50%);font-size:15px;
 color:#d4ac63;line-height:1;transition:transform .12s ease;
}
.rk-market-section .rk-level-filter[open] .rk-level-chevron{transform:translateY(-50%) rotate(180deg)}
.rk-market-section .rk-level-popover{
  position:absolute;right:0;left:auto;top:calc(100% + 5px);
  width:min(226px,100%);max-width:100%;box-sizing:border-box;
  padding:10px;border:1px solid #3a5169;border-radius:8px;
  background:#152232;color:#d9e3ef;box-shadow:0 11px 27px #000a;z-index:50;
}
.rk-market-section .rk-level-popover-header{
  display:flex;gap:6px;align-items:center;justify-content:space-between;
}
.rk-market-section .rk-level-popover-header strong{
  font-size:10px;color:#e9eef6;font-weight:800;letter-spacing:0;
}
.rk-market-section .rk-level-reset{
  background:none;border:0;color:#a9bacb;padding:2px 0;cursor:pointer;font-size:9px;white-space:nowrap;
}
.rk-market-section .rk-level-reset:hover{text-decoration:underline;color:#e8c078}
.rk-market-section .rk-level-current{
  text-align:center;font-size:14px;color:#f2d18c;font-weight:800;
  margin:8px 0 5px;min-height:17px;font-variant-numeric:tabular-nums;
}
.rk-market-section .rk-level-range-wrap{
  width:84%;max-width:166px;margin:0 auto 10px;box-sizing:border-box;
}
/* V6.39 FIX1: pista del deslizador de solo 4px. La altura del input es
   el área de interacción, no el grosor visual: evitar estilos globales. */
.rk-market-section .rk-market-filter-form input[type="range"].rk-level-range{
  display:block!important;
  box-sizing:border-box!important;
  -webkit-appearance:none!important;appearance:none!important;
  width:100%!important;
  height:16px!important;min-height:16px!important;max-height:16px!important;
  padding:0!important;margin:3px 0 5px!important;
  border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;
  cursor:pointer;vertical-align:middle;
}
.rk-market-section .rk-market-filter-form input.rk-level-range::-webkit-slider-runnable-track{
  height:4px!important;min-height:4px!important;
  border:0!important;border-radius:5px!important;
  background:linear-gradient(to right,#d2a552 var(--rk-refine-progress,0%),#35475c var(--rk-refine-progress,0%))!important;
  box-shadow:none!important;
}
.rk-market-section .rk-market-filter-form input.rk-level-range::-webkit-slider-thumb{
  -webkit-appearance:none!important;appearance:none!important;
  width:12px!important;height:12px!important;
  border-radius:50%!important;border:2px solid #ebbb5a!important;
  background:#112033!important;box-shadow:0 0 0 1px #182537!important;
  margin-top:-4px!important; /* (12px - 4px)/2: centrado exacto */
}
.rk-market-section .rk-market-filter-form input.rk-level-range::-moz-range-track{
  height:4px!important;min-height:4px!important;
  border:0!important;border-radius:5px!important;
  background:#35475c!important;
}
.rk-market-section .rk-market-filter-form input.rk-level-range::-moz-range-progress{
  height:4px!important;border-radius:5px!important;background:#d2a552!important;
}
.rk-market-section .rk-market-filter-form input.rk-level-range::-moz-range-thumb{
  width:8px!important;height:8px!important;border-radius:50%!important;
  background:#112033!important;border:2px solid #ebbb5a!important;
}
.rk-market-section input.rk-level-range:focus-visible{outline:2px solid #d2ae6a;outline-offset:6px}
.rk-market-section .rk-level-range-ends{
  display:flex;justify-content:space-between;font-size:9px;color:#a6b6cb;
  font-weight:700;font-variant-numeric:tabular-nums;
}
.rk-market-section .rk-level-shortcuts{
  display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px;
}
.rk-market-section .rk-level-quick{
  box-sizing:border-box;min-width:0;padding:5px 0;border-radius:4px;
  background:#1c2e42;border:1px solid #3c526c;color:#c5d3e3;
  font-size:9px;font-weight:750;cursor:pointer;font-variant-numeric:tabular-nums;
}
.rk-market-section .rk-level-quick:hover{border-color:#b99557;color:#f4dbab}
.rk-market-section .rk-level-quick[aria-pressed='true']{
  border-color:#d4a953;color:#ffe3ab;background:#4b3b21;
}
.rk-market-section .rk-level-actions{
  display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:6px;
  align-items:stretch;margin-top:10px;
}
.rk-market-section .rk-level-apply,
.rk-market-section .rk-level-close{
  box-sizing:border-box;display:block;width:100%;height:27px;min-height:27px;
  margin:0;padding:3px 5px;border-radius:5px;font-size:10px;
  line-height:1.1;font-weight:800;cursor:pointer;white-space:nowrap;
}
.rk-market-section .rk-level-apply{
  border:1px solid #cda451;background:#d1a64f;color:#161c25;
}
.rk-market-section .rk-level-apply:hover{background:#e4b963}
.rk-market-section .rk-level-close{
  border:1px solid #4b6076;background:#19283b;color:#c9d6e7;
}
.rk-market-section .rk-level-close:hover{border-color:#9aafc6;background:#243951}
/* El valor enviado al servidor sigue siendo refine=N exacto. */
.rk-market-section .rk-market-filter-form input.rk-level-value[type='hidden']{display:none!important}

/* Estilos originales LauncherWeb: market-socket-v640.css */
/* RKGOT Marketplace V6.40 — filtro de piedras por cada una de las seis posiciones.
   Solo presentación. Complementa los estilos V6.37/V6.39. */
.rk-market-section .rk-socket-filter{position:relative;display:flex;flex-direction:column;gap:5px;width:100%;min-width:0}
.rk-market-section .rk-socket-filter>.rk-filter-socket{width:100%;min-width:0}
.rk-market-section .rk-socket-config{position:relative;width:100%;min-width:0}
.rk-market-section .rk-socket-gear{display:flex;align-items:center;gap:7px;min-height:30px;box-sizing:border-box;list-style:none;cursor:pointer;padding:5px 8px;border:1px solid #364c66;border-radius:5px;background:#152336;color:#d6e0ed;font-size:10px;font-weight:750;user-select:none}
.rk-market-section .rk-socket-gear::-webkit-details-marker{display:none}
.rk-market-section .rk-socket-gear::marker{content:""}
.rk-market-section .rk-socket-gear:hover,.rk-market-section .rk-socket-config[open]>.rk-socket-gear{border-color:#c49a50;background:#1b2b3e}
.rk-market-section .rk-socket-gear:focus-visible{outline:2px solid #dfb661;outline-offset:2px}
.rk-market-section .rk-socket-gear-symbol{color:#e5c07a;font-size:16px;line-height:1}
.rk-market-section .rk-socket-config-count{margin-left:auto;border:1px solid #34475e;border-radius:10px;padding:2px 6px;color:#adc1d4;background:#0c1929;font-size:9px;font-weight:600;white-space:nowrap}
.rk-market-section .rk-socket-popover{position:absolute;right:0;top:calc(100% + 5px);width:min(394px,calc(100vw - 24px));max-width:none;box-sizing:border-box;z-index:80;padding:12px;border:1px solid #526582;border-radius:9px;background:#152232;color:#d9e5f3;box-shadow:0 12px 28px #000b}
.rk-market-section .rk-socket-popover-top{display:flex;align-items:center;justify-content:space-between;gap:7px}
.rk-market-section .rk-socket-popover-top strong{font-size:11px;color:#f0e1c3}
.rk-market-section .rk-socket-reset{border:0;background:transparent;color:#aabdd0;font-size:9px;padding:2px 0;cursor:pointer;line-height:1.2}
.rk-market-section .rk-socket-reset:hover{text-decoration:underline;color:#f2d08c}
.rk-market-section .rk-socket-help{font-size:10px;color:#acc0d4;line-height:1.35;margin:7px 0 10px}
.rk-market-section .rk-socket-bottom-help{font-size:9px;margin:8px 0 0}
.rk-market-section .rk-socket-positions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.rk-market-section .rk-socket-position{box-sizing:border-box;display:flex;align-items:center;gap:7px;min-width:0;padding:6px;border:1px solid #364a61;border-radius:6px;background:#101d2d}
.rk-market-section .rk-socket-position:focus-within{border-color:#bd985c}
.rk-market-section .rk-socket-choice-icon{flex:0 0 27px;display:grid;place-items:center;position:relative;width:27px;height:27px;border:1px solid #526583;background:#0b1726;color:#8ad4ef;box-shadow:inset 0 0 4px #0008}
.rk-market-section .rk-socket-choice-icon.rk-socket-shape-circle{border-radius:50%}
.rk-market-section .rk-socket-choice-icon.rk-socket-shape-square{border-radius:5px}
.rk-market-section .rk-socket-choice-icon.rk-socket-shape-hexagon{clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%);border-radius:0;background:#263c57}
.rk-market-section .rk-socket-fallback{font-weight:850;font-size:14px}
.rk-market-section img.rk-socket-picked-gem{width:23px;height:23px;position:absolute;object-fit:contain;background:transparent;border:0;image-rendering:auto}
.rk-market-section .rk-socket-position-label{display:flex!important;flex-direction:column;min-width:0;gap:3px;flex:1;margin:0!important}
.rk-market-section .rk-socket-position-label>span{display:block!important;color:#aabed3;font-size:9px;font-weight:700;white-space:nowrap!important}
.rk-market-section .rk-socket-position-label>select.rk-socket-gem-select{box-sizing:border-box!important;display:block!important;width:100%!important;height:28px!important;min-height:28px!important;margin:0!important;padding:3px 17px 3px 5px!important;background:#17273a;color:#e0e9f4;border:1px solid #4a617c;border-radius:4px;font-size:10px!important;text-overflow:ellipsis;cursor:pointer}
.rk-market-section .rk-socket-gem-select:focus-visible{outline:2px solid #d4a958;outline-offset:1px}
.rk-market-section .rk-socket-actions{display:grid;grid-template-columns:1.1fr .9fr;gap:7px;margin-top:10px}
.rk-market-section .rk-socket-actions button{box-sizing:border-box;display:block;width:100%;height:29px;min-height:29px;padding:4px 7px;border-radius:5px;font-size:10px;font-weight:800;line-height:1;cursor:pointer}
.rk-market-section .rk-socket-apply{color:#1a2230;background:#d1a64f;border:1px solid #e2bb73}
.rk-market-section .rk-socket-apply:hover{background:#e0b866}
.rk-market-section .rk-socket-close{color:#c6d7e9;background:#1b2d43;border:1px solid #4a617b}
.rk-market-section .rk-socket-close:hover{background:#253d55}
@media(max-width:420px){
 .rk-market-section .rk-socket-popover{max-width:calc(100vw - 24px);width:min(360px,calc(100vw - 24px));padding:9px}
 .rk-market-section .rk-socket-position{gap:5px;padding:5px}
 .rk-market-section .rk-socket-choice-icon{flex-basis:23px;width:23px;height:23px}
 .rk-market-section .rk-socket-gem-select{font-size:9px!important}
}
@media(max-width:900px){
 /* Cuando los filtros pasan arriba del listado, desplegar hacia la derecha
    para que el panel no quede fuera del borde izquierdo del navegador. */
 .rk-market-section .rk-socket-popover{left:0;right:auto}
}

/* V6.41: nombres de forma y explicación compacta para tres pares de huecos */
.rk-market-section .rk-socket-position-label>span{font-size:8.5px!important;letter-spacing:.01em}
.rk-market-section .rk-socket-help{line-height:1.45}

/* Estilos originales LauncherWeb: market-pagination-v643.css */
/* Rakion GOT Marketplace V6.43: navegación paginada, solo presentación. */
.rk-market-page-status {font-size:11px;color:#a8bad1;margin:0 0 8px;padding:0 4px;}
.rk-market-pagination {display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px;margin:13px 0 2px;padding:9px 0 2px;border-top:1px solid #29394c;}
.rk-market-pagination .rk-market-page {display:inline-flex;align-items:center;justify-content:center;min-width:28px;min-height:28px;padding:4px 8px;border:1px solid #354963;border-radius:5px;background:#111d2b;color:#d6e0eb;text-decoration:none;font-size:11px;font-weight:650;line-height:1.3;white-space:nowrap;}
.rk-market-pagination a.rk-market-page:hover {border-color:#d3a84a;color:#f5d18a;background:#202536;}
.rk-market-pagination .rk-market-page.is-active {border-color:#d6aa4d;background:#483719;color:#ffe19d;}
.rk-market-pagination .rk-market-page-disabled {color:#77869b;opacity:.5;cursor:default;}
.rk-market-pagination .rk-market-page-ellipsis {padding:0 3px;color:#8795a7;font-size:12px;}
@media (max-width:640px) {.rk-market-pagination {gap:4px}.rk-market-pagination .rk-market-page {font-size:10px;min-width:26px;min-height:26px;padding:3px 6px;}}

/* Rakion Legacy - detalle de item estilo GOT V6.10 (FIX2, clic para abrir).
   Replica el orden retail: cabecera, restricciones, stats, grado, sockets.
   Sin estilos ni eventos sobre operaciones de compra o sesion. */
#rk-market-preview-dialog{width:min(410px,calc(100vw - 25px));max-height:94vh;border:1px solid #ae8240;background:#11151b;border-radius:8px;color:#e8ebef;box-shadow:0 18px 70px rgba(0,0,0,.82)}
#rk-market-preview-dialog::backdrop{background:rgba(0,0,0,.73)}
#rk-market-preview-dialog .rk-preview-dialog-title{padding:9px 12px;border-bottom:1px solid #70552c;background:linear-gradient(#202225,#12171b);color:#f1c575;font-size:13px}
#rk-market-preview-dialog .rk-preview-dialog-body{padding:0 9px 10px;max-height:calc(94vh - 45px);overflow-y:auto;scrollbar-color:#697380 #12171b;scrollbar-width:thin}
#rk-market-preview-dialog .rk-preview-close{background:#161e2a;border:1px solid #746044;font-size:17px;border-radius:2px;padding:3px 8px;color:#f7e1bc}
#rk-market-preview-dialog .rk-retail-head{display:flex;align-items:center;gap:10px;padding:10px 2px 12px;margin:0;border-bottom:1px solid #564326}
#rk-market-preview-dialog .rk-retail-head img{width:52px;height:52px;flex:none;object-fit:contain;border:1px solid #6f532d;background:#211b16;border-radius:4px}
#rk-market-preview-dialog .rk-retail-head-text{min-width:0}
#rk-market-preview-dialog .rk-retail-head-text small{font-size:10px;letter-spacing:.09em;font-weight:800;color:#cca260}
#rk-market-preview-dialog .rk-retail-head-text h3{font-size:15px;margin:4px 0;overflow-wrap:anywhere}
#rk-market-preview-dialog .rk-retail-head-text>span{font-size:11px;color:#e2dfd8}
#rk-market-preview-dialog .rk-retail-tags{padding:8px 2px;display:flex;align-items:center;gap:8px;border-bottom:1px solid #564326}
#rk-market-preview-dialog .rk-retail-tag-bless,#rk-market-preview-dialog .rk-retail-mini-bless{font-size:11px;font-weight:800;background:#31253b;border:1px solid #9270a9;border-radius:2px;color:#eed1ff;padding:3px 6px}
#rk-market-preview-dialog .rk-retail-tag-post{font-size:11px;background:#412341;color:#f9cbea;border:1px solid #905a8d;padding:3px 6px}
#rk-market-preview-dialog .rk-retail-condition-info{padding:8px 1px;border-bottom:1px solid #785e33;color:#f3f4f5;font-weight:700;font-size:11px;line-height:1.43}
#rk-market-preview-dialog .rk-retail-condition-info .rk-retail-info-denied{color:#f43f43}
#rk-market-preview-dialog .rk-retail-condition-info .rk-retail-info-neutral{color:#cbd5e1}
#rk-market-preview-dialog .rk-retail-block{margin-top:8px;padding:7px 9px 8px;border:1px solid #73552d;background:#0e1a21}
#rk-market-preview-dialog .rk-retail-block-title{font-size:10px;font-weight:800;letter-spacing:.045em;color:#e5bd72;display:block;margin-bottom:5px}
#rk-market-preview-dialog .rk-retail-stat-line{display:flex;justify-content:space-between;gap:13px;align-items:baseline;border-bottom:1px solid #2e3c46;min-height:18px;padding:2px 0;color:#e9eef5;font-size:11px;line-height:1.17}
#rk-market-preview-dialog .rk-retail-stat-line:last-child{border-bottom:0}
#rk-market-preview-dialog .rk-retail-stat-line span{font-weight:700}
#rk-market-preview-dialog .rk-retail-stat-line b{font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right;font-weight:800;color:#f0f4f8}
#rk-market-preview-dialog .rk-retail-note{display:block;color:#aebdd0;font-size:10px;line-height:1.4;margin-top:7px}
#rk-market-preview-dialog .rk-retail-options{padding:7px 3px 4px;border-color:transparent;border-top-color:#80602d;background:transparent}
#rk-market-preview-dialog .rk-retail-title-row{display:flex;justify-content:space-between;align-items:center;gap:9px;padding:1px 5px 6px}
#rk-market-preview-dialog .rk-retail-title-row .rk-retail-block-title{margin:0}
#rk-market-preview-dialog .rk-retail-mini-bless{color:#ffe15d;background:#392c17;border-color:#896c38;padding:2px 5px}
#rk-market-preview-dialog .rk-retail-option-line{display:flex;justify-content:space-between;gap:10px;align-items:baseline;padding:3px 4px;font-size:11px;font-weight:700;color:#f2f2f3}
#rk-market-preview-dialog .rk-retail-option-line b{color:#fff;font-variant-numeric:tabular-nums;white-space:nowrap}
#rk-market-preview-dialog .rk-retail-option-line.is-blessed,#rk-market-preview-dialog .rk-retail-option-line.is-blessed b{color:#f5df28}
#rk-market-preview-dialog .rk-retail-hidden-ability{font-size:11px;font-weight:800;color:#269dff;padding:6px 5px;border-top:1px solid #80602d;border-bottom:1px solid #80602d}
#rk-market-preview-dialog .rk-retail-sockets{margin-top:7px;padding:7px 2px 4px;border-color:transparent;border-top-color:#80602d;background:transparent}
#rk-market-preview-dialog .rk-retail-sockets .rk-retail-block-title{margin-left:5px;margin-bottom:8px;color:#5eb7f6}
#rk-market-preview-dialog .rk-retail-socket-row{display:flex;align-items:center;gap:6px;padding:2px 5px;min-height:23px;border-bottom:1px solid #282f39;color:#d8e1eb;font-size:11px;font-weight:700}
#rk-market-preview-dialog .rk-retail-socket-row:last-child{border-bottom:0}
#rk-market-preview-dialog .rk-retail-socket-row.is-closed{color:#8c96a7}
#rk-market-preview-dialog .rk-retail-socket-row.is-empty{color:#bac8d6}
#rk-market-preview-dialog .rk-retail-socket-frame{width:22px;height:22px;flex:none;display:flex;align-items:center;justify-content:center;background:#101419;border:1px solid #3c434d}
#rk-market-preview-dialog .rk-retail-socket-frame img{display:block;width:20px;height:20px;object-fit:contain}
#rk-market-preview-dialog .rk-retail-socket-shape{width:14px;height:14px;background:radial-gradient(#17212b,#070a0e);border:1px dashed #253443}
#rk-market-preview-dialog .rk-retail-extras{border-top:1px solid #80602d;margin-top:6px;padding:7px 4px;color:#bcccd9;font-size:11px}
#rk-market-preview-dialog .rk-retail-footer{padding:8px 3px 0;color:#8d9cab;font-size:9px}


/* Rakion Legacy Etapa 10 — autenticación PHP, sin modificar la ficha técnica retail FIX2 */
.rk-market-portal .rk-market-auth{margin:0 0 14px;padding:12px 16px;background:#172231;border:1px solid #344b63;border-radius:8px;color:#e3eaf3}
.rk-market-portal .rk-market-auth-title{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.rk-market-portal .rk-market-auth-title>div{display:flex;flex-direction:column;gap:2px}
.rk-market-portal .rk-market-auth-title strong{font-size:14px;color:#e7c383}
.rk-market-portal .rk-market-auth-title span{font-size:11px;color:#a7bad0}
.rk-market-portal .rk-market-auth-title .rk-market-auth-tag{font-size:10px;color:#d4b574;border:1px solid #66502e;border-radius:20px;padding:4px 8px}
.rk-market-portal .rk-market-auth-form{display:flex;align-items:end;gap:9px;flex-wrap:wrap;margin:0}
.rk-market-portal .rk-market-auth-form label{display:flex;flex-direction:column;gap:5px;min-width:140px;flex:1;margin:0;font-weight:700;font-size:11px;color:#c2d4e6}
.rk-market-portal .rk-market-auth-form input{box-sizing:border-box;height:36px;min-height:36px;width:100%;background:#0e1827;border:1px solid #405771;border-radius:5px;padding:8px 11px;color:#f4f6fa;font-size:13px}
.rk-market-portal .rk-market-auth-form input:focus-visible{outline:2px solid #d8aa54;outline-offset:1px}
.rk-market-portal .rk-market-auth-form button,.rk-market-portal .rk-market-auth-logout{box-sizing:border-box;min-height:36px;border:1px solid #b78a42;border-radius:5px;background:#d6a54b;color:#1d2431;padding:7px 15px;font-size:12px;font-weight:800;cursor:pointer}
.rk-market-portal .rk-market-auth-form button:hover{background:#f0c773}
.rk-market-portal .rk-market-auth-logged{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.rk-market-portal .rk-market-auth-logged p{margin:0;color:#d7e8f2;font-size:12px}
.rk-market-portal .rk-market-auth-logged strong{color:#d5af67}
.rk-market-portal .rk-market-auth-ok{color:#6ed6a4;margin-left:8px;font-weight:900}
.rk-market-portal .rk-market-auth-logged form{margin:0}
.rk-market-portal .rk-market-auth-logout{background:#1b2d41;border-color:#587087;color:#e2eaf3}
.rk-market-portal .rk-market-auth-logout:hover{background:#2b4159}
.rk-market-portal .rk-market-auth-disabled,.rk-market-portal .rk-market-auth>small{margin:0;font-size:11px;color:#b3c3d6}
.rk-market-portal .rk-market-auth>small{display:block;margin-top:6px}
.rk-market-portal .rk-market-auth-error{padding:8px 10px;border:1px solid #a24e43;background:#442321;color:#ffdfdb;border-radius:4px;font-size:12px}
@media(max-width:640px){.rk-market-portal .rk-market-auth{padding:11px}.rk-market-portal .rk-market-auth-form label{flex-basis:100%}.rk-market-portal .rk-market-auth-form button{width:100%}}

/* Etapa 11: Billetera y Banco web SOLO lectura. Mantiene estilos Retail FIX2. */
.rk-market-account{margin:12px 0;padding:17px;border:1px solid #415470;border-radius:9px;background:#141e2d;color:#e6edf7}
.rk-market-account-heading{display:flex;justify-content:space-between;align-items:start;gap:12px;margin-bottom:14px}
.rk-market-account-heading h2{font-size:17px;margin:0 0 5px;color:#f0f3fb}.rk-market-account-heading p{font-size:12px;margin:0;color:#abbdd5}
.rk-account-readonly-tag{white-space:nowrap;font-size:11px;border:1px solid #73552c;border-radius:20px;color:#f3cd80;padding:5px 10px}
.rk-market-account-saldo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:12px}
.rk-market-account-balance,.rk-market-account-expand{padding:13px;border:1px solid #35465f;border-radius:8px;background:#101927}
.rk-market-account-balance h3{font-size:13px;color:#e6c27c;margin:0 0 11px}
.rk-account-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.rk-account-metrics>div{border:1px solid #30415b;background:#172438;border-radius:6px;padding:9px;min-width:0}
.rk-account-metrics small{display:block;color:#a5b8d0;font-size:10px;margin-bottom:7px}
.rk-account-metrics strong{font-size:16px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.rk-market-account-expand{margin-top:9px}.rk-market-account-expand summary{cursor:pointer;color:#f1f3f8;font-size:12px;font-weight:700}
.rk-market-account-expand summary span{float:right;color:#e0b968;font-weight:400}
.rk-market-account-bank-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
.rk-account-bank-item{display:flex;gap:9px;align-items:center;padding:8px;border:1px solid #34455b;background:#172234;border-radius:6px;min-width:0}
.rk-account-bank-item img{width:46px;height:46px;object-fit:contain;background:#241e17;border:1px solid #765c31;border-radius:4px}
.rk-account-bank-item strong{font-size:12px;display:block;overflow-wrap:anywhere}.rk-account-bank-item small{font-size:10px;color:#aabbd4}
.rk-account-empty{color:#aabbd0;font-size:12px;margin:12px 2px 0}
.rk-account-movement-scroll{overflow-x:auto;margin-top:12px}.rk-account-movements{width:100%;border-collapse:collapse;min-width:390px;font-size:11px}
.rk-account-movements th,.rk-account-movements td{text-align:left;padding:8px;border-bottom:1px solid #35445a}
.rk-account-movements th{color:#e6c27c}.rk-market-account-note{font-size:11px;color:#a7bad2;margin:12px 0 0}
@media(max-width:750px){.rk-market-account-saldo-grid,.rk-market-account-bank-grid{grid-template-columns:1fr}.rk-account-metrics strong{font-size:14px}.rk-market-account{padding:11px}}
