/* --- Seed phrase or Private Key PAGE --- */
.page-seedphrase {
  font-family: 'Inter', Arial, sans-serif;
  position: absolute;
  inset: 0;
  width: 100vw;
  min-width: 0;
  min-height: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  height: 100vh;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: transform 0.35s cubic-bezier(.77,0,.18,1), opacity 0.2s;
}
.page-seedphrase.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

/* DESKTOP: Card center, fixed width */
@media (min-width: 900px) {
  .page-seedphrase {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 500px;
    min-height: 600px;
    height: auto;
    max-height: 90vh; /* perbaiki dari 10vh ke 90vh */
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    overflow-y: auto;
  }
}

/* MOBILE OPTIMIZED */
@media (max-width: 899px) {
  .seed-header h2 {
    font-size: 1.15rem;
    padding: 0 10vw;
  }
  .seed-tabs {
    margin: 14px 0 4px 0;
    padding: 0 4vw;
    width: 100%;
    max-width: 100vw;
    border-radius: 9px;
  }
  .seed-phrase-panel, .privkey-panel {
    padding: 6px 4vw 0 4vw;
    max-width: 100vw;
    width: 100%;
    box-sizing: border-box;
  }
  .seed-inputs {
    grid-template-columns: 1fr 1fr;
    gap: 7px 6px;
    margin-bottom: 12px;
    width: 100%;
    max-width: 100vw;
  }
  .seed-word-input {
    font-size: 0.97rem;
    padding: 9px 5px 9px 18px;
    border-radius: 8px;
  }
  .confirm-btn {
    width: 96vw;
    max-width: 97vw;
    font-size: 1.02rem;
  }
}
@media (max-width: 380px) {
  .seed-header h2 { font-size: 1.04rem; }
  .seed-tabs { font-size: 0.98rem; }
  .seed-inputs { gap: 5px 3px; }
  .seed-word-input { font-size: 0.93rem; padding-left: 12px;}
  .confirm-btn { font-size: 0.97rem; }
}

.seed-header {
  display: flex;
  align-items: center;
  padding: 18px 0 8px 0;
  border-bottom: 1.2px solid #f2f2f2;
  position: relative;
  justify-content: center;
}
.seed-header .back-btn {
  background: none;
  border: none;
  padding: 6px 18px 6px 2px;
  position: absolute;
  left: 0;
  top: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.seed-header h2 {
  font-size: 1.22rem;
  font-weight: 600;
  margin: 0 auto 0 0;
  text-align: center;
  width: 100%;
}

.seed-tabs {
  margin: 18px 0 7px 0;
  padding: 0 18px;
  display: flex;
  justify-content: center;
  border-radius: 12px;
  background: #f6f6f6;
  width: calc(100% - 36px);
  max-width: 420px;
  align-self: center;
}
.tab-btn {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 0 10px 0;
  font-size: 1rem;
  font-weight: 500;
  background: none;
  color: #aaa;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
}
.tab-btn.active {
  background: #fff;
  color: #111;
  font-weight: 600;
  box-shadow: 0 1px 8px rgba(80,80,80,0.03);
}

.seed-phrase-panel, .privkey-panel {
  padding: 12px 18px 0 18px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.seed-words-select {
  font-size: 1rem;
  color: #888;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 400;
  position: relative;
}
.seed-words-select .dropdown-btn {
  background: none;
  border: none;
  color: #222;
  font-weight: 600;
  font-size: 1rem;
  padding: 0 1px;
  margin-left: 2px;
  cursor: pointer;
  border-radius: 6px;
  position: relative;
  display: flex;
  align-items: center;
}
.dropdown-list {
  display: none;
  position: absolute;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  border-radius: 12px;
  top: 32px;
  left: 100px;
  z-index: 10;
  min-width: 130px;
  overflow: hidden;
  padding: 0;
  font-size: 0.98rem;
}
.dropdown-list.active {
  display: block;
  animation: dropfade 0.15s;
}
@keyframes dropfade {
  from { opacity: 0; transform: translateY(-8px);}
  to { opacity: 1; transform: translateY(0);}
}
.dropdown-list div {
  padding: 11px 20px 11px 13px;
  font-size: 1rem;
  cursor: pointer;
  background: #fff;
  border-bottom: 1px solid #f6f6f6;
  position: relative;
}
.dropdown-list div:last-child {
  border-bottom: none;
}
.dropdown-list div:hover {
  background: #f2f2f2;
}
.checkmark {
  position: absolute;
  right: 10px;
  top: 11px;
  color: #43c000;
  font-size: 1.11em;
}
.dropdown-list div.selected .checkmark::after {
  content: "✔";
}

.seed-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 10px;
  margin-top: 2px;
  margin-bottom: 16px;
  width: 100%;
  max-width: 420px;
  min-width: 0;
}

.seed-word-input {
  background: #fafafa;
  border: 2px solid #eee;
  border-radius: 10px;
  font-size: 1rem;
  padding: 11px 10px 11px 22px;
  color: #222;
  font-weight: 500;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border 0.13s;
  position: relative;
}
.seed-word-input:focus {
  border: 2px solid #111;
  background: #fff;
}
.seed-word-input::placeholder {
  color: #bbb;
  font-weight: 400;
  opacity: 1;
}
.seed-word-label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.98rem;
  color: #b2b2b2;
  font-weight: 400;
  pointer-events: none;
}

. {
  display: flex;
  flex-direction: column;
  padding-top: 4px;
  margin-bottom: 0;
}
.privkey-label {
  font-size: 1.09rem;
  color: #222;
  margin-bottom: 11px;
  margin-left: 2px;
  font-weight: 500;
}
#privkeyarea {
  font-family: 'Inter', Arial, sans-serif;
  min-height: 220px;
  width: 100%;
  background: #f3f3f3;
  border: 2px solid #f3f3f3;
  border-radius: 15px;
  font-size: 0.9rem;
  padding: 14px 14px 14px 14px;
  color: #222;
  resize: none;
  font-weight: 500;
  outline: none;
  margin-bottom: 0;
  box-sizing: border-box;
  transition: border 0.13s;
}
#privkeyarea:focus {
  border: 2px solid #111;
  background: #fff;
}
#privkeyarea::placeholder {
  color: #bbb;
  opacity: 1;
  font-weight: 400;
}

.confirm-btn {
  display: block;
  width: 94vw;
  max-width: 420px;
  margin: 0 auto 16px auto;
  margin-top: auto;
  padding: 12px 0;
  font-size: 1.05rem;
  border-radius: 40px;
  font-weight: 600;
  border: none;
  background: #efefef;
  color: #bbb;
  text-align: center;
  transition: background 0.18s, color 0.18s;
  cursor: not-allowed;
  box-shadow: none;
}
.confirm-btn.enabled, .confirm-btn:enabled {
  background: #111;
  color: #fff;
  cursor: pointer;
}

/* ======= Highlight error fields ======= */
.seed-word-input.error,
#privkeyarea.error {
  border-color: #e05555 !important; /* merah */
  color: #e05555 !important;
  background: #fff;                 /* tetap putih—ubah bila perlu */
}
.error-msg {
  color: #e05555;
  font-size: 0.9rem;
  margin: 8px 0 0 4px;
  font-weight: 400;
}

