@font-face {
  font-family: 'AlibabaSans';
  src: url('../assets/fonts/AlibabaSans-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  padding: 0;
  height: 100vh;
  background: #000;
  font-family: 'Segoe UI', sans-serif;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.background {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-image: url('../assets/background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.container {
  text-align: center;
  position: relative;
  z-index: 10;
}

.logo-float {
  animation: floatLogo 3s ease-in-out infinite;
  margin-bottom: 20px;
}

@keyframes floatLogo {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}

.title {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 30px;
}

.button-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 22px;
  background-color: #00c2ff;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #00a8da;
}

.wallet-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  margin-top: 30px;
}

.wallet-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  border: 1px solid #444;
  border-radius: 10px;
  padding: 12px 24px;
  color: white;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  min-width: 260px;
  transition: all 0.2s ease-in-out;
}

.wallet-button:hover {
  border-color: #3f69ff;
  box-shadow: 0 0 0 2px #3f69ff;
  background-color: #111;
}

.wallet-button .leftIcon {
  margin-right: 12px;
  display: flex;
  align-items: center;
}

.wallet-button svg {
  display: block;
}

.wallet-button .label {
  font-family: 'AlibabaSans', sans-serif;
}

.import-page {
  font-family: 'AlibabaSans', sans-serif;
  background: #000;
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.create-page {
  font-family: 'AlibabaSans', sans-serif;
  background: #000;
  height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phrase-page {
  font-family: 'AlibabaSans', sans-serif;
  background-color: #000;
  height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phrase-container {
  background-color: rgba(0, 0, 0, 0.65);
  padding: 40px;
  border-radius: 16px;
  color: white;
  max-width: 460px;
  width: 90%;
  text-align: left;
}

.phrase-container h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}

.phrase-desc {
  font-size: 14px;
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 14px;
}

.phrase-box {
  background-color: #0e1527;
  border: 1px solid #2e3a55;
  border-radius: 10px;
  padding: 18px;
  font-size: 15px;
  line-height: 1.6;
  color: white;
  word-wrap: break-word;
  margin: 20px 0 10px;
}

.copy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #aaa;
  margin-bottom: 20px;
  cursor: pointer;
}

.copy-icon {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.phrase-container button {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  background: white;
  color: black;
  border: none;
  border-radius: 30px;
  cursor: pointer;
}

.create-container {
  background-color: rgba(0, 0, 0, 0.65);
  padding: 35px 45px;
  border-radius: 16px;
  text-align: center;
  color: white;
  z-index: 2;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 0 12px rgba(0,0,0,0.2);
}

.create-icon {
  width: 130px;
  margin-bottom: 0px;
}

.create-container h2 {
  font-size: 22px;
  margin: 0 0 10px;
  font-weight: 600;
}

.create-desc {
  font-size: 14px;
  color: #ccc;
  line-height: 1.5;
  margin: 0 0 20px;
}

.create-desc a {
  color: #61a6ff;
  text-decoration: underline;
}

.create-container button {
  width: 85%;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(to right, #009dff, #00b2ff);
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 157, 255, 0.4);
  transition: background 0.3s ease;
}

.create-container button:hover {
  background: linear-gradient(to right, #00b2ff, #00d0ff);
}


.import-container {
  background-color: rgba(0, 0, 0, 0.65);
  padding: 35px 45px;
  border-radius: 16px;
  text-align: center;
  color: white;
  z-index: 2;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 0 12px rgba(0,0,0,0.2);
}

.import-container textarea {
  width: 100%;
  height: 100px;
  padding: 14px;
  border: 1px solid #4c5a6b;
  background-color: rgba(255, 255, 255, 0.02);
  color: white;
  border-radius: 10px;
  font-size: 15px;
  resize: none;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.import-container button {
  width: 100%;
  padding: 14px;
  background-color: #2e2e2e;
  border: none;
  border-radius: 30px;
  color: white !important;
  font-weight: 600;
  font-size: 15px;
  font-family: 'AlibabaSans', sans-serif; /* ✅ Add this line */
  cursor: not-allowed;
  opacity: 0.6;
  transition: background 0.3s ease;
}

.import-container button:hover {
  background: linear-gradient(90deg, #00a0e5, #00b4e5);
}

.back-arrow {
  position: absolute;
  top: 24px;
  left: 24px;
  font-size: 24px;
  color: white;
  text-decoration: none;
  z-index: 3;
}

.import-container button.active {
  background: linear-gradient(to right, #009dff, #00b2ff);
  color: white !important;
  cursor: pointer;
  opacity: 1;
  box-shadow: 0 4px 20px rgba(0, 157, 255, 0.4);
}

.import-button {
  background: #1a1a1a;         /* dull, dark background */
  color: #666 !important;      /* light grey text */
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.import-button.enabled {
  background: linear-gradient(to right, #009dff, #00b2ff);
  color: white !important;
  cursor: pointer;
  opacity: 1;
  box-shadow: 0 4px 20px rgba(0, 157, 255, 0.4);
}

/* Modal loader styling */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal.hidden {
  display: none;
}

.modal-content {
  text-align: center;
  color: #00c2ff;
  font-size: 18px;
}

.spinner {
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid #00c2ff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.close-loader {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 28px;
  color: #00c2ff;
  cursor: pointer;
  z-index: 10000;
}

.import-top-image {
  display: block;
  margin: 0 auto 20px auto;
  width: 135px;
  margin-bottom: -30px;
  margin-top: -10px;
  animation: floatLogo 3s ease-in-out infinite;
}


