/**
 * Hydra Payment Methods - 10 Styles
 * All show: logo, name, limit, time
 * Prefix: hpm
 */

/* ============================================
   BASE
   ============================================ */
.hpm {
  --hpm-accent: #3b5bdb !important;
  --hpm-accent2: #ff3c5f !important;
  --hpm-text: #1a1a1a !important;
  --hpm-muted: #6b7280 !important;
  --hpm-border: #e5e7eb !important;
  --hpm-bg: #f8fafc !important;
  --hpm-panel: #ffffff !important;
  font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Inter, Roboto, Arial, sans-serif !important;
  color: var(--hpm-text) !important;
  box-sizing: border-box !important;
}
.hpm *, .hpm *::before, .hpm *::after { box-sizing: border-box !important; }
.hpm img { max-width: 100% !important; height: auto !important; display: block !important; }


/* ============================================
   STYLE 1: Cards Grid (як на скріншоті) ✓
   ============================================ */
.hpm--1 .hpm__grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
}
@media (max-width: 900px) { .hpm--1 .hpm__grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 600px) { .hpm--1 .hpm__grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 400px) { .hpm--1 .hpm__grid { grid-template-columns: 1fr !important; } }

.hpm--1 .hpm__card {
  background: var(--hpm-panel) !important;
  border: 1px solid var(--hpm-border) !important;
  border-radius: 12px !important;
  padding: 0 !important;
  overflow: hidden !important;
}
.hpm--1 .hpm__logo-wrap {
  background: var(--hpm-bg) !important;
  border: 1px solid var(--hpm-border) !important;
  border-radius: 8px !important;
  margin: 12px !important;
  padding: 24px 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 100px !important;
}
.hpm--1 .hpm__logo {
  max-width: 120px !important;
  max-height: 60px !important;
  object-fit: contain !important;
}
.hpm--1 .hpm__name {
  display: block !important;
  background: var(--hpm-bg) !important;
  margin: 0 12px !important;
  padding: 10px 14px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  text-align: center !important;
}
.hpm--1 .hpm__details {
  padding: 8px 12px 12px !important;
}
.hpm--1 .hpm__detail {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 8px 12px !important;
  background: var(--hpm-bg) !important;
  border-radius: 8px !important;
  margin-bottom: 6px !important;
}
.hpm--1 .hpm__detail:last-child { margin-bottom: 0 !important; }
.hpm--1 .hpm__label {
  color: var(--hpm-muted) !important;
  font-size: 13px !important;
}
.hpm--1 .hpm__value {
  font-weight: 600 !important;
  font-size: 13px !important;
  color: var(--hpm-text) !important;
}


/* ============================================
   STYLE 2: Simple Table ✓
   ============================================ */
.hpm--2 .hpm__table {
  width: 100% !important;
  border-collapse: collapse !important;
  background: var(--hpm-panel) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  border: 1px solid var(--hpm-border) !important;
}
.hpm--2 .hpm__table th,
.hpm--2 .hpm__table td {
  padding: 12px 16px !important;
  text-align: left !important;
  border-bottom: 1px solid var(--hpm-border) !important;
}
.hpm--2 .hpm__table thead th {
  background: var(--hpm-bg) !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: var(--hpm-muted) !important;
}
.hpm--2 .hpm__table tbody tr:last-child td { border-bottom: none !important; }
.hpm--2 .hpm__table tbody tr:hover { background: var(--hpm-bg) !important; }
.hpm--2 .hpm__method-cell {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}
.hpm--2 .hpm__icon {
  width: 40px !important;
  height: 28px !important;
  object-fit: contain !important;
}


/* ============================================
   STYLE 3: Horizontal Rows (NEW)
   ============================================ */
.hpm--3 .hpm__rows {
  background: var(--hpm-panel) !important;
  border: 1px solid var(--hpm-border) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}
