/* =============================================================
   Domain Price Manager — Public Pricing Table
   ============================================================= */
:root {
  --dpm-pub-primary: #696cff;
  --dpm-pub-primary-h: #5b61ec;
  --dpm-pub-primary-soft: rgba(105, 108, 255, .08);
  --dpm-pub-success: #20b15a;
  --dpm-pub-danger: #f05a66;
  --dpm-pub-text: #566a7f;
  --dpm-pub-heading: #32475c;
  --dpm-pub-muted: #99a5b3;
  --dpm-pub-border: rgba(203, 213, 225, .62);
  --dpm-pub-surface: #f8fafc;
  --dpm-pub-header: #667285;
  --dpm-pub-header-border: rgba(255, 255, 255, .12);
  --dpm-pub-white: #ffffff;
  --dpm-pub-radius: 12px;
  --dpm-pub-transition: 160ms ease;
}

.dpm-public,
.dpm-public-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 24px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--dpm-pub-text);
}

.dpm-public *,
.dpm-public-wrap * {
  box-sizing: border-box;
}

.dpm-public__filters {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid rgba(203, 213, 225, .52);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .045);
  overflow: hidden;
}

.dpm-public__filters-search,
.dpm-public__filters-actions {
  min-width: 0;
}

.dpm-public__filters-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.dpm-public__search-wrap {
  position: relative;
  min-width: 0;
}

.dpm-public__search-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: var(--dpm-pub-muted);
  font-size: 13px;
  pointer-events: none;
}

.dpm-public__search,
.dpm-public__filter-select {
  width: 100%;
  height: 50px;
  border: 1px solid rgba(203, 213, 225, .78);
  border-radius: 14px;
  background: var(--dpm-pub-white);
  color: var(--dpm-pub-heading);
  font: inherit;
  font-size: 14px;
  outline: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .82) inset;
  transition: border-color var(--dpm-pub-transition), background var(--dpm-pub-transition), box-shadow var(--dpm-pub-transition), transform var(--dpm-pub-transition);
}

.dpm-public__search {
  padding: 0 16px 0 44px;
  font-size: 15px;
  letter-spacing: -.01em;
}

.dpm-public__search::placeholder {
  color: var(--dpm-pub-muted);
}

.dpm-public__filter-select {
  padding: 0 38px 0 16px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2399a5b3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.dpm-public__search:focus,
.dpm-public__filter-select:focus {
  border-color: var(--dpm-pub-primary);
  box-shadow: 0 0 0 4px rgba(105, 108, 255, .09);
  transform: translateY(-1px);
}

.dpm-public__price-tabs {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(203, 213, 225, .78);
  border-radius: 14px;
  background: var(--dpm-pub-white);
  min-height: 50px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .82) inset;
}

.dpm-public__price-tab {
  min-width: 0;
  padding: 12px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--dpm-pub-text);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background var(--dpm-pub-transition), color var(--dpm-pub-transition);
}

.dpm-public__price-tab:hover {
  background: var(--dpm-pub-primary-soft);
  color: var(--dpm-pub-primary);
}

.dpm-public__price-tab.active {
  background: var(--dpm-pub-primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(105, 108, 255, .22);
}

.dpm-public__meta {
  margin-bottom: 10px;
  color: var(--dpm-pub-muted);
  font-size: 13px;
}

.dpm-public__table-wrap {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, .72);
  border-radius: 14px;
  background: var(--dpm-pub-white);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .035);
}

.dpm-public__table-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
}

.dpm-public__table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: auto;
}

.dpm-public__table thead {
  background: linear-gradient(180deg, #738194 0%, #677486 100%);
}

.dpm-public__table th {
  padding: 13px 12px;
  border-right: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .96);
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .08);
}

.dpm-public__table th:last-child,
.dpm-public__table td:last-child {
  border-right: none;
}

.dpm-public__sort-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  color: inherit !important;
  text-decoration: none !important;
}

.dpm-public__sort-link:hover {
  opacity: .97;
}

.dpm-public__sort-icon {
  font-size: 10px;
  color: rgba(255, 255, 255, .66);
}

.dpm-public__table td {
  padding: 12px 12px;
  border-right: 1px solid rgba(203, 213, 225, .34);
  border-bottom: 1px solid rgba(203, 213, 225, .34);
  background: var(--dpm-pub-white);
  vertical-align: middle;
}

.dpm-public__table tbody tr:nth-child(even) td {
  background: rgba(248, 250, 252, .56);
}

.dpm-public__table tbody tr:last-child td {
  border-bottom: none;
}

.dpm-public__table tbody tr:hover td {
  background: #f7faff;
}

.dpm-col-extension {
  width: 112px;
}

.dpm-col-registrar {
  width: 260px;
}

.dpm-col-price {
  width: 170px;
}

.dpm-col-coupon {
  width: 154px;
}

.dpm-col-flag,
.dpm-col-buy {
  width: 56px;
  text-align: center;
}

