/* HPH Grageas - Estilos para el sistema de Grageas Bertie Bott */

.hph-grageas-filter-form {
  margin-bottom: 25px;
}

.hph-grageas-filter-container {
  position: relative;
  display: inline-block;
}

.hph-grageas-filter-label {
  font-weight: bold;
}

.hph-grageas-filter-input {
  padding: 5px 10px;
  border: 1px solid var(--bordeclaro);
  border-radius: 3px;
  min-width: 200px;
}

.hph-grageas-filter-button {
  padding: 5px 15px;
}

/* Tabla de consolidado */
.hph-housepoints-history-table table {
  width: 100%;
  table-layout: fixed !important;
}

.hph-housepoints-history-table th,
.hph-housepoints-history-table td {
  padding: 12px 15px;
  white-space: normal !important;
  width: auto !important;
}

/* Encabezados ordenables */
.hph-housepoints-history-table th a {
  cursor: pointer;
  user-select: none;
}

.hph-housepoints-history-table th a:hover {
  opacity: 0.8;
}

.hph-grageas-username {
  font-weight: bold;
}

.hph-grageas-total {
  font-size: 1.2em;
}

.hph-grageas-date {
  font-size: 0.9em;
  color: #666;
}

.hph-grageas-user-container {
  position: relative;
  width: 100%;
  max-width: 300px;
}

.hph-grageas-user-search {
  width: 100%;
}

.hph-grageas-pagination {
  margin-top: 20px;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--fondoclaro);
  border-radius: 3px;
}

.hph-grageas-pagination .pagelinks {
  display: flex;
  gap: 5px;
  align-items: center;
}

.hph-grageas-pagination .navPages {
  padding: 5px 10px;
  border: 1px solid var(--bordeclaro);
  border-radius: 3px;
  text-decoration: none;
  color: var(--colorb);
  transition: all 0.3s ease;
}

.hph-grageas-pagination .navPages:hover {
  background: var(--colorf);
  color: var(--negro1);
}

.hph-grageas-pagination .current_page {
  padding: 5px 10px;
  background: var(--colorf);
  color: var(--negro1);
  border-radius: 3px;
}

.hph-grageas-pagination .floatright {
  font-size: 0.9em;
  color: #888;
}

/* Resumen de usuario en historial */
.hph-grageas-user-summary {
  background: var(--fondoclaro);
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 3px;
  border-left: 3px solid var(--colorf);
}

.hph-grageas-user-summary p {
  margin: 5px 0;
}

/* --- ESTILOS PREMIUM CROMOS (COLECCIÓN GOOM) --- */
@font-face {
  font-family: "Tall Film";
  src: url("https://cdn.rawgit.com/EmmesCodes/mmhost/37af9ec7/Tall%20Film.ttf");
}

.hph-cromo-container {
  max-width: 800px;
  margin: 20px auto;
}

.GOOM {
  background: #222;
  height: 700px;
  overflow: auto;
  border: 2px solid transparent;
  margin: auto;
  width: 527px;
  text-align: center;
  position: relative;
  color: #749be6;
  padding: 316px 0 0 0;
}

.GOOM div {
  background: #111;
  width: 150px;
  height: 160px;
  display: inline-block;
  margin: -15px 5px;
  position: relative;
}
.GOOM div:before, .GOOM div:after, .GOOM div txt, .GOOM titu, .GOOM titu es, em.advertencia {
  content: "";
  display: block;
  position: absolute;
}
.GOOM titu em {
  display: block;
  margin: 30px 20px;
  font: 12px / 16px Futura Bk BT;
  border: 1px solid #749be6;
  padding: 0px;
}

.GOOM div:hover img {
  transform: translateX(-50%) translateY(-50%) rotateY(180deg);
}