.hpm--3 .hpm__row {
  display: grid !important;
  grid-template-columns: 70px 1fr 120px 120px !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 14px 16px !important;
  border-bottom: 1px solid var(--hpm-border) !important;
}
.hpm--3 .hpm__row:last-child { border-bottom: none !important; }
.hpm--3 .hpm__row:hover { background: var(--hpm-bg) !important; }
@media (max-width: 700px) {
  .hpm--3 .hpm__row { grid-template-columns: 60px 1fr 100px 100px !important; gap: 10px !important; }
}
@media (max-width: 550px) {
  .hpm--3 .hpm__row { grid-template-columns: 50px 1fr !important; }
  .hpm--3 .hpm__row-limit, .hpm--3 .hpm__row-time { display: none !important; }
}
.hpm--3 .hpm__row-logo {
  width: 60px !important;
  height: 40px !important;
  background: var(--hpm-bg) !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px !important;
}
.hpm--3 .hpm__row-logo img {
  max-width: 48px !important;
  max-height: 28px !important;
  object-fit: contain !important;
}
.hpm--3 .hpm__row-name {
  font-weight: 600 !important;
  font-size: 14px !important;
}
.hpm--3 .hpm__row-limit,
.hpm--3 .hpm__row-time {
  text-align: center !important;
  background: var(--hpm-bg) !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
}
.hpm--3 .hpm__row-label {
  display: block !important;
  font-size: 10px !important;
  text-transform: uppercase !important;
  color: var(--hpm-muted) !important;
  margin-bottom: 2px !important;
}
.hpm--3 .hpm__row-value {
  font-weight: 600 !important;
  font-size: 13px !important;
}


/* ============================================
   STYLE 4: Dark Cards ✓
   ============================================ */
.hpm--4 {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
  border-radius: 16px !important;
  padding: 20px !important;
}
.hpm--4 .hpm__grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 12px !important;
}
@media (max-width: 900px) { .hpm--4 .hpm__grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 600px) { .hpm--4 .hpm__grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 400px) { .hpm--4 .hpm__grid { grid-template-columns: 1fr !important; } }
.hpm--4 .hpm__card {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 12px !important;
  padding: 14px !important;
}
.hpm--4 .hpm__card-top {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}
.hpm--4 .hpm__logo {
  width: 44px !important;
  height: 30px !important;
  object-fit: contain !important;
  background: #fff !important;
  border-radius: 6px !important;
  padding: 4px !important;
}
.hpm--4 .hpm__name { color: #fff !important; font-weight: 600 !important; font-size: 14px !important; }
.hpm--4 .hpm__card-bottom { display: flex !important; flex-direction: column !important; gap: 8px !important; }
.hpm--4 .hpm__card-meta {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}
.hpm--4 .hpm__card-label { font-size: 11px !important; color: rgba(255,255,255,0.5) !important; text-transform: uppercase !important; }
.hpm--4 .hpm__card-value { font-size: 13px !important; font-weight: 600 !important; color: #fff !important; }


/* ============================================
   STYLE 5: Compact Cards (NEW)
   ============================================ */
.hpm--5 .hpm__grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 12px !important;
}
@media (max-width: 900px) { .hpm--5 .hpm__grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 600px) { .hpm--5 .hpm__grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 400px) { .hpm--5 .hpm__grid { grid-template-columns: 1fr !important; } }
.hpm--5 .hpm__card {
  background: var(--hpm-panel) !important;
  border: 1px solid var(--hpm-border) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}
.hpm--5 .hpm__card-header {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 14px !important;
  border-bottom: 1px solid var(--hpm-border) !important;
}
.hpm--5 .hpm__logo {
  width: 44px !important;
  height: 30px !important;
  object-fit: contain !important;
  background: var(--hpm-bg) !important;
  border-radius: 6px !important;
  padding: 4px !important;
}
.hpm--5 .hpm__name { font-weight: 600 !important; font-size: 14px !important; }
.hpm--5 .hpm__card-footer {
  display: flex !important;
  gap: 8px !important;
  padding: 10px 14px !important;
  background: var(--hpm-bg) !important;
}
.hpm--5 .hpm__tag {
  flex: 1 !important;
  text-align: center !important;
  padding: 6px 10px !important;
  background: var(--hpm-panel) !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}
.hpm--5 .hpm__tag--time {
  background: var(--hpm-accent) !important;
  color: #fff !important;
}


/* ============================================
   STYLE 6: Bordered List (NEW)
   ============================================ */
.hpm--6 .hpm__list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}
.hpm--6 .hpm__item {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  background: var(--hpm-panel) !important;
  border: 1px solid var(--hpm-border) !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  transition: box-shadow 0.2s !important;
}
.hpm--6 .hpm__item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important; }
.hpm--6 .hpm__item-left {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}
.hpm--6 .hpm__item-logo {
  width: 56px !important;
  height: 40px !important;
  background: var(--hpm-bg) !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px !important;
}
.hpm--6 .hpm__item-logo img {
  max-width: 44px !important;
  max-height: 28px !important;
  object-fit: contain !important;
}
.hpm--6 .hpm__item-info { display: flex !important; flex-direction: column !important; gap: 2px !important; }
.hpm--6 .hpm__item-name { font-weight: 600 !important; font-size: 14px !important; }
.hpm--6 .hpm__item-time { font-size: 12px !important; color: var(--hpm-muted) !important; }
.hpm--6 .hpm__item-limit {
  background: linear-gradient(135deg, var(--hpm-accent), var(--hpm-accent2)) !important;
  color: #fff !important;
  padding: 8px 16px !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
}