.dpm-public__ext {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(105, 108, 255, .1);
  color: var(--dpm-pub-primary);
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.dpm-public__reg-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.dpm-public__reg-logo {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 9px;
  background: #fff;
}

.dpm-public__reg-link,
.dpm-public__reg-name {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--dpm-pub-primary);
  text-decoration: none;
  font-weight: 500;
  line-height: 1.35;
}

.dpm-public__reg-link:hover {
  color: var(--dpm-pub-primary-h);
}

.dpm-public__price-cell {
  color: var(--dpm-pub-heading);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dpm-pub-price {
  color: var(--dpm-pub-success);
}

.dpm-pub-price--orig {
  display: inline-block;
  margin-left: 4px;
  color: var(--dpm-pub-muted);
  font-size: 11px;
  font-weight: 400;
  text-decoration: line-through;
}

.dpm-pub-muted {
  color: var(--dpm-pub-muted);
}

.dpm-pub-coupon-cell,
.dpm-pub-buy-cell {
  text-align: center;
}

.dpm-pub-icon-cell {
  text-align: center;
}

.dpm-pub-coupon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px dashed var(--dpm-pub-primary);
  border-radius: 6px;
  background: rgba(105, 108, 255, .04);
  color: var(--dpm-pub-primary);
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  cursor: pointer;
  transition: background var(--dpm-pub-transition), border-color var(--dpm-pub-transition), color var(--dpm-pub-transition);
}

.dpm-pub-coupon:hover {
  background: rgba(105, 108, 255, .09);
}

.dpm-pub-coupon.is-copied {
  border-color: var(--dpm-pub-success);
  color: var(--dpm-pub-success);
  background: rgba(32, 177, 90, .08);
}

.dpm-pub-coupon.is-copy-failed {
  border-color: var(--dpm-pub-danger);
  color: var(--dpm-pub-danger);
  background: rgba(240, 90, 102, .08);
}

.dpm-pub-th-icon,
.dpm-pub-icon-cell,
.dpm-pub-buy-cell {
  text-align: center;
}

.dpm-pub-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.dpm-pub-check--yes {
  color: var(--dpm-pub-success);
  background: rgba(32, 177, 90, .12);
}

.dpm-pub-check--no {
  color: var(--dpm-pub-danger);
  background: rgba(240, 90, 102, .12);
}

.dpm-public__buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--dpm-pub-primary);
  color: #fff !important;
  text-decoration: none !important;
  transition: background var(--dpm-pub-transition), transform var(--dpm-pub-transition);
}

.dpm-public__buy-btn:hover {
  background: var(--dpm-pub-primary-h);
  transform: translateY(-1px);
}

.dpm-public__empty-cell {
  padding: 44px 20px;
  text-align: center;
  color: var(--dpm-pub-muted);
}

.dpm-public__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 16px;
  border-top: 1px solid var(--dpm-pub-border);
}

.dpm-public__page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--dpm-pub-border);
  border-radius: 8px;
  background: #fff;
  color: var(--dpm-pub-text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background var(--dpm-pub-transition), border-color var(--dpm-pub-transition), color var(--dpm-pub-transition);
}

.dpm-public__page-btn:hover {
  background: var(--dpm-pub-surface);
}

.dpm-public__page-btn.current {
  border-color: var(--dpm-pub-primary);
  background: var(--dpm-pub-primary);
  color: #fff;
  font-weight: 700;
}

.dpm-public__page-ellipsis {
  color: var(--dpm-pub-muted);
}

.dpm-reg-table {
  width: 100%;
  overflow-x: auto;
}

.dpm-reg-table__table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--dpm-pub-border);
  background: #fff;
}

.dpm-reg-table__table thead {
  background: var(--dpm-pub-header);
}

.dpm-reg-table__table th,
.dpm-reg-table__table td {
  padding: 12px 10px;
  border-right: 1px solid var(--dpm-pub-border);
  border-bottom: 1px solid var(--dpm-pub-border);
}

.dpm-reg-table__table th:last-child,
.dpm-reg-table__table td:last-child {
  border-right: none;
}

.dpm-reg-table__table th {
  color: #fff;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.dpm-reg-table__table tbody tr:last-child td {
  border-bottom: none;
}

.dpm-reg-table__table tbody tr:hover td {
  background: var(--dpm-pub-surface);
}

@media (max-width: 960px) {
  .dpm-public,
  .dpm-public-wrap {
    padding: 20px 0;
  }

  .dpm-public__filters {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .dpm-public__filters-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dpm-public__price-tabs {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .dpm-public__filters-actions {
    grid-template-columns: 1fr;
  }

  .dpm-public__table {
    min-width: 760px;
  }

  .dpm-public__table th,
  .dpm-public__table td,
  .dpm-reg-table__table th,
  .dpm-reg-table__table td {
    padding: 10px 8px;
  }
}
