/* ===========================
   Import / Export Center
   v2.9.0
=========================== */

.importExportHero{
  background:linear-gradient(135deg,#07111f,#123d73);
  color:#fff;
  border-radius:22px;
  padding:24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  box-shadow:0 14px 36px rgba(0,0,0,.18);
  margin-bottom:18px;
}

.backupStats{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.backupStats span{
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  padding:8px 11px;
  font-size:12px;
  font-weight:900;
}

.importExportSplit{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

.exportGrid,
.disabledImportGrid,
.importButtonGrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.exportCard{
  display:flex;
  flex-direction:column;
  gap:5px;
  text-align:left;
  background:#fff;
  border:1px solid #e0e6ef;
  border-radius:14px;
  padding:14px;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.exportCard:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 24px rgba(0,0,0,.10);
  border-color:#c6d7f2;
}

.exportCard span{
  font-size:24px;
}

.exportCard b{
  color:#07111f;
}

.exportCard small{
  color:#68778a;
  font-weight:800;
  line-height:1.35;
}

.primaryExport{
  background:#f8fbff;
  border-color:#123d73;
}

.importNotice{
  display:flex;
  gap:12px;
  border:1px solid #fde68a;
  background:#fffbeb;
  border-radius:14px;
  padding:14px;
  margin-bottom:12px;
}

.importNoticeIcon{
  width:34px;
  height:34px;
  border-radius:999px;
  background:#f59e0b;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:1000;
  flex:0 0 auto;
}

.importNotice p{
  margin:5px 0 0;
  color:#92400e;
  font-weight:700;
  line-height:1.4;
}

.disabledImportGrid,
.importButtonGrid button{
  border:1px solid #e0e6ef;
  border-radius:12px;
  padding:12px;
  background:#f8fafc;
  color:#94a3b8;
  font-weight:900;
  cursor:not-allowed;
}

.backupHistoryItem{
  display:flex;
  align-items:flex-start;
  gap:10px;
  border:1px solid #e0e6ef;
  border-radius:12px;
  padding:10px;
  margin-bottom:8px;
  background:#fff;
}

.backupHistoryItem:last-child{
  margin-bottom:0;
}

.backupIcon{
  width:34px;
  height:34px;
  border-radius:999px;
  background:#eef4ff;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}

.backupMain{
  flex:1;
  min-width:0;
}

.backupFilename{
  font-size:11px;
  color:#68778a;
  font-weight:800;
  margin-top:3px;
  word-break:break-all;
}

.backupInfoGrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.backupInfoGrid div{
  border:1px solid #e0e6ef;
  border-radius:12px;
  padding:10px;
  background:#f8fafc;
}

.backupInfoGrid span{
  display:block;
  font-size:11px;
  color:#68778a;
  text-transform:uppercase;
  letter-spacing:.1em;
  font-weight:1000;
  margin-bottom:4px;
}

.backupInfoGrid b{
  font-size:14px;
  color:#07111f;
}

@media(max-width:950px){
  .importExportHero{
    flex-direction:column;
    align-items:stretch;
  }

  .backupStats{
    justify-content:flex-start;
  }

  .importExportSplit,
  .exportGrid,
  .disabledImportGrid,
.importButtonGrid,
  .backupInfoGrid{
    grid-template-columns:1fr;
  }
}


/* ===========================
   Restore / Import Tools
   v2.9.1
=========================== */

.importDropZone{
  border:2px dashed #c6d7f2;
  background:#f8fbff;
  border-radius:18px;
  padding:24px;
  text-align:center;
  cursor:pointer;
  transition:all .18s ease;
  margin-bottom:12px;
}

.importDropZone:hover,
.importDropZone.dragging{
  border-color:#123d73;
  background:#eef4ff;
  transform:translateY(-1px);
}

.importDropIcon{
  font-size:34px;
  margin-bottom:8px;
}

.importDropZone p{
  margin:5px 0;
  color:#68778a;
  font-weight:900;
}

.importDropZone small{
  color:#68778a;
  font-weight:800;
}

.importButtonGrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.importButtonGrid button{
  border:1px solid #e0e6ef;
  border-radius:12px;
  padding:12px;
  background:#fff;
  color:#07111f;
  font-weight:900;
  cursor:pointer;
  text-align:left;
}

.importButtonGrid button:hover{
  background:#f8fbff;
  border-color:#c6d7f2;
}

.importPreviewOverlay{
  position:fixed;
  inset:0;
  z-index:21000;
  background:rgba(4,16,31,.68);
  display:none;
  align-items:flex-start;
  justify-content:center;
  padding:70px 18px 18px;
}

.importPreviewOverlay.open{
  display:flex;
}

.importPreviewModal{
  width:min(760px, 100%);
  background:#fff;
  border-radius:20px;
  border:1px solid #d7e0ec;
  box-shadow:0 24px 70px rgba(0,0,0,.34);
  overflow:hidden;
}

.importPreviewHeader,
.importPreviewActions{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:16px;
  border-bottom:1px solid #e0e6ef;
  background:#f8fafc;
}

.importPreviewHeader h3{
  margin:0;
}

.importPreviewBody{
  padding:16px;
  max-height:60vh;
  overflow:auto;
}

.importPreviewBody h4{
  margin:16px 0 8px;
}

.importPreviewActions{
  border-top:1px solid #e0e6ef;
  border-bottom:0;
  justify-content:flex-end;
}

.importWarningBox,
.importErrorBox{
  display:flex;
  gap:12px;
  border-radius:14px;
  padding:14px;
  border:1px solid #fde68a;
  background:#fffbeb;
}

.importWarningBox p,
.importErrorBox p{
  margin:5px 0 0;
  font-weight:800;
  color:#92400e;
}

.importErrorBox{
  border-color:#fecdd3;
  background:#fff1f2;
}

.importErrorIcon{
  width:34px;
  height:34px;
  border-radius:999px;
  background:#991b1b;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:1000;
  flex:0 0 auto;
}

.importSummaryGrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.importSummaryGrid div{
  border:1px solid #e0e6ef;
  border-radius:12px;
  padding:10px;
  background:#f8fafc;
}

.importSummaryGrid span{
  display:block;
  font-size:11px;
  color:#68778a;
  text-transform:uppercase;
  letter-spacing:.1em;
  font-weight:1000;
  margin-bottom:4px;
}

.importSummaryGrid b{
  font-size:14px;
  color:#07111f;
}

.playerImportOptions{
  margin-top:14px;
  display:grid;
  gap:8px;
  border:1px solid #e0e6ef;
  border-radius:12px;
  padding:12px;
}

.playerImportOptions label{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0;
  font-size:14px;
  color:#07111f;
}

@media(max-width:700px){
  .importButtonGrid,
  .importSummaryGrid{
    grid-template-columns:1fr;
  }

  .importPreviewHeader,
  .importPreviewActions{
    flex-direction:column;
    align-items:stretch;
  }
}