/* ============================================
   STYLE 7: Gradient Header Cards (NEW)
   ============================================ */
.hpm--7 .hpm__grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 14px !important;
}
@media (max-width: 900px) { .hpm--7 .hpm__grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 600px) { .hpm--7 .hpm__grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 400px) { .hpm--7 .hpm__grid { grid-template-columns: 1fr !important; } }
.hpm--7 .hpm__card {
  background: var(--hpm-panel) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}
.hpm--7 .hpm__card-head {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  padding: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.hpm--7 .hpm__logo {
  max-width: 80px !important;
  max-height: 50px !important;
  object-fit: contain !important;
  background: #fff !important;
  border-radius: 8px !important;
  padding: 10px 16px !important;
}
.hpm--7 .hpm__card-body { padding: 14px !important; }
.hpm--7 .hpm__name {
  font-weight: 700 !important;
  font-size: 15px !important;
  text-align: center !important;
  margin-bottom: 12px !important;
  display: block !important;
}
.hpm--7 .hpm__meta { display: flex !important; gap: 8px !important; }
.hpm--7 .hpm__meta-item {
  flex: 1 !important;
  background: var(--hpm-bg) !important;
  padding: 10px 8px !important;
  border-radius: 8px !important;
  text-align: center !important;
}
.hpm--7 .hpm__meta-label {
  display: block !important;
  font-size: 10px !important;
  text-transform: uppercase !important;
  color: var(--hpm-muted) !important;
  margin-bottom: 4px !important;
}
.hpm--7 .hpm__meta-value {
  font-weight: 700 !important;
  font-size: 13px !important;
}


/* ============================================
   STYLE 8: Split Info Cards (NEW)
   ============================================ */
.hpm--8 .hpm__grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 14px !important;
}
@media (max-width: 700px) { .hpm--8 .hpm__grid { grid-template-columns: 1fr !important; } }
.hpm--8 .hpm__card {
  display: flex !important;
  background: var(--hpm-panel) !important;
  border: 1px solid var(--hpm-border) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
}
.hpm--8 .hpm__card-left {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 16px !important;
  border-right: 1px solid var(--hpm-border) !important;
}
.hpm--8 .hpm__logo {
  width: 50px !important;
  height: 34px !important;
  object-fit: contain !important;
  background: var(--hpm-bg) !important;
  border-radius: 8px !important;
  padding: 6px !important;
}
.hpm--8 .hpm__name { font-weight: 600 !important; font-size: 14px !important; }
.hpm--8 .hpm__card-right {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  background: var(--hpm-bg) !important;
}
.hpm--8 .hpm__info {
  padding: 12px 16px !important;
  text-align: center !important;
  min-width: 90px !important;
}
.hpm--8 .hpm__info-value {
  display: block !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  color: var(--hpm-accent) !important;
}
.hpm--8 .hpm__info-label {
  display: block !important;
  font-size: 10px !important;
  text-transform: uppercase !important;
  color: var(--hpm-muted) !important;
  margin-top: 2px !important;
}
.hpm--8 .hpm__divider {
  width: 1px !important;
  height: 40px !important;
  background: var(--hpm-border) !important;
}