.GOOM div,
.GOOM div:before,
.GOOM div:after {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.GOOM div:before {
  content: "";
  display: block;
  position: absolute;
  background: #749be6;
  width: 140px;
  height: 150px;
  top: 5px;
  left: 5px;
}

.GOOM div:after {
  content: "";
  display: block;
  position: absolute;
  background: #111;
  width: 136px;
  height: 146px;
  top: 7px;
  left: 7px;
}

.GOOM div img {
  width: 120px;
  position: absolute;
  z-index: 100;
  transform: translateX(-50%) translateY(-50%);
  top: 46%;
  left: 50%;
  transition: 1s;
  backface-visibility: hidden;
  padding: 3px;
}

.GOOM div txt {
  z-index: 200;
  width: 125px;
  max-height: 50px;
  overflow: auto;
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%) rotateY(180deg);
  opacity: 0;
  font: 10px/12px arial;
  transition: 1s;
  backface-visibility: hidden;
}

.GOOM div:hover txt {
  transform: translateX(-50%) translateY(-50%) rotateY(0deg);
  opacity: 1;
}

.GOOM titu {
  width: 517px;
  background: #222;
  transform: translateX(-50%);
  left: 50%;
  top: 5px;
  height: 100%;
  padding-top: 50px;
}

.GOOM titu i {
  display: block;
  font: 50px / 15px Tall Film;
  height: 2px;
  text-transform: uppercase;
}

.GOOM titu b {
  background: #222;
  font: 9px / 9px Futura Bk BT;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.GOOM titu em img {
  max-width: 150px;
  margin-top: 20px;
  border: 1px solid #749be6;
  padding: 5px;
}

.GOOM .row {
  margin: 25px 0;
  display: grid;
  grid: auto / repeat(6, 1fr);
}

.row div {
  grid-column: span 2;
}

.row div:nth-child(5n-1) {
  grid-column: 2 / 4;
}
/* Win Alert */
.hph-cromo-win-alert {
  background: rgba(20, 20, 20, 0.95);
  border: 2px solid #749be6;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  margin-bottom: 20px;
  color: #fff;
  box-shadow: 0 0 20px #749be6;
}

.hph-cromo-win-display img {
  width: 100px;
  display: block;
  margin: 10px auto;
}

.cromo-canje-btn {
  background: linear-gradient(45deg, #749be6, #111);
  color: white !important;
  font-weight: bold;
  padding: 15px 30px;
  border-radius: 50px;
  text-transform: uppercase;
  border: 2px solid #749be6 !important;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  margin-top: 20px;
}

.cromo-canje-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #749be6;
}

/* --- REESTRUCTURACIÓN DASHBOARD HPH-315 (COMPACTO & ALINEADO) --- */

.hph-grageas-dashboard-wrapper {
  padding: 20px;
  border: 1px solid .5px var(--bordeclaro);
  margin-bottom: 30px;
}

.hph-dashboard-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 15px;
  flex-wrap: wrap;
}

/* Lado Izquierdo: Saldo */
.hph-top-info {
  display: flex;
  flex-direction: column;
}

.hph-balance-label {
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--colorf);
  font-weight: bold;
}

.hph-balance-value {
  font-family: "Tall Film", sans-serif;
  font-size: 3rem;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 15px rgba(116, 155, 230, 0.6);
}

.hph-balance-value small {
  font-size: 1.8rem;
  letter-spacing: 0;
}

/* Lado Derecho: Botones Navegación */
.hph-top-actions {
  display: flex;
  gap: 10px;
}

.hph-btn-action {
  border: .05px solid var(--bordeclaro);
  padding: 10px 14px!important;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.6rem;
  font-family: var(--sub);
  font-weight: 400;
  line-height: normal;
  transition: 0.7s ease;
  text-decoration: none;
  display: inline-block;
}

.hph-btn-action:hover {
  background: var(--colorf);
  transition: .7s;
  color: var(--negro1) !important;
}

/* Sección de Canje Compacta */
.hph-exchange-section-compact {
  background: linear-gradient(
    90deg,
    rgba(116, 155, 230, 0.08) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  border-left: 4px solid var(--colorf);
  padding: 15px 25px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 10px;
}

.hph-mini-exchange-form {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}

.hph-stepper-box {
  display: flex;
  align-items: center;
  gap: 15px;
}

.hph-stepper-box label {
  font-weight: bold;
  color: var(--colorf);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.hph-stepper-controls {
  display: flex;
  align-items: center;
  background: #000;
  padding: 5px;
  border-radius: 30px;
  border: 1px solid #444;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
}

.hph-step-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--colorf), var(--ravenclaw));
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hph-step-btn:hover {
  background: #fff;
  color: #749be6;
  transform: scale(1.15);
  box-shadow: 0 0 10px #749be6;
}

