:root {
  --ratio: 2002/702;
}


.estate_main{
 padding: 35px 0; 
 box-sizing: border-box;
}

.estate_main_bg{
 background: #fff; 
}

.estate_header{
 padding: 20px 0;
 box-sizing: border-box; 
}




.estate_main_header_col{
background: #1A1F36;
    color: #fff;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-direction: column;
    font-size: 16px;
    height: 110px;
    gap: 5px;
}

.estate_main_header_col img{
 max-width: 20px; 
 z-index: 1111;
}


.estate_header_text{
  display: flex;
    align-items: center;
    gap: 5px; 
}

.map {
  position: relative;
  width: 100%;
  aspect-ratio: var(--ratio);
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .35);
}

.map img.layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}

.map img.bg {
  z-index: 1;
  pointer-events: none;
}

.map img.bld {
  pointer-events: none;
  image-rendering: auto;
}

.panel {
  margin-top: 16px;

}

.grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.card {
    background: #1A1F36;
  border-radius: 8px;
    padding: 10px;
    color: #fff;
}

.card-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-row .mini {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex: 0 0 auto;
  image-rendering: auto;
  border-radius: 8px;
}

button.upg {
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: #49d1c1;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }

button.upg[disabled] {
  background: #49d1c1;
  cursor: not-allowed;
  opacity: .6;
}

.card_title_name{
     color: #fff;
    font-size: 16px;
    padding-bottom: 10px;
    box-sizing: border-box; 
}

.card_circle{
display: flex;
    justify-content: space-between;
    align-items: center;
}


.card_circle_img{
 max-width: 50px; 
}

.cap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 13px;
    color: #fff;
    margin-top: 6px;
}

.usdt_icon{
 max-width: 15px; 
}

.capcost_text{
display: flex;
    align-items: center;
    gap: 2px;
}


.wallet {
  display: flex;
  gap: 16px;
  align-items: center;
}

.wallet .spacer {
  flex: 1;
}

.window {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sep {
  opacity: .5;
}

.btn-claim {
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: #49d1c1;
  color: #fff;
  cursor: pointer;
}

.btn-claim[disabled] {
  background: #49d1c1;
  opacity: .6;
  cursor: not-allowed;
}

#balance {
  font-variant-numeric: tabular-nums;
   
}

#timer {
  font-variant-numeric: tabular-nums;

}

/* summary table */
.table-wrap {
  overflow: auto;
}

.tbl {
  width: 100%;
  border-collapse: collapse;
}

.tbl th,
.tbl td {
  padding: 8px 10px;
  border-top: 1px solid #1f2937;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tbl th:first-child,
.tbl td:first-child {
  text-align: left;
}


.tdflex{
 display: flex;
    align-items: center;
    gap: 5px;
    justify-content: flex-end; 
}

.tbl thead th {
font-weight: 600;
}

/* === Modal === */

.modal{
position:fixed; 
inset:0; 
z-index:10050; 
display:block;
} 
.modal.hidden{display:none;}
.modal__backdrop{position:absolute; inset:0; background:rgba(0,0,0,.55)}
.modal__dialog{
position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(520px, 92vw);
    background: #1A1F36;
    border: 1px solid #ff3434;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
    padding: 18px;
}
.modal-title{
 color: #fff !important; 
}
.modal__body{margin:8px 0 14px; color:#e5e7eb}
.modal__actions{display:flex; justify-content:flex-end; gap:8px}
.btn{
padding:10px 14px; 
border:0; 
border-radius:10px; 
background:#49d1c1; 
color:#fff;  
cursor:pointer
}

.pddb{
 padding-bottom: 30px;
 box-sizing: border-box; 
}


.btn:hover{
background:#49d1c1;   
}

/* === Booster overlay (рандом на карте) === */
.booster {
  position: absolute;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

.booster.hidden {
  display: none;
}

.booster__btn {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
}

.booster__btn img {
  width: min(80px, 20vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .6));
}

.booster__timer {
  position: absolute;
  transform: translate(-50%, calc(-50% + 100% + 8px));
  background: rgba(0, 0, 0, .6);
  padding: 6px 10px;
  border-radius: 10px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #fff;
}

/* === Tabs === */
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.tab-btn {
padding: 8px 12px;
    border: 1px solid #1A1F36;
    background: #1A1F36;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
}

.tab-btn.active {
  background: #28a1f9;
  border-color: #28a1f9;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* === Empty state === */
.empty {
display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px 0;
}

.empty img {
width: 250px;
height: auto;
image-rendering: auto;
}

.empty__title {
    font-size: 26px;
    color: #ff3434;
    margin-bottom: 6px;
}


.empty__text {
  font-size: 16px;
  max-width: 520px;
  text-align: center;
}

.stat-cards {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 10px;
}