/* ============================================
   STYLE 9: Accordion Expandable (NEW)
   ============================================ */
.hpm--9 .hpm__grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 12px !important;
}
@media (max-width: 900px) { .hpm--9 .hpm__grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 600px) { .hpm--9 .hpm__grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 400px) { .hpm--9 .hpm__grid { grid-template-columns: 1fr !important; } }
.hpm--9 .hpm__card {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  background: var(--hpm-panel) !important;
  border: 1px solid var(--hpm-border) !important;
  border-radius: 12px !important;
  padding: 12px !important;
}
.hpm--9 .hpm__card-logo {
  width: 50px !important;
  height: 36px !important;
  background: var(--hpm-bg) !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px !important;
  flex-shrink: 0 !important;
}
.hpm--9 .hpm__card-logo img {
  max-width: 38px !important;
  max-height: 24px !important;
  object-fit: contain !important;
}
.hpm--9 .hpm__card-content { flex: 1 !important; min-width: 0 !important; }
.hpm--9 .hpm__name {
  font-weight: 600 !important;
  font-size: 14px !important;
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.hpm--9 .hpm__card-meta {
  font-size: 12px !important;
  color: var(--hpm-muted) !important;
  margin-top: 2px !important;
}
.hpm--9 .hpm__sep { margin: 0 6px !important; }
.hpm--9 .hpm__toggle {
  width: 100% !important;
  margin-top: 14px !important;
  padding: 12px !important;
  background: var(--hpm-bg) !important;
  border: 1px solid var(--hpm-border) !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--hpm-accent) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}
.hpm--9 .hpm__toggle:hover { background: var(--hpm-border) !important; }
.hpm--9 .hpm__arrow { transition: transform 0.3s !important; }
.hpm--9 .hpm__toggle.open .hpm__arrow { transform: rotate(180deg) !important; }
.hpm--9 .hpm__hidden { display: none !important; margin-top: 14px !important; }
.hpm--9 .hpm__hidden.show { display: grid !important; }


/* ============================================
   STYLE 10: Minimal Badges ✓
   ============================================ */
.hpm--10 .hpm__badges {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}
.hpm--10 .hpm__badge {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: var(--hpm-panel) !important;
  border: 1px solid var(--hpm-border) !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  transition: box-shadow 0.2s !important;
}
.hpm--10 .hpm__badge:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important; }
.hpm--10 .hpm__badge-icon {
  width: 44px !important;
  height: 44px !important;
  background: var(--hpm-bg) !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}
.hpm--10 .hpm__img {
  max-width: 32px !important;
  max-height: 22px !important;
  object-fit: contain !important;
}
.hpm--10 .hpm__badge-body { display: flex !important; flex-direction: column !important; gap: 2px !important; }
.hpm--10 .hpm__badge-name { font-weight: 600 !important; font-size: 14px !important; }
.hpm--10 .hpm__badge-meta { font-size: 12px !important; color: var(--hpm-muted) !important; }