.hph-step-btn:active {
  transform: scale(0.9);
}

.hph-display-num {
  background: transparent !important;
  border: none !important;
  color: #fff !important;
  font-family: "Tall Film", sans-serif;
  font-size: 1.8rem !important;
  width: 50px !important;
  text-align: center !important;
  padding: 0 !important;
  margin: 0 8px !important;
  user-select: none;
}

.hph-info-hint {
  cursor: help;
  color: #749be6;
  font-size: 1.1rem;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.hph-info-hint:hover {
  opacity: 1;
}

.hph-btn-magic {
  background: var(--colorf);
  color: var(--negro1);
  font-size:.75rem;
}

.hph-btn-magic:hover {
  background:transparent;
  color:var(--colorb)!important;
}


.hph-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 30px 0 20px 0;
}

/* Reducción de tamaños generales para que no se vea "gigante" */
.hph-housepoints-title {
  font-size: 1.6rem !important;
  margin-bottom: 20px !important;
}

.hph-grageas-filter-input {
  padding: 8px 12px !important;
}

/* HPH Grageas - Estilos para el sistema de Grageas Bertie Bott */


.hph-grageas-filter-form {
    margin-bottom: 25px;
}

.hph-grageas-filter-container {
    position: relative;
    display: inline-block;
}

.hph-grageas-filter-label {
    font-weight: bold;
}

.hph-grageas-filter-input {
    padding: 5px 10px;
    border: 1px solid var(--bordeclaro);
    border-radius: 3px;
    min-width: 200px;
}

.hph-grageas-filter-button {
    padding: 5px 15px;
}

/* Tabla de consolidado */
.hph-housepoints-history-table table {
    width: 100%;
    table-layout: fixed !important;
}

.hph-housepoints-history-table th,
.hph-housepoints-history-table td {
    padding: 12px 15px;
    white-space: normal !important;
    width: auto !important;
}

/* Encabezados ordenables */
.hph-housepoints-history-table th a {
    cursor: pointer;
    user-select: none;
}

.hph-housepoints-history-table th a:hover {
    opacity: 0.8;
}

.hph-grageas-username {
    font-weight: bold;
}

.hph-grageas-total {
    font-size: 1.2em;
}

.hph-grageas-date {
    font-size: 0.9em;
    color: #666;
}


.hph-grageas-user-container {
    position: relative;
    width: 100%;
    max-width: 300px;
}

.hph-grageas-user-search {
    width: 100%;
}


.hph-grageas-pagination {
    margin-top: 20px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--fondoclaro);
    border-radius: 3px;
}

.hph-grageas-pagination .pagelinks {
    display: flex;
    gap: 5px;
    align-items: center;
}

.hph-grageas-pagination .navPages {
    padding: 5px 10px;
    border: 1px solid var(--bordeclaro);
    border-radius: 3px;
    text-decoration: none;
    color: var(--colorb);
    transition: all 0.3s ease;
}

.hph-grageas-pagination .navPages:hover {
    background: var(--colorf);
    color: var(--negro1);
}

.hph-grageas-pagination .current_page {
    padding: 5px 10px;
    background: var(--colorf);
    color: var(--negro1);
    border-radius: 3px;
}

.hph-grageas-pagination .floatright {
    font-size: 0.9em;
    color: #888;
}

/* Resumen de usuario en historial */
.hph-grageas-user-summary {
    background: var(--fondoclaro);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 3px;
    border-left: 3px solid var(--colorf);
}

.hph-grageas-user-summary p {
    margin: 5px 0;
}

/* Balance de grageas para transferencia */
.hph-grageas-balance {
    background: transparent;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    color: white;
    text-align: center;
}

.hph-grageas-balance-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.hph-grageas-balance-amount {
    font-size: 36px;
    font-weight: bold;
}

.hph-grageas-balance-subtitle {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 5px;
}
